body {
    font-family: 'libre baskerville';
    margin: 0;
    padding: 0;
    color: #ecc473;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: url(img/Space_background.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    background-attachment: fixed; 
}

.Body-B{
    font-family: 'libre baskerville';
    margin: 0;
    padding: 0;
    color: #ecc473;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: url(img/Space_background_C.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    background-attachment: fixed; 

}

.Body-C{
    font-family: 'libre baskerville';
    margin: 0;
    padding: 0;
    color: #ecc473;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: url(img/Space_background_2.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    background-attachment: fixed; 

}

header{

}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-image: url(img/Space_background_2.png);
    background-size: cover;
    background-position: center;
    z-index: 100;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex: 1;
    justify-content: center;
    text-align: center;
 
}

.menu li {
  position: relative;
}

.menu li a {
    text-decoration: none;
    color: rgb(241, 234, 202);
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.menu li a:hover {
    background: #cda251;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 5px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-image: url(img/Space_background_2.png);
    padding: 0;
    margin: 0;
    list-style: none;
    width: 250px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
}

.submenu li {
    display: block; 
    border-bottom: 1px solid #cda251;
    width: 100%;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    padding: 15px 20px;
    color:  rgb(241, 234, 202);
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background: #cda251;
    padding-left: 30px;
}

.dropdown:hover .submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner{
    background-image: linear-gradient(100deg,#00000020,#000000), url(img/Gelodian-MPC.png);
    height: 50rem;
    width: auto;
    background-size: cover;
    background-position: center;
}

.content-banner{
    max-width: 90rem;
    margin: 0 auto;
    padding: 10rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.description {
    text-align: center;
    flex: 1;
    color: #ffedc8;
    /* AJUSTA EL TAMAÑO DEL TEXTO AQUÍ - valor actual: 1.6rem */
    font-size: 1.2rem;
    /* AJUSTA LA SOMBRA AQUÍ - valores actuales: 0 0 20px negro */
    text-shadow: 0 0 120px rgba(0, 0, 0, 100);
    line-height: 1.6;
    font-weight: 500;
}

.description p {
    margin-bottom: 1.5rem;
}

.banner-image {
    flex: 0 0 auto;
    max-width: 800px;
    /* AJUSTA LA POSICIÓN VERTICAL DEL LOGO AQUÍ */
    margin-top: 0px; /* Valores negativos suben, positivos bajan */
}

.banner-image img {
    width: 70%;
    height: auto;
    border-radius: 10px;
}

.banner-B{
    background-image: linear-gradient(100deg,#00000020,#000000), url(img/VACIO.png);
    height: 50rem;
    width: auto;
    background-size: cover;
    background-position: center;
}

.content-banner-B{
    max-width: 90rem;
    margin: 0 auto;
    padding: 10rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.description-B {
    text-align: center;
    flex: 1;
    color: #e0fff2;
    /* AJUSTA EL TAMAÑO DEL TEXTO AQUÍ - valor actual: 1.6rem */
    font-size: 1.6rem;
    /* AJUSTA LA SOMBRA AQUÍ - valores actuales: 0 0 20px negro */
    text-shadow: 0 0 120px rgba(0, 0, 0, 100);
    line-height: 1.9;
    font-weight: 500;
    margin-top: -120px;
}

.description-B p {
    margin-bottom: 1.5rem;
}

.banner-image-B {
    flex: 0 0 auto;
    max-width: 700px;
    /* AJUSTA LA POSICIÓN VERTICAL DEL LOGO AQUÍ */
    margin-top: -140px; /* Valores negativos suben, positivos bajan */
}

.banner-image-B img {
    width: 70%;
    height: auto;
    border-radius: 10px;
}


.Text_P {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.Text_P p {
    margin: 1em 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


.text-box {
    padding: 5rem 0;
}

.text-cont {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.text-cont-b {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    flex-direction: row-reverse;
}

.text-cont-c {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* Esto centra todo el contenido */
    gap: 4rem;
    padding: 0 2rem;
    flex-direction: row-reverse;
}

.text-image {
    flex: 0 0 auto;
    max-width: 400px;
}

.text-image img {
    width: 100%;
    height: auto;
 
}

.text-image-b{
    flex: 0 0 auto; 
    max-width: 1300px;
}

.text-image-b img{
    width: 100%;
    height: auto;
}

.text-image-C{
    flex: 0 0 auto; 
    max-width: 600px;
}

.text-image-C img{
    width: 100%;
    height: auto;
}


.text-image-D{
    flex: 0 0 auto; 
    max-width: 500px;
}

.text-image-D img{
    width: 100%;
    height: auto;
}


.text-image-E{
    flex: 0 0 auto; 
    max-width: 800px;
}

.text-image-E img{
    width: 100%;
    height: auto;
}

.Text_P {
    flex: 1;
    text-align: left;
}

.Text_O {
    flex: 1;
    text-align: center;
}

.Text_P p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #ffdc96; /* Texto en blanco */
}

.social-footer{
    background-image: url(img/Space_background_2.png);
    padding: 40px 20px;
    text-align: center;
    border-top:1px solid #8f7b24;
}

.social-icons{
    margin-bottom: 20px;
    display: center;
    justify-content: center;
    gap: 20px; 

}

.social-icons a{
    color: rgb(255, 236, 175);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s;

}

.social-icons a:hover{
    color: #cda251;
    transform: scale(1.2);
}

.social-footer p {
    display: center;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
    opacity: 0.8;
    letter-spacing: 0.5px;
}


.separator {
    width: 100%;
    padding: 3rem 0;
    text-align: center;
}

.separator-img {
    max-width: 50%; /* Controla el ancho del separador */
    height: auto;
    opacity: 0.8; /* Transparencia opcional */
}

.separator-B {
    width: 100%;
    padding: 3rem 0;
    text-align: center;
}

.separator-B-img {
    max-width: 80%; /* Controla el ancho del separador */
    height: auto;
    opacity: 0.8; /* Transparencia opcional */
}

.pdf-viewer {
    padding: 1rem 0;
}

.pdf-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/*-SECCION DEL BOTTOOOOOOOOOOOOOOOOON ---------------------------------------------------------------------------------------------- */

.custom-image-btn {
    display: inline-block;
    width: 400px; /* Ajusta según el tamaño de tu imagen */
    height: 140px; /* Ajusta según el tamaño de tu imagen */
    background-image: url('img/BUTTON.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* Oculta el texto visualmente */
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.custom-image-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.custom-image-btn:active {
    transform: scale(0.98);
}

/* Versión alternativa si quieres texto visible sobre la imagen */
.custom-image-btn.with-text {
    text-indent: 0;
    color: #f0c671;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.custom-image-btn-B {
    display: inline-block;
    width: 320px; /* Ajusta según el tamaño de tu imagen */
    height: 140px; /* Ajusta según el tamaño de tu imagen */
    background-image: url('img/BUTTON.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* Oculta el texto visualmente */
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.custom-image-btn-B:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.custom-image-btn-B:active {
    transform: scale(0.98);
}

/* Versión alternativa si quieres texto visible sobre la imagen */
.custom-image-btn-B.with-text {
    text-indent: 0;
    color: #f0c671;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/*-------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f0e6d2;
    text-shadow: 0 0 10px rgba(240, 230, 210, 0.5);
}

.image-buttons-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.image-buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Enlace que envuelve cada imagen-botón */
.image-button-link {
    text-decoration: none;
    display: block;
}

.image-button {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(100%) brightness(0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid #463714;
}

.image-button:hover {
    transform: translateY(-15px) scale(1.05);
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(200, 160, 60, 0.4);
    border-color: #c8a05a;
    z-index: 10;
}

.image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-button:hover img {
    transform: scale(1.1);
}

.button-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 20, 40, 0.9), transparent);
    padding: 1.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-button:hover .button-overlay {
    transform: translateY(0);
    opacity: 1;
}

.button-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0e6d2;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.button-desc {
    font-size: 0.9rem;
    color: #cdbe91;
    line-height: 1.4;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(200, 160, 90, 0.1) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-button:hover .glow-effect {
    opacity: 1;
}

/* Responsive */
@media (max-width: 968px) {
    .image-buttons-container {
        gap: 1.5rem;
    }
    
    .image-button {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .image-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .image-button {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Para hacer el botón responsive */
@media (max-width: 768px) {
    .custom-image-btn {
        width: 250px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-logo {
        height: 40px;
    }
}

/* ===== CONFIGURACIÓN PARA MÓVILES ===== */
@media screen and (max-width: 768px) {

    /* --- Ajustes generales --- */
    body, .Body-B, .Body-C {
        background-attachment: scroll; /* Evita problemas de fondo fijo en móviles */
        font-size: 14px; /* Tamaño de fuente base más pequeño */
        overflow-x: hidden; /* Oculta desbordamientos horizontales */
    }

    /* --- Navegación --- */
    .main-nav {
        position: relative; /* Cambia de fixed a relative para evitar que tape contenido */
        top: auto;
        background-image: url(img/Space_background_2.png); /* Mantén tu fondo */
        padding: 5px 0;
    }

    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .nav-logo {
        height: 40px;
        margin-bottom: 10px;
    }

    .menu {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu li a {
        padding: 12px 10px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(205, 162, 81, 0.3);
    }

    /* Submenús: en móvil se muestran al hacer clic (hover no funciona bien) */
    .submenu {
        position: static; /* Se integra al flujo */
        width: 100%;
        box-shadow: none;
        background-image: url(img/Space_background_2.png);
        background-size: cover;
        display: none; /* Oculto por defecto */
    }

    /* Para que el submenú se muestre al tocar el padre (si se usa :focus o similar, necesitarías JS) */
    /* Como solución de solo CSS, lo dejamos visible si se quiere, pero puedes usar :focus-within */
    .dropdown:focus-within .submenu {
        display: block;
    }

    .dropdown > a::after {
        float: right;
        margin-right: 15px;
    }

    /* --- Banners --- */
    .banner, .banner-B {
        height: auto;
        min-height: 30rem; /* Altura mínima, se adapta al contenido */
        padding: 60px 0 20px;
        background-size: cover;
    }

    .content-banner, .content-banner-B {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
        text-align: center;
    }

    .description, .description-B {
        font-size: 1rem; /* Ajusta según necesidad */
        text-shadow: 0 0 30px black; /* Reduce la sombra para móvil */
        margin-top: 0;
        padding: 0 10px;
        order: 2; /* El texto debajo de la imagen */
    }

    .description-B {
        font-size: 1.3rem;
    }

    .banner-image, .banner-image-B {
        max-width: 90%;
        margin: 0 auto;
        order: 1; /* Imagen arriba */
    }

    .banner-image img, .banner-image-B img {
        width: 100%;
        height: auto;
    }

    /* --- Secciones de texto con imágenes (text-box, text-cont, etc.) --- */
    .text-box {
        padding: 2rem 0;
    }

    .text-cont, .text-cont-b, .text-cont-c {
        flex-direction: column !important; /* Fuerza apilamiento vertical */
        gap: 2rem;
        padding: 0 1rem;
    }

    .text-image, .text-image-b, .text-image-C, .text-image-D, .text-image-E {
        max-width: 100% !important; /* Ocupa todo el ancho disponible */
    }

    .text-image img, .text-image-b img, .text-image-C img, .text-image-D img, .text-image-E img {
        width: 100%;
        height: auto;
    }

    .Text_P, .Text_O {
        text-align: center;
        padding: 0 10px;
    }

    .Text_P p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* --- Separadores --- */
    .separator-img, .separator-B-img {
        max-width: 90%;
    }

    /* --- Botones de imagen (custom-image-btn) --- */
    .custom-image-btn, .custom-image-btn-B {
        width: 80%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 400/140; /* Mantiene proporción de tu botón */
        background-size: contain;
        margin: 1rem auto;
        display: block;
    }

    /* --- Sección de botones con overlay (image-buttons-section) --- */
    .image-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .image-button {
        width: 90%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 300/400; /* Proporción original */
        filter: grayscale(30%) brightness(0.9); /* Menos efecto para móvil */
        border-width: 1px;
    }

    .image-button:hover {
        transform: translateY(-5px) scale(1.02); /* Reduce la animación */
    }

    .button-overlay {
        opacity: 1; /* Siempre visible en móvil */
        transform: translateY(0);
        background: linear-gradient(to top, rgba(10, 20, 40, 0.95), rgba(10, 20, 40, 0.3));
        padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    /* --- Footer --- */
    .social-footer {
        padding: 20px 10px;
    }

    .social-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .social-icons a {
        font-size: 1.8rem;
        margin: 0 5px;
    }

    /* --- PDF viewer --- */
    .pdf-container {
        padding: 0 15px;
    }

    /* --- Ajustes adicionales para elementos no contemplados --- */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Ajustes para móviles muy pequeños (menos de 480px) --- */
@media screen and (max-width: 480px) {
    .banner, .banner-B {
        min-height: 25rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .description-B {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .image-button {
        max-width: 300px;
    }

    .button-title {
        font-size: 1.2rem;
    }

    .button-desc {
        font-size: 0.8rem;
    }

    .custom-image-btn, .custom-image-btn-B {
        max-width: 220px;
    }

    .social-icons a {
        font-size: 1.5rem;
    }
}

/* --- Ajustes para tablets en vertical (769px a 1024px) --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .content-banner, .content-banner-B {
        padding: 4rem 2rem;
    }

    .description, .description-B {
        font-size: 1.3rem;
    }

    .text-image, .text-image-b, .text-image-C, .text-image-D, .text-image-E {
        max-width: 70%;
    }

    .menu {
        gap: 10px;
    }

    .menu li a {
        padding: 10px 8px;
        font-size: 0.95rem;
    }
}