/* ===================================================
   SCI RESEARCH — ELITE CORPORATE DESIGN 2026
   "Lujo Digital Silencioso" — McKinsey Tech Style
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:wght@100..900&display=swap');

:root {
    /* Colors - Corporate Elite */
    --base-deep:      #003B73; /* Azul oscuro profundo */
    --accent-blue:    #4CA9FF; /* Azul eléctrico / interacción */
    --white:          #FFFFFF;
    --gray-tech:      #F1F5F9;
    --black-premium:  #050A18; /* Fondo dominante */
    
    /* Semantic */
    --bg-main:        var(--black-premium);
    --text-main:      #ffffff;
    --text-dim:       #ffffff;
    
    /* Glassmorphism Elite */
    --glass-bg:       rgba(255, 255, 255, 0.05);
    --glass-border:   rgba(255, 255, 255, 0.15);
    --glass-blur:     blur(25px);

    /* Spacing & Tokens */
    --nav-h:          90px;
    --section-py:     100px;
    --radius-lg:      24px;
    --radius-xl:      40px;
    --transition:     0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; } /* Hidden for Smart Cursor */
a, button, input, select, textarea { cursor: none !important; }

html {
    background-color: #050A18;
    background-image: radial-gradient(circle at 20% 30%, rgba(76, 169, 255, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(27, 117, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    scroll-behavior: smooth;
}
body {
    background: transparent !important;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

#neural-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === SMART CURSOR === */
#smart-cursor {
    width: 12px; height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 20000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-glow {
    width: 40px; height: 40px;
    border: 1px solid rgba(76, 169, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 19999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, background 0.3s;
}
body.hovering #smart-cursor { width: 40px; height: 40px; background: rgba(76, 169, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid var(--accent-blue); }
body.hovering .cursor-glow { width: 60px; height: 60px; border-color: var(--accent-blue); background: rgba(76, 169, 255, 0.05); }

/* === TYPOGRAPHY === */
h1, h2, h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 900; 
    letter-spacing: -1.5px; 
    line-height: 1.1; 
    text-transform: none; 
    color: #ffffff !important;
}
.gradient-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-blue);
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 15px var(--accent-blue);
    border-radius: 2px;
}

.footer {
    background: transparent !important;
}

.animate-on-scroll.visible .section-title::after {
    width: 80px;
}

/* === NAVIGATION === */
/* === MARQUEE TICKER === */
.top-marquee-container {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    padding: 8px 0;
    white-space: nowrap;
    position: relative;
    z-index: 2002;
    display: flex;
}
.top-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}
.marquee-item {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    margin-right: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === NAVBAR === */
.navbar { position: fixed; top: 35px; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); border-bottom: 1px solid transparent; background: transparent; }
.navbar.scrolled { top: 0; padding: 15px 0; background: rgba(5,10,24,0.85); backdrop-filter: blur(20px); border-bottom-color: var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding-left: 0 !important; padding-right: 20px !important; }
.nav-logo { flex-shrink: 0; margin-right: auto; margin-left: -25px; }

.nav-menu { display: flex; gap: 15px; list-style: none; align-items: center; margin-left: 100px; }
.nav-link { 
    color: #ffffff; 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 800; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 15px; 
    border-radius: 12px; 
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,1);
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}
.nav-link:hover, .nav-link.active { 
    color: #ffffff; 
    background: var(--accent-blue); 
    text-shadow: 0 0 10px rgba(255,255,255,0.5); 
    box-shadow: 0 0 20px rgba(76,169,255,0.4);
    border-color: rgba(76,169,255,0.5);
}
.nav-link svg { opacity: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); }
.nav-link:hover svg, .nav-link.active svg { color: #ffffff; filter: drop-shadow(0 0 8px #ffffff); }

.online-badge {
    background: rgba(37, 211, 102, 0.2);
    border: 2px solid #25D366;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    box-shadow: 0 0 15px rgba(37,211,102,0.3);
}
.online-dot {
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 5px #25D366;
    animation: pulse-green 1.5s infinite;
}

/* === BUTTONS === */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border: none;
}
.btn-primary, .btn-outline {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1B75FF 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(27, 117, 255, 0.3);
    border: none;
    text-transform: uppercase;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-primary:hover, .btn-outline:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(27, 117, 255, 0.5);
    filter: brightness(1.2);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-h);
}
.hero-content { max-width: 900px; z-index: 10; padding-left: 20px; }
.hero-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}
.hero-title { font-size: clamp(3rem, 10vw, 5.5rem); margin-bottom: 30px; }
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: loopWords 6s infinite;
    animation-delay: var(--delay);
    margin-right: 12px;
}
.hero-description { 
    font-size: 1.25rem; 
    color: #ffffff; 
    line-height: 1.6; 
    margin-bottom: 40px; 
    max-width: 700px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 500;
}

/* === HERO PILLARS (PORTADA) === */
.hero-pillars {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.pillar-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 169, 255, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.pillar-item:hover {
    background: rgba(76, 169, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76,169,255,0.2);
}
.pillar-item svg { color: var(--accent-blue); transition: var(--transition); }
.pillar-item span { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.pillar-item:hover svg { transform: scale(1.1); filter: drop-shadow(0 0 5px var(--accent-blue)); }

main, .section:not(.hero), .container, section:not(.hero), .section-header, .container-fluid, #metodologia, #servicios, #recursos, #faq, #contacto, #ventaja, #soluciones, #nosotros, #publicaciones, #casos, #ubicacion, #comunidad, footer {
    background: transparent !important;
    background-color: transparent !important;
}
@keyframes loopWords {
    0%, 5% { opacity: 0; transform: translateY(20px); }
    15%, 85% { opacity: 1; transform: translateY(0); }
}
.solution-features.compact {
    list-style: none;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.solution-features.compact li {
    font-size: 0.85rem;
    color: var(--text-dim);
    position: relative;
    padding-left: 20px;
    line-height: 1.3;
}
.solution-features.compact li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}
.btn-mini {
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    background: var(--accent-blue);
    color: #fff;
    transition: var(--transition);
    border: 1px solid var(--accent-blue);
    text-align: center;
    flex: 1;
}
.btn-mini.outline {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: var(--text-dim);
}
.btn-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,169,255,0.3);
    filter: brightness(1.2);
}
.btn-mini.outline:hover {
    border-color: var(--accent-blue);
    color: #fff;
}

/* === GLASS CARDS (SERVICIOS / CASOS / PRECIOS) === */
.service-card, .case-card, .pricing-card, .method-step, .identity-card, .solution-card, .pub-card, .forum-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover, .case-card:hover, .pricing-card:hover, .method-step:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.service-card::before, .case-card::before, .solution-card::before, .identity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 169, 255, 0.4), transparent);
}
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(76, 169, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* === SECTION BACKGROUNDS WITH IA IMAGES === */
.section { 
    position: relative; 
    overflow: hidden; 
}

.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(76,169,255,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Scanning line effect */
.section::after {
    content: '';
    position: absolute;
    top: -100%; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(76,169,255,0.08), transparent);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanline {
    0% { top: -100%; }
    100% { top: 100%; }
}

#metodologia, #servicios, #recursos, #faq, #contacto, #ventaja, #soluciones, #nosotros, #publicaciones, #casos, #ubicacion, #comunidad {
    background: transparent !important;
}

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.service-icon-3d { width: 100%; height: 200px; object-fit: contain; margin-bottom: 30px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }

/* === ROI SIMULATOR (FINTECH STYLE) === */
.roi-simulator {
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.roi-display {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}
.roi-metric-val { font-size: 5rem; font-weight: 900; color: var(--accent-blue); text-shadow: 0 10px 40px rgba(76,169,255,0.3); }

/* === CASOS DE ÉXITO === */
.case-metric-box {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--accent-blue);
    margin-top: 20px;
}
.case-metric-val { font-size: 3rem; font-weight: 900; }

/* === CASOS DE ÉXITO === */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 50px; }

/* === METODOLOGÍA (STEPS) === */
.method-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 60px; }
.method-step { position: relative; padding: 40px; background: rgba(255,255,255,0.01); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; }
.step-number { font-size: 3rem; font-weight: 900; color: var(--accent-blue); opacity: 0.1; position: absolute; top: 10px; right: 20px; }
.step-title { font-size: 1.1rem; margin-bottom: 10px; color: var(--white); font-weight: 700; }
.step-text { font-size: 0.85rem; color: var(--text-dim); }

/* === FAQ (ACCORDION) === */
.faq-list { max-width: 800px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: var(--white); font-size: 1.1rem; font-weight: 600; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; cursor: none !important; }
.faq-answer { color: var(--text-dim); font-size: 0.95rem; padding: 0 0 15px; display: none; }
.faq-item.active .faq-answer { display: block; }

/* === RECURSOS / BLOG === */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.resource-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; transition: var(--transition); }
.resource-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); }
.resource-img { height: 180px; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.resource-content { padding: 25px; }
.resource-tag { font-size: 0.7rem; text-transform: uppercase; color: var(--accent-blue); font-weight: 800; margin-bottom: 10px; display: block; }

/* === SOCIAL BAR (FLOATING LEFT) === */
.social-sidebar {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2001;
}
.social-sidebar a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}
.social-sidebar a:hover {
    background: rgba(76, 169, 255, 0.1);
    border-color: var(--accent-blue);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(76, 169, 255, 0.5);
    color: var(--accent-blue);
}

/* === TIMELINE === */
.timeline { position: relative; max-width: 900px; margin: 60px auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--glass-border); }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -35px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-blue); border: 4px solid var(--black-premium); }
.timeline-year { font-weight: 900; color: var(--accent-blue); font-size: 1.2rem; margin-bottom: 5px; display: block; }

/* === FORO / COMUNIDAD === */
.forum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.forum-card { background: var(--glass-bg); padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); }
.forum-category { font-size: 0.7rem; text-transform: uppercase; color: var(--accent-blue); font-weight: 800; margin-bottom: 15px; display: block; }
.forum-comment { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; margin-top: 15px; font-size: 0.85rem; color: var(--text-dim); }

/* === MAPA CORPORATIVO === */
.map-wrapper { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--glass-border); filter: grayscale(1) invert(0.9) brightness(0.8) contrast(1.2); transition: var(--transition); }
.map-wrapper:hover { filter: none; }

/* === CONTACTO & WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(76, 169, 255, 0.6);
}
/* === CHATBOT WIDGET === */
.chatbot-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 9999;
}
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #1B75FF;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(27,117,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 10px 40px rgba(76,169,255,0.6); }
.chatbot-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: var(--black-premium);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}
.chatbot-header {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}
.chatbot-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; }
.chatbot-messages {
    height: 380px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-msg { padding: 12px 15px; border-radius: 12px; font-size: 0.9rem; max-width: 85%; line-height: 1.4; }
.chat-msg.bot { background: rgba(76,169,255,0.1); border: 1px solid rgba(76,169,255,0.2); align-self: flex-start; }
.chat-msg.user { background: rgba(255,255,255,0.05); align-self: flex-end; border: 1px solid rgba(255,255,255,0.05); }
.chat-msg.typing { opacity: 0.5; font-style: italic; }
.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}
.chatbot-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
}
.chatbot-input-area input:focus { border-color: var(--accent-blue); }
.chatbot-input-area button {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* === LIVE ACTIVITY NOTIFICATION === */
.live-notification {
    position: fixed;
    bottom: -100px;
    left: 90px; /* Offset to avoid social bar */
    background: rgba(5, 10, 24, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-blue);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}
.live-notification.show {
    bottom: 30px;
    opacity: 1;
}
.live-icon {
    width: 10px;
    height: 10px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 10px #25D366;
    animation: pulse-green 1.5s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.live-text { font-size: 0.85rem; color: var(--white); }
.live-time { display: block; font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }
.section-desc { font-size: 1.1rem; color: #ffffff; max-width: 600px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
p { color: #ffffff; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* === CONTACTO === */
.contacto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contacto-form {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: var(--radius-xl);
}
.form-group input, .form-group select, .form-group textarea {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    color: var(--white) !important;
    font-size: 0.95rem;
    width: 100%;
}
.form-group input:focus, .form-group select:focus { 
    border-color: var(--accent-blue) !important; 
    background: rgba(255,255,255,0.06) !important; 
    outline: none;
}
.form-group select option { background: var(--black-premium); color: var(--white); }

/* === FOOTER === */
.footer { 
    background: rgba(1, 3, 8, 0.8) !important; 
    backdrop-filter: blur(20px);
    padding: 80px 0 40px; 
    border-top: 1px solid var(--glass-border); 
    margin-top: 0; 
}

/* === NEW PREMIUM BACKGROUND CANVAS === */
.main-content-canvas {
    position: relative;
    background-image: 
        linear-gradient(to bottom, #050a18 0%, rgba(5, 10, 24, 0.7) 10%, rgba(5, 10, 24, 0.7) 90%, #010308 100%),
        url('../img/bg_ai_automation_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.main-content-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(76, 169, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(27, 117, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.main-content-canvas::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ca9ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.section-header { 
    margin-top: 30px; /* Force extra separation from the top of the section */
    margin-bottom: 80px; 
    position: relative; 
    z-index: 2; 
    background: rgba(3, 6, 18, 0.4);
    padding: 50px 40px 40px; 
    border-radius: 15px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 169, 255, 0.1);
}
.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}
.section-title { font-size: 3rem; margin-bottom: 20px; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.section-desc { font-size: 1.1rem; color: #ffffff; max-width: 600px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
p { color: #ffffff; line-height: 1.6; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

/* === SOLUCIONES GRID === */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.solution-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #2563eb);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-card:hover {
    border-color: rgba(76,169,255,0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(76,169,255,0.15);
}
.solution-icon {
    width: 60px; height: 60px;
    background: rgba(76,169,255,0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
}
.solution-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.solution-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 25px; line-height: 1.6; }
.solution-features { list-style: none; margin-bottom: 30px; }
.solution-features li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 10px;
}
.solution-features li::before {
    content: '✓';
    color: var(--accent-blue);
    font-weight: 900;
    font-size: 0.8rem;
}
.solution-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 20px;
}
.solution-price .amount {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}
.solution-price .period {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.solution-cta {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.solution-cta.outline, .solution-cta.primary {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #fff;
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}
.solution-cta.outline:hover, .solution-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(76,169,255,0.4);
    border-color: #fff;
}
.solution-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(76,169,255,0.3); }
.solution-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--accent-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === QUIENES SOMOS === */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.identity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    text-align: center;
    transition: all 0.5s ease;
}
.identity-card:hover {
    border-color: rgba(76,169,255,0.3);
    background: rgba(76,169,255,0.05);
    transform: translateY(-5px);
}
.identity-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.identity-card p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.differentiators-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.diff-item {
    padding: 22px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
}
.diff-item:hover {
    background: rgba(76,169,255,0.08);
    padding-left: 40px;
}
.diff-item::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* === PUBLICACIONES === */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.pub-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s ease;
}
.pub-card:hover {
    border-color: rgba(76,169,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.pub-card-img {
    height: 200px;
    background: linear-gradient(135deg, rgba(76,169,255,0.15), rgba(37,99,235,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(76,169,255,0.1);
}
.pub-card-body { padding: 30px; }
.pub-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}
.pub-card-body h3 { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.3; }
.pub-card-body p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.pub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: gap 0.3s ease;
}
.pub-card-link:hover { gap: 15px; }

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(20px);
    will-change: transform, opacity;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .roi-simulator { grid-template-columns: 1fr; }
    .hero-content { padding-left: 0; text-align: center; }
    .identity-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .section-py { --section-py: 60px; }
    .solutions-grid { grid-template-columns: 1fr; }
    .publications-grid { grid-template-columns: 1fr; }
    .identity-grid { grid-template-columns: 1fr; }
    .contacto-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ===================================================
   SCI MODALS & INTERACTIVE COTIZADOR
   =================================================== */
.sci-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 3, 8, 0.85);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.sci-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sci-modal {
    background: #050a18;
    border: 1px solid rgba(76, 169, 255, 0.3);
    width: 95%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 28px;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(76,169,255,0.15), 0 30px 60px rgba(0,0,0,0.8);
    transform: perspective(1000px) rotateX(8deg) translateY(30px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}
.sci-modal-overlay.active .sci-modal {
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}
.sci-modal-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sci-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.sci-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.sci-modal-close:hover {
    background: #ff4757;
    transform: rotate(90deg);
}
.sci-modal-body {
    padding: 30px;
    color: rgba(255, 255, 255, 0.85);
    overflow-y: auto;
}

/* Cotizador Elements */
.cotizador-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
    line-height: 1.5;
}
.cotizador-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}
.cotizador-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer !important;
}
.cotizador-item:hover {
    background: rgba(76, 169, 255, 0.05);
    border-color: rgba(76, 169, 255, 0.3);
}
.cotizador-item.selected {
    background: rgba(76, 169, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(76, 169, 255, 0.15);
}
.cotizador-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cotizador-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.cotizador-item.selected .cotizador-checkbox {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}
.cotizador-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    display: none;
}
.cotizador-item.selected .cotizador-checkbox::after {
    display: block;
}
.cotizador-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}
.cotizador-item-price {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1rem;
}

/* Summary Panel */
.cotizador-summary {
    background: rgba(76, 169, 255, 0.05);
    border: 1px solid rgba(76, 169, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
}
.summary-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 15px rgba(76,169,255,0.4);
}
.summary-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}
.cotizador-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}
.cotizador-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.cotizador-btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}
.cotizador-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}
.cotizador-btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.cotizador-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
