@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* =========================================
   RESETEO GLOBAL (¡Vital para el Responsive!)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* =========================================
   ESTILOS DEL HEADER CÁPSULA
   ========================================= */

.site-header {
    /* Fijamos el header en la parte superior */
    position: fixed;
    top: 20px; /* Separación del borde superior de la pantalla */
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que siempre esté por encima del resto */
    display: flex;
    justify-content: center; /* Centra la cápsula en la pantalla */
    padding: 0 20px; /* Margen para pantallas pequeñas */
}

.header-container {
    background-color: #ffffff; /* El fondo blanco que solicitaste */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    padding: 12px 40px; /* Padding ajustado para que respire mejor */
    border-radius: 60px; /* Esto crea el efecto de cápsula */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sombra suave para que flote */
    transition: all 0.3s ease;
}

/* Esta clase se añadirá con JavaScript al hacer scroll */
.site-header.scrolled .header-container {
    background-color: rgba(255, 255, 255, 0.7); /* Blanco al 70% de opacidad */
    backdrop-filter: blur(12px); /* Aquí está la magia del difuminado */
    -webkit-backdrop-filter: blur(12px); /* Soporte para Safari */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra más sutil */
    padding: 8px 30px; /* Podemos hacerlo un pelín más delgado al hacer scroll */
}

/* Estilos del Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio reducido entre el isotipo y el texto */
    text-decoration: none;
}

.logo-img {
    height: 65px; /* Ajusta este valor según las proporciones de tu logo */
    width: auto;
    display: block;
    margin: 0; /* Asegura que no haya margen extra */
}

.logo-text {
    font-weight: 500; /* Peso visual más suave (Medium) */
    color: #444444; /* Gris oscuro carbón elegante */
    font-size: 22px;
    letter-spacing: -0.5px;
    margin: 0; /* Asegura que no haya margen extra */
}

/* Estilos de la Navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Espacio entre los enlaces */
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

/* Efecto al pasar el mouse por los enlaces */
.nav-links a:hover {
    color: #00b4d8; /* Un azul agua como el de tu prueba, podemos cambiarlo */
}

/* --- Botón Principal (Con degradado de la marca) --- */
.btn-primary {
    display: flex;
    align-items: center;
    /* El degradado oficial: de cyan a verde */
    background: linear-gradient(90deg, #00b4d8 0%, #20c997 100%);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px); /* Se levanta un poquito */
    box-shadow: 0 10px 20px rgba(32, 201, 151, 0.25); /* Sombra verde/cyan brillante */
}

/* El ícono y texto del botón principal se quedan igual que antes */
.btn-text { transition: transform 0.3s ease; }
.btn-primary:hover .btn-text { transform: translateX(-5px); }
.btn-icon {
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
    margin-left: 0;
    font-weight: bold;
}
.btn-primary:hover .btn-icon {
    opacity: 1;
    transform: translateX(5px);
    margin-left: 5px;
}

/* --- Botón Secundario (Limpieza y elegancia) --- */
.btn-secondary {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #475569; /* Gris pizarra del texto */
    padding: 11px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid #cbd5e1; /* Borde gris muy suave */
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #20c997; /* El borde se vuelve verde */
    color: #0b1c2c; /* El texto se oscurece */
    background-color: rgba(32, 201, 151, 0.05); /* Un fondito verde casi invisible */
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
    /* Un blanco con una gotita imperceptible de cyan para dar frescura */
    background-color: #fafdfc; 
    
    /* Efecto "Glow": Dos luces gigantes difuminadas al 4% de opacidad */
    background-image: 
        radial-gradient(circle at 0% 10%, rgba(0, 180, 216, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 100% 80%, rgba(76, 175, 80, 0.04) 0%, transparent 40%);
    
    padding: 180px 20px 100px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    width: 95%;
    max-width: 1200px;
    display: grid;
    /* AQUÍ EL CAMBIO CLAVE: Le damos más espacio al texto (1.3 en vez de 1.1) */
    grid-template-columns: 1.3fr 1fr; 
    gap: 55px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 650px;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9; /* Verde muy claro */
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50; /* Círculo verde */
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.badge-text {
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500; /* Sutil y limpio */
    letter-spacing: 0.3px;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Reducimos un pelín el tamaño (de 4rem a 3.6rem) para que quepa perfecto */
    font-size: 3.6rem; 
    line-height: 1.15;
    color: #0b1c2c;
    margin: 0 0 24px 0;
    font-weight: 600;
    letter-spacing: -1px;
}

.text-highlight {
    background: linear-gradient(90deg, #00b4d8 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* AQUÍ EL OTRO CAMBIO: Quitamos el inline-block y lo dejamos inline para que fluya el degradado en el salto de línea */
    display: inline; 
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 40px 0;
    max-width: 95%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
}

.btn-secondary {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #333;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #00b4d8;
    color: #00b4d8;
    background-color: rgba(0, 180, 216, 0.05);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 600; /* Reducido para quitar ruido visual */
    color: #222;
    margin: 0;
    line-height: 1;
}

.stat-text {
    font-size: 14px;
    line-height: 1.3;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Columna Derecha - Imagen */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Tarjetas Flotantes — Glassmorphism */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.card-top-right {
    top: 30px;
    right: -30px;
    animation-delay: 0s;
}

.card-bottom-left {
    bottom: 40px;
    left: -30px;
    animation-delay: 2s; /* Diferente delay para asimetría */
}

.card-icon {
    background-color: rgba(240, 249, 255, 0.8);
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.card-subtitle {
    font-size: 12px;
    color: #888;
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* =========================================
   SERVICES SECTION — BENTO BOX
   ========================================= */

.services-section {
    padding: 100px 20px;
    
    /* El truco maestro: Fusionamos el fondo. 
       Empieza con el blanco del Hero y a los 150px (justo en el espacio vacío) se vuelve el gris de las tarjetas */
    background: linear-gradient(to bottom, #fafdfc 0%, #f4f7f6 150px, #f4f7f6 100%);
}

/* --- Encabezado de Sección --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-eyebrow {
    display: inline-block;
    background: linear-gradient(90deg, rgba(0,180,216,0.12) 0%, rgba(32,201,151,0.12) 100%);
    color: #0b9aad;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0,180,216,0.2);
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0b1c2c;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin: 0;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.span-2-cols { grid-column: span 2; }

/* --- Tarjeta Base — Estética Minimalista --- */
.bento-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e8f0;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: none;
    gap: 20px;
    position: relative; /* VITAL: Esto encierra la magia dentro de la tarjeta */
    cursor: pointer; /* Hace que el mouse cambie a la 'manito' en toda el área */
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    border-color: #00b4d8;
}

/* --- Ícono --- */
.bento-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,180,216,0.08) 0%, rgba(32,201,151,0.08) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0,180,216,0.12);
}

/* --- Cuerpo de la Tarjeta --- */
.bento-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bento-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1c2c;
    margin: 0;
    line-height: 1.3;
}

.bento-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    /* ELIMINAMOS margin-top: auto; de aquí */
}

/* --- Enlace de Servicio --- */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500; /* Reducimos la negrita a 500 */
    font-size: 15px;
    color: #00b4d8;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    /* AÑADIMOS ESTO AQUÍ: Empuja el botón hacia abajo, respetando el texto de arriba */
    margin-top: auto;
    padding-top: 20px;
}

.service-link .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: #20c997;
}

.service-link:hover .arrow {
    transform: translateX(5px);
}

.service-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Responsive Bento Móvil — dentro del media existente (ver abajo) */

/* =========================================
   RESPONSIVE MÓVIL (max-width: 992px)
   ========================================= */

/* --- Hamburguesa: oculto en desktop --- */
.hamburger-btn {
    display: none;
}

@media (max-width: 992px) {

    /* ---- 1. Cápsula y Logo ---- */
    .header-container {
        padding: 10px 20px;
        position: relative; /* Vital: ancla el dropdown a la cápsula */
    }

    .logo-img {
        height: 40px; /* Logo más compacto para cápsula delgada */
    }

    .logo-text {
        font-size: 16px;
    }

    /* --- Ocultar CTA en móvil --- */
    .header-cta {
        display: none;
    }

    /* ---- Botón Hamburguesa ---- */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        padding: 4px;
        background: none;
        border: none;
    }

    .bar {
        width: 25px;
        height: 2px;
        background: #0f172a;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        display: block;
    }

    /* Animación X cuando el menú está activo */
    .hamburger-btn.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-btn.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger-btn.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ---- 2. Menú tipo Cortina (Dropdown desde la cápsula) ---- */
    .main-nav {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: #ffffff;
        border-radius: 24px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        padding: 25px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.menu-open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    /* ---- Links del Menú Dropdown ---- */
    .nav-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px;
        font-weight: 600;
        color: #0b1c2c;
    }

    .nav-links a:hover {
        color: #00b4d8;
    }

/* ---- 3. Hero Section Móvil — Centrado ---- */
    .hero-section {
        padding: 120px 20px 60px; /* ¡Aquí corregimos el espacio gigante! Bajamos de 180px a 120px */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto 24px auto; /* Esto obliga a la cápsula verde a centrarse */
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-title br {
        display: none; /* TRUCO PRO: Ocultamos los <br> del escritorio en el celular para que el texto fluya y se centre perfecto */
    }

    .hero-description {
        max-width: 100%;
        margin: 0 auto 30px auto; /* Centrado perfecto */
    }

    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
        gap: 30px;
    }

    .hero-image-wrapper {
        min-height: 380px;
        padding: 0 20px;
    }

    .card-top-right {
        right: 20px;
    }

    .card-bottom-left {
        left: 20px;
    }

    /* ---- Bento Grid Móvil ---- */
    .services-section {
        padding: 70px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    /* Resetear todos los spans para que todo ocupe 1 columna */
    .span-2-cols,
    .span-2-rows {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        padding: 28px;
    }
}

/* --- Ajustes extra para pantallas muy pequeñas --- */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .floating-card {
        padding: 10px 15px;
        transform: scale(0.85);
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-header {
        margin-bottom: 40px;
    }
}


/* =========================================
   SIDE SHEET — PANEL LATERAL DINÁMICO
   ========================================= */

.side-sheet-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 28, 44, 0.4);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 2000; opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    scroll-behavior: smooth;
}

.side-sheet-panel {
    position: absolute; top: 0; right: 0;
    width: 550px; /* Ensanchado para que parezca revista */
    max-width: 100%; height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 40px;
    display: flex; flex-direction: column; overflow-y: auto;
    overscroll-behavior: contain;
}

.side-sheet-overlay.active { opacity: 1; pointer-events: all; }
.side-sheet-overlay.active .side-sheet-panel { transform: translateX(0); }
body.no-scroll { overflow: hidden; }

.close-sheet-btn {
    /* Hacemos la X pegajosa (Sticky) */
    position: sticky; top: 0; right: 0; z-index: 100;
    align-self: flex-end; background: #f8fafc; border: none; cursor: pointer;
    padding: 10px; margin-bottom: 20px; border-radius: 50%;
    transition: background 0.3s ease; flex-shrink: 0; display: flex;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Sombrita para que resalte sobre el texto */
}
.close-sheet-btn:hover { background: #e2e8f0; }

.side-sheet-content { display: flex; flex-direction: column; flex: 1; }
.sheet-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 700; color: #0b1c2c; margin: 0 0 16px 0; line-height: 1.2; }
.sheet-text { color: #475569; font-size: 1rem; line-height: 1.7; margin: 0; }
.sheet-subtitle { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; font-weight: 700; color: #0b1c2c; margin: 35px 0 15px 0; }

/* --- Carrusel Táctil --- */
.sheet-carousel {
    display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 25px 0; padding-bottom: 10px;
}
.sheet-carousel::-webkit-scrollbar { height: 6px; }
.sheet-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.carousel-slide {
    min-width: 85%; scroll-snap-align: center; border-radius: 16px; overflow: hidden; flex-shrink: 0;
}
.carousel-slide img {
    width: 100%; height: 220px; object-fit: cover; display: block;
}

/* --- Acordeones (Metodología) --- */
.accordion-item {
    border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.accordion-header {
    padding: 16px 20px; background: #f8fafc; font-weight: 600; color: #0b1c2c;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;
}
.accordion-header::after {
    content: '+'; font-size: 1.4rem; transition: transform 0.3s ease; font-weight: 400; color: #00b4d8;
}
.accordion-item.active .accordion-header::after { transform: rotate(45deg); }
.accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #ffffff;
}
.accordion-body p {
    padding: 15px 20px; margin: 0; color: #475569; font-size: 0.95rem; line-height: 1.6;
}

/* Botón fijo abajo */
.sheet-cta-wrapper {
    margin-top: auto; padding-top: 40px; display: flex;
}
.sheet-cta-wrapper .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }

@media (max-width: 576px) {
    .side-sheet-panel { padding: 30px 20px; }
    .sheet-title { font-size: 1.8rem; }
}
/* Puntero de lupa en las fotos */
.carousel-slide img { cursor: zoom-in; transition: opacity 0.2s; }
.carousel-slide img:hover { opacity: 0.85; }

/* Estilos del Lightbox */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-overlay img { max-width: 95%; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.close-lightbox { 
    position: absolute; top: 20px; right: 20px; background: none; 
    border: none; color: white; font-size: 30px; cursor: pointer; padding: 10px;
}
/* =========================================
   NUEVO: INDICADOR DE ZOOM EN CARRUSEL
   ========================================= */

/* Contenedor relativo para anclar el ícono */
.carousel-slide-wrapper {
    position: relative;
    width: 100%;
    height: 220px; /* Misma altura de la imagen en tu CSS */
    border-radius: 16px;
    overflow: hidden; /* Mantiene la foto y el ícono dentro de los bordes redondeados */
    display: flex;
}

/* Ajuste sutil a la imagen (ya está redondeada por el wrapper) */
.carousel-slide img {
    border-radius: 0; /* Quitamos el radio directo de la imagen para que lo herede del wrapper */
}

/* El Ícono de Zoom (Glassmorphism minimalista) */
.zoom-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 28, 44, 0.65); /* Fondo azul oscuro traslúcido */
    backdrop-filter: blur(4px); /* Difuminado detrás del ícono */
    -webkit-backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Círculo perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* El ícono no interfiere con el clic en la foto */
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.25); /* Bordecito blanco casi invisible */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Feedback visual al pasar el mouse por la foto en escritorio */
.carousel-slide-wrapper:hover .zoom-indicator {
    transform: scale(1.1); /* Crece sutilmente */
    background: rgba(11, 28, 44, 0.85); /* Se oscurece un poco */
}


/* =========================================
   NOSOTROS / ABOUT SECTION
   ========================================= */

.about-section {
    background-color: #ffffff;
    
    /* El Truco: Curvas de Nivel / Ondas de Agua + Luces de la Marca */
    background-image: 
        /* 1. Las líneas curvas espaciadas cada 48px (color azul corporativo al 2.5%) */
        repeating-radial-gradient(circle at 100% 0%, transparent 0, transparent 47px, rgba(11, 28, 44, 0.025) 48px, rgba(11, 28, 44, 0.025) 49px),
        /* 2. Luz Cyan a la izquierda */
        radial-gradient(circle at -10% 50%, rgba(0, 180, 216, 0.05) 0%, transparent 50%),
        /* 3. Luz Verde a la derecha */
        radial-gradient(circle at 110% 100%, rgba(32, 201, 151, 0.04) 0%, transparent 50%);
        
    background-size: 100% 100%;
    background-position: center;
    
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Visual Stack (Editorial Overlap) ---- */
.visual-stack {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.stack-bg-img {
    width: 90%;
    height: 580px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(11, 28, 44, 0.08);
    display: block;
}

/* ---- Founder Card ---- */
.founder-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 44px 36px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    /* Efecto Overlap ↓ */
    position: absolute;
    bottom: 40px;
    right: -40px;
    width: 360px;
    z-index: 2;
}

.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 180, 216, 0.12);
}

/* Foto circular */
.founder-img-wrapper {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 180, 216, 0.1);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0,180,216,0.08), rgba(32,201,151,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    animation: breathingPulse 4s ease-in-out infinite;
}

@keyframes breathingPulse {
    0%   { box-shadow: 0 0 0 0px  rgba(32, 201, 151, 0.08); }
    50%  { box-shadow: 0 0 0 15px rgba(0,  180, 216, 0.15); }
    100% { box-shadow: 0 0 0 0px  rgba(32, 201, 151, 0.08); }
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Info del fundador */
.founder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.founder-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0b1c2c;
    margin: 0;
    letter-spacing: -0.4px;
}

.founder-role {
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
    letter-spacing: 0.2px;
}

/* =========================================
   NUEVO: Verified Trust Pill
   ========================================= */

.verified-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.08) 0%, rgba(32, 201, 151, 0.08) 100%);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(0, 180, 216, 0.15);
    margin-top: 5px; /* Un poco de aire con el cargo */
    pointer-events: none; /* No interfiere con el hover de la tarjeta */
}

.verified-trust-pill span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0b9aad; /* Tono cyan oscuro corporativo */
    letter-spacing: 0.3px;
}

/* feedback visual al pasar el mouse por la tarjeta */
.founder-card:hover .verified-trust-pill {
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.05);
}

/* Botón LinkedIn */
.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: transparent;
    color: #0b1c2c;
    padding: 11px 26px;
    border-radius: 50px;
    border: 1.5px solid #cbd5e1;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.25);
    transform: translateY(-2px);
}

/* ---- Encabezado de la columna derecha ---- */
.about-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
}

.about-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0b1c2c;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin: 0;
}

/* ---- Navegación de Pestañas ---- */
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 32px;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    color: #94a3b8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #0b1c2c;
}

.tab-btn.active {
    color: #0b1c2c;
    border-bottom-color: #00b4d8;
}

/* ---- Paneles de Pestañas ---- */
.tabs-content {
    position: relative;
    min-height: 350px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tab-text {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 14px 0;
}

.tab-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
}

.tab-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Responsive About Section ---- */
@media (max-width: 992px) {
    .about-section {
        padding: 70px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }

    .stack-bg-img {
        display: none;
    }

    .visual-stack {
        width: 100%;
        max-width: 100%;
        display: flex;
    }

    .founder-card {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 420px;
        text-align: center;
        align-items: center;
    }

    .experience-badge {
        display: flex;
        justify-content: center;
    }

    .info-column {
        width: 100%;
        text-align: center;
    }

    .about-header {
        align-items: center;
    }

    .tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        border-bottom: none;
        row-gap: 8px;
    }

    .tab-btn {
        border: 1.5px solid #e2e8f0;
        border-radius: 50px;
        margin-bottom: 0;
        padding: 8px 18px;
        font-size: 0.88rem;
    }

    .tab-btn.active {
        border-color: #00b4d8;
        background-color: rgba(0, 180, 216, 0.06);
        border-bottom-color: #00b4d8;
    }

    .about-title {
        font-size: 2rem;
    }

    /* 1. Matamos el salto de sección dándole más altura base en móviles */
    .tabs-content {
        min-height: 550px;
    }

    /* 2. Hacemos el texto más angosto y centrado en la pantalla, pero alineado a la izquierda */
    .tab-pane p,
    .tab-list {
        max-width: 650px; 
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    /* Alineación vertical de iconos check con la primera línea */
    .tab-list li {
        align-items: flex-start;
        gap: 10px;
    }

    .tab-list li svg {
        flex-shrink: 0;
        margin-top: 3px;
        margin-right: 2px;
    }
} /* ← cierra @media (max-width: 992px) */

@media (max-width: 576px) {
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .about-title {
        font-size: 1.7rem;
    }

    /* Mantenemos el texto angosto solo para celulares */
    .tab-pane p,
    .tab-list {
        max-width: 320px; 
    }
}


/* =========================================
   PROCESO SECTION — AURA SUTIL (LUMINOSO)
   ========================================= */

.process-section {
    background-color: #fafdfc; /* Volvemos al blanco/gris súper limpio */
    
    /* El truco del "Aura": Dos luces gigantes y difuminadas en las esquinas */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 180, 216, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(32, 201, 151, 0.04) 0%, transparent 60%);
        
    padding: 120px 20px;
    overflow: hidden;
    position: relative;
}

/* Devolvemos el título a su color oscuro original */
.process-section .section-title {
    color: #0b1c2c;
}

/* --- Timeline Container --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Ajustamos la línea de fondo de regreso a gris claro */
.timeline-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e2e8f0; /* Gris claro */
    border-radius: 4px;
    z-index: 0;
}

/* --- Progreso de la línea (glow degradado) --- */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #00b4d8 0%, #20c997 100%);
    border-radius: 4px;
    transition: height 0.1s linear;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.6), 0 0 30px rgba(0, 180, 216, 0.2);
}

/* --- Items de la timeline --- */
.timeline-item {
    display: flex;
    width: 100%;
    position: relative;
    margin-bottom: 60px;
    z-index: 1;
}

.timeline-item.left {
    justify-content: flex-start;
    text-align: right;
    padding-right: 50%;
}

.timeline-item.right {
    justify-content: flex-end;
    text-align: left;
    padding-left: 50%;
}

/* Los círculos inactivos vuelven a ser claros */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc; /* Gris ultra claro */
    color: #94a3b8; /* Texto gris */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s ease;
    border: 4px solid #fafdfc; /* Borde igual al fondo para cortar la línea */
}

/* --- Estado GLOW del dot (activado por JS) --- */
.timeline-dot.glow {
    background: linear-gradient(135deg, #00b4d8 0%, #20c997 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    animation: pulseGlow 2s ease-out infinite;
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.4); }
    70%  { box-shadow: 0 0 0 20px rgba(32, 201, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); }
}

/* --- Tarjetas de contenido --- */
.timeline-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(11, 28, 44, 0.06);
    border: 1px solid #e2e8f0;
    width: 85%;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
}

.timeline-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px rgba(0, 180, 216, 0.1);
    border-color: rgba(0, 180, 216, 0.3);
}

.timeline-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1c2c;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.timeline-card p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* --- Animación de entrada de tarjetas --- */

/* Tarjetas LEFT: entran desde la izquierda */
.timeline-item.left .timeline-card {
    opacity: 0;
    transform: translateX(-50px);
}

/* Tarjetas RIGHT: entran desde la derecha */
.timeline-item.right .timeline-card {
    opacity: 0;
    transform: translateX(50px);
}

/* Clase .show activa la entrada (aplicada por JS) */
.timeline-item.left .timeline-card.show,
.timeline-item.right .timeline-card.show {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* =========================================
   RESPONSIVE PROCESO — max-width: 992px
   ========================================= */

@media (max-width: 992px) {

    .process-section {
        padding: 70px 20px;
    }

    /* Línea: se mueve al borde izquierdo */
    .timeline-track {
        left: 20px;
        transform: none;
    }

    /* Todos los items al mismo layout: pegados a la línea izquierda */
    .timeline-item.left,
    .timeline-item.right {
        justify-content: flex-end;
        text-align: left;
        padding: 0 0 0 60px;
        width: 100%;
    }

    /* Dots alineados con la línea izquierda */
    .timeline-dot {
        left: 20px;
        top: 30px;
        transform: translate(-50%, 0);
    }

    /* Tarjetas ocupan todo el ancho disponible */
    .timeline-card {
        width: 100%;
    }

    /* En móvil las animaciones vienen desde abajo (sin desbordamiento horizontal) */
    .timeline-item.left .timeline-card,
    .timeline-item.right .timeline-card {
        opacity: 0;
        transform: translateY(30px);
    }

    .timeline-item.left .timeline-card.show,
    .timeline-item.right .timeline-card.show {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* =============================================
   PORTAFOLIO SECTION — CSS
   INSTRUCCIÓN: Pega este bloque en tu style.css
   UBICACIÓN: Al final del archivo, antes del último cierre
   ============================================= */

/* ---- Sección principal ---- */
.portfolio-section {
    padding: 120px 0 100px;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 80% 0%, rgba(0, 180, 216, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 100%, rgba(32, 201, 151, 0.03) 0%, transparent 50%);
    overflow: hidden;
    position: relative;
    display: block; 
}

/* Encabezado: ajustamos la distancia hacia las flechas */
.portfolio-section .section-header {
    position: relative;
    margin-bottom: 30px; 
}

/* ---- Controles (flechas) ---- */
.portfolio-controls {
    display: flex;
    justify-content: center; /* Magia: Flechas al centro absoluto */
    gap: 40px; /* Flechas más separadas para no verse apretadas */
    width: 100%;
    margin: 0 auto 45px auto; /* Distancia perfecta de las flechas hacia las fotos */
    padding: 0;
}

.portfolio-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #0b1c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.portfolio-arrow:hover {
    border-color: #00b4d8;
    color: #00b4d8;
    background-color: rgba(0, 180, 216, 0.05);
    transform: scale(1.08);
}

.portfolio-arrow:active {
    transform: scale(0.96);
}

/* ---- Outer: el viewport visible con fade en bordes ---- */
.marquee-outer {
    overflow: hidden;
    /* Efecto Fade en los bordes (el truco maestro) */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    cursor: grab;
}

.marquee-outer:active {
    cursor: grabbing;
}

/* ---- Track: la cinta que se mueve ---- */
.marquee-track {
    display: flex;
    gap: 24px;
    /* La animación infinita por defecto */
    animation: marqueeScroll 40s linear infinite;
    /* width se calcula en JS tras duplicar el contenido */
    will-change: transform;
    padding: 20px 40px; /* Padding lateral para que las sombras no se corten */
}

/* Pausa al pasar el cursor (solo desktop) */
@media (hover: hover) {
    .marquee-outer:hover .marquee-track {
        animation-play-state: paused;
    }
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Cuando el JS toma el control (modo manual) */
.marquee-track.is-manual {
    animation: none;
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Tarjetas del portafolio ---- */
.portfolio-card {
    position: relative;
    width: 360px;
    height: 480px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 28, 44, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Fondo mientras carga la imagen */
    background-color: #e8f0ef;
}

.portfolio-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 50px rgba(11, 28, 44, 0.14);
}

/* Imagen: cubre toda la tarjeta */
.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-card:hover img {
    transform: scale(1.04);
}

/* Degradado oscuro en la base */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 28, 44, 0.72) 0%,
        rgba(11, 28, 44, 0.25) 40%,
        transparent 70%
    );
    pointer-events: none;
}

/* ---- Ubicación (esquina inferior izquierda) ---- */
.card-location {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.card-location svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* ---- Botón Zoom (esquina superior derecha) — Glassmorphism ---- */
.card-zoom-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-6px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.portfolio-card:hover .card-zoom-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(0) scale(1.1) !important;
}

.card-zoom-btn:active {
    transform: scale(0.95) !important;
}

/* ---- Lightbox del Portafolio ---- */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 20, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.portfolio-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-lightbox.active img {
    transform: scale(1);
}

.portfolio-lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.portfolio-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

/* =========================================
   RESPONSIVE PORTAFOLIO
   ========================================= */

@media (max-width: 992px) {
    /* 1. Convertimos la sección en una columna ordenable */
    .portfolio-section {
        padding: 70px 0 60px;
        display: flex;
        flex-direction: column;
    }

    /* 2. El título se queda arriba (Posición 1) */
    .portfolio-section .section-header {
        order: 1;
        margin-bottom: 30px; /* Distancia perfecta entre el título y las fotos */
    }

    /* 3. El carrusel de imágenes pasa al medio (Posición 2) */
    .marquee-outer {
        order: 2;
        /* Mantenemos el fade lateral suave que ya tenías */
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    /* 4. ¡Las flechas bajan al final! (Posición 3) */
    .portfolio-controls {
        order: 3;
        justify-content: center; /* Flechas 100% centradas */
        margin-top: 30px; /* Distancia de respiro entre las fotos y las flechas */
        padding: 0;
    }

    /* En tablet/móvil el fade lateral es más suave para no cortar demasiado */
    .marquee-outer {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 5%,
            black 95%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 5%,
            black 95%,
            transparent 100%
        );
    }

    .portfolio-card {
        width: 290px;
        height: 390px;
        border-radius: 16px;
    }

    /* En móvil el botón zoom siempre visible (no hay hover) */
    .card-zoom-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .marquee-track {
        gap: 18px;
        padding: 16px calc(50vw - 145px);
    }
}

@media (max-width: 576px) {
    .portfolio-card {
        width: 240px;
        height: 320px;
        border-radius: 14px;
    }

    .marquee-track {
        padding: 16px calc(50vw - 120px);
    }

    .portfolio-controls {
        padding: 0 20px;
    }

    .portfolio-arrow {
        width: 42px;
        height: 42px;
    }
}

/* FIN DEL CSS DEL PORTAFOLIO */

/* ============================================================
   CSS — SECCIÓN DE CONTACTO (FORMULARIO CONVERSACIONAL)
   ============================================================ */

/* ============================================================
   1. SECCIÓN WRAPPER — FONDO INMERSIVO
   ============================================================ */

.cf-section {
    /* Mínimo 100vh para pantalla completa */
    position: relative;
    min-height: 100dvh; /* dvh para móviles (evita el salto del browser bar) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(80px, 10vw, 120px) clamp(16px, 5vw, 40px);
    overflow: hidden;
}


/* ============================================================
   2. FONDO: IMAGEN + OVERLAY OSCURO ELEGANTE
   ============================================================ */

.cf-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Imagen de paisajismo premium (Unsplash) */
.cf-bg__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Slight blur en la imagen de fondo — inmersivo */
    filter: blur(3px) brightness(0.75);
    transform: scale(1.04); /* evita bordes blancos del blur */
}

/* Overlay oscuro con gradiente elegante */
.cf-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 15, 30, 0.85) 0%,
        rgba(0, 35, 60, 0.80) 50%,
        rgba(0, 50, 70, 0.75) 100%
    );
    /* backdrop-filter adicional sobre la imagen */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


/* ============================================================
   3. WRAPPER CENTRADOR
   ============================================================ */
.cf-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px; /* 🔥 Aumentado de 600px a 780px para más presencia */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================================
   4. LA TARJETA BLANCA CENTRAL
   ============================================================ */

.cf-card {
    background: #ffffff;
    border-radius: 24px;
    /* Sombra profunda y elegante — capas múltiples */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.10),
        0 32px 80px rgba(0, 0, 0, 0.16);
    width: 100%;
    overflow: hidden;
    /* Permite que el card crezca en móvil sin alturas fijas */
    display: flex;
    flex-direction: column;
}


/* ============================================================
   5. CABECERA DE LA TARJETA
   ============================================================ */

.cf-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px 0;
}

/* Botón Volver Atrás */
.cf-btn-back {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: #f4f6f8;
    border-radius: 50%;
    color: #0b1c2c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.cf-btn-back:hover {
    background: #e8edf2;
    color: #00b4d8;
    transform: translateX(-2px);
}

/* Contenedor de la barra de progreso + label */
.cf-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Barra de progreso delgada */
.cf-progress-bar {
    height: 3px;
    background: #eef1f4;
    border-radius: 100px;
    overflow: hidden;
}

/* Relleno con el gradiente primario de tu marca */
.cf-progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #00b4d8 0%, #20c997 100%);
    /* Transición suave al cambiar de ancho */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 33%;  /* Valor inicial: paso 1 de 3 */
}

/* Label de paso (1/3) */
.cf-step-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9eaab5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ============================================================
   6. CUERPO DE LA TARJETA
   ============================================================ */
.cf-card__body {
    padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 40px) clamp(32px, 5vw, 48px);
    flex: 1;
    overflow: hidden;
    display: grid; /* 🔥 MAGIA: Grid para apilar los pasos perfectamente */
    align-items: start;
}


/* ============================================================
   7. PASOS — ESTRUCTURA GENERAL Y ANIMACIONES
   ============================================================ */
.cf-step {
    grid-area: 1 / 1; /* 🔥 Todos los pasos comparten la misma celda */
    width: 100%;
    animation: cfStepIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cf-step--hidden {
    display: none;
}

/* Animación de SALIDA Normal (Hacia arriba) */
.cf-step--exit {
    grid-area: 1 / 1;
    pointer-events: none;
    animation: cfStepOut 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
    /* Hemos eliminado el position: absolute problemático */
}

/* 🔥 NUEVAS: Animaciones Inversas para el botón "Volver" */
.cf-step--in-reverse {
    animation: cfStepInReverse 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cf-step--exit-reverse {
    grid-area: 1 / 1;
    pointer-events: none;
    animation: cfStepOutReverse 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Keyframes */
@keyframes cfStepIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cfStepOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-18px); }
}
@keyframes cfStepInReverse {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cfStepOutReverse {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(18px); }
}


/* ============================================================
   8. TIPOGRAFÍA DE LOS PASOS
   ============================================================ */

.cf-step__eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    /* Gradiente de texto con los colores de marca */
    background: linear-gradient(90deg, #00b4d8, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.cf-step__question {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: #0b1c2c;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: clamp(24px, 4vw, 36px);
}

/* Texto resaltado con gradiente */
.cf-step__highlight {
    background: linear-gradient(90deg, #00b4d8, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================================
   9. GRID DE OPCIONES (BOTONES DE SELECCIÓN)
   ============================================================ */

.cf-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Botón de opción */
.cf-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f8fafb;
    border: 1.5px solid #e8edf2;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2d4255;
    cursor: pointer;
    text-align: left;
    /* Transición triple — color, borde, sombra */
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icono dentro del botón */
.cf-option-btn__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

/* Hover elegante */
.cf-option-btn:hover {
    background: #f0fafc;
    border-color: #00b4d8;
    color: #0b1c2c;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.12);
    transform: translateY(-2px);
}

.cf-option-btn:hover .cf-option-btn__icon {
    background: rgba(0, 180, 216, 0.12);
}

.cf-option-btn:hover svg {
    stroke: #00b4d8;
}

/* Estado seleccionado (activo) */
.cf-option-btn--selected {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(32, 201, 151, 0.08));
    border-color: #00b4d8;
    color: #0b1c2c;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.18);
}

.cf-option-btn--selected .cf-option-btn__icon {
    background: linear-gradient(135deg, #00b4d8, #20c997);
}

.cf-option-btn--selected .cf-option-btn__icon svg {
    stroke: #ffffff;
}

/* Feedback táctil al hacer click */
.cf-option-btn:active {
    transform: translateY(0) scale(0.98);
}


/* ============================================================
   10. CAMPOS DE INPUT — FLOATING LABELS
   ============================================================ */

.cf-fields {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

/* Grupo: input + label flotante + línea iluminada */
.cf-field-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* El input */
.cf-input {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #0b1c2c;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #d2dce6;
    padding: 12px 0 10px;
    outline: none;
    width: 100%;
    transition: border-color 0.25s ease;
    /* Evita que el autofill del browser cambie el fondo */
    caret-color: #00b4d8;
}

.cf-input:-webkit-autofill,
.cf-input:-webkit-autofill:hover,
.cf-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0b1c2c;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Label flotante */
.cf-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8fa0b0;
    position: absolute;
    left: 0;
    top: 12px;
    pointer-events: none;
    transform-origin: left top;
    /* Transición suave de posición y tamaño */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

/* Estado flotado: cuando el input tiene contenido O está en focus */
.cf-input:focus ~ .cf-label,
.cf-input:not(:placeholder-shown) ~ .cf-label {
    transform: translateY(-20px) scale(0.82);
    color: #00b4d8;
}

/* Línea de iluminación al hacer focus */
.cf-field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #20c997);
    border-radius: 100px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cf-input:focus ~ .cf-label ~ .cf-field-line,
.cf-input:focus ~ .cf-field-line {
    width: 100%;
}

/* Orden correcto en el DOM para el hermano adyacente */
.cf-field-group .cf-input:focus + .cf-label + .cf-field-line {
    width: 100%;
}


/* ============================================================
   11. BOTÓN DE SUBMIT PREMIUM
   ============================================================ */

.cf-btn-submit {
    width: 100%;
    padding: 17px 28px;
    background: linear-gradient(135deg, #00b4d8 0%, #20c997 100%);
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    /* Sombra de color (glow) */
    box-shadow: 0 6px 24px rgba(0, 180, 216, 0.35);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* Efecto shimmer sobre el botón */
.cf-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s ease;
}

.cf-btn-submit:hover::before {
    left: 100%;
}

.cf-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 180, 216, 0.45);
}

.cf-btn-submit:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

/* Estado de carga del botón */
.cf-btn-submit--loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Spinner oculto por defecto */
.cf-btn-submit__spinner {
    display: none;
    animation: cfSpin 0.8s linear infinite;
}

.cf-btn-submit--loading .cf-btn-submit__text {
    display: none;
}

.cf-btn-submit--loading .cf-btn-submit__spinner {
    display: flex;
}

@keyframes cfSpin {
    to { transform: rotate(360deg); }
}


/* ============================================================
   12. NOTA DE PRIVACIDAD
   ============================================================ */

.cf-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #a8b8c4;
    text-align: center;
}

.cf-privacy-note svg {
    flex-shrink: 0;
    stroke: #a8b8c4;
}


/* ============================================================
   13. PANTALLA DE ÉXITO (PASO 4)
   ============================================================ */

.cf-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
}

/* Contenedor del SVG check animado */
.cf-success__icon {
    margin-bottom: 28px;
}

/* SVG del check — tamaño */
.cf-checkmark {
    width: 72px;
    height: 72px;
}

/* Círculo exterior — se dibuja con stroke-dasharray */
.cf-checkmark__circle {
    stroke: #20c997;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    animation: cfCircleDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

/* La palomita — se dibuja después del círculo */
.cf-checkmark__check {
    stroke: #00b4d8;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: cfCheckDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards;
}

@keyframes cfCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes cfCheckDraw {
    to { stroke-dashoffset: 0; }
}

.cf-success__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    color: #0b1c2c;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cf-success__message {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #5a7080;
    max-width: 380px;
    margin-bottom: 28px;
}

.cf-success__message strong {
    color: #0b1c2c;
    font-weight: 600;
}

/* Resumen de selecciones del usuario */
.cf-success__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Cada chip del resumen */
.cf-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(32, 201, 151, 0.08));
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 100px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #2d6a7a;
}

.cf-summary-chip svg {
    stroke: #00b4d8;
    flex-shrink: 0;
}


/* ============================================================
   14. RESPONSIVE — MÓVIL PRIMERO
   ============================================================ */

/* Tablet y desktop — la card no crece demasiado */
@media (min-width: 640px) {
    .cf-card__header {
        padding: 26px 36px 0;
    }
    .cf-card__body {
        padding: 40px 48px 52px;
    }
}

/* Móvil — ajustes críticos para que el teclado no rompa el layout */
@media (max-width: 480px) {
    .cf-section {
        padding: 60px 16px;
        /* En móvil el dvh evita que el teclado virtual rompa el layout */
        min-height: 100svh;
        align-items: flex-start;
        padding-top: 80px;
    }

    .cf-card {
        border-radius: 20px;
        min-height: 540px; /* 🔥 Hace la tarjeta un poco más alargada en celular */
    }

    .cf-card__header {
        padding: 18px 20px 0;
    }

    .cf-card__body {
        padding: 24px 20px 32px;
    }

    .cf-step__question {
        font-size: 20px;
        margin-bottom: 22px;
    }

    /* En móvil, las opciones van en una sola columna si son largas */
    .cf-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cf-option-btn {
        padding: 14px 16px;
        font-size: 13.5px;
    }

    .cf-btn-submit {
        font-size: 14px;
        padding: 15px 24px;
    }

    .cf-step-label {
        font-size: 10px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .cf-section {
        padding: 70px 12px 40px;
    }
    .cf-card__body {
        padding: 20px 16px 28px;
    }
}

/* FIN DEL CSS DE CONTACTO */

/* ============================================================
   SECCIÓN REDES SOCIALES (PRE-FOOTER)
   ============================================================ */

.social-proof-section {
    background-color: #fafdfc;
    padding: 100px 20px;
    overflow: hidden; /* Vital para que el truco del desborde en móvil funcione */
    display: flex;
    justify-content: center;
}

.social-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 32px;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    box-shadow: 0 20px 50px rgba(11, 28, 44, 0.05);
    border: 1px solid rgba(0, 180, 216, 0.1);
}

/* --- Columna Izquierda --- */
.social-content {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Asegura que todo parta desde la izquierda en Desktop */
}

/* Le damos un margen exclusivo a la cápsula en esta sección */
.social-content .section-eyebrow {
    margin-bottom: 28px; /* Espacio generoso antes del título */
}

.social-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #0b1c2c;
    line-height: 1.15;
    margin-bottom: 28px; /* Aumentado de 20px a 28px */
    letter-spacing: -0.5px;
}

.social-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 45px; /* Aumentado de 35px a 45px para separar bien los botones */
}

/* --- Botones --- */
.social-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Instagram con su gradiente oficial */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.25);
}

.btn-instagram:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(220, 39, 67, 0.4);
}

/* Facebook con su azul oficial */
.btn-facebook {
    background: #1877F2;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
}

.btn-facebook:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(24, 119, 242, 0.4);
}

/* --- Columna Derecha (Mockup) --- */
.social-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-img {
    width: 120%; /* Lo hacemos más grande que su contenedor */
    max-width: 600px;
    height: auto;
    /* Movemos la imagen un poco a la derecha y le damos efecto flotante */
    transform: scale(1.1) translateX(5%);
    filter: drop-shadow(0 30px 50px rgba(11, 28, 44, 0.15));
    display: block;
    transition: transform 0.5s ease;
}

.social-container:hover .mockup-img {
    transform: scale(1.12) translateX(3%) translateY(-10px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .social-container {
        flex-direction: column;
        padding: 50px 30px 0 30px; /* Quitamos padding inferior para que el celular toque la base */
        text-align: center;
        gap: 40px;
    }

    .social-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-content .section-eyebrow {
        margin-bottom: 20px; 
    }

    .social-title {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }

    .social-description {
        margin-bottom: 35px;
    }

    .social-buttons {
        justify-content: center;
    }

    .social-mockup {
        width: 100%;
        overflow: visible;
        margin-top: 10px; /* Un poco de respiro extra desde los botones */
    }

    .mockup-img {
        width: 100%; /* Volvemos al 100% para que no se corte */
        max-width: 480px; /* Tamaño máximo para que no se vea gigante en tablets */
        /* Quitamos el empuje hacia la derecha y lo centramos perfecto */
        transform: translateX(0) translateY(0); 
    }
    
    .social-container:hover .mockup-img {
        transform: translateX(0) translateY(-8px); /* Hover sutil hacia arriba en móvil */
    }
}

@media (max-width: 576px) {
    .social-proof-section {
        padding: 60px 16px;
    }

    .social-container {
        padding: 40px 20px 0 20px;
        border-radius: 24px;
    }

    .social-title {
        font-size: 1.8rem;
    }

    .btn-social {
        width: 100%;
        justify-content: center;
    }

    .mockup-img {
        width: 100%; /* Nada de 150%, lo mantenemos contenido */
        transform: translateX(0) translateY(0);
        margin-top: 15px; /* Separación de los botones en celulares pequeños */
    }
}

/* ============================================================
   FOOTER (ULTRA PREMIUM B2B)
   ============================================================ */

.site-footer {
    background-color: #0b1c2c;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Contenedor principal Grid */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
}

/* Títulos de las columnas */
.footer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* Columna 1: Marca */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 320px;
}

/* Columna 2: Navegación */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: #00b4d8;
    transform: translateX(3px);
}

/* Columna 3: Contacto */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact-list svg {
    color: #00b4d8;
    flex-shrink: 0;
}

/* Columna 4: Horario */
.footer-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-hours-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
}

.footer-hours-list .day {
    color: #ffffff;
    font-weight: 500;
}

.footer-hours-list .time {
    color: #94a3b8;
}

.footer-hours-list .time.emergency {
    color: #20c997;
    font-weight: 500;
}

/* Barra inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
}

.footer-credits {
    color: #475569;
}

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

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-description {
        margin: 0 auto;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* =========================================
   SELECTOR DE IDIOMA (EN / ES)
   ========================================= */
.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #dde6ee;
}

.lang-btn {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #5b6b7a;
    padding: 6px 11px;
    border-radius: 50px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn:hover {
    color: #0b1c2c;
}

.lang-btn.is-active {
    background: linear-gradient(90deg, #00b4d8 0%, #20c997 100%);
    color: #ffffff;
}

.lang-btn:focus-visible {
    outline: 2px solid #00b4d8;
    outline-offset: 2px;
}

/* En móvil: el CTA se oculta, pero el selector de idioma queda
   visible junto al botón hamburguesa */
@media (max-width: 992px) {
    .header-cta {
        display: flex;
        margin-left: auto;
        margin-right: 14px;
        order: 2;
    }

    .header-cta .btn-primary {
        display: none;
    }

    .hamburger-btn {
        order: 3;
    }

    .lang-btn {
        padding: 6px 10px;
    }
}

/* =========================================
   FORMULARIO — mensaje de error y anti-spam
   ========================================= */
.cf-error {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff1f1;
    border: 1px solid #ffd2d2;
    color: #c0392b;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.cf-error[hidden] {
    display: none;
}

/* Campo trampa: invisible para personas, visible para bots */
.cf-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
