* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL - FUENTE GEORGIA */
body, p, h1, h2, h3, a, span, li, button, input, .menu a, .newsletter h2, .social-item p {
    font-family: Georgia, "Times New Roman", Times, serif;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    padding-top: 90px;
}

/* HEADER */
header {
    height: 100vh;
    background-image: url("../recursos/Cielo brillante con estrellas fugaces.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -180px;
    padding-top: 180px;
    position: relative;
    overflow: hidden;
}

/* MENÚ */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 60px;
    background: #ACEFF8;
    z-index: 1000;
}

/* LOGO */
.logo {
    width: 450px;
    height: auto;
    margin-top: -20px;
}

.links {
    display: flex;
    gap: 60px;
    margin-left: 360px;
}

.menu a {
    text-decoration: none;
    color: #064269;
    font-weight: 600;
    font-size: 29px;
    transition: color 0.3s ease;
}

.menu a:hover {
    text-decoration: none;
    color: #E40E1A; /* Azul brillante */
}

/* TEXTO PRINCIPAL */
.texto-header {
    position: absolute;
    left: 130px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 10;
}

.texto-header h1 {
    font-size: 105px;
    line-height: 1.2;
    color: #064269;
}

.texto-header span {
    color: #E40E1A;
    font-size: 140px;
    font-weight: bold;
}

.sociales {
    display: flex;
    gap: 15px;
}

.icono {
    width: 60px;
    height: 60px;
    fill: #E40E1A;
    cursor: pointer;
}

#ingles {
    width: 60px;
    height: 60px;
    fill: #00406A;
    cursor: pointer;
}

.icono:hover {
    fill: #ff3b3b;
}

h2 {
    font-size: 90px;
    color: #E40E1A;
    margin-top: 50px;
    text-align: center;
}

.grid-angeles {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 100px;
}

/* Imagen de arriba centrada */
.grid-angeles .top {
    grid-column: 1 / 4;
    display: flex;
    justify-content: center;
}

/* Contenedor principal de cada item */
.item {
    position: relative;
    cursor: pointer;
    width: 600px;
    height: auto;
    perspective: 2000px;
}

/* Contenedor que realiza la rotación 3D */
.rotacion-contenedor {
    position: relative;
    width: 100%;
    height: auto;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.item:hover .rotacion-contenedor {
    transform: rotateX(180deg);
}

/* La imagen frontal */
.rotacion-contenedor img {
    width: 100%;
    height: auto;
    display: block;
    backface-visibility: hidden;
    position: relative;
    z-index: 2;
}

/* ===== INFO-TRASERA CORREGIDA - VERSIÓN BASE ===== */
.info-trasera {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ACEFF8;
    color: #0b2c4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    backface-visibility: hidden;
    transform: rotateX(180deg);
    z-index: 1;
    overflow-y: auto;
    word-wrap: break-word;
}

.info-trasera h3 {
    font-size: 28px;
    color: #E40E1A;
    font-weight: 800;
    text-transform: uppercase;
    max-width: 100%;
    word-wrap: break-word;
    margin-bottom: 0; /* Elimina el margen inferior */
}

.info-trasera h2 {
    font-size: 17px;
    color: #0b2c4a;
    margin-top: 5px;  /* Espacio superior pequeño */
    margin-bottom: 10px; /* Espacio antes del párrafo */
}

.info-trasera p {
    font-size: 16px;
    color: #0b2c4a;
    line-height: 1.4;
    max-width: 95%;
    margin: 0 auto;
    word-wrap: break-word;
}

/* ===== ÁNGEL AMOR CORREGIDO ===== */
.grid-angeles .top.item {
    grid-column: 1 / 4;
    display: flex;
    justify-content: center;
    width: 600px;
    margin: 0 auto;
    perspective: 2000px;
}

.grid-angeles .top.item .rotacion-contenedor {
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.grid-angeles .top.item:hover .rotacion-contenedor {
    transform: rotateX(180deg);
}

.grid-angeles .top.item .rotacion-contenedor img {
    width: 100%;
    height: auto;
    display: block;
    backface-visibility: hidden;
}

.grid-angeles .top.item .info-trasera {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ACEFF8;
    color: #0b2c4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    box-sizing: border-box;
    backface-visibility: hidden;
    transform: rotateX(180deg);
    overflow-y: auto;
    word-wrap: break-word;
}

.grid-angeles .top.item .info-trasera h3 {
    font-size: 32px;
    color: #E40E1A;
    margin-bottom: 0; /* Elimina margen inferior */
    font-weight: 800;
    text-transform: uppercase;
    max-width: 100%;
    word-wrap: break-word;
}

.grid-angeles .top.item .info-trasera h2 {
    font-size: 18px; /* Ajuste para el top */
    color: #0b2c4a;
    margin-top: 5px;
    margin-bottom: 15px;
}

.grid-angeles .top.item .info-trasera p {
    font-size: 18px;
    color: #0b2c4a;
    line-height: 1.5;
    max-width: 95%;
    margin: 0 auto;
    word-wrap: break-word;
}

/* FOOTER */
footer {
    background-color: #ACEFF8;
    padding: 100px 120px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.footer-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* MUNDO */
.mundo {
    width: 50%;
}

.imagen-mundo {
    width: 100%;
    max-width: 900px;
    margin-top: -10%;
}

/* COLUMNA DERECHA */
.columna-derecha {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 15%;
}

/* NEWSLETTER */
.newsletter h2 {
    font-size: 58px;
    color: #0b2c4a;
    margin-bottom: 30px;
    text-align: center;
}

.newsletter form {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 25px 30px;
    border-radius: 30px;
    border: none;
    width: 400px;
    font-size: 18px;
}

.newsletter .btn {
    background-color: #e10600;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.newsletter .btn:hover {
    background-color: #b30000;
}

input {
    font-size: 18px;
}

/* REDES VERTICALES */
.sociales-footer {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-item p {
    font-size: 22px;
    color: #0b2c4a;
    font-weight: 600;
}

#azul {
    fill: #00406A;
}

/* LOGO */
.logo-footer-contenedor {
    position: absolute;
    right: 40px;
    bottom: 40px;
}

.logo-footer {
    width: 660px;
    max-width: 100%;
}

/* ===== MEDIA QUERY PARA 1080p CORREGIDO ===== */
@media (min-width: 1201px) and (max-width: 1920px) {
    /* HEADER */
    header {
        height: 100vh;
        margin-top: -120px;
        padding-top: 120px;
    }

    .menu {
        padding: 0px 40px;
    }

    .logo {
        width: 300px;
        margin-top: -10px;
    }

    .links {
        gap: 40px;
        margin-left: 200px;
    }

    .menu a {
        font-size: 20px;
    }

    .texto-header {
        left: 80px;
    }

    .texto-header h1 {
        font-size: 70px;
    }

    .texto-header span {
        font-size: 90px;
    }

    .icono, #ingles {
        width: 45px;
        height: 45px;
    }

    h2 {
        font-size: 65px;
    }

    /* ÁNGELES GRID */
    .item {
        width: 450px;
    }

    .grid-angeles .top.item {
        width: 450px;
    }

    .info-trasera {
        padding: 18px;
    }

    .info-trasera h3 {
        font-size: 24px;
        margin-bottom: 0;
    }

    .info-trasera h2 {
        font-size: 14px;
        margin-top: 4px;
        margin-bottom: 8px;
    }

    .info-trasera p {
        font-size: 14px;
        line-height: 1.3;
    }

    .grid-angeles .top.item .info-trasera {
        padding: 20px;
    }

    .grid-angeles .top.item .info-trasera h3 {
        font-size: 28px;
        margin-bottom: 0;
    }

    .grid-angeles .top.item .info-trasera h2 {
        font-size: 16px;
        margin-top: 4px;
        margin-bottom: 10px;
    }

    .grid-angeles .top.item .info-trasera p {
        font-size: 16px;
        line-height: 1.4;
    }

    /* ===== FOOTER CORREGIDO - INSPIRADO EN INDEX ===== */
     footer {
        padding: 20px 60px 40px 60px;  /* Superior reducido, inferior igual */
        align-items: center;
        min-height: auto;
    }

    .footer-contenedor {
        align-items: center;
    }

    .mundo {
        width: 50%;
    }

    .imagen-mundo {
        max-width: 560px;
        margin-top: 0;
    }

    .columna-derecha {
        width: 60%;
        margin-right: 2%;
    }

    .newsletter h2 {
        font-size: 37px;
        margin-bottom: 16px;            /* Menos espacio debajo del título */
        text-align: left;
        white-space: nowrap;
    }

    .newsletter form {
        gap: 10px;
        margin-bottom: 40px;            /* Menos espacio debajo del formulario */
    }

    .newsletter input {
        padding: 18px 20px;
        width: 280px;
        font-size: 14px;
    }

    .newsletter .btn {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .sociales-footer {
        gap: 30px;
        margin-bottom: 110px;            /* Menos espacio antes del logo */
    }

    .social-item {
        gap: 10px;
    }

    .social-item p {
        font-size: 20px;
        margin: 0;
    }

    .social-item svg {
        width: 28px;
        height: 28px;
    }

    .logo-footer-contenedor {
        right: 30px;
        bottom: 30px;
    }

    .logo-footer {
        width: 480px;
    }

}

/* ===== MEDIA QUERY PARA TABLET ===== */
@media (min-width: 769px) and (max-width: 1200px) {
    .menu {
        padding: 0px 30px;
    }

    .logo {
        width: 250px;
    }

    .links {
        gap: 30px;
        margin-left: 50px;
    }

    .menu a {
        font-size: 22px;
    }

    .item {
        width: 350px;
    }
    
    .grid-angeles .top.item {
        width: 350px;
    }

    .info-trasera {
        padding: 15px;
    }
    
    .info-trasera h3 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .info-trasera h2 {
        font-size: 13px;
        margin-top: 3px;
        margin-bottom: 6px;
    }
    
    .info-trasera p {
        font-size: 13px;
        line-height: 1.3;
    }

    .grid-angeles .top.item .info-trasera {
        padding: 18px;
    }
    
    .grid-angeles .top.item .info-trasera h3 {
        font-size: 26px;
        margin-bottom: 0;
    }

    .grid-angeles .top.item .info-trasera h2 {
        font-size: 15px;
        margin-top: 3px;
        margin-bottom: 8px;
    }
    
    .grid-angeles .top.item .info-trasera p {
        font-size: 15px;
        line-height: 1.4;
    }

    .texto-header {
        left: 50px;
    }

    .texto-header h1 {
        font-size: 60px;
    }

    .texto-header span {
        font-size: 75px;
    }

    h2 {
        font-size: 50px;
    }

    footer {
        padding: 50px 40px;
        flex-direction: column;
    }

    .footer-contenedor {
        flex-direction: column;
        gap: 40px;
    }

    .mundo {
        width: 100%;
    }

    .columna-derecha {
        width: 100%;
        margin-right: 0;
    }

    .imagen-mundo {
        max-width: 500px;
        margin: 0 auto;
    }

    .newsletter h2 {
        font-size: 38px;
        text-align: center;
    }

    .newsletter form {
        justify-content: center;
    }

    .logo-footer-contenedor {
        position: static;
        text-align: center;
        margin-top: 30px;
    }

    .logo-footer {
        width: 350px;
    }
}

/* ===== RESPONSIVE PARA CELULAR ===== */
@media (max-width: 768px) {
    /* HEADER */
    header {
        margin-top: -80px;
        padding-top: 80px;
        height: 100vh;
        position: relative;
    }

    /* MENÚ */
    .menu {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        width: 200px;
        margin: 0 auto;
    }

    .links {
        margin-left: 0;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu a {
        font-size: 18px;
    }

    /* TEXTO HEADER */
    .texto-header {
        left: 20px;
        right: 20px;
        top: 35%;
        text-align: center;
    }

    .texto-header h1 {
        font-size: 40px;
    }

    .texto-header span {
        font-size: 55px;
        display: block;
    }

    .sociales {
        justify-content: center;
        margin-top: 20px;
    }

    .icono, #ingles {
        width: 40px;
        height: 40px;
    }

    /* TÍTULO H2 */
    h2 {
        font-size: 40px;
        margin-top: 30px;
        padding: 0 20px;
    }

    /* GRID ÁNGELES */
    .grid-angeles {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 50px;
    }

    .grid-angeles .top {
        grid-column: 1 / -1;
    }

    .item {
        width: 90%;
        margin: 0 auto;
    }

    .grid-angeles .top.item {
        width: 90%;
        margin: 0 auto;
    }

    .info-trasera {
        padding: 12px;
    }

    .info-trasera h3 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .info-trasera h2 {
        font-size: 12px;
        margin-top: 2px;
        margin-bottom: 5px;
    }

    .info-trasera p {
        font-size: 12px;
        line-height: 1.2;
    }

    .grid-angeles .top.item .info-trasera {
        padding: 15px;
    }

    .grid-angeles .top.item .info-trasera h3 {
        font-size: 24px;
        margin-bottom: 0;
    }

    .grid-angeles .top.item .info-trasera h2 {
        font-size: 14px;
        margin-top: 2px;
        margin-bottom: 8px;
    }

    .grid-angeles .top.item .info-trasera p {
        font-size: 14px;
        line-height: 1.3;
    }

    /* FOOTER */
    footer {
        padding: 40px 20px;
        flex-direction: column;
    }

    .footer-contenedor {
        flex-direction: column;
        gap: 30px;
    }

    .mundo {
        width: 100%;
    }

    .imagen-mundo {
        max-width: 100%;
        margin-top: 0;
    }

    .columna-derecha {
        width: 100%;
        margin-right: 0;
    }

    .newsletter h2 {
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
    }

    .newsletter form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter input {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }

    .newsletter .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .sociales-footer {
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .social-item {
        justify-content: center;
    }

    .social-item p {
        font-size: 18px;
    }

    .social-item svg {
        width: 35px;
        height: 35px;
    }

    .logo-footer-contenedor {
        position: static;
        text-align: center;
        margin-top: 20px;
    }

    .logo-footer {
        width: 250px;
    }
}

/* ===== AJUSTE PARA CELULARES MUY PEQUEÑOS ===== */
@media (max-width: 480px) {
    .texto-header h1 {
        font-size: 32px;
    }

    .texto-header span {
        font-size: 45px;
    }

    h2 {
        font-size: 32px;
    }

    .item {
        width: 95%;
    }

    .info-trasera {
        padding: 10px;
    }

    .info-trasera h3 {
        font-size: 18px;
        margin-bottom: 0;
    }

    .info-trasera h2 {
        font-size: 11px;
        margin-top: 2px;
        margin-bottom: 4px;
    }

    .info-trasera p {
        font-size: 11px;
        line-height: 1.2;
    }

    .grid-angeles .top.item .info-trasera {
        padding: 12px;
    }

    .grid-angeles .top.item .info-trasera h3 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .grid-angeles .top.item .info-trasera h2 {
        font-size: 13px;
        margin-top: 2px;
        margin-bottom: 6px;
    }

    .grid-angeles .top.item .info-trasera p {
        font-size: 13px;
        line-height: 1.2;
    }

    .newsletter h2 {
        font-size: 28px;
    }

    .logo-footer {
        width: 200px;
    }
}