/* ==================================================
   SINERGIAGENT - GLOBAL STYLES (LIGHT MODE MULTI-PAGE)
   ================================================== */

/* Variables Corporativas / Brand Skill */
:root {
    /* Fondos Modo Claro */
    --color-bg: #F8FAFC; /* Fondo principal gris súper claro */
    --color-surface: rgba(255, 255, 255, 0.7); /* Para glassmorphism */
    --color-surface-solid: #FFFFFF;
    
    /* Textos Modo Claro */
    --color-text-main: #0F172A; /* Slate 900 casi negro */
    --color-text-muted: #475569; /* Slate 600 gris oscuro */
    
    /* Acentos Corporativos */
    --color-blue: #18346D;
    --color-blue-glow: #244A99;
    --color-orange: #DE5F21;
    --color-orange-glow: #F07031;
    
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Glassmorphism */
    --glass-border: rgba(24, 52, 109, 0.08); /* Borde azul muy sutil */
    --glass-shadow: 0 10px 40px -10px rgba(24, 52, 109, 0.05); /* Sombra elegante */
    --glass-blur: blur(20px);
    
    /* Layout */
    --max-w: 1200px;
    --nav-h: 90px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Lenis takes over */
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tipografía Básica */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

p { font-size: 1.125rem; color: var(--color-text-muted); font-weight: 400; }
a { text-decoration: none; color: inherit; }

/* Efecto Gradiente Premium para Textos */
.text-gradient {
    background: linear-gradient(135deg, var(--color-orange), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Contenedores Universales */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 5%; position: relative; z-index: 2; }
.section { padding: 100px 0; position: relative; }
.section-light { background-color: var(--color-surface-solid); }
.center { text-align: center; }

/* ==================================================
   COMPONENTES UI (Botones, Navbar, Cards)
   ================================================== */

/* Loader Inicial */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--color-bg); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loader-icon { animation: rotate 2s linear infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
.loader-text {
    font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--color-text-muted); font-weight: 600;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; font-weight: 600; border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-heading);
    position: relative; overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-glow));
    color: #fff; box-shadow: 0 10px 30px rgba(222, 95, 33, 0.2);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-4px); box-shadow: 0 15px 40px rgba(222, 95, 33, 0.35);
}

.btn-secondary {
    background: var(--color-surface-solid);
    border: 1px solid var(--color-blue); color: var(--color-blue);
    box-shadow: var(--glass-shadow);
}
.btn-secondary:hover { background: var(--color-blue); color: #fff; transform: translateY(-4px); }

.btn-outline {
    padding: 0.6rem 1.8rem; border: 1px solid var(--color-blue);
    color: var(--color-blue); border-radius: 50px; font-size: 0.95rem;
    cursor: none;
}
.btn-outline:hover {
    background: var(--color-blue); color: #fff;
    box-shadow: 0 5px 15px rgba(24, 52, 109, 0.2);
}

.large { font-size: 1.15rem; padding: 1.2rem 3.5rem; }

/* Navbar Glassmorphism Local */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
    z-index: 9999 !important; border-bottom: 1px solid transparent;
    transition: all 0.4s ease; display: flex; align-items: center;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1420px; margin: 0 auto; padding: 0 2rem; }
.logo img { max-height: 50px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { font-size: 0.92rem; font-weight: 600; color: var(--color-text-main); transition: color 0.3s; position: relative; cursor: none; white-space: nowrap; }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -5px; width: 0%; height: 2px;
    background: var(--color-orange); transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-orange); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* --- DROPDOWN MENUS --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: none;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 150%;
    left: -20px;
    background-color: var(--color-surface);
    min-width: 260px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 1rem 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    backdrop-filter: blur(20px);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--color-slate-600);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: none;
}

.dropdown-content a:hover {
    color: var(--color-orange);
    background-color: rgba(222, 95, 33, 0.04);
    padding-left: 2rem;
}

/* ==================================================
   SECCIONES COMUNES
   ================================================== */

/* Headers de Interiores */
.page-header {
    padding: 160px 0 80px 0;
    text-align: center;
    background: radial-gradient(circle at center top, rgba(222, 95, 33, 0.05) 0%, var(--color-bg) 70%);
}
.page-title { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.page-desc { max-width: 700px; margin: 0 auto; font-size: 1.25rem; }

/* Separador Código AI (Marquee) - Adaptado a claro */
.code-separator {
    padding: 3rem 0; background: var(--color-surface-solid); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    overflow: hidden; display: flex; white-space: nowrap; box-shadow: var(--glass-shadow);
}
.marquee-wrapper { display: flex; width: max-content; }
.marquee {
    display: flex; align-items: center; gap: 3rem; font-family: monospace; font-size: 1.2rem;
    color: var(--color-blue); text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
    animation: marquee 20s linear infinite;
}
.marquee span { background: -webkit-linear-gradient(#18346D, #DE5F21); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.marquee .dot { font-size: 1.5rem; -webkit-text-fill-color: var(--color-orange); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Logos Carousel Extras */
.logos-marquee img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}
.logos-marquee img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* CTA Final */
.cta-section { padding: 8rem 0; position: relative; overflow: hidden; background: url('bg_cta.webp') no-repeat center center / cover; color: #fff; text-align: center; }
.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(24, 52, 109, 0.85) 0%, rgba(36, 74, 153, 0.75) 100%);
    backdrop-filter: blur(10px); z-index: 1;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section .cta-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 2rem; z-index: 2; position: relative; color: #fff; }
.cta-section .cta-title span { color: var(--color-orange); }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 3rem auto; }
.bg-glow { /* Glow sutil para imagen de fondo */
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(222,95,33,0.3) 0%, rgba(24,52,109,0) 70%);
    filter: blur(80px); z-index: 1; pointer-events: none;
}

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding-top: 4rem; background: var(--color-surface-solid); }
.flex-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 4rem; }
.footer-brand p { max-width: 300px; margin-top: 1.5rem; font-size: 0.95rem; }
.footer-links h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--color-blue); }
.footer-links ul { list-style: none; }
.footer-links a { font-size: 0.95rem; transition: color 0.3s; line-height: 2.2; font-weight: 500; }
.footer-links a:hover { color: var(--color-orange); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding: 2rem 0; text-align: center; font-size: 0.85rem; }

/* ==================================================
   RESPONSIVE: MENÚ MÓVIL (Hamburguesa + Drawer)
   ================================================== */

/* Botón hamburguesa: oculto por defecto, visible solo en móvil */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: none;
    position: relative;
    z-index: 10001; /* por encima del drawer y overlay */
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 2px;
    background: var(--color-orange);
    border-radius: 2px;
    transform-origin: center;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, -9px); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, 7px); }
.menu-toggle.open span:nth-child(1) { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }

/* Overlay oscuro detrás del drawer */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.open { opacity: 1; }

/* Bloquear scroll del body cuando el menú está abierto */
body.no-scroll { overflow: hidden; }

@media (max-width: 900px) {
    /* Mostrar hamburguesa, ocultar nav inline */
    .menu-toggle { display: block; }
    .nav-container { padding: 0 1rem; }

    /* Drawer lateral derecho */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh; /* móvil con barra del navegador */
        width: 82vw;
        max-width: 340px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 40px rgba(24, 52, 109, 0.12);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem 1.5rem;
        z-index: 10000;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.open { transform: translateX(0); }

    /* Cada link como fila de lista, con separador */
    .nav-links > a,
    .nav-links > .dropdown {
        display: block;
        padding: 0.9rem 0.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--glass-border);
        text-align: left;
    }
    .nav-links > a.nav-link::after { display: none; }
    .nav-links > a.btn-outline {
        margin-top: 1rem;
        border: 1px solid var(--color-orange);
        color: var(--color-orange);
        text-align: center;
        border-radius: 50px;
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid var(--color-orange);
    }

    /* Dropdown en móvil: click toggle (no hover) */
    .dropdown .dropbtn {
        width: 100%;
        justify-content: space-between;
        pointer-events: auto;
    }
    .dropdown .dropbtn .arrow { transition: transform 0.3s ease; }
    .dropdown .dropdown-content {
        position: static;
        visibility: hidden;
        opacity: 0;
        transform: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.5rem 0 0.5rem 1rem;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    .dropdown.open > .dropdown-content {
        visibility: visible;
        opacity: 1;
        max-height: 600px;
        padding: 0.75rem 0 0.75rem 1rem;
    }
    .dropdown.open > .dropbtn .arrow { transform: rotate(180deg); }
    .dropdown-content a {
        padding: 0.55rem 0.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(24, 52, 109, 0.04);
    }
    .dropdown-content a:last-child { border-bottom: 0; }
    .dropdown-content a:hover { padding-left: 0.75rem; }
}

/* ==================================================
   HOME ESPECÍFICO
   ================================================== */

.hero {
    min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: url('bg_hero.webp') no-repeat center center / cover;
    padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.6) 100%);
    z-index: 1;
}

#hero-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; pointer-events: none; opacity: 0.8;
}

.hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 900px;
    padding: 0 5%; transform: translateY(0);
    margin-top: 60px;
}

.badge {
    display: inline-block; padding: 0.5rem 1.5rem;
    background: rgba(222, 95, 33, 0.08); border: 1px solid rgba(222, 95, 33, 0.2);
    color: var(--color-orange); font-family: var(--font-heading); font-size: 0.85rem;
    letter-spacing: 2px; text-transform: uppercase; border-radius: 50px; margin-bottom: 2rem;
    font-weight: 700;
}

.hero-title { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1.5rem; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 750px; margin: 0 auto 3.5rem auto; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 1.5rem; }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
@media (max-width: 1024px), (max-height: 850px) {
    .scroll-indicator {
        display: none !important;
    }
}
.scroll-indicator span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text-muted); font-weight: 600;}
.mouse {
    width: 26px; height: 40px; border: 2px solid var(--color-text-muted); border-radius: 20px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 6px; background: var(--color-orange); border-radius: 2px;
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}
@keyframes scroll { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 15px); } }

/* Cards Grid Premium (Modo Claro) */
.section-header { margin-bottom: 5rem; max-width: 700px; }
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem;
}

.glass-card {
    background: var(--color-surface); border: 1px solid var(--color-surface-solid);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px; padding: 3rem; position: relative; overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
    display: flex; flex-direction: column; align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.glass-card:hover {
    transform: translateY(-10px); background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(24, 52, 109, 0.08); /* Sombra azulada sutil */
}

.card-glow {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    filter: blur(80px); opacity: 0; transition: opacity 0.8s; top: -100px; right: -100px; z-index: 0; pointer-events: none;
}
.blue-glow { background: var(--color-blue); }
.orange-glow { background: var(--color-orange); }
.glass-card:hover .card-glow { opacity: 0.08; } /* Opacidad muy baja en claro */

.card-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(24, 52, 109, 0.06) 0%, rgba(24, 52, 109, 0.02) 100%);
    border: 1px solid rgba(24, 52, 109, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: var(--color-blue);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 10px 20px rgba(24, 52, 109, 0.02);
}

.card-icon i {
    font-size: 36px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

/* Hover effects when the glass-card is hovered */
.glass-card:hover .card-icon {
    transform: translateY(-5px) scale(1.05) rotate(3deg);
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-glow) 100%);
    border-color: var(--color-blue);
    box-shadow: 0 15px 30px rgba(24, 52, 109, 0.2);
}

.glass-card:hover .card-icon i {
    background: linear-gradient(135deg, #FFFFFF, #E2E8F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom styling for orange-glow card hovers to keep brand design consistent! */
.glass-card:hover .card-glow.orange-glow ~ .card-icon {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-glow) 100%);
    border-color: var(--color-orange);
    box-shadow: 0 15px 30px rgba(222, 95, 33, 0.25);
}

.glass-card:hover .card-glow.orange-glow ~ .card-icon i {
    background: linear-gradient(135deg, #FFFFFF, #FFEFEA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; position: relative; z-index: 1; color: var(--color-blue); }
.glass-card p { font-size: 1rem; margin: 0; position: relative; z-index: 1; line-height: 1.7; }


/* ==================================================
   PÁGINAS INTERNAS (Soluciones, Tecnología, Contacto)
   ================================================== */
.feature-list { display: flex; flex-direction: column; gap: 4rem; margin-top: 4rem; }
.feature-row { display: flex; align-items: center; gap: 4rem; justify-content: space-between; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-image { flex: 1; border-radius: 24px; background: var(--color-surface-solid); padding: 3rem; box-shadow: var(--glass-shadow); border: 1px solid var(--glass-border); text-align: center; }
.feature-text h3 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--color-blue); }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; }
.tech-item { background: var(--color-surface-solid); padding: 2.5rem 2rem; border-radius: 20px; box-shadow: var(--glass-shadow); text-align: center; border: 1px solid var(--glass-border); transition: transform 0.3s; }
.tech-item:hover { transform: translateY(-5px); }
.tech-item svg { width: 50px; height: 50px; stroke: var(--color-orange); margin-bottom: 1rem; }
.tech-item h4 { font-size: 1.2rem; color: var(--color-blue); }

.contact-form { max-width: 600px; margin: 0 auto; background: var(--color-surface-solid); padding: 4rem; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); border: 1px solid var(--glass-border); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-blue); }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 1px solid #CBD5E1; border-radius: 12px; font-family: var(--font-body); font-size: 1rem; background: #F8FAFC; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-orange); background: #FFF; }
.submit-btn { width: 100%; border: none; cursor: pointer; }

@media (max-width: 768px) {
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; }
    .contact-form { padding: 2rem; }
}

/* ==================================================
   CUSTOM CURSOR PREMIUM
   ================================================== */

body {
    cursor: none; /* Oculta el cursor por defecto del OS */
}

/* Cursores personalizados pero que en móvil no afecten */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-orange);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100001 !important;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}

/* Estado hovers en enlaces */
.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: rgba(222, 95, 33, 0.1);
    border-color: rgba(222, 95, 33, 0.4);
}

@media (max-width: 1024px) {
    body { cursor: auto !important; }
    .custom-cursor { display: none !important; }
    a, button, .nav-link, .btn-outline, .dropbtn, .dropdown-content a, .btn-login { cursor: pointer !important; }
}

/* ==================================================
   BLOG & ARTICLE (READING EXPERIENCE)
   ================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(222, 95, 33, 0.3);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--color-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.blog-card p {
    color: var(--color-slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card .read-more {
    font-weight: 600;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: none;
    text-decoration: none;
}

/* Article Reading Layout */
.article-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.article-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    color: var(--color-slate-600);
    font-size: 1rem;
    font-weight: 500;
}

.article-meta span {
    color: var(--color-orange);
    font-weight: 600;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-slate-600);
}

.article-content h2, .article-content h3 {
    color: var(--color-text-main);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-content blockquote {
    border-left: 4px solid var(--color-orange);
    background: rgba(222, 95, 33, 0.05);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-main);
    border-radius: 0 12px 12px 0;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* =========================================================
   RGPD & COOKIE BANNER
========================================================= */
#sg-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transition: opacity 0.3s ease;
    border-top: 1px solid #E2E8F0;
}

@media (min-width: 768px) {
    #sg-cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 5%;
    }
}

.sg-cookie-content {
    flex: 1;
}

.sg-cookie-content h4 {
    margin-bottom: 0.5rem;
    color: var(--color-blue);
    font-size: 1.2rem;
    font-weight: 700;
}

.sg-cookie-content p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.sg-cookie-content a {
    color: var(--color-orange);
    text-decoration: underline;
    font-weight: 600;
}

.sg-cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sg-cookie-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s;
    background: transparent;
}

.sg-cookie-actions button.btn-primary {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-glow));
    color: #fff; border: none;
}

.sg-cookie-actions button:hover {
    transform: translateY(-2px);
}

/* =========================================================
   NUEVOS COMPONENTES PREMIUM (Mejoras Solicitadas)
========================================================= */

/* Puntos de confianza / Social proof debajo del Hero */
.hero-trust-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(24, 52, 109, 0.08);
}
.hero-trust-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-trust-item i {
    color: var(--color-orange);
    font-size: 1.15rem;
}

/* Por qué elegirnos / Por qué confiar */
.why-choose-us-section {
    background: var(--color-surface-solid);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}
.why-choose-card {
    background: var(--color-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    gap: 1.25rem;
}
.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(222, 95, 33, 0.25);
    background: #FFF;
}
.why-choose-icon {
    font-size: 1.75rem;
    color: var(--color-orange);
    flex-shrink: 0;
}
.why-choose-info h4 {
    font-size: 1.3rem;
    color: var(--color-blue);
    margin-bottom: 0.5rem;
}
.why-choose-info p {
    font-size: 0.95rem;
    margin: 0;
}

/* Beneficios: ¿Qué gana tu empresa? */
.benefits-section {
    background: var(--color-bg);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.benefit-card {
    background: var(--color-surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}
.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(24, 52, 109, 0.15);
    box-shadow: 0 20px 40px rgba(24, 52, 109, 0.08);
}
.benefit-stat {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-orange);
    margin-bottom: 1rem;
    line-height: 1;
}
.benefit-card h3 {
    font-size: 1.4rem;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
}
.benefit-card p {
    font-size: 1rem;
    margin: 0;
}

/* Casos de Uso Reales / Proyectos */
.projects-section {
    background: var(--color-surface-solid);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.project-card {
    background: var(--color-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-8px);
    background: #FFF;
    border-color: rgba(24, 52, 109, 0.15);
    box-shadow: var(--glass-shadow);
}
.project-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-orange);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
.project-card h3 {
    font-size: 1.5rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
}
.project-details {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(24, 52, 109, 0.12);
}
.project-metric {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-orange);
    margin-bottom: 0.25rem;
}
.project-outcome {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Proceso de Trabajo / Así trabajamos */
.timeline-section {
    background: var(--color-bg);
}
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}
.timeline-step {
    background: var(--color-surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}
.timeline-step:hover {
    transform: translateY(-5px);
    border-color: rgba(222, 95, 33, 0.2);
}
.timeline-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(222, 95, 33, 0.15);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    line-height: 1;
}
.timeline-step h3 {
    font-size: 1.35rem;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}
.timeline-step p {
    font-size: 0.95rem;
    margin: 0;
}

/* Sobre Nosotros & Equipo */
.team-section {
    background: var(--color-surface-solid);
}
.about-desc-box {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.8;
}
/* Unique Premium Team Showcase for Eduardo Tortosa */
.about-highlight-card {
    background: var(--color-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-bg), var(--color-surface-solid));
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(222, 95, 33, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.about-highlight-card:hover {
    transform: translateY(-8px);
    border-color: rgba(24, 52, 109, 0.15);
    box-shadow: 0 30px 60px rgba(24, 52, 109, 0.08);
}
.about-photo-slot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 2px dashed rgba(24, 52, 109, 0.2);
    background: rgba(24, 52, 109, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
}
.about-photo-slot:hover {
    border-color: var(--color-orange);
    background: rgba(222, 95, 33, 0.04);
}
.about-photo-slot.has-image {
    border: none;
    background: transparent;
}
.about-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-photo-slot:hover img {
    transform: scale(1.05);
}
.photo-placeholder-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}
.photo-icon {
    font-size: 3.2rem;
    color: var(--color-blue);
    opacity: 0.5;
    transition: all 0.4s ease;
}
.about-photo-slot:hover .photo-icon {
    color: var(--color-orange);
    transform: scale(1.1) rotate(10deg);
    opacity: 0.9;
}
.photo-hint {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.4s ease;
}
.about-photo-slot:hover .photo-hint {
    color: var(--color-blue);
}
.about-info-slot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.about-info-slot .role-badge {
    align-self: flex-start;
    background: rgba(222, 95, 33, 0.08);
    color: var(--color-orange);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.about-info-slot h3 {
    font-size: 2.2rem;
    color: var(--color-blue);
    margin: 0;
    font-family: var(--font-heading);
}
.about-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0.5rem 0 1.5rem 0;
}
.about-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.about-skills-tags span {
    background: var(--color-surface-solid);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.about-skills-tags span:hover {
    background: #FFF;
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-2px);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .about-highlight-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }
    .about-photo-slot {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* FAQ / Preguntas Frecuentes */
.faq-section {
    background: var(--color-bg);
}
.faq-accordion {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.faq-item {
    background: var(--color-surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active {
    border-color: rgba(222, 95, 33, 0.25);
    box-shadow: var(--glass-shadow);
}
.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-blue);
    cursor: pointer;
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--color-orange);
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--color-orange);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-content {
    padding: 0 2rem 1.5rem 2rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}
