html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.TitulosGeneral {
    margin: 0;
    overflow: hidden;
    font-size: clamp(2.6rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.descripcionLetra {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.hoverImagenes {
    display: block;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.col:hover .hoverImagenes {
    transform: scale(1.05);
}

    .hoverImagenes:hover {
        transform: scale(1.05);
    }

/* =====================================================
   NAVBAR
   ===================================================== */

.headerMenu {
    position: relative;
    z-index: 1000;
}

    .headerMenu .navbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1000;
        background-color: rgb(0 0 0 / 20%);
        backdrop-filter: blur(12px) saturate(130%);
        -webkit-backdrop-filter: blur(12px) saturate(130%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
        transition: background-color 300ms ease, border-color 300ms ease;
    }

    .headerMenu .navbar-collapse,
    .headerMenu .navbar-nav {
        position: static;
    }

    .headerMenu .navbar .nav-link {
        color: #ffffff !important;
        transition: color 300ms ease, text-shadow 300ms ease;
        text-shadow: 0 0 25px #130063;
    }

    .headerMenu .logo-navbar {
        filter: brightness(0) invert(1);
        transition: filter 300ms ease;
        width: 170px;
    }

    .headerMenu:has(.nav-item-desplegable:hover) .logo-navbar,
    .headerMenu:has(.nav-item-desplegable:focus-within) .logo-navbar {
        filter: none;
    }

/* =====================================================
   ELEMENTO QUE CONTIENE EL DESPLEGABLE
   ===================================================== */

.nav-item-desplegable {
    display: flex;
}

    .nav-item-desplegable > .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
    }


/* =====================================================
   PANEL DESPLEGABLE
   ===================================================== */
.menu-desplegable-trigger {
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: default;
}
.headerMenu .navbar {
    overflow: visible;
}

.menu-desplegable {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    z-index: 999;
    background-color: #ffffff;
    border-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease 120ms, transform 280ms cubic-bezier(0.22, 1, 0.36, 1) 120ms, visibility 0s linear 400ms, box-shadow 250ms ease;
}

    .menu-desplegable::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: 18px;
    }

.nav-item-desplegable:hover > .menu-desplegable,
.nav-item-desplegable:focus-within > .menu-desplegable,
.nav-item-desplegable.menu-abierto > .menu-desplegable {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
    transition-delay: 0s;
}


/* =====================================================
   NAVBAR BLANCO AL ABRIR EL MENÚ
   ===================================================== */

.headerMenu:has(.nav-item-desplegable:hover) .navbar,
.headerMenu:has(.nav-item-desplegable:focus-within) .navbar,
.headerMenu:has(.nav-item-desplegable.menu-abierto) .navbar {
    background-color: #ffffff !important;
    /*
       Elimina la línea divisoria entre navbar y desplegable.
    */
    border-bottom-color: transparent !important;
    box-shadow: none;
}

.headerMenu:has(.nav-item-desplegable:hover) .nav-link,
.headerMenu:has(.nav-item-desplegable:focus-within) .nav-link,
.headerMenu:has(.nav-item-desplegable.menu-abierto) .nav-link {
    color: #333333 !important;
    text-shadow: none;
}

.menu-desplegable-link-normalizado,
.menu-desplegable-link-normalizado:link,
.menu-desplegable-link-normalizado:visited,
.menu-desplegable-link-normalizado:active {
    color: #777777;
    text-decoration: none;
}

    .menu-desplegable-link-normalizado:hover,
    .menu-desplegable-link-normalizado:focus-visible {
        color: #333333;
        transform: translateX(5px);
    }
/* =====================================================
   LÍNEA INFERIOR
   ===================================================== */

.nav-item-desplegable > .nav-link::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    bottom: 0;
    left: 0.5rem;
    height: 3px;
    background-color: #333333;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 250ms ease;
}

.nav-item-desplegable:hover > .nav-link::after,
.nav-item-desplegable:focus-within > .nav-link::after,
.nav-item-desplegable.menu-abierto > .nav-link::after {
    transform: scaleX(1);
}
/* =====================================================
   SUBMENÚS INTERNOS DEL RECUADRO BLANCO
   ===================================================== */

.submenu-interno {
    position: relative;
}

/* Botón que abre las opciones internas */
.submenu-interno-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
    border: 0;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
}

    /* Evita estilos predeterminados del botón */
    .submenu-interno-trigger:focus {
        outline: none;
        box-shadow: none;
    }

/* Flecha */
.submenu-interno-icono {
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: transform 250ms ease;
}

/* Bootstrap actualiza aria-expanded automáticamente */
.submenu-interno-trigger[aria-expanded="true"]
.submenu-interno-icono {
    transform: rotate(180deg);
}

/* Contenedor de las dos opciones */
.submenu-interno-contenido {
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e3e3e3;
}

/* Enlaces internos */
.submenu-interno-link {
    display: block;
    padding: 0.45rem 0;
    color: #777777;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

    .submenu-interno-link:hover,
    .submenu-interno-link:focus-visible {
        color: #333333;
        transform: translateX(5px);
    }

/* =====================================================
   ENLACES INTERNOS
   ===================================================== */

.menu-desplegable-link {
    display: block;
    margin-bottom: 1rem;
    color: #777777;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

    .menu-desplegable-link:hover,
    .menu-desplegable-link:focus-visible {
        color: #333333;
        transform: translateX(5px);
    }


/* =====================================================
   IMAGEN DEL DESPLEGABLE
   ===================================================== */

.menu-desplegable-imagen {
    display: block;
    width: 25%;
    max-height: 260px;
    object-fit: cover;
}


/* =====================================================
   VERSIÓN MÓVIL
   ===================================================== */

@media (max-width: 575.98px) {
    .headerMenu .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
        border: none;
        color:white;
    }
        .headerMenu .navbar-toggler:focus:not(:focus-visible),
        .headerMenu .menu-desplegable-trigger:focus:not(:focus-visible) {
            outline: none;
            box-shadow: none;
            background-color: #00000057;
        }
    .navbar-light .navbar-toggler-icon {
        filter: invert(1);
    }
    .headerMenu .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item-desplegable {
        display: block;
    }

        .nav-item-desplegable > .nav-link {
            height: auto;
        }

    .menu-desplegable {
        position: static;
        display: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        border-top: 0;
        box-shadow: none;
        transition: none;
    }

        .menu-desplegable::before {
            display: none;
        }

    .nav-item-desplegable.menu-abierto > .menu-desplegable {
        display: block;
    }

    .headerMenu .menu-desplegable {
        background-color: #b8b8b857;
    }
    .headerMenu.headerMenu .navbar.navbar {
        background-color: rgb(0 0 0 / 20%) !important;
        border-bottom-color: rgba(255, 255, 255, 0.25) !important;
    }

    .headerMenu.headerMenu .navbar .nav-link {
        color: #ffffff !important;
        text-shadow: 0 0 25px #130063;
    }

    .headerMenu.headerMenu .logo-navbar.logo-navbar {
        filter: brightness(0) invert(1);
    }
    .headerMenu .nav-item-desplegable > .nav-link::after {
        display: none;
    }

    .headerMenu .menu-desplegable-trigger:focus {
        background-color: #b8b8b857;
        outline: none;
        box-shadow: none;
    }
   

    .headerMenu .menu-desplegable-link,
    .headerMenu .menu-desplegable-link-normalizado,
    .headerMenu .submenu-interno-trigger {
        color: #ffffff;
        text-shadow: none;
    }

        .headerMenu .menu-desplegable-link:hover,
        .headerMenu .menu-desplegable-link:focus-visible,
        .headerMenu .menu-desplegable-link-normalizado:hover,
        .headerMenu .menu-desplegable-link-normalizado:focus-visible {
            color: #ffffff;
        }
}


/* =====================================================
   REDUCIR ANIMACIONES
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .headerMenu .navbar,
    .menu-desplegable,
    .nav-item-desplegable > .nav-link::after,
    .menu-desplegable-link {
        transition: none;
    }
}

.collage-contenedor {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 466 / 500;
    margin-inline: auto;
    overflow: hidden;
}

.inicio-plan {
    overflow: hidden;
}

.collage-columna {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.contenido-principal {
    flex: 1 0 auto;
}

body > footer.footer {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    line-height: normal !important;
    white-space: normal;
}

.bg-footer {
    min-height: 300px;
    padding: 3rem 0;
    background-color: black;
}
.footer {
    position: static;
    width: 100%;
    white-space: normal;
    line-height: normal;
    flex-shrink: 0;
}





/* =====================================================
   ANIMACIONES AL HACER SCROLL
   ===================================================== */

.reveal-boundary {
    overflow-x: clip;
}

[data-reveal] {
    --reveal-x: 0px;
    --reveal-y: 0px;
    --reveal-scale: 0.96;
    --reveal-duration: 850ms;
    --reveal-delay: 0ms;
    opacity: 0;
    transform: translate3d( var(--reveal-x), var(--reveal-y), 0 ) scale(var(--reveal-scale));
    transition: transform var(--reveal-duration) cubic-bezier(0.34, 1.45, 0.64, 1) var(--reveal-delay), opacity 500ms ease var(--reveal-delay);
    will-change: transform, opacity;
}

/* Entrada desde la izquierda */
[data-reveal="left"] {
    --reveal-x: -140px;
}

/* Entrada desde la derecha */
[data-reveal="right"] {
    --reveal-x: 140px;
}

/* Entrada desde arriba */
[data-reveal="top"] {
    --reveal-y: -100px;
}

/* Entrada desde abajo */
[data-reveal="bottom"] {
    --reveal-y: 100px;
}

/* Entrada solamente con escala */
[data-reveal="zoom"] {
    --reveal-scale: 0.75;
}

/* Estado final visible */
[data-reveal].reveal-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/*
    Cuando JavaScript todavía no se ha ejecutado,
    evita que el contenido quede oculto en navegadores
    donde no esté disponible IntersectionObserver.
*/
.no-js [data-reveal] {
    opacity: 1;
    transform: none;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}



/* =====================================================
   FONDO ANIMADO GENERAL
   ===================================================== */

.main-con-fondo {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background-color: #fff;
    overflow-x: clip;
}

/*
    Mantiene todo el contenido de las vistas
    por encima del fondo decorativo.
*/
.contenido-main {
    position: relative;
    z-index: 2;
}

/*
    El fondo queda fijo respecto a la pantalla.
    pointer-events evita que bloquee botones o enlaces.
*/
.fondo-animado {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Configuración general de todas las figuras */
.figura-fondo {
    position: absolute;
    display: block;
    opacity: 0.17;
    border: 3px solid currentColor;
    filter: drop-shadow(0 3px 5px rgb(0 0 0 / 0.05));
    animation: flotar-figura 14s ease-in-out infinite alternate;
    will-change: transform;
}

/* =====================================================
   FIGURAS INDIVIDUALES
   ===================================================== */

/* Círculo azul superior izquierdo */
.figura-1 {
    top: 12%;
    left: 4%;
    width: 90px;
    height: 90px;
    color: #56b1c5;
    border-radius: 50%;
    animation-duration: 13s;
}

/* Cuadrado morado superior derecho */
.figura-2 {
    top: 18%;
    right: 7%;
    width: 65px;
    height: 65px;
    color: #690d8c;
    border-radius: 14px;
    transform: rotate(18deg);
    animation-duration: 17s;
    animation-delay: -4s;
}

/* Círculo rosa central */
.figura-3 {
    top: 42%;
    left: 14%;
    width: 45px;
    height: 45px;
    color: #d50070;
    border-radius: 50%;
    animation-duration: 12s;
    animation-delay: -6s;
}

/* Rombo azul */
.figura-4 {
    top: 55%;
    right: 13%;
    width: 85px;
    height: 85px;
    color: #3954a5;
    border-radius: 18px;
    transform: rotate(45deg);
    animation-duration: 19s;
    animation-delay: -3s;
}

/* Figura rosa inferior izquierda */
.figura-5 {
    bottom: 12%;
    left: 5%;
    width: 110px;
    height: 55px;
    color: #d50070;
    border-radius: 999px;
    animation-duration: 15s;
    animation-delay: -8s;
}

/* Círculo morado inferior derecho */
.figura-6 {
    right: 3%;
    bottom: 7%;
    width: 120px;
    height: 120px;
    color: #690d8c;
    border-radius: 50%;
    animation-duration: 20s;
    animation-delay: -5s;
}

/* Cuadrado azul pequeño */
.figura-7 {
    top: 73%;
    left: 40%;
    width: 36px;
    height: 36px;
    color: #56b1c5;
    border-radius: 8px;
    transform: rotate(25deg);
    animation-duration: 11s;
    animation-delay: -7s;
}

/* Figura gris suave */
.figura-8 {
    top: 30%;
    right: 37%;
    width: 55px;
    height: 55px;
    color: #7d8791;
    border-radius: 50% 20% 50% 20%;
    animation-duration: 16s;
    animation-delay: -10s;
}

/* =====================================================
   ANIMACIÓN
   ===================================================== */

@keyframes flotar-figura {
    0% {
        translate: 0 0;
        rotate: 0deg;
    }

    35% {
        translate: 15px -18px;
        rotate: 5deg;
    }

    70% {
        translate: -10px 12px;
        rotate: -4deg;
    }

    100% {
        translate: 20px -10px;
        rotate: 8deg;
    }
}

/* =====================================================
   AJUSTES PARA CELULAR
   ===================================================== */

@media (max-width: 767.98px) {
    .figura-fondo {
        opacity: 0.07;
    }

    .figura-1 {
        width: 65px;
        height: 65px;
        left: -20px;
    }

    .figura-2 {
        width: 48px;
        height: 48px;
        right: -10px;
    }

    .figura-4 {
        width: 55px;
        height: 55px;
    }

    .figura-6 {
        width: 80px;
        height: 80px;
        right: -25px;
    }
    .figura-7,
    .figura-8 {
        display: none;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .figura-fondo {
        animation: none;
    }
}

.figura-3,
.figura-4,
.figura-5,
.figura-7,
.figura-8 {
    background-color: currentColor;
    border: 0;
    opacity: 0.11;
}
.figura-1,
.figura-2,
.figura-6 {
    opacity: 0.18;
}
