/* =========================================
   ESTILOS CORREGIDOS (MANTENIENDO DISEÑO ORIGINAL)
   ========================================= */

/* AÑADE ESTO AL PRINCIPIO DE TU CSS PARA UN MEJOR MANEJO DEL DISEÑO */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ======== VARIABLES ======== */
:root {
    --color-primario: #111111;
    --color-secundario: #333333;
    --color-acento:  #ffd600;
    --color-fondo: #ffffff;
    --color-texto: #ffffff; /* OJO: Texto base blanco */
    --color-texto-claro: white;
    --fuente-principal: 'Poppins', sans-serif;
}

/* ======== ESTILOS GENERALES ======== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    margin: 0;
    background: var(--color-fondo);
    color: var(--color-texto);
    overflow-x: hidden; /* Evita scroll horizontal accidental */
}

a { 
    text-decoration: none; 
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ======== CABECERA ======== */
.contenedor-header {
    display: flex; justify-content: space-between; align-items: center;
    background: transparent; box-shadow: none;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 15px 30px; color: white;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1200;
}

.contenedor-header.header-scrolled {
    background-color: var(--color-primario);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.contenedor-header .logo {
    font-weight: 700; font-size: 1.5rem; color: #fff;
    text-decoration: none; transition: color 0.3s ease;
}

.contenedor-header nav a {
    color: white; margin: 0 15px; font-weight: 600;
    transition: color 0.3s; position: relative; 
}

.contenedor-header nav a:hover { color: var(--color-acento); }

.contenedor-header nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background-color: var(--color-acento); transition: width 0.3s ease;
}

.contenedor-header nav a:hover::after { width: 100%; }

/* ======== BOTÓN MENÚ ======== */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  gap: 6px; z-index: 1300;
}

.menu-toggle .bar {
  width: 26px; height: 3px; background-color: var(--color-texto-claro, #fff);
  border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

body.menu-abierto { overflow: hidden; }

/* ===============================
   HERO (CARRUSEL DE PORTADA)
================================= */
.hero {
  position: relative; width: 100%; height: 100vh;
  color: white; overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
  width: 100%; height: 100%; position: absolute; top: 0; left: 0;
  opacity: 0; transition: opacity 1.2s ease-in-out;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
}

.hero-slide.slide-visible { opacity: 1; }

.hero-slide::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4); z-index: 1;
}

.hero-content {
  position: relative; z-index: 2; padding: 20px;
  max-width: 900px; margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content .resaltado {
    color: var(--color-acento); position: relative; display: inline-block; 
}

.hero-content p {
  font-size: 1.5rem; font-weight: 400; margin: 0; margin-top: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); opacity: 0.9;
}

/* ======== BOTÓN HERO (ANIMACIÓN SHINE) ======== */
.btn-hero {
  position: relative; padding: 12px 35px; margin-top: 25px;
  display: inline-block; border: 2px solid #ffffff; border-radius: 30px;
  background: transparent; color: #fff;
  font-size: 14px; text-transform: uppercase; font-weight: 600; letter-spacing: 2px;
  text-decoration: none; overflow: hidden;
  box-shadow: 0 0 0 0 transparent; transition: all 0.2s ease-in; z-index: 10;
}

.btn-hero:hover {
  background: var(--color-acento); color: var(--color-primario);
  border-color: var(--color-acento);
  box-shadow: 0 0 30px 5px rgba(255, 214, 0, 0.5); transition: all 0.2s ease-out;
}

.btn-hero::before {
  content: ''; display: block; width: 0px; height: 86%;
  position: absolute; top: 7%; left: 0%; opacity: 0;
  background: #fff; box-shadow: 0 0 50px 30px #fff; transform: skewX(-20deg);
}

.btn-hero:hover::before { animation: sh02 0.5s 0s linear; }

@keyframes sh02 {
  from { opacity: 0; left: 0%; }
  50% { opacity: 1; }
  to { opacity: 0; left: 100%; }
}

.btn-hero:active { box-shadow: 0 0 0 0 transparent; transition: box-shadow 0.2s ease-in; }

/* Imágenes del carrusel */
#slide-1 { background-image: url('../img/Fotografia_Audiovisual.jpeg'); }
#slide-2 { background-image: url('../img/Fotografia_Deportiva.jpg'); }
#slide-3 { background-image: url('../img/Fotografia_Social.jpg'); }


/* ======== CONTENEDORES ======== */
.contenedor {
    display: flex; flex-wrap: wrap; gap: 30px; padding: 60px 40px; 
    justify-content: center; max-width: 1200px; margin: auto;
}

.card {
    background: white; padding: 30px; flex: 1 1 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 8px; 
    text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* ========= PORTAFOLIO GRID ========= */
#portafolio {
    background-color: #0b0b0b; padding-top: 80px; padding-bottom: 80px;
}

#portafolio h2 {
    color: #fff; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 50px;
}

#portafolio.contenedor {
    display: block; max-width: 100%; padding-left: 5%; padding-right: 5%;
}

.gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}

/* La Tarjeta de la foto */
.photo-card {
    aspect-ratio: 16 / 9; background: #000; border-radius: 4px;
    overflow: hidden; position: relative; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.4s ease;
}

.photo-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(0.8) grayscale(20%); transform: scale(1.0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- [FIX] EFECTOS HOVER SOLO PARA PC --- */
@media (hover: hover) {
    .photo-card:hover {
        border-color: var(--color-acento); z-index: 2;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .photo-card:hover img {
        filter: brightness(1.1) grayscale(0%); transform: scale(1.05); 
    }
}

/* --- RESPONSIVE DEL PORTAFOLIO --- */
@media (max-width: 992px) {
    .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    #portafolio { padding: 40px 20px; }
}

/* ======== LIGHTBOX (MODAL DE FOTOS) ======== */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.lightbox-overlay.lightbox-activo { visibility: visible; opacity: 1; }

.lightbox-content img {
    max-width: 90vw; max-height: 90vh;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); border-radius: 4px;
}

body.no-scroll { overflow: hidden; }

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    font-size: 3rem; font-weight: 300; color: #fff;
    background: none; border: none; cursor: pointer; line-height: 1; padding: 0;
}

.photo-card { cursor: pointer; }

/* =========================================
   SECCIÓN DE SERVICIOS
   ========================================= */
.seccion-servicios {
    padding: 80px 20px; background-color: #fff;
}

.contenedor-servicios {
    max-width: 1200px; margin: 0 auto; text-align: center;
}

.contenedor-servicios h2 {
    font-size: 2.5rem; color: #000; margin-bottom: 10px; text-transform: uppercase;
}

.servicios-subtitulo {
    font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto 50px auto;
}

.servicios-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

/* --- [FIX] TEXTO NEGRO FORZADO EN TARJETAS --- */
.servicio-card {
    background: #fff; color: #333 !important; /* Forzamos color oscuro */
    border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; border: 1px solid #f0f0f0;
}

.servicio-card:hover {
    transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-header {
    position: relative; width: 100%; height: 220px;
}

.card-header img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}

.servicio-card:hover .card-header img { transform: scale(1.05); }

.card-icon {
    position: absolute; bottom: 15px; left: 15px;
    width: 50px; height: 50px; background: rgba(0, 0, 0, 0.7);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}

.card-icon svg { width: 28px; height: 28px; color: #fff; }

.card-body { padding: 25px; }
.card-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #000; }

.card-meta {
    display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-acento);
    text-transform: uppercase; margin-bottom: 15px; letter-spacing: 0.5px;
}

.card-body p {
    font-size: 0.95rem; color: #555; line-height: 1.6;
}

@media (max-width: 900px) {
    .servicios-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 600px) {
    .servicios-grid { grid-template-columns: 1fr; }
    .contenedor-servicios h2 { font-size: 2rem; }
}

/* ======== SECCIÓN SOBRE NOSOTROS ======== */
.seccion-nosotros {
    width: 100%; padding: 60px 20px; background-color: #f2f2f2;
    display: flex; flex-direction: column; align-items: center; 
}

.seccion-nosotros h2 {
    font-size: 2.5rem; margin-bottom: 40px; text-align: center;
    color: #000000; text-transform: uppercase; font-weight: 700;
}

/* --- [FIX] TEXTO NEGRO FORZADO EN SOBRE NOSOTROS --- */
.nosotros-card {
    background: #fff; color: #333 !important; /* Texto oscuro */
    width: 100%; max-width: 1100px; padding: 50px; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
}

.nosotros-grid { display: flex; align-items: center; gap: 50px; text-align: left; }
.nosotros-texto { flex: 1; }

.nosotros-texto p {
    line-height: 1.8; margin-bottom: 15px; color: #555; font-size: 1.05rem;
}

.nosotros-imagen { flex: 1; display: flex; justify-content: center; align-items: center; }

.equipo-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;
    width: 100%; max-width: 500px;
}

.equipo-grid img {
    width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}

.equipo-grid img:hover { transform: scale(1.03); }

@media (max-width: 768px) {
    .equipo-grid { max-width: 100%; gap: 10px; }
}

@media (max-width: 900px) {
    .nosotros-grid { flex-direction: column; text-align: center; }
    .nosotros-card { padding: 30px; }
    .nosotros-imagen { margin-top: 30px; }
}

/* ======== ESTADÍSTICAS ======== */
.stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee;
    justify-content: center;
}

.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-icon { margin-bottom: 10px; color: var(--color-primario); transition: transform 0.3s ease; }
.stat-icon svg { width: 32px; height: 32px; }

.stat-number {
    font-size: 1.8rem; font-weight: 700; color: var(--color-primario);
    line-height: 1; margin-bottom: 5px;
}

.stat-number::after {
    content: '+'; color: var(--color-acento); font-size: 1.2rem;
    vertical-align: super; margin-left: 2px;
}

.stat-label { font-size: 0.9rem; color: #666; font-weight: 500; }

.stat-item:hover .stat-icon { transform: translateY(-5px); color: var(--color-acento); }

@media (min-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ======== SECCIÓN DE CONTACTO ======== */
.seccion-contacto {
    width: 100%; padding: 60px 20px; display: block; position: relative; z-index: 1;
}

.seccion-contacto h2 {
    text-align: center; margin-bottom: 50px; font-size: 2.5rem;
    color: #000000; text-transform: uppercase; font-weight: 700;
}

/* --- [FIX] TEXTO NEGRO FORZADO EN CONTACTO --- */
.contacto-wrapper {
    background: #fff; color: #333 !important; /* Texto oscuro */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-radius: 20px;
    display: flex; flex-wrap: wrap; justify-content: space-between;
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 50px; overflow: hidden;
}

.contacto-info { flex: 1; min-width: 280px; margin-right: 40px; }
.contacto-info h3 { font-size: 1.5rem; margin-bottom: 25px; color: var(--color-primario); }

.info-item { display: flex; align-items: center; margin-bottom: 25px; }

.info-icon {
    width: 45px; height: 45px; border: 1px solid #ddd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; color: var(--color-primario); flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; }

.info-content .label { display: block; font-size: 0.8rem; font-weight: 700; color: #111; }
.info-content .valor { font-size: 0.95rem; color: #666; }

.contacto-redes h4 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 15px; color: #000; }
.redes-icons { display: flex; gap: 15px; }

.redes-icons a {
    width: 45px; height: 45px; background: #f4f4f4; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; color: #000000
}

.redes-icons svg { width: 24px; height: 24px; fill: currentColor; }

.redes-icons a:hover {
    background: var(--color-acento); color: #000000;
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto-form { flex: 1.5; min-width: 300px; }
.input-group { margin-bottom: 20px; width: 100%; }

.contacto-form input,
.contacto-form textarea {
    display: block; width: 100%; min-height: 55px; padding: 15px 20px;
    background-color: #f0f0f0 !important; border: 2px solid #cccccc !important;
    border-radius: 10px; font-size: 1rem; font-family: inherit;
    color: #000000 !important; outline: none; transition: all 0.3s ease;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #555555 !important; opacity: 1; font-weight: 500;
}

.contacto-form input:focus, .contacto-form textarea:focus {
    background-color: #ffffff !important; border-color: var(--color-acento) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto-form textarea { min-height: 150px; resize: none; }
.contacto-form label { display: none; }

.contacto-form button {
    display: inline-block; background: var(--color-primario); color: #fff;
    padding: 15px 40px; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
}

.contacto-form button:hover {
    background: var(--color-acento); color: var(--color-primario);
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 214, 0, 0.3);
}

@media (max-width: 768px) {
    .contacto-wrapper { flex-direction: column; padding: 30px; }
    .contacto-info { margin-right: 0; margin-bottom: 40px; }
    .contacto-redes h4 { text-align: center; width: 100%; margin-top: 40px; }
    .redes-icons { display: flex; justify-content: center; width: 100%; }
    .contacto-form button { width: 100%; float: none; }
}

/* ======== TÍTULOS DE SECCIÓN ======== */
.contenedor h2, .formulario h2 {
    width: 100%; text-align: center; font-size: 2.5rem;
    margin-bottom: 40px; color: var(--color-primario);
}

#contacto h2 { margin-bottom: 20px; }

/* ======== PIE DE PÁGINA (FOOTER) ======== */
footer {
  background-color: #000; color: #888; padding: 30px 20px;
  text-align: center; border-top: 1px solid #222; font-size: 0.9rem;
}

footer strong { color: #fff; }
footer .credits { margin-top: 10px; font-size: 0.85rem; color: #666; }

footer a {
    color:  #24acec; /* Color amarillo original */
    text-decoration: none; font-weight: 700; letter-spacing: 0.5px; transition: color 0.3s;
}

footer a:hover { color: #fff; text-decoration: underline; }

.footer-logo { font-size: 1.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ======== MENÚ RESPONSIVE OPTIMIZADO ======== */
@media (max-width: 768px) {
    .contenedor-header { padding: 15px 20px; }
    .contenedor-header nav { display: none; }

    /* --- CONTENEDOR DEL MENÚ MÓVIL (CORREGIDO Y FLUIDO) --- */
    nav#menu {
        position: fixed; top: 0; right: 0; height: 100vh; width: 100vw;
        background: radial-gradient(circle at center, #1f1f1f 0%, #000000 100%);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        gap: 35px; z-index: 1200; padding: 20px;
        transform: translateX(100%); opacity: 0; visibility: hidden;
        /* ANIMACIÓN OPTIMIZADA PARA CELULAR */
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.4s ease;
    }

    nav#menu.active {
        transform: translateX(0); opacity: 1; visibility: visible;
    }

    /* --- ENLACES DEL MENÚ (SIN LAG) --- */
    nav#menu a {
        color: #ffffff; font-family: inherit; font-size: 1.8rem;
        font-weight: 500; text-transform: uppercase; letter-spacing: 3px;
        text-decoration: none; position: relative;
        opacity: 0; transform: translateY(20px);
        will-change: opacity, transform; /* Le avisa al celular */
        transition: color 0.3s ease; 
    }

    nav#menu a:hover {
        color: var(--color-acento); transform: scale(1.1);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    /* --- ANIMACIÓN DE ENTRADA EN CASCADA --- */
    nav#menu.active a {
        animation: slideInUp 0.6s ease-out forwards;
    }

    nav#menu.active a:nth-child(1) { animation-delay: 0.2s; }
    nav#menu.active a:nth-child(2) { animation-delay: 0.4s; }
    nav#menu.active a:nth-child(3) { animation-delay: 0.6s; }
    nav#menu.active a:nth-child(4) { animation-delay: 0.8s; }
    nav#menu.active a:nth-child(5) { animation-delay: 1.0s; }

    @keyframes slideInUp {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    .menu-toggle {
        display: inline-flex; flex-direction: column; align-items: center; 
        justify-content: center; position: fixed; top: 10px; right: 10px; z-index: 1400;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.2rem; }
    .contenedor, .formulario { padding: 40px 20px; }

    /* --- FIX: PORTAFOLIO EN MÓVIL (SIN BORDES DORADOS) --- */
    .galeria-item:hover, .photo-card:hover {
        transform: none !important; box-shadow: none !important;
    }

    .galeria-item:hover img, .photo-card:hover img {
        transform: none !important;
    }
}

/* --- AJUSTES SOLO PARA CELULAR (Centrado Perfecto) --- */
@media (max-width: 768px) {
    .contacto-wrapper { flex-direction: column; padding: 30px 20px; }
    
    .contacto-info {
        margin-right: 0; margin-bottom: 40px; display: flex;
        flex-direction: column; align-items: center;
    }

    .contacto-info h3, .contacto-redes h4 { text-align: center; width: 100%; }

    .info-item {
        width: 100%; max-width: 320px; display: flex; align-items: center; 
        justify-content: flex-start; margin-left: auto; margin-right: auto; padding-left: 20px;
    }

    .redes-icons { justify-content: center; }
    .contacto-form button { width: 100%; }

    /* ======== REORDENAMIENTO SECCIÓN "SOBRE NOSOTROS" ======== */
    .nosotros-grid { display: flex; flex-direction: column; }
    .nosotros-texto, .nosotros-imagen { display: contents; }

    .nosotros-texto p { order: 1; margin-bottom: 20px; }
    .equipo-grid { order: 2; margin-bottom: 40px; width: 100%; }
    .stats-grid { order: 3; margin-top: 0; border-top: 1px solid #eee; padding-top: 30px; width: 100%; }

    /* =========================================
       ANIMACIÓN PERSONALIZADA EQUIPO (ZIG-ZAG)
       ========================================= */
    
    /* 1. Reseteamos la animación vertical global para el equipo */
    .equipo-grid .animar {
        transform: none; /* Quitamos el translateY global */
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Movimiento más suave */
    }

    /* 2. FOTOS IMPARES (1 y 3): Entran desde la IZQUIERDA */
    /* Empiezan -50px a la izquierda */
    .equipo-grid .animar:nth-child(odd) {
        transform: translateX(-50px); 
    }

    /* 3. FOTOS PARES (2 y 4): Entran desde la DERECHA */
    /* Empiezan 50px a la derecha */
    .equipo-grid .animar:nth-child(even) {
        transform: translateX(50px); 
    }

    /* 4. ESTADO FINAL (Cuando el JS agrega .visible) */
    .equipo-grid .animar.visible {
        opacity: 1;
        transform: translateX(0); /* Regresan al centro */
    }

    /* 5. EL RETRASO (Efecto "Uno por uno") */
    .equipo-grid .animar:nth-child(1) { transition-delay: 0.1s; }
    .equipo-grid .animar:nth-child(2) { transition-delay: 0.3s; }
    .equipo-grid .animar:nth-child(3) { transition-delay: 0.5s; }
    .equipo-grid .animar:nth-child(4) { transition-delay: 0.7s; }
}

/* ======== ANIMACIONES AL SCROLL ======== */
.animar {
    opacity: 0; transform: translateY(40px); transition: all 0.4s ease-out;
}

.animar.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   10. MODO "LITE" (ACCESIBILIDAD Y BAJO RENDIMIENTO)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    
    /* 1. Quitamos las animaciones pesadas */
    nav#menu.active a,
    .animar.visible,
    .hero-slide {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* 2. El menú aparece de golpe (sin deslizar) */
    nav#menu {
        transition: visibility 0.1s !important;
    }

    /* 3. Quitamos el scroll suave */
    html {
        scroll-behavior: auto !important;
    }
}