/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores */
    --blanco: #ffffff;
    --negro: #000000;
    --celeste: #8cc9e7;
    --celeste-suave: #89d6ff;
    --gris: #cccccc;

    /* TIPOGRAFÍA */
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-cuerpo: 'Poppins', sans-serif;
}

body {
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
    background: var(--blanco);
    color: var(--negro);
}

/* =========================================
   2. HEADER & NAVBAR
   ========================================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--negro);
    transition: background 0.4s ease, box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 2rem;
    position: relative;
    background: var(--negro);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    color: var(--celeste) !important;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    user-select: none;
    margin-right: auto;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    /* Asegura que el contenedor no tenga decoración */
    text-decoration: none !important;
    border: none !important;
}

/* El texto del logo (etiqueta <a>) */
.logo-text,
.logo-text:link,
.logo-text:visited,
.logo-text:hover,
.logo-text:active,
.logo-text:focus {
    color: var(--celeste);
    text-decoration: none !important;
    /* QUITA LA FRANJA EN TODOS LOS ESTADOS */
    border-bottom: none !important;
    outline: none !important;
}

/* Efecto Hover solo para el color */
.logo:hover .logo-text {
    color: var(--celeste-suave) !important;
}

.logo i {
    display: inline-block !important;
    margin-right: 12px;
    font-size: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    color: var(--celeste);
}

.logo:hover i {
    color: var(--celeste-suave);
    transform: rotate(90deg);
}

/* ENLACES NAV */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.4s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--blanco);
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--celeste);
    transform: translateY(-2px);
}

/* ANIMACIONES DEL MENÚ MÓVIL (Overlay) */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- RESPONSIVE HEADER & NAVBAR (Tablets y Móviles) --- */
@media (max-width: 992px) {
    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    .logo {
        order: 1;
        font-size: 1.7rem !important;
    }

    .logo i {
        font-size: 1.9rem !important;
    }

    /* Menú lateral (Hamburguesa activada) */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: var(--negro);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        gap: 2rem;
        transform: none;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        order: 2;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        left: 0;
    }

    /* Animación de items del menú al entrar */
    .nav-links.active .nav-item {
        animation: slideInRight 0.4s ease forwards;
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-links.active .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active .nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.active .nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.active .nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Rotación de tijeras al abrir menú */
    .nav-links.active~.navbar .logo i,
    body.menu-open .logo i {
        transform: rotate(90deg);
        color: var(--celeste-suave);
    }

    .nav-link {
        font-size: 1.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 576px) {
    .nav-links {
        width: 85%;
        padding: 6rem 1.5rem;
    }
}

/* =========================================
   3. HERO SECTION (CARRUSEL PRINCIPAL)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    padding-top: 80px !important;
    margin: 0 !important;
    background-color: var(--negro);
}

/* Estructura Carrusel */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner::after {
    content: '';
    display: block;
    clear: both;
}

.carousel-item {
    display: none;
    position: relative;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

/* Prevenir flash inicial */
.carousel-item:not(.active) {
    position: absolute !important;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

/* IMAGEN HERO (La que se corta) */
.hero-img {
    width: 100%;
    height: 85vh;
    /* Altura original PC */
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 !important;
    padding: 0 !important;

}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    bottom: 20%;
}

.carousel-caption h5 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--blanco);
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 992px) {
    .hero {
        padding-top: 70px !important;
    }

    .hero-img {
        height: 60vh;
        /* Se reduce altura en tablets */
    }

    .carousel-caption h5 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-img {
        height: 50vh;
        /* Se reduce altura en móvil horizontal */
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-img {
        height: 45vh;
        /* Altura mínima en celulares */
    }
}


/* =========================================
   4. SECCIÓN ALUMNOS (CARRUSEL INFINITO)
   ========================================= */
#carrusel-alumnos-section {
    background: var(--blanco);
    padding-bottom: 80px;
    overflow: hidden;
}

.titulo-alumnos {
    font-family: var(--fuente-titulos);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--negro);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.alumnos-slider {
    height: 380px;
    margin: auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* Niebla lateral */
.alumnos-slider::before,
.alumnos-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.alumnos-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.alumnos-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.alumnos-track {
    display: flex;
    width: 3400px;
    animation: scroll-alumnos 50s linear infinite;
}

.alumnos-track:hover {
    animation-play-state: paused;
}

.alumno-slide {
    height: 320px;
    width: 300px;
    display: flex;
    align-items: center;
    padding: 15px;
    perspective: 100px;
}

.alumno-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid transparent;
    transition: all 0.5s ease;
    filter: grayscale(40%) brightness(0.95);
}

.alumno-slide img:hover {
    transform: scale(1.15);
    filter: grayscale(0%) brightness(1.1);
    border-color: var(--celeste);
    box-shadow: 0 20px 40px rgba(140, 201, 231, 0.5);
    z-index: 10;
    cursor: pointer;
}

@keyframes scroll-alumnos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1700px);
    }
}

/* --- RESPONSIVE ALUMNOS --- */
@media (max-width: 768px) {
    .alumnos-slider {
        height: 300px;
    }

    .alumno-slide {
        height: 250px;
        width: 250px;
        padding: 10px;
    }

    .alumnos-track {
        width: 2700px;
        animation: scroll-alumnos-mobile 35s linear infinite;
    }

    .alumno-slide img {
        filter: grayscale(0%);
    }

    .alumnos-slider::before,
    .alumnos-slider::after {
        width: 10%;
    }

    @keyframes scroll-alumnos-mobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-1350px);
        }
    }
}


/* =========================================
   5. VIDEO SECTION
   ========================================= */
.video-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-full {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    filter: brightness(65%);
    transition: filter 0.5s ease;
}

.video-full:hover {
    filter: brightness(85%);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.video-overlay h2 {
    color: var(--blanco);
    font-size: 2.5rem;
    animation: slideIn 1s ease-out;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1rem;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

/* --- RESPONSIVE VIDEO --- */
@media (max-width: 768px) {
    .video-section {
        height: 50vh;
    }

    .video-overlay h2 {
        font-size: 1.8rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .video-section {
        height: 40vh;
        min-height: 300px;
    }

    .video-overlay h2 {
        font-size: 1.3rem;
    }
}


/* =========================================
   6. SECCIÓN INSTITUCION / FORMACION
   ========================================= */
#patronato-formacion {
    background-color: var(--blanco);
    padding-top: 40px;
    padding-bottom: 60px;
}

.text-secondary-custom {
    color: var(--negro);
    opacity: 0.85;
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
}

.text-accent-color {
    color: var(--celeste);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

#patronato-formacion h2 {
    color: var(--negro);
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

/* Listas Check */
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--negro);
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
}

.list-check li::before {
    font-family: "Font Awesome 6 Free";
    content: '\f00c';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--celeste);
}

/* Imágenes apiladas (Estilo Desktop) */
.image-stack {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.image-stack img {
    width: 47%;
    height: 380px;
    position: absolute;
    object-fit: cover;
    border-radius: 5px;
}

.image-stack .custom-shadow-1 {
    top: 0;
    left: 0;
    z-index: 2;
}

.image-stack .custom-shadow-2 {
    top: 100px;
    right: 0;
    z-index: 3;
}

/* --- RESPONSIVE FORMACION (El arreglo para que no se corten las imagenes apiladas) --- */
@media (max-width: 992px) {
    #patronato-formacion {
        padding-top: 30px !important;
    }

    #patronato-formacion h2 {
        font-size: 2.5rem !important;
    }

    /* Transformar la pila de imágenes absoluta en una columna simple */
    .image-stack {
        width: 100%;
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
        padding: 0;
    }

    .image-stack img {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        max-width: 500px;
        margin-bottom: 15px;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* Ocultar la segunda sombra decorativa en móvil */
    .image-stack .custom-shadow-2 {
        display: none;
    }
}

@media (max-width: 576px) {
    #patronato-formacion {
        padding-top: 20px !important;
        padding-bottom: 40px;
    }

    #patronato-formacion h2 {
        font-size: 1.8rem !important;
    }

    .image-stack img {
        height: 250px !important;
    }
}


/* =========================================
   7. SECCIÓN VALORES
   ========================================= */
.valores-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    background: var(--negro);
}

.valores-section h2 {
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--celeste);
    text-align: center;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.valores {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding: 0 20px;
    transition: transform 0.3s ease;
}

.valor:hover {
    transform: translateY(-10px);
}

.icono-contenedor {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.valor i {
    font-size: 60px;
    color: var(--blanco);
    transition: all 0.3s ease;
}

.icono-contenedor:hover i {
    color: var(--celeste);
    transform: scale(1.2);
}

.valor h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--blanco);
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.valor p {
    font-size: 16px;
    color: var(--gris);
    line-height: 1.6;
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
}

/* --- RESPONSIVE VALORES --- */
@media (max-width: 992px) {
    .valores {
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px;
    }

    .valor {
        flex: 0 0 calc(50% - 50px);
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .valores-section h2 {
        font-size: 28px;
    }

    .valor {
        flex: 0 0 100%;
    }
}


/* =========================================
   8. CURSOS
   ========================================= */
#cursos h2 {
    color: var(--celeste);
    text-transform: uppercase;
    font-size: 2.8rem;
    line-height: 1.2;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

#cursos p {
    font-weight: 800;
    opacity: 0.9;
    color: var(--blanco);
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.course-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease-out;
    will-change: transform;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: var(--blanco);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.35s ease-out;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--celeste);
    margin-bottom: 0.3rem;
    order: -1;
    transition: all 0.45s ease-out;
}

.card-content h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--blanco);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
    order: 0;
    transition: all 0.45s ease-out;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.card-content-hover {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: max-height 0.45s ease-out, opacity 0.35s ease-out;
    order: 1;
    width: 100%;
}

.card-content-hover p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--blanco);
    order: 0;
    line-height: 1.3;
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
    text-decoration: none !important;
}

.card-content-hover del {
    text-decoration: line-through !important;
    opacity: 0.8;
    color: var(--gris) !important;
}

.card-content-hover strong {
    color: var(--celeste) !important;
    font-size: 1.1rem;
}

.card-content-hover .badge {
    order: 1;
    margin: 0;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--celeste) !important;
    color: var(--negro) !important;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.btn-ver-mas {
    text-decoration: none;
    color: var(--negro);
    background-color: var(--celeste);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    transition: background-color 0.25s ease, transform 0.18s ease;
    order: 2;
    margin-top: 0.3rem;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.btn-ver-mas:hover {
    background-color: var(--celeste-suave);
    transform: translateY(-2px);
}

.highlight-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.8rem;
    pointer-events: none;
    order: 2;
    position: relative;
}

.highlight-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--celeste), transparent);
    border-radius: 2px;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: center;
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    box-shadow: 0 0 8px rgba(140, 201, 231, 0.4);
}

.course-card:hover img,
.course-card:focus-within img {
    transform: scale(1.08);
}

.course-card:hover .card-overlay,
.course-card:focus-within .card-overlay {
    opacity: 1;
}

.course-card:hover .card-content-hover,
.course-card:focus-within .card-content-hover {
    max-height: 160px;
    opacity: 1;
}

.course-card:hover .highlight-line,
.course-card:focus-within .highlight-line {
    transform: scaleX(1);
    opacity: 1;
}

/* Correcciones AOS */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.aos-init:not(.aos-animate) {
    opacity: 1 !important;
    transform: none !important;
}


/* =========================================
   9. DESCUBRE & FOOTER
   ========================================= */
.descubre-section {
    position: relative;
    background: linear-gradient(180deg, var(--negro), #0b233d 90%);
    color: var(--blanco);
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(140, 201, 231, 0.1);
    border-bottom: 1px solid rgba(140, 201, 231, 0.1);
}

.descubre-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(140, 201, 231, 0.15), transparent 70%),
        radial-gradient(circle at 75% 70%, rgba(0, 191, 255, 0.1), transparent 80%);
    opacity: 0.8;
    z-index: 1;
    animation: shimmer 10s ease-in-out infinite alternate;
}

.descubre-overlay {
    position: relative;
    z-index: 2;
    padding: 20px 20px;
}

.descubre-content h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    color: var(--celeste);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(140, 201, 231, 0.5), 0 0 25px rgba(0, 191, 255, 0.3);
    animation: glowText 3s ease-in-out infinite alternate;
    text-transform: uppercase;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.descubre-content p {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--gris);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 0 8px rgba(140, 201, 231, 0.2);
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
}

/* Footer Styles */
.footer {
    background: #1a1a1a;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 25px;
    position: relative;
}

.footer-section:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    font-size: 1.1rem;
    color: var(--blanco);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--celeste);
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
    padding: 4px 0;
    font-size: 0.95rem;
    font-family: var(--fuente-cuerpo);
    font-weight: 800;
}

.footer-section ul li a:hover {
    color: var(--celeste);
}

.contact-info,
.hours-list {
    color: #cccccc;
    font-weight: 800;
}

.contact-info li {
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.contact-info i {
    margin-right: 12px;
    width: 16px;
    color: var(--celeste);
    font-size: 0.9rem;
}

.promo-box {
    background: rgba(140, 201, 231, 0.08);
    padding: 20px;
    border-radius: 4px;
    border-left: 2px solid var(--celeste);
    margin-bottom: 15px;
}

.promo-box p {
    color: #ffffff;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #ffffff;
    background-color: var(--celeste);
    border-color: var(--celeste);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 0.85rem;
    font-weight: 800;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
        padding: 0 20px;
    }

    .footer-section:not(:last-child)::after {
        display: none;
    }

    .footer-section:not(:last-child)::before {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 20%;
        width: 60%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }
}


/* =========================================
   10. BOTONES FLOTANTES
   ========================================= */
.btn-flotante {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: var(--celeste);
    color: var(--negro);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(140, 201, 231, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1rem;
    border: 2px solid var(--celeste);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fuente-titulos);
    font-weight: 800;
}

.btn-flotante:hover {
    transform: translateY(-3px);
    background: var(--blanco);
    color: var(--negro);
    box-shadow: 0 8px 25px rgba(140, 201, 231, 0.7);
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: var(--blanco);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    border: 3px solid var(--blanco);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    font-size: 32px !important;
    color: white !important;
    display: block !important;
}

/* Animaciones */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateY(0px);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

@keyframes glowText {
    from {
        text-shadow: 0 0 8px rgba(140, 201, 231, 0.3), 0 0 16px rgba(0, 191, 255, 0.3);
    }

    to {
        text-shadow: 0 0 16px rgba(140, 201, 231, 0.8), 0 0 32px rgba(0, 191, 255, 0.6);
    }
}

/* --- RESPONSIVE FLOTANTES --- */
@media (max-width: 992px) {
    .btn-flotante {
        left: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
        bottom: 20px;

    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {



    .page-wrapper {
        margin: 22px;

        background-color: #ffffff;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.252);
    }
}