 /* VARIABLES CSS - Consistencia Total */
        :root {
            --primary: #3B82F6;
            --secondary: #10B981;
            --bg-dark: #0F172A;
            --bg-card: rgba(30, 41, 59, 0.7);
            --bg-footer: #0a0f1d;
            --text-main: #F8FAFC;
            --text-dim: #94A3B8;
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --font-titles: 'Montserrat', sans-serif;
            --font-body: 'Poppins', sans-serif;
            
            --h2-size: clamp(2rem, 5vw, 2.5rem);
            --h3-size: 1.5rem;
            --h4-size: 1.2rem;
            --icon-size: 32px;
        }

        /* RESET & BASE */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: var(--font-body);
            background-color: var(--bg-dark);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1 { font-family: var(--font-titles); line-height: 1.1; font-size: clamp(2.5rem, 8vw, 4.2rem); font-weight: 900; }
        h2 { font-family: var(--font-titles); font-size: var(--h2-size); font-weight: 800; line-height: 1.2; }
        h3 { font-family: var(--font-titles); font-size: var(--h3-size); font-weight: 700; line-height: 1.3; }
        h4 { font-family: var(--font-titles); font-size: var(--h4-size); font-weight: 700; line-height: 1.4; }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
        section { padding: 100px 0; }

        .logo { cursor: pointer; display: flex; align-items: center; transition: var(--transition); z-index: 1100; }
        .logo img { height: 45px; width: auto; display: block; }

        /* ANIMACIÓN DE ICONOS */
        @keyframes float-ping-pong {
            0% { transform: translateX(0); }
            50% { transform: translateX(8px); }
            100% { transform: translateX(0); }
        }
        .animated-icon { width: var(--icon-size); height: var(--icon-size); animation: float-ping-pong 4s ease-in-out infinite; display: inline-block; }

        .reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); }
        .reveal.active { opacity: 1; transform: translateY(0); }


        /* ANIMACIONES DE ENTRADA */
            /* --- BASE (ESTADO INICIAL) --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1); /* Curva suave que evita rebotes innecesarios */
    will-change: transform, opacity;
}

/* --- ESTADO FINAL (POSICIÓN ORIGINAL DEL DATO) --- */
.reveal.active {
    opacity: 1;
    /* El 0 asegura que regrese exactamente a su lugar original */
    transform: translate(0, 0) scale(1); 
    filter: blur(0);
}

/* --- VARIANTES DE ENTRADA (SOLO PUNTOS DE PARTIDA) --- */

/* Entra desde la IZQUIERDA hacia la derecha (Posición original) */
.reveal.from-left {
    transform: translateX(-50px); /* Inicia 50px a la izquierda */
}

/* Entra desde la DERECHA hacia la izquierda (Posición original) */
.reveal.from-right {
    transform: translateX(50px); /* Inicia 50px a la derecha */
}

/* Entra desde ABAJO hacia arriba (Posición original) */
.reveal.from-bottom {
    transform: translateY(40px); /* Inicia 40px abajo */
}

/* Entra desde ARRIBA hacia abajo (Posición original) */
.reveal.from-top {
    transform: translateY(-40px); /* Inicia 40px arriba */
}




        /* HEADER TRANSPARENTE / SCROLLED */
        header {
            position: fixed;
            top: 0; width: 100%; z-index: 1000;
            background: transparent;
            backdrop-filter: blur(0px);
            border-bottom: 1px solid transparent;
            transition: background 0.3s ease, backdrop-filter 0.3s ease, border 0.3s ease;
        }
        header.scrolled {
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
        .nav-links { display: flex; gap: 2.5rem; align-items: center; }
        .nav-links a { font-weight: 400; font-size: 0.9rem; transition: var(--transition); }
        .nav-links a:hover { color: var(--primary); }

        .menu-toggle { display: none; background: none; border: none; color: white; cursor: pointer; z-index: 2201; padding: 10px; }

        /* MENU RESPONSIVE */
        .mobile-menu {
            position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
            background: #0f172af8; backdrop-filter: blur(20px);
            display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 2000;
        }
        .mobile-menu.active { right: 0; }
        .mobile-menu a { font-size: 1.5rem; font-family: var(--font-titles); font-weight: 700; }
        
        .close-menu {
            position: absolute;
            top: 2rem;
            right: 2rem;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }

        @media (min-width: 769px) {
            .menu-toggle { display: none; }
            .mobile-menu { display: none; } /* Asegurar que no interfiera en desktop */
        }

        .btn-cta {
            background: var(--primary); padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 700;
            display: flex; align-items: center; gap: 0.5rem; cursor: pointer; border: none; color: white; transition: var(--transition);
        }
        .btn-cta:hover { background: #2563EB; transform: scale(1.05); }

        /* PAGES LOGIC */
        .page-view { display: none; min-height: 100vh; }
        .page-view.active { display: block; animation: fadeIn 0.5s ease-in-out; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* HERO SECTION */
        .hero-full { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding-top: 80px; }
        .hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: #0F172A; }
        .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
        .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%); z-index: -1; }
        .hero-content-center { max-width: 850px; padding: 0 2rem; }
        .gradient-text { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        
        /* EFECTO TYPING CURSOR
        .typing-cursor {
            display: inline-block;
            color: var(--primary);
            animation: blink-cursor 1s step-end infinite;
            font-weight: 300;
            margin-left: 2px;
        }
        
        @keyframes blink-cursor {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        

        /* MARQUEE SECTION */
        .marquee-section {
            background: rgba(59, 130, 246, 0.05); 
            border-top: 1px solid rgba(255,255,255,0.05);
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 2rem 0;
            overflow: hidden;
            display: flex;
            justify-content: center;
            white-space: nowrap;
        }

        .marquee-content {
            display: flex;
            animation: marquee-slide 30s linear infinite;
        }

        .marquee-content h2 {
            font-family: var(--font-titles);
            font-size: clamp(1rem, 3vw, 1.5rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin: 0 2rem;
            color: var(--text-main);
            opacity: 0.7;
        }

        .marquee-content span {
            color: var(--primary);
        }

        @keyframes marquee-slide {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* GRIDS */
        .diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
        .grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 4rem; }
        .card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 24px; transition: var(--transition); height: 100%; text-align: left; display: flex; flex-direction: column; }
        .card:hover { border-color: var(--primary); transform: translateY(-10px); }

        .value-strip { background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05)); border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); padding: 10% 5%; display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
        .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 1rem; }

        @media (max-width: 992px) {
            .value-grid { grid-template-columns: 1fr; gap: 1.5rem; }
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
            .portfolio-preview { display: flex; flex-wrap: nowrap; gap: 0; width: 600%; grid-template-columns: none; }
            .portfolio-item { min-width: 100%; padding: 0 15px; background-clip: content-box; }
        }

        /* PORTFOLIO SECTION */
         /* --- PORTFOLIO SECTION CORREGIDA --- */
        .portfolio-viewport { 
            width: 100%; 
            margin-top: 2rem; 
        }

        .portfolio-preview {
            display: grid;
            /* Móvil por defecto: 1 columna (uno debajo del otro) */
            grid-template-columns: 1fr; 
            gap: 2rem;
            width: 100%;
        }

        .portfolio-item {
            position: relative;
            background: #1e293b;
            border: 1px solid rgba(255,255,255,0.1);
            overflow: hidden;
            border-radius: 20px; /* Borde redondeado solicitado */
            aspect-ratio: 16/10; /* Proporción agradable */
            transition: var(--transition);
        }

        .portfolio-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
            opacity: 0.8;
        }

        .portfolio-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        }

        .portfolio-item:hover img {
            transform: scale(1.1);
            opacity: 1;
        }

        .portfolio-info {
            position: absolute;
            bottom: 0; left: 0; width: 100%;
            padding: 1.5rem;
            background: linear-gradient(to top, rgba(15,23,42,0.95), transparent);
            z-index: 2;
        }

        .portfolio-info h4 {
            color: white;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        /* PC View: 3 Columnas */
        @media (min-width: 992px) {
            .portfolio-preview {
                /* Exactamente 3 columnas al lado */
                grid-template-columns: repeat(3, 1fr); 
            }
        }


        /* FOOTER */
        .site-footer { background-color: var(--bg-footer); padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; }
        .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 4rem; margin-bottom: 60px; }
        .footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: var(--transition); display: inline-block; }
        .footer-links a:hover { color: var(--primary); transform: translateX(5px); }
        .footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
        .footer-bottom p { color: var(--text-dim); font-size: 0.8rem; }

        /* FLOATING ACTIONS */
        .floating-actions-left { position: fixed; bottom: 2rem; left: 2rem; z-index: 2000; }
        .floating-actions-right { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 1rem; z-index: 2000; }
        .fab { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.4); transition: var(--transition); border: none; color: white; overflow: hidden; }
        .fab img { width: 100%; height: 100%; object-fit: cover; }
        .fab-whatsapp { background: var(--secondary); animation: pulse 2s infinite; }
        .fab-bot { background: #1E293B; border: 1px solid rgba(255,255,255,0.1); }
        .fab-home { background: var(--primary); }
        .fab:hover { transform: scale(1.1); }

        /* CHATBOT UI */
        .chat-window {
            position: fixed; bottom: 100px; right: 2rem; width: 340px;
            background: #1e293b; border-radius: 24px; border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 25px 50px rgba(0,0,0,0.6); display: none; flex-direction: column;
            z-index: 3000; overflow: hidden; animation: slideUp 0.3s ease-out;
        }
        @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        
        .chat-header {
            background: var(--primary);
            padding: 15px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .chat-header button:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .chat-body { padding: 1rem; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; scroll-behavior: smooth; }
        .chat-msg { background: #334155; padding: 0.8rem; border-radius: 15px; border-top-left-radius: 2px; font-size: 0.85rem; color: white; line-height: 1.4; max-width: 85%; }
        .chat-msg.user { background: var(--primary); align-self: flex-end; border-top-left-radius: 15px; border-top-right-radius: 2px; }
        
        .chat-input-area { padding: 1rem; background: #0F172A; display: flex; gap: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
        .chat-input { flex: 1; background: #1E293B; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: white; padding: 0.6rem; outline: none; font-size: 0.85rem; }
        .chat-send { background: var(--primary); border: none; color: white; padding: 0.6rem; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

        .btn-quote { margin-top: auto; background: rgba(59, 130, 246, 0.1); border: 1px solid var(--primary); color: var(--primary); padding: 0.8rem; border-radius: 12px; font-size: 0.85rem; font-weight: 700; text-align: center; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
        .btn-quote:hover { background: var(--primary); color: white; transform: translateY(-3px); }

        .loading-dots:after { content: ' .'; animation: dots 1.5s steps(5, end) infinite; }
        @keyframes dots { 0%, 20% { content: ' .'; } 40% { content: ' . .'; } 60% { content: ' . . .'; } 80%, 100% { content: ''; } }

        @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .menu-toggle { display: block; }
            .hero-content-center h1 { font-size: 2.5rem; }
            .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
            .floating-actions-left, .floating-actions-right { bottom: 1.5rem; }
            .diff-grid { grid-template-columns: 1fr; }
            .logo img { height: 35px; }
            .chat-window { width: 90%; right: 5%; bottom: 90px; }
        }




        /* --- Sección: ¿Por qué trabajar conmigo? (Reestructurada) --- */
.why-me-section {
   padding: 10% 5%;
}

.why-me-content {
    display: flex;
    gap: 4rem; /* Espacio entre el texto y las tarjetas */
    align-items: flex-start /* Centra verticalmente el contenido */
}

.why-me-text {
    flex: 2; /* Ocupa 40% (2/5) del espacio */
    text-align: left;
    max-width: 40%; /* Ajuste para evitar que se estire demasiado en pantallas grandes */
}

.why-me-text h2 {
    margin-bottom: 1rem; /* Espacio debajo del título */
}

.why-me-text .text-dim-override { /* Usar una clase para overridear el margin-bottom inline */
    color: var(--text-dim);
    margin-bottom: 2rem; /* Espacio debajo del subtítulo */
}

.why-me-cta {
    margin-top: 1rem; /* Ajuste el margen superior si es necesario */
}

.why-me-cards-grid {
    flex: 3; /* Ocupa 60% (3/5) del espacio */
    display: grid;
    /* Define 2 columnas para las dos primeras tarjetas y una para la tercera que abarca todo */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto; /* Dos filas, una para las dos primeras, otra para la tercera */
    gap: 2rem; /* Espacio entre las tarjetas */
    margin-top: 0; /* Reinicia el margin-top porque ya lo controla el flexbox principal */
}

/* Posicionamiento específico de las tarjetas en el grid */
.efficiency-card {
    grid-column: 1 / 2; /* Columna 1 */
    grid-row: 1 / 2;    /* Fila 1 */
}

.fidelity-card {
    grid-column: 2 / 3; /* Columna 2 */
    grid-row: 1 / 2;    /* Fila 1 */
}

.business-card {
    grid-column: 1 / 3; /* Ocupa las columnas 1 y 2 */
    grid-row: 2 / 3;    /* Fila 2 */
}


/* Asegurar que el card base mantenga los estilos */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition);
    height: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .why-me-content {
        flex-direction: column; /* Apila el contenido en columnas en pantallas medianas */
        gap: 3rem;
    }

    .why-me-text {
        text-align: center; /* Centra el texto en pantallas medianas */
        max-width: 100%; /* Permite que el texto ocupe todo el ancho disponible */
    }

    .why-me-cards-grid {
        grid-template-columns: 1fr; /* Una sola columna para las tarjetas */
        grid-template-rows: auto auto auto; /* Tres filas para las tres tarjetas */
        gap: 1.5rem;
    }

    /* Resetea el posicionamiento de grid para que se apilen naturalmente */
    .efficiency-card,
    .fidelity-card,
    .business-card {
        grid-column: auto;
        grid-row: auto;
    }
}

      .position-nosticky{
        position: sticky;
      }
/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .why-me-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    .why-me-content {
        gap: 2rem;
    }
    .why-me-text h2 {
        font-size: var(--h2-size); /* Asegura que h2 se ajuste en móvil */
    }
    .margin-cta  {
        margin-left: 60px;
    }
    .position-nosticky{
        position: static;
    }
}

/* Ajuste para el texto p que antes tenía inline style */
.text-dim-override {
    color: var(--text-dim);
    margin-top: 1rem;
}

 /* NUEVA SECCION: VALUE-STRIP (SIDE-BY-SIDE) */
        .value-strip { 
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05)); 
            border-top: 1px solid rgba(255,255,255,0.03); 
            border-bottom: 1px solid rgba(255,255,255,0.03); 
            padding: 100px 0; 
        }

        .value-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 4rem;
        }

        .value-grid-left {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            flex: 1; /* Ocupa espacio disponible */
        }

        .value-copy-right {
            flex: 1; /* Ocupa espacio disponible */
            text-align: left;
        }

        .card-full-width {
            grid-column: span 2;
        }

        /* Responsive para Value Strip */
        @media (max-width: 992px) {
            .value-container {
                flex-direction: column-reverse; /* Texto arriba en mobile (Reverse porque HTML es grid-left then copy-right) - NO, wait. 
                Si queremos texto ARRIBA, y en HTML ponemos Grid primero, usamos column-reverse. 
                Si ponemos Copy primero en HTML, usamos column normal.
                Siguiendo instrucción: "Columna Izquierda (Grid)... Columna Derecha (Copy)".
                En desktop: Grid | Copy.
                En mobile (column-reverse):
                Copy (item 2)
                Grid (item 1)
                */
            }

            .value-grid-left {
                grid-template-columns: 1fr; /* Reset a 1 columna */
                width: 100%;
            }

            .card-full-width {
                grid-column: auto; /* Reset span */
            }

            .value-copy-right {
                text-align: center; /* Opcional: centrar texto en móvil si se desea, la instrucción dice left en general, pero en mobile suele verse mejor centrado. Mantendremos left por defecto o ajustamos si se ve raro. */
                width: 100%;
                margin-bottom: 2rem;
            }
            
            /* Ajuste alineación botón en mobile si texto está centrado */
            /* .value-copy-right .btn-cta { margin: 0 auto; } */
        }

/* PAGES LOGIC */
.page-view { 
    display: none; 
    min-height: 100vh; 
    opacity: 0; 
    transition: opacity 0.3s ease;
}

/* El !important fuerza la visualización ignorando cualquier retraso de carga */
.page-view.active { 
    display: block !important; 
    opacity: 1 !important;
}
        