/* ==========================================================================
   STYLES.CSS - PROGGET (REINICIO: DARK MODE PREMIUM)
   Secciones: Base, Header, Hero
   ========================================================================== */

/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    /* --- MODO OSCURO (POR DEFECTO - PREMIUM) --- */
    --color-bg: #1a1a1a;
    /* Fondo General Oscuro */
    --color-panel: #1c1c1c;
    /* Color de tarjetas */
    --color-border: #333333;
    /* Bordes sutiles */

    --color-text-main: #ffffff;
    /* Texto Principal */
    --color-text-muted: #a0a0a0;
    /* Texto Secundario */
    --color-heading: #ffffff;
    /* Títulos */

    --color-btn-bg: #ffffff;
    /* Botones primarios */
    --color-btn-text: #000000;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Sombra oscura */

    /* TIPOGRAFÍA */
    --font-main: 'Montserrat', sans-serif;
    --spacing-container: 1300px;
}

/* --- MODO CLARO (ESTILO REFERENCIA: BLANCO Y GRISES) --- */
body.light-mode {
    --color-bg: #f4f4f4;
    /* Gris muy suave (Casi blanco) */
    --color-panel: #ffffff;
    /* Tarjetas Blancas puras */
    --color-border: #e0e0e0;
    /* Bordes gris claro */

    --color-text-main: #333333;
    /* Texto gris oscuro (no negro puro) */
    --color-text-muted: #666666;
    /* Texto secundario gris medio */
    --color-heading: #111111;
    /* Títulos casi negros */

    --color-btn-bg: #111111;
    /* Botones negros (Estilo arquitecto) */
    --color-btn-text: #ffffff;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Sombra muy suave y elegante */
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   2. COMPONENTES (BOTONES)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    /* Estilo cuadrado/arquitectónico */
}

/* Botón Principal (Blanco solido con texto negro para resaltar en fondo oscuro) */
.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Botón Secundario (Borde blanco) */
.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   3. HEADER (DEFINITIVO: CENTRADO PC / LIMPIO MÓVIL)
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    /* Fondo PC */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde PC */
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(0, 0, 0, 0.95);
}

/* CONTENEDOR CENTRADO (Versión PC) */
.header-content {
    display: flex;
    justify-content: center;
    /* Centrado horizontal */
    align-items: center;
    gap: 4rem;
    /* Espacio entre menú y botón contacto */
}

/* ELIMINAR LOGO */
.logo,
.logo-img {
    display: none;
}

/* NAVEGACIÓN PC */
.main-nav ul {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    opacity: 0.9;
    position: relative;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 1;
}

/* LÍNEA HOVER */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0%;
    height: 1px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* BOTÓN CONTACTO */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.7rem;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.header-actions .btn-primary:hover {
    background: #fff;
    color: #000;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
}

/* =========================================
   AJUSTES ESPECÍFICOS PARA MÓVIL (Header Limpio)
   ========================================= */
@media (max-width: 968px) {

    /* 1. Botón a la derecha */
    .header-content {
        justify-content: flex-end !important;
        padding-right: 1.5rem;
    }

    /* 2. HEADER INICIAL LIMPIO (Sin fondo, sin borde, sin blur) */
    .main-header {
        background: transparent !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
        padding: 1.5rem 0;
        /* Un poco más de aire arriba */
    }

    /* 3. HEADER AL HACER SCROLL (Recupera fondo para legibilidad) */
    .main-header.scrolled {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        border-bottom: none !important;
        /* Sigue sin borde */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        /* Sombra suave opcional */
        padding: 0.8rem 0;
    }
}


/* =========================================
   4. SECCIÓN HERO (IMAGEN 100% COLOR)
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* 1. LA IMAGEN DE FONDO (FULL COLOR) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

    background-image: url('img/image\ \(21\).png');
    background-size: cover;
    background-position: center;

    /* Aumentamos saturación para que "resalte" los colores */
    filter: saturate(1.2) contrast(1.1);
}

/* 2. GRADIENTE SOLO PARA LEER EL TEXTO (Izquierda Oscura -> Derecha Transparente) */
/* Esto permite que el texto se lea sin oscurecer la foto del lado derecho */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.9) 0%,
            /* Negro sólido a la izquierda (donde está el texto) */
            rgba(0, 0, 0, 0.5) 40%,
            /* Medio transparente */
            rgba(0, 0, 0, 0.0) 80%
            /* Totalmente transparente a la derecha (se ve la foto) */
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: stretch;
    /* CAMBIO: Stretch para misma altura */
    width: 100%;
}

/* TEXTOS HERO */
.tagline {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Sombra extra por seguridad */
}

.tagline .line {
    height: 1px;
    width: 40px;
    background: #ffffff;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 300;
    /* Minimalista */
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hero-text strong {
    font-weight: 700;
}

.hero-desc {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

/* BOTONES HERO */
.hero-btns .btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.hero-btns .btn-primary:hover {
    background: transparent;
    color: #fff;
}

.hero-btns .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-btns .btn-secondary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* TARJETA SLIDER */
.tech-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3.5/5;
    /* Borde blanco fino elegante */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* (El resto de estilos de la tarjeta slider se mantienen igual del paso anterior) */
.mini-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mini-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* REAL CAROUSEL PHYSICAL SLIDE (Short & Slow) */
    opacity: 0;
    transform: translateX(-15%);
    /* Start slightly OFF-SCREEN LEFT */
    transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 2.5s ease;
    will-change: transform, opacity;
}

.mini-slider img.active {
    opacity: 1;
    transform: translateX(0);
    /* Centers perfectly */
    z-index: 2;
}

.mini-slider img.exit {
    opacity: 0;
    transform: translateX(15%);
    /* Exits slightly to RIGHT */
    z-index: 1;
}

.tech-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.tech-meta {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 0.1em;
}

/* =========================================
   ENCABEZADOS DE SECCIÓN (GLOBAL)
   ========================================= */
.section-header-split {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Línea vertical blanca elegante */
.header-line-vertical {
    display: block;
    width: 2px;
    height: 60px;
    background-color: #ffffff;
    opacity: 0.5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

/* Alineación a la derecha (para servicios) */
.section-header-split.right {
    justify-content: flex-end;
    text-align: right;
}

.section-header-split.right .header-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* =========================================
   SECCIÓN VENTAJAS (TARJETAS OSCURAS - TAMAÑO AUMENTADO)
   ========================================= */
.advantages-section {
    padding: 6rem 0;
    background-color: #121212;
    /* Fondo oscuro base */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.adv-card {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* AUMENTO: Más espacio interno (padding) */
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.adv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background: #202020;
}

.adv-icon span {
    /* AUMENTO: Icono más grande */
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
}

.adv-card h3 {
    /* AUMENTO: Título más grande */
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.adv-card p {
    /* AUMENTO: Texto descriptivo más grande */
    font-size: 1.05rem;
    color: #aaaaaa;
    line-height: 1.6;
    z-index: 2;
}

/* Número de fondo (marca de agua) */
.adv-number {
    position: absolute;
    top: -15px;
    right: -10px;
    /* AUMENTO: Número de fondo más grande */
    font-size: 8rem;
    font-weight: 800;
    color: #ffffff;
    opacity: 0.04;
    font-family: var(--font-main);
    pointer-events: none;
}

/* =========================================
   SECCIÓN SERVICIOS (CORREGIDO: SLIDER HTML + OVERLAY)
   ========================================= */
.services-section {
    padding: 6rem 0;
    background-color: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 100vh;
}

.services-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* LA CAJA PRINCIPAL */
.service-box {
    position: relative !important;
    /* Necesario para lo absoluto */
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 550px;
    border-radius: 4px;
    /* Quitamos animaciones CSS antiguas */
    background-image: none !important;
    background-color: #000;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-box:hover {
    border-color: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* 1. EL SLIDER DE FOTOS (FONDO) */
.service-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Al fondo */
}

.service-bg-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Llena la caja sin deformar */
    opacity: 0;
    transform: translateY(10px);
    /* Micro-desplazamiento inicial */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.service-bg-slider img.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. OVERLAY (CAPA OSCURA DEGRADADA) */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Degradado: Oscuro abajo (texto) -> Transparente arriba */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

/* 3. CONTENIDO (TEXTO ENCIMA) */
.service-content-wrapper {
    position: relative;
    z-index: 2;
    /* Encima de todo */
    padding: 4rem 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ESTILOS INTERNOS DE TEXTO */
.service-icon-box {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-icon-box span {
    font-size: 2rem;
}

.service-box h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.service-sub {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.service-list {
    width: 100%;
    margin-bottom: auto;
}

/* Empuja el botón abajo */
.service-list li {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
    /* Sombra fuerte para leer */
}

.service-list li::before {
    background-color: #fff;
}

.service-box .btn-secondary {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-color: #fff;
}

.service-box .btn-secondary:hover {
    background: #fff;
    color: #000;
}


/* --- AJUSTE MÓVIL (CORRECCIÓN FINAL) --- */
@media (max-width: 968px) {
    .services-dual-grid {
        grid-template-columns: 1fr;
        /* Una columna */
        gap: 2rem;
    }

    .service-box {
        min-height: auto;
        height: auto;
        /* Aspect Ratio vertical para celular */
        aspect-ratio: 4/5;
    }

    .service-content-wrapper {
        padding: 2rem 1.5rem;
        /* Menos padding en móvil */
        justify-content: flex-end;
        /* Texto abajo */
    }

    /* Oscurecer más el fondo en celular para leer bien */
    .service-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 25%, rgba(0, 0, 0, 0.5) 100%);
    }

    .service-box h3 {
        font-size: 1.5rem;
    }

    .service-list {
        display: none;
    }

    /* OPCIONAL: Ocultar lista larga en móvil si quieres limpiar, si no, borra esta línea */

    .service-box .btn-secondary {
        background: #fff;
        color: #000;
        /* Botón sólido en móvil se ve mejor */
    }
}

/* =========================================
   CORRECCIÓN FINAL MÓVIL: SERVICIOS (TODO VISIBLE)
   (Pega esto al final de styles.css o reemplaza el bloque móvil anterior)
   ========================================= */

@media (max-width: 968px) {

    /* 1. UNA SOLA COLUMNA */
    .services-dual-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        /* Más separación entre una y otra */
    }

    /* 2. LA CAJA SE ADAPTA AL TEXTO (NO CORTA NADA) */
    .service-box {
        /* IMPORTANTE: Quitamos alturas fijas para que crezca con el texto */
        height: auto !important;
        min-height: 600px;
        /* Altura mínima para que se luzca la foto si hay poco texto */
        aspect-ratio: auto !important;
        /* Eliminamos proporción forzada */

        /* Alineación */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        /* Empuja contenido abajo */
        padding: 0 !important;
        /* El padding lo maneja el wrapper */
    }

    /* 3. FONDO OSCURO PARA LEER (GRADIENTE FUERTE) */
    .service-overlay {
        /* Gradiente más alto y oscuro para garantizar lectura en celular */
        background: linear-gradient(to top,
                rgba(0, 0, 0, 1) 0%,
                rgba(0, 0, 0, 0.9) 50%,
                rgba(0, 0, 0, 0.4) 80%,
                rgba(0, 0, 0, 0) 100%) !important;
    }

    /* 4. CONTENIDO (TEXTO) */
    .service-content-wrapper {
        position: relative;
        z-index: 5;
        padding: 2rem 1.5rem 2.5rem 1.5rem !important;
        /* Espacio cómodo */
        width: 100%;
    }

    /* Títulos e Iconos */
    .service-icon-box {
        margin-bottom: 1rem !important;
        width: 50px !important;
        height: 50px !important;
    }

    .service-icon-box span {
        font-size: 1.8rem !important;
    }

    .service-box h3 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* 5. LISTA DE DETALLES (SIEMPRE VISIBLE) */
    .service-list {
        display: block !important;
        /* Aseguramos que SE VEA */
        margin-bottom: 2rem !important;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .service-list li {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.5rem !important;
        color: #ddd !important;
    }

    /* Botón */
    .service-box .btn-secondary {
        background: #fff !important;
        color: #000 !important;
        width: 100%;
        padding: 1rem !important;
        margin-top: 0 !important;
    }
}

/* =========================================
   ESTILOS DE FOOTER
   ========================================= */
.main-footer {
    background-color: #050505;
    color: #888;
    padding: 5rem 0 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    color: #555;
}

/* =========================================
   MODAL DE GALERÍA (POPUP PREMIUM - CRISTAL)
   ========================================= */

/* 1. FONDO OSCURO DE LA PANTALLA */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Fondo casi negro */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. LA VENTANA DEL MODAL (EFECTO CRISTAL) */
.modal-content {
    width: 90%;
    max-width: 1200px;
    height: 85vh;

    /* Efecto Vidrio Esmerilado Oscuro */
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);

    position: relative;
    display: flex;
    overflow: hidden;
}

/* Botón Cerrar (X) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 20;
    line-height: 0.5;
}

.modal-close:hover {
    color: #ccc;
}

/* Grid Principal (2 Columnas) */
.modal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    height: 100%;
}

/* --- ZONA IZQUIERDA: FOTOS --- */
.modal-gallery {
    background: transparent;
    /* Transparente para ver el cristal */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenedor de la imagen (con espacio para que no se corte) */
/* Contenedor de la imagen (con espacio para que no se corte) */
.gallery-main-viewport {
    width: 100%;
    height: 100%;
    padding: 0;
    /* ELIMINADO: Margen interno para maximizar foto */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #000;
    /* Fondo negro para resaltar imagen */
}

/* La Imagen */
/* La Imagen */
#modal-main-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Nunca recortar */
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    animation: fadeInImg 0.4s ease;
}

/* Botones de Navegación (< >) */
/* Botones de Navegación (< >) */
.gallery-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Dejar pasar clicks a la foto si fuera necesario */
    z-index: 10;
}

.gallery-nav .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    /* Reactivar clicks en los botones */
}

.gallery-nav .nav-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

#prev-img {
    left: 20px;
}

#next-img {
    right: 20px;
}

/* Texto al pie de la foto */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ccc;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1rem 1rem 1rem;
    pointer-events: none;
}

/* --- ZONA DERECHA: INFORMACIÓN --- */
.modal-info {
    padding: 4rem 3rem;
    background: rgba(0, 0, 0, 0.4);
    /* Oscuro semitransparente para leer texto */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* ALINEACIÓN SUPERIOR */
    padding-top: 5rem;
    /* Espacio superior visual */
}

.modal-subtitle {
    color: #888;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.modal-line {
    width: 50px;
    height: 4px;
    background: #fff;
    margin-bottom: 2rem;
}

.modal-desc {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.modal-btn {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: #000;
    border: none;
}

/* --- RESPONSIVE MODAL (CELULAR) --- */
@media (max-width: 968px) {
    .modal-content {
        flex-direction: column;
        height: 100%;
        width: 100%;
        border: none;
        border-radius: 0;
        overflow-y: auto;
        /* Permitir scroll si el contenido es largo en celular */
    }

    .modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .gallery-main-viewport {
        padding: 0;
        /* Sin padding en móvil para que entre toda la foto vertical */
        background: #000;
        min-height: 50vh;
        /* Asegura altura mínima para el viewport en móvil */
    }

    .modal-info {
        padding: 1.5rem;
        justify-content: flex-start;
        height: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-line {
        display: none;
    }

    .gallery-nav .nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   SECCIÓN PORTAFOLIO (GRID Y TARJETAS)
   ========================================= */
.portfolio-section {
    padding: 6rem 0;
    background-color: #121212;
    /* Fondo oscuro */
}

/* FILTROS */
.portfolio-filter {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* GRID DE PROYECTOS (Rejilla) */
.portfolio-grid-premium {
    display: grid;
    /* Esto crea columnas automáticas que se ajustan */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* TARJETA DE PROYECTO */
.project-item {
    position: relative;
    aspect-ratio: 4/3;
    /* Formato rectangular clásico de foto */
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid #222;
}

.project-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* LA FOTO */
.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que la foto llene el cuadro sin deformarse */
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.project-item:hover .project-img-wrapper img {
    transform: scale(1.1);
    /* Zoom suave al pasar mouse */
    filter: brightness(1);
}

/* OVERLAY (INFORMACIÓN ENCIMA) */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .overlay-content {
    transform: translateY(0);
}

.p-category {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.overlay-content h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.p-desc {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

/* AJUSTE RESPONSIVE PARA PORTAFOLIO */
@media (max-width: 968px) {
    .portfolio-grid-premium {
        grid-template-columns: 1fr;
        /* Una columna en celular */
        gap: 1.5rem;
    }

    .project-item {
        aspect-ratio: 3/2;
        /* Un poco más panorámica en celular */
    }

    /* En celular mostramos la info siempre, no solo al hover */
    .project-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
    }

    .overlay-content {
        transform: translateY(0);
    }
}

/* =========================================
   BOTÓN VER MÁS (PORTAFOLIO)
   ========================================= */
.view-more-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.view-more-container .btn {
    min-width: 200px;
    justify-content: center;
}

/* =========================================
   SECCIÓN EQUIPO (MINIMALISTA B&W)
   ========================================= */
.team-section {
    padding: 8rem 0;
    background-color: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
    /* CAMBIO: Igual Altura */
}

/* --- TEXTOS (IZQUIERDA) --- */
.team-text-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tagline-minimal {
    display: block;
    color: #ffffff;
    /* BLANCO PURO */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.7;
    /* Un poco transparente para no competir con el título */
}

.team-quote {
    border-left: 3px solid #ffffff;
    /* LÍNEA BLANCA */
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    line-height: 1.5;
    font-weight: 300;
}

.team-bio p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.team-bio {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: auto;
}

.text-white {
    color: #fff;
    font-weight: 600;
}

.mt-4 {
    margin-top: 2.5rem;
    display: inline-block;
}

/* --- GRILLA FOTOS (DERECHA) --- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
}

.member-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background-color: #1a1a1a;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;

    /* B&W por defecto */
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.8;
}

/* Al pasar mouse: Recupera color y brillo */
.team-member:hover .member-img img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
    opacity: 1;
}

.member-info h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.member-info span {
    color: #888;
    /* GRIS SOBRIO (Ya no dorado) */
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .team-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .team-quote {
        font-size: 1.1rem;
        margin: 2rem 0;
    }

    .team-grid {
        gap: 1.5rem;
    }

    .member-img img {
        filter: grayscale(0%);
        opacity: 1;
    }
}

/* =========================================
   SECCIÓN CLIENTES (DARK & LARGE COLOR) - ACTUALIZADO
   ========================================= */
.clients-section {
    padding: 8rem 0;
    background-color: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.clients-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 5rem;
    text-transform: uppercase;
}

/* Contenedor del slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Efecto de degradado a los lados (Fades) */
.slider-container::before,
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, #020202, transparent);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, #020202, transparent);
}

/* Pista de Deslizamiento (Optimizado para el nuevo ancho de 350px) */
.slider-track {
    display: flex;
    width: calc(350px * 18);
    /* Aumentado de 300px a 350px */
    animation: scrollLogos 35s linear infinite;
}

.slide {
    width: 350px;
    /* Aumentado para dar más espacio lateral */
    height: 200px;
    /* Altura aumentada para que el logo se vea más grande */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    /* Padding reducido de 45px a 20px para maximizar la imagen */
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    opacity: 0.95;
    transition: all 0.4s ease;
}

/* Efecto Hover */
.slide img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.2);
}

/* Animación Infinita (Corregida para el nuevo ancho) */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Se desplaza exactamente la mitad de los logos (9 de 18) a 350px cada uno */
        transform: translateX(calc(-350px * 9));
    }
}

/* =========================================
   AJUSTES RESPONSIVE (MÓVIL) - ACTUALIZADO
   ========================================= */
@media (max-width: 768px) {
    .clients-section {
        padding: 5rem 0;
    }

    .clients-title {
        font-size: 1.8rem;
        margin-bottom: 3.5rem;
    }

    .slide {
        width: 250px;
        /* Aumentado de 220px en móvil */
        height: 140px;
        /* Aumentado de 120px en móvil */
        padding: 0 10px;
        /* Espacio mínimo para que el logo luzca más */
    }

    .slider-track {
        width: calc(250px * 18);
        animation: scrollLogosMobile 20s linear infinite;
    }

    @keyframes scrollLogosMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-250px * 9));
        }
    }

    .slider-container::before,
    .slider-container::after {
        width: 80px;
    }
}

/* =========================================
   SECCIÓN CONTACTO (MINIMALISTA DARK)
   ========================================= */
.contact-section {
    padding: 8rem 0;
    background-color: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Mitad y mitad */
    gap: 6rem;
    align-items: stretch;
    /* CAMBIO: Igual altura */
}

/* --- COLUMNA IZQUIERDA: FORMULARIO --- */
.contact-form-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-desc {
    color: #a0a0a0;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.progget-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
    /* CAMBIO: Llenar espacio restante */
    height: auto;
    justify-content: space-between;
    /* CAMBIO: Botón al fondo */
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Solo línea abajo */
    padding: 1rem 0;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Al escribir, la línea se pone blanca brillante */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

/* Estilo del placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.submit-btn {
    margin-top: 1rem;
    align-self: flex-start;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* --- COLUMNA DERECHA: INFO Y MAPA --- */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    /* CAMBIO: Llenar altura */
    justify-content: space-between;
    /* CAMBIO: Distribuir */
}

/* Tarjeta de información */
.info-card {
    background: #181818;
    /* Tarjeta oscura */
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3 {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.info-line {
    width: 60px;
    height: 2px;
    background: #fff;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon span {
    color: #fff;
    font-size: 1.5rem;
    opacity: 0.8;
}

.info-text strong {
    display: block;
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.info-text p {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* MAPA OSCURO */
.map-wrapper {
    width: 100%;
    flex-grow: 1;
    /* CAMBIO: Llenar el resto del espacio */
    min-height: 300px;
    /* Altura mínima segura */
    background: #181818;
    overflow: hidden;
    /* TRUCO: Invertimos colores para que el mapa se vea oscuro */
    filter: grayscale(100%) invert(92%) contrast(83%);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* --- RESPONSIVE CONTACTO --- */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 4rem;
    }

    .info-card {
        padding: 2rem;
    }

    .map-wrapper {
        height: 250px;
    }
}

/* =========================================
   FOOTER (PIE DE PÁGINA - DARK DEFINITIVO)
   ========================================= */
.main-footer {
    background-color: #050505;
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: #a0a0a0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

/* Logo Footer */
.footer-logo-img {
    width: 240px;
    height: auto;
    margin-bottom: 1.8rem;
    display: block;
}

.footer-desc {
    color: #777;
    line-height: 1.7;
    max-width: 320px;
}

/* Títulos */
.footer-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Enlaces */
.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #888;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

/* Contacto */
.footer-contact li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.footer-contact span.material-symbols-outlined {
    color: #ffffff;
    font-size: 1.3rem;
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.social-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-5px);
}

/* Barra de Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.8rem;
}

.designer-credit a {
    color: #ffffff;
    font-weight: 600;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 968px) {
    .main-footer {
        padding: 4rem 0 7rem;
        /* Espacio extra abajo para el botón WA */
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-logo-img {
        margin: 0 auto 1.5rem;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =========================================
   12. RESPONSIVE (CORREGIDO PARA MÓVIL)
   Reemplaza todo el bloque final de media queries
   ========================================= */

@media (max-width: 968px) {

    /* --- 1. FONDO Y GRADIENTE MÓVIL (CRÍTICO) --- */
    /* En PC el gradiente es lateral. En móvil debe ser TOTAL para leerse */
    .hero-section::after {
        background: rgba(0, 0, 0, 0.6) !important;
        /* Velo oscuro uniforme al 60% */
        /* Esto oscurece la foto SOLO lo necesario para que las letras blancas "exploten" */
    }

    /* --- 2. HEADER MÓVIL --- */
    .main-header {
        padding: 0.8rem 0;
        background: rgba(0, 0, 0, 0.95);
        /* Header casi negro sólido */
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    /* MENÚ PANTALLA COMPLETA */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.2rem;
        opacity: 1;
        font-weight: 500;
    }

    /* Ocultamos el botón del header para no duplicar */
    .header-actions .btn-primary {
        display: none;
    }


    /* --- 3. HERO SECTION MÓVIL (TEXTOS) --- */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 3rem;
        height: auto;
        min-height: auto;
        align-items: flex-start;
        /* Alineamos arriba para ganar espacio */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        width: 100%;
    }

    /* TEXTO: REDUCCIÓN DE TAMAÑO */
    .tagline {
        justify-content: center;
        margin-bottom: 1rem;
        font-size: 0.7rem;
        /* Tagline más delicado */
    }

    .hero-text h1 {
        font-size: 2.2rem;
        /* MUCHO MÁS PEQUEÑO (Antes 2.8rem era gigante) */
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        /* Letra de párrafo cómoda */
        margin: 0 auto 2rem auto;
        padding: 0 1rem;
        line-height: 1.5;
        max-width: 90%;
    }

    /* BOTONES MÓVIL */
    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 280px;
        /* Ancho máximo controlado */
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
        /* Botones menos altos */
    }

    /* --- 4. TARJETA SLIDER MÓVIL --- */
    .hero-visual {
        margin-top: 0;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
    }

    .tech-card {
        width: 100%;
        max-width: 300px;
        /* Tarjeta contenida */
        aspect-ratio: 1/1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .tech-info {
        padding: 1.2rem;
    }

    .tech-meta {
        font-size: 0.7rem;
    }
}

/* =========================================
   CORRECCIÓN MÓVIL: SERVICIOS (FOTOS)
   Pegar al final de styles.css
   ========================================= */

@media (max-width: 968px) {

    /* 1. GRID EN UNA COLUMNA */
    .services-dual-grid {
        grid-template-columns: 1fr !important;
        /* Una caja debajo de la otra */
        gap: 2rem !important;
    }

    /* 2. AJUSTE DE LAS CAJAS CON FOTO */
    .service-box {
        min-height: auto !important;
        /* Quitamos la altura gigante de PC */
        height: auto !important;
        aspect-ratio: 4/5;
        /* Formato vertical cómodo para celular */
        padding: 2rem 1.5rem !important;
        /* Menos relleno para ganar espacio */
        justify-content: flex-end !important;
        /* Texto pegado abajo para limpiar la foto */
    }

    /* 3. AJUSTE DE TEXTOS */
    .service-icon-box {
        margin-bottom: 1rem !important;
        width: 50px !important;
        height: 50px !important;
    }

    .service-icon-box span {
        font-size: 1.8rem !important;
    }

    .service-box h3 {
        font-size: 1.5rem !important;
        /* Título más pequeño */
        margin-bottom: 0.2rem !important;
    }

    .service-sub {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* 4. LISTA Y BOTÓN */
    .service-list li {
        font-size: 0.9rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-box .btn-outline-gold {
        width: 100%;
        /* Botón ancho completo para tocar fácil */
        justify-content: center;
        padding: 0.8rem !important;
        font-size: 0.8rem !important;
        margin-top: 1rem !important;
    }
}

/* =========================================
   CORRECCIÓN URGENTE: VENTAJAS EN MÓVIL
   Pegar al final de styles.css
   ========================================= */

@media (max-width: 968px) {

    /* 1. FORZAR 1 SOLA COLUMNA EN "POR QUÉ ELEGIRNOS" */
    .advantages-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Una sola columna vertical */
        gap: 2rem !important;
        /* Espacio entre tarjetas */
        width: 100% !important;
        padding: 0 1rem;
    }

    /* 2. ARREGLAR LAS TARJETAS */
    .adv-card {
        width: 100% !important;
        min-height: 250px !important;
        /* Altura controlada */
        margin-bottom: 1rem;

        /* Centrar todo el contenido */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* 3. ARREGLAR ICONOS Y TEXTO */
    .adv-icon span {
        font-size: 3rem !important;
        /* Icono grande */
        margin-bottom: 1rem !important;
    }

    .adv-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .adv-card p {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }

    /* 4. ARREGLAR EL NÚMERO DE FONDO GIGANTE */
    /* Lo centramos para que quede decorativo detrás */
    .adv-number {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        right: auto !important;
        font-size: 8rem !important;
        opacity: 0.05 !important;
    }
}

/* =========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-wa:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    /* Efecto zoom al pasar el mouse */
    color: #fff;
}

/* Animación de pulso para llamar la atención */
.float-wa::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* =========================================
   AJUSTES RESPONSIVE FINALES
   ========================================= */
@media (max-width: 968px) {

    /* 1. Ajuste del Botón WhatsApp en Móvil */
    .float-wa {
        width: 50px;
        /* Un poco más pequeño */
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        z-index: 999;
        /* Por debajo del menú móvil (que suele ser 1000+) */
    }

    /* 2. Márgenes laterales de seguridad */
    /* A veces el texto se pega mucho a los bordes en el celular */
    .container {
        padding: 0 1.5rem;
    }

    /* 3. Ajuste de Títulos Grandes (Hero) */
    .hero-text h1 {
        font-size: 2.5rem !important;
        /* Evita que el título rompa la pantalla */
    }

    /* 4. Ajuste del Menú Hamburguesa */
    /* Aseguramos que el botón de menú esté siempre visible y encima de todo */
    .mobile-menu-btn {
        display: block;
        z-index: 1100;
        /* Encima de todo */
    }

    /* El menú desplegable */
    .main-nav {
        z-index: 1050;
        /* Encima del botón de WhatsApp */
        background-color: #121212;
        /* Fondo sólido para que no se vea lo de atrás */
    }
}

/* =========================================
   CORRECCIÓN RESPONSIVE: CONTACTO Y FOOTER
   (Poner al final del archivo styles.css)
   ========================================= */

@media (max-width: 968px) {

    /* --- SECCIÓN CONTACTO MÓVIL --- */
    .contact-section {
        padding: 4rem 0 !important;
        /* Reducir el relleno gigante de PC */
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
        /* Una sola columna */
        gap: 3rem !important;
        /* Menos espacio entre formulario y mapa */
    }

    /* Formulario más compacto */
    .contact-desc {
        margin-bottom: 2rem !important;
    }

    /* Tarjeta de info (dirección, mail) */
    .info-card {
        padding: 2rem !important;
        /* Relleno cómodo */
    }

    /* Mapa ajustado */
    .map-wrapper {
        height: 250px !important;
        /* Altura controlada para móvil */
    }


    /* --- FOOTER (PIE DE PÁGINA) MÓVIL --- */
    .main-footer {
        padding: 3rem 0 6rem 0 !important;
        /* 6rem abajo para no tapar el botón de WhatsApp */
        text-align: center !important;
        /* Todo centrado se ve mejor en móvil */
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Centrar Logo del footer */
    .footer-logo-img {
        margin: 0 auto 1.5rem auto !important;
    }

    .footer-desc {
        margin: 0 auto !important;
        /* Centrar texto descripción */
    }

    /* Centrar items de contacto (iconos y texto) */
    .footer-contact li {
        justify-content: center !important;
    }

    /* Centrar iconos de redes sociales */
    .social-icons {
        justify-content: center !important;
    }

    /* Botón WhatsApp más pequeño en celular para no estorbar */
    .float-wa {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   CORRECCIÓN FINAL: FOOTER CENTRADO EN MÓVIL
   (Copiar al final de styles.css)
   ========================================= */

@media (max-width: 968px) {

    /* 1. Forzar alineación al centro en todo el footer */
    .main-footer {
        text-align: center !important;
    }

    /* 2. Alinear las columnas (cada bloque) al centro */
    .footer-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Centra horizontalmente todo el contenido */
        width: 100% !important;
    }

    /* 3. Centrar el Logo */
    .footer-logo-img {
        margin: 0 auto 1.5rem auto !important;
        display: block !important;
    }

    /* 4. Centrar Títulos (NAVEGACIÓN, UBICACIÓN) */
    .footer-title {
        text-align: center !important;
        width: 100% !important;
    }

    /* 5. Centrar las listas de enlaces */
    .footer-links,
    .footer-contact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Centra los <li> */
        padding: 0 !important;
        width: 100% !important;
    }

    /* 6. Centrar específicamente los items de contacto (Icono + Texto) */
    .footer-contact li {
        display: flex !important;
        justify-content: center !important;
        /* Pega el icono y texto al centro */
        align-items: flex-start !important;
        /* Alinea arriba si el texto es largo */
        text-align: center !important;
        width: 100% !important;
    }

    /* Ajuste fino para el texto de la dirección si tiene varias líneas */
    .footer-contact li span:last-child {
        text-align: left !important;
        /* El texto largo se lee mejor alineado a su icono, pero centrado en bloque */
        max-width: 250px;
        /* Evita que se estire demasiado */
    }

    /* Opcional: Si prefieres que el texto de dirección también esté totalmente centrado: */
    /*
    .footer-contact li span:last-child {
        text-align: center !important;
    }
    */
}


/* =========================================
   SPLASH SCREEN (INTRO) - VERSIÓN GRANDE
   ========================================= */
#intro-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
    /* z-index removed to sit naturally in flow, or can be 1 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Opacity/Visibility transitions removed as it should stay visible */
}

#intro-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content-wrapper {
    text-align: center;
    padding: 30px;
    /* Un poco más de espacio */
    width: 90%;
    /* Para asegurar que no toque los bordes en pantallas estrechas */
    width: 90%;
    max-width: 100%;
    /* Dejar que el contenido defina, pero con límites de seguridad */
    animation: zoomInIntro 1.5s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-logo {
    /* CAMBIO FINAL: Uso de imagen original de alta calidad */
    max-width: 720px;
    /* Límite en PC para que no sea gigante */
    width: auto;
    /* Respetar proporción natural */
    height: auto;
    margin: 0 auto;
    display: block;
}

.intro-line {
    display: none;
    /* ELIMINADO PARA ALINEACIÓN STRICTA */
}

.intro-subtitle {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    /* CAMBIO: Aumentado de 0.9rem a 1.4rem -> AJUSTADO A 1rem -> AJUSTADO A 1.1rem (Secundario) */
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: normal;
    /* Reset letter-spacing to allow justify to work */
    text-align: justify;
    text-align-last: justify;
    /* TRUCO: Justificar última línea (que es la única) */
    width: 100%;
    /* Ocupar todo el ancho del logo */
    text-transform: uppercase;
    line-height: 1.5;
    opacity: 0;
    margin: 0;
    /* Reset margins */
    animation: fadeInText 1s ease 1s forwards;
}

/* ANIMACIONES */
@keyframes zoomInIntro {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes lineGrow {

    /* CAMBIO: La línea ahora crece hasta 200px -> AJUSTADO A 140px -> AJUSTADO A 160px */
    to {
        width: 160px;
    }
}

@keyframes fadeInText {
    to {
        opacity: 0.9;
    }
}

/* Ajuste Móvil Más Grande */
@media (max-width: 768px) {

    /* CAMBIO: Logo móvil aumentado a 400px -> AJUSTADO A 280px -> AUMENTO A 360px (Dominante Móvil) */
    /* CAMBIO FINAL MÓVIL: Aumentar presencia visual */
    .intro-logo {
        max-width: 85%;
        /* Ocupa el 85% del ancho de pantalla -> Mucho más presencia */
        width: auto;
        /* Sin estirar */
        margin-bottom: 0;
    }

    .intro-content-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* CAMBIO: Texto móvil aumentado a 0.9rem -> AJUSTADO A 0.75rem -> AJUSTADO A 0.85rem */
    .intro-subtitle {
        font-size: 0.75rem;
        /* Reducir un poco para evitar quiebre de línea en pantallas muy angostas */
        letter-spacing: normal;
    }

    /* En móvil la línea es un poco más corta */
    @keyframes lineGrow {
        to {
            width: 110px;
        }
    }
}

/* =========================================
   HERO ACTUALIZADO (TEXTOS Y CARRUSEL LIMPIO)
   ========================================= */

/* 1. ESTILO DE LA NUEVA LÍNEA DE TEXTO */
.tagline-premium {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.tagline-premium .sep {
    color: #ffffff;
    font-weight: 300;
    opacity: 0.5;
}

/* 2. ESTILO DE LA IMAGEN (SOLO IMAGEN, SIN MARCO) */
/* 2. HERO CAROUSEL (CONTINUOUS, OPEN & ELEGANT) */
.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 550px;
    /* Altura fija elegante para Desktop */
    overflow: hidden;
    /* Mantiene el carrusel dentro de su columna */
    /* Sin bordes, sin sombras de contenedor, estilo "abierto" */
}

.hero-carousel-track {
    display: flex;
    width: max-content;
    height: 100%;
    /* Movimiento: -50% (Set 2) a 0% (Set 1) -> Desplazamiento hacia la derecha */
    /* "Move horizontally from left to right" */
    animation: heroScroll 60s linear infinite;
    will-change: transform;
}

.hero-carousel-track img {
    height: 100%;
    width: auto;
    /* Preserva proporciones naturales */
    flex-shrink: 0;
    margin-right: 30px;
    /* Espacio elegante entre fotos */
    border-radius: 8px;
    /* Sutil redondeo individual */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    /* Sombra en cada foto, no en el grupo */
    object-fit: cover;
}

@keyframes heroScroll {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* 3. RESPONSIVE MÓVIL (CELULAR) */
@media (max-width: 968px) {
    .tagline-premium {
        font-size: 0.75rem;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 1rem;
    }

    .tagline-premium .sep {
        display: none;
    }

    /* Ajuste del carrusel en móvil */
    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0;
        /* Full width option or kept constrained */
    }

    .hero-carousel-container {
        height: 300px;
        /* Altura cómoda para móvil */
        max-width: 100vw;
        /* Asegurar que no rompa */
    }

    .hero-carousel-track img {
        margin-right: 15px;
        border-radius: 6px;
    }
}

/* =========================================
   CORRECCIÓN FINAL: HERO MÓVIL (CENTRADO Y LEGIBLE)
   ========================================= */

@media (max-width: 968px) {

    /* 1. OSCURECER FONDO (CRÍTICO PARA LEER) */
    /* Oscurecemos más la foto en celular para que el texto blanco resalte 100% */
    .hero-section::after {
        background: rgba(0, 0, 0, 0.75) !important;
        /* Más oscuro (75%) */
    }

    /* 2. CENTRADO VERTICAL PERFECTO */
    .hero-section {
        /* Usamos altura mínima para que ocupe buena pantalla */
        min-height: 85vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centrar verticalmente */
        align-items: center;
        padding-top: 80px;
        /* Espacio para el header */
        padding-bottom: 40px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        /* Espacio entre Texto y Carrusel */
        width: 100%;
    }

    /* 3. AJUSTE DE TEXTOS */
    .hero-text {
        text-align: center;
        padding: 0 1.5rem;
        max-width: 100%;
    }

    /* Título principal: Tamaño equilibrado */
    .hero-text h1 {
        font-size: 2rem !important;
        /* Un poco más pequeño para que no se rompa feo */
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        /* Sombra para leer mejor */
    }

    /* Descripción (La suma: Diseñamos + Fabricamos...) */
    .hero-desc {
        font-size: 0.9rem !important;
        line-height: 1.6;
        margin: 0 auto 2rem auto;
        /* Centrado */
        color: #ddd;
        /* Blanco un poco grisáceo para jerarquía */
        max-width: 90%;
    }

    /* 4. BOTONES (Mismo ancho y legibles) */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        /* Ancho máximo controlado */
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        /* Botones ocupan todo el ancho disponible */
        justify-content: center;
        padding: 1rem;
    }

    /* Arreglo para el botón transparente (Ver Portafolio) */
    .hero-btns .btn-secondary {
        background-color: rgba(0, 0, 0, 0.5);
        /* Fondo semitransparente oscuro */
        border-color: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(5px);
        /* Efecto borroso elegante */
    }

    /* 5. CARRUSEL (TECH-CARD) */
    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .tech-card {
        max-width: 280px;
        /* Tamaño controlado */
        margin: 0 auto;
        /* Sombra fuerte para separarlo del fondo */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    }
}

/* =========================================
   SERVICIOS CON FONDO DINÁMICO (CARRUSEL)
   ========================================= */

/* 1. Ajustes base de la caja */
.service-box {
    position: relative !important;
    overflow: hidden !important;
    /* IMPORTANTE: Quitamos la imagen fija anterior */
    background-image: none !important;
    background-color: #000;
}

/* 2. El Slider de fondo */
.service-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Al fondo del todo */
}

.service-bg-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Transición suave de 1.5s */
    transform: scale(1.1);
    /* Un poco de zoom para efecto */
}

.service-bg-slider img.active {
    opacity: 1;
    transform: scale(1);
}

/* 3. Capa Oscura (Overlay) para legibilidad */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado: Oscuro a la izquierda (texto), más claro a la derecha */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.4));
    z-index: 1;
    pointer-events: none;
}

/* 4. Contenido (Texto) encima de todo */
.service-content-wrapper {
    position: relative;
    z-index: 2;
    /* Encima del slider y la sombra */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Ajuste móvil para el degradado */
@media (max-width: 968px) {
    .service-overlay {
        /* En celular, oscurecemos todo parejo para leer bien */
        background: rgba(0, 0, 0, 0.7);
    }
}

/* =========================================
   SECCIÓN EQUIPO: DISEÑO 2 ARRIBA / 4 ABAJO
   ========================================= */

.team-visual-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    height: 100%;
}

/* 1. NIVEL SUPERIOR (DIRECTORES) - 2 Columnas */
.directors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50% - 50% */
    gap: 1.5rem;
}

/* Estilo para foto grande (Directores) */
.member-img.big-img {
    aspect-ratio: 4/5;
    /* Formato retrato alto */
    margin-bottom: 0.8rem;
    background: #000;
}

.member-img.big-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s;
}

.team-member:hover .big-img img {
    filter: grayscale(0%);
}


/* 2. NIVEL INFERIOR (EQUIPO) - 6 Columnas en fila (Horizontal) */
.operational-grid-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 4rem;
    /* Separación del contenido principal */
}

/* Tarjeta Pequeña (Cuadrada) */
.team-mini-card {
    width: 100%;
    aspect-ratio: 1/1;
    /* Cuadradas Perfectas */
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    border: none;
}

/* Imagen Pequeña */
.team-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.team-mini-card:hover img {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}


/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 968px) {

    /* Directores: Uno debajo de otro en celular */
    .directors-grid {
        grid-template-columns: 1fr;
    }

    /* Equipo: 3 columnas en 2 filas para móvil */
    .operational-grid-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
}

/* ======================================================
   CORRECCIÓN FINAL: SIN CAJA + DESLIZAMIENTO LATERAL
   (Pegar al final de styles.css)
   ====================================================== */

/* 1. BORRAR LA CAJA (Quitar bordes y fondo) */
.tech-card {
    background: transparent !important;
    /* Fondo transparente */
    border: none !important;
    /* Sin bordes */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    /* Solo sombra en la foto, no en la caja */

    /* Mantenemos esto para que la foto no se monte en el texto al salir */
    position: relative;
    overflow: hidden !important;

    /* Quitamos la animación de rebote vertical si aún existe */
    animation: none !important;
    transform: none !important;
}

/* 2. EL TREN DE IMÁGENES (Deslizamiento) */
.mini-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.mini-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Redondeamos la foto directamente */

    /* ESTADO BASE: Esperando a la DERECHA */
    transform: translateX(100%);
    transition: transform 1.2s ease-in-out;
    /* Velocidad del deslizamiento */
    will-change: transform;
    z-index: 1;
    opacity: 1;
    /* Siempre visible */
}

/* ESTADO ACTIVO: En el CENTRO */
.mini-slider img.active {
    transform: translateX(0%);
    z-index: 2;
}

/* ESTADO SALIDA: Se fue a la IZQUIERDA */
.mini-slider img.exit {
    transform: translateX(-100%);
    z-index: 1;
}