/* =========================================
   style.css - VERSIÓN MAESTRA LIMPIA Y CORREGIDA
   (Sin duplicados y con el menú móvil arreglado)
========================================= */

/* --- RESET & VARIABLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #ffffff; overflow-x: hidden; }
html { scroll-behavior: smooth; }

:root {
    --accent: #22d3ee;
    --dark-text: #0f172a;
    --dark-bg: #0f172a;
    --white: #ffffff;
}

/* =========================================
   1. BARRA DE NAVEGACIÓN (Escritorio)
========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; 
    height: 150px; 
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
    background: transparent; transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
    background: #ffffff; height: 110px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-bottom: none;
}

/* --- LOGO --- */
.logo { 
    position: relative; 
    height: 110px; 
    width: 100%;          
    max-width: 350px;     
    display: flex; align-items: center; 
}

.logo img { 
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    height: auto; 
    max-height: 100%; 
    width: auto; 
    max-width: 100%;     
    transition: opacity 0.3s ease;
}

.logo-white { opacity: 1; } 
.logo-color { opacity: 0; }
.navbar.scrolled .logo-white { opacity: 0; } 
.navbar.scrolled .logo-color { opacity: 1; }

/* --- MENÚ DE ESCRITORIO --- */
.nav-menu { display: flex; gap: 40px; list-style: none; height: 100%; align-items: center; }

.nav-item {
    position: relative; height: 100%; display: flex; align-items: center;
    font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: #ffffff; cursor: pointer; transition: color 0.3s;
}
.nav-item a { text-decoration: none; color: inherit; display: flex; align-items: center; height: 100%; }
.nav-item.active, .nav-item:hover { color: var(--accent); }

.navbar.scrolled .nav-item { color: var(--dark-text); }
.navbar.scrolled .nav-item:hover, .navbar.scrolled .nav-item.active { color: var(--accent); }

.btn-nav {
    background: #fff; color: #000; padding: 12px 28px; border-radius: 2px;
    font-weight: 800; font-size: 14px; text-transform: uppercase; text-decoration: none; transition: all 0.3s;
    white-space: nowrap; border: none; cursor: pointer;
}
.navbar.scrolled .btn-nav { background: var(--accent); color: #fff; }

/* Botón Hamburguesa (Oculto en PC por defecto) */
.mobile-menu-toggle {
    display: none; /* Se activa en media queries */
    width: 0; height: 0; padding: 0; margin: 0;
    opacity: 0; pointer-events: none; border: none; outline: none;
}

/* =========================================
   2. SECCIÓN HERO
========================================= */
.hero {
    position: relative; width: 100%; min-height: 100vh; 
    display: flex; align-items: center; background-color: #000; overflow: hidden;
    padding-top: 150px; padding-bottom: 50px;
}

.hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: right center; position: absolute; top:0; left:0;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 70%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    z-index: 1; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2; width: 100%; padding-left: 6%; padding-right: 5%;
}

.text-wrapper { max-width: 1100px; } 

.badge {
    display: inline-flex; align-items: center; gap: 15px;
    font-size: 18px; font-weight: 800; letter-spacing: 3px;
    color: var(--accent); text-transform: uppercase; margin-bottom: 25px;
    flex-wrap: wrap; 
}
.badge::before { content: ''; display: block; width: 40px; height: 4px; background: var(--accent); box-shadow: 0 0 15px var(--accent); }

h1 {
    color: #ffffff; font-weight: 900;
    font-size: clamp(40px, 8vw, 70px); 
    line-height: 1.1; margin-bottom: 30px;
    white-space: normal; 
}
h1 span { color: var(--accent); text-shadow: 0 0 40px rgba(34, 211, 238, 0.4); }

p.subtitle {
    color: rgba(255, 255, 255, 0.9); 
    font-size: clamp(16px, 4vw, 20px); 
    font-weight: 500;
    margin-bottom: 60px; line-height: 1.5; max-width: 650px;
}

.buttons { display: flex; gap: 30px; flex-wrap: wrap; }
.btn, .btn-primary {
    padding: 20px 50px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 2px; cursor: pointer; text-decoration: none; transition: all 0.3s;
    text-align: center; background-color: var(--accent); color: #000; border: none;
}
.btn-primary:hover { background-color: #fff; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4); }

/* =========================================
   ESTILOS GENERALES
========================================= */
.text-cyan { color: var(--accent); font-weight: 700; }
.text-blue { color: #3B90D8; font-weight: 700; }
.text-white { color: #ffffff; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; }

/* Infografía Slider */
.infographic-section { padding: 80px 5%; background-color: #ffffff; text-align: center; }
.infographic-container { max-width: 1000px; margin: 0 auto; position: relative; background: transparent; aspect-ratio: 21/9; overflow: hidden; }
.infographic-container img { border-radius: 20px; box-shadow: 0 0 40px rgba(34, 211, 238, 0.15); }
.slide-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.slide-img.active { opacity: 1; z-index: 2; }
.info-caption-box { position: relative; margin: 30px auto 0; width: 100%; max-width: 800px; text-align: center; }
.caption-title { color: #0f172a; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.caption-text { color: #475569; font-size: 18px; font-weight: 500; margin: 0; line-height: 1.6; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.2); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 20; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.nav-arrow:hover { background: var(--accent); color: #000; border-color: var(--accent); transform: translateY(-50%) scale(1.1); }
.nav-prev { left: 20px; } .nav-next { right: 20px; }
.progress-bar { position: absolute; bottom: 0; left: 0; height: 4px; background: var(--accent); width: 0%; z-index: 20; }
.infographic-container.playing .progress-bar { animation: progress 8s linear infinite; }
@keyframes progress { 0% { width: 0%; } 100% { width: 100%; } }

/* Logos */
.logos-section { padding: 60px 5%; background-color: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.logos-title { font-size: 13px; font-weight: 800; color: #94a3b8; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; display: block; }
.logos-grid { display: flex; justify-content: center; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.partner-item { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 140px; cursor: pointer; }
.partner-name { font-size: 12px; font-weight: 700; color: #ffffff; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; text-align: center; }
.partner-logo { height: 35px; width: auto; object-fit: contain; filter: grayscale(100%) brightness(200%) opacity(0.5); transition: all 0.3s ease; }
.partner-item:hover .partner-logo { filter: grayscale(0%) opacity(1); transform: translateY(-5px); }
.partner-item:hover .partner-name { opacity: 1; transform: translateY(0); }

/* SECCIONES INDEX */
.problem-section { padding: 120px 5%; background-color: #ffffff; color: var(--dark-text); }
.section-header { margin: 0 auto 80px; max-width: 800px; }
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #0f172a; }
.section-text { font-size: 20px; color: #475569; line-height: 1.6; }

/* Grid del Problema */
.problem-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.stat-card { background: #0f172a; color: white; padding: 60px 40px; border-radius: 4px; width: 100%; max-width: 450px; position: relative; overflow: hidden; }
.stat-number { font-size: clamp(60px, 8vw, 80px); font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 40px; }
.stat-label { font-size: 22px; font-weight: 700; display: block; margin-bottom: 30px; white-space: normal; }
.stat-desc { font-size: 16px; color: #cbd5e1; line-height: 1.6; margin: 0; }
.problem-list { list-style: none; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.problem-item { display: flex; gap: 20px; margin-bottom: 40px; }
.icon-box { width: 50px; height: 50px; background: #eff6ff; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-weight: 900; font-size: 20px; }
.item-content h4 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: #0f172a; }
.item-content p { font-size: 16px; color: #64748b; line-height: 1.5; }

.solution-section { padding: 120px 5%; background-color: #0b1120; color: #ffffff; text-align: center; position: relative; }
.solution-header { max-width: 900px; margin: 0 auto 80px; position: relative; z-index: 2; }
.solution-title { font-size: clamp(32px, 5vw, 48px); font-weight: 900; margin-bottom: 25px; color: #ffffff; }
.solution-subtitle { font-size: 20px; color: #94a3b8; line-height: 1.6; }

.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.solution-card { background-color: #1e293b; border: 1px solid rgba(255, 255, 255, 0.08); padding: 50px 40px; border-radius: 12px; transition: all 0.3s ease; text-align: left; display: flex; flex-direction: column; height: 100%; position: relative; z-index: 1; }
.solution-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 25px rgba(34, 211, 238, 0.15); }
.solution-card.card-highlight { background-color: #1e293b !important; border: 1px solid var(--accent); position: relative; z-index: 2; transition: all 0.2s ease-in-out; }
.solution-card.card-highlight:hover { box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), 0 0 80px rgba(34, 211, 238, 0.3); border-color: #22d3ee; background-color: #233045 !important; transform: translateY(-8px); z-index: 10; }
.solution-card.card-highlight h3 { color: var(--accent); }
.icon-circle { width: 70px; height: 70px; margin-bottom: 25px; background: rgba(34, 211, 238, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.icon-circle svg { width: 35px; height: 35px; stroke-width: 1.5; }
.solution-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 15px; color: #fff; }
.solution-card p { font-size: 16px; color: #cbd5e1; line-height: 1.6; flex-grow: 1; }
.tech-badge { display: inline-block; background: var(--accent); color: #000; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 6px 12px; border-radius: 20px; width: fit-content; position: absolute; top: 20px; right: 20px; margin-bottom: 0; box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3); }

/* ATAQUE */
.attack-section { padding: 120px 5%; background-color: #f8fafc; color: var(--dark-text); text-align: center; }
.attack-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; max-width: 1300px; margin: 0 auto; gap: 15px; }
.attack-step { background: white; padding: 40px 25px; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; position: relative; transition: all 0.4s; display: flex; flex-direction: column; align-items: center; }
.attack-step:hover { transform: translateY(-8px); }
.attack-step.step-threat:hover, .attack-step.step-attack:hover { border-color: #ef4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.5), 0 0 60px rgba(239, 68, 68, 0.2); }
.attack-step.step-protected:hover { border-color: var(--accent); box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), 0 0 60px rgba(34, 211, 238, 0.3); }
.step-icon-wrapper { width: 70px; height: 70px; border-radius: 50%; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; transition: all 0.3s; }
.attack-step svg { width: 32px; height: 32px; stroke-width: 1.5; }
.step-threat .step-icon-wrapper { background: #fff7ed; color: #f97316; } 
.step-attack .step-icon-wrapper { background: #fef2f2; color: #ef4444; } 
.step-protected { background: linear-gradient(to bottom right, #ffffff, #f0fdfa); border-bottom: 4px solid var(--accent); }
.step-protected .step-icon-wrapper { background: rgba(34, 211, 238, 0.1); color: #0891b2; width: 80px; height: 80px; }
.step-protected h4 { color: #0891b2; }
.attack-step h4 { font-size: 17px; font-weight: 800; margin-bottom: 12px; color: #0f172a; text-transform: uppercase; letter-spacing: 0.5px; }
.attack-step p { font-size: 14px; color: #64748b; line-height: 1.5; }
.arrow-connector { display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.arrow-connector svg { width: 24px; height: 24px; }

.resilience-section { padding: 100px 5%; background-color: #0f172a; color: white; text-align: center; position: relative; overflow: hidden; }
.resilience-bg-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(80px, 15vw, 200px); font-weight: 900; color: rgba(255,255,255,0.03); white-space: nowrap; pointer-events: none; text-transform: uppercase; }
.resilience-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.resilience-quote { font-size: clamp(24px, 4vw, 32px); font-weight: 800; line-height: 1.4; margin-bottom: 40px; background: linear-gradient(to right, #22d3ee, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.resilience-text { font-size: 18px; color: #cbd5e1; margin-bottom: 40px; line-height: 1.8; }
.btn-glow { background-color: var(--accent); color: #000; padding: 20px 50px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; text-decoration: none; display: inline-block; box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); transition: all 0.3s ease; }
.btn-glow:hover { box-shadow: 0 0 40px rgba(34, 211, 238, 0.8); transform: translateY(-3px); background-color: #fff; }

.faq-section { padding: 100px 5%; background-color: #ffffff; color: var(--dark-text); max-width: 1000px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 60px; }
.faq-item { border-bottom: 1px solid #e2e8f0; margin-bottom: 10px; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 25px 10px; font-size: 18px; font-weight: 700; color: #0f172a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-question:hover { color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 10px; }
.faq-answer p { padding-bottom: 25px; font-size: 16px; color: #64748b; line-height: 1.6; }
.faq-icon { font-size: 24px; font-weight: 300; color: var(--accent); transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 300px; }

.cta-footer-section { padding: 100px 5%; background: linear-gradient(135deg, #0f172a 0%, #000000 100%); text-align: center; color: white; border-top: 1px solid rgba(255,255,255,0.1); }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-title { font-size: clamp(30px, 5vw, 40px); font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
.cta-title span { color: var(--accent); }
.cta-subtitle { font-size: 18px; color: #94a3b8; margin-bottom: 40px; }

/* SECCIÓN PARTNERS */
.partner-info-section { padding: 80px 5%; background-color: #fff; color: #0f172a; }
.partner-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.partner-text h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 25px; text-transform: uppercase; line-height: 1.1; }
.partner-text p { font-size: 1.1rem; line-height: 1.6; color: #475569; margin-bottom: 20px; }
.partner-highlight-box { background-color: #1e1e1e; color: white; padding: 40px; border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.partner-highlight-box::after { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); opacity: 0.2; }
.partner-highlight-box h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; line-height: 1.2; }
.benefit-list { list-style: none; padding: 0; }
.benefit-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.1rem; font-weight: 500; }
.benefit-list li svg { width: 24px; height: 24px; color: var(--accent); margin-right: 15px; flex-shrink: 0; }

/* SECCIONES PRODUCTO */
.kill-switch-section { padding: 100px 5%; background: #fff; text-align: center; }
.kill-steps-row { display: flex; gap: 40px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-bottom: 40px; }
.kill-card-dark { flex: 1; min-width: 300px; max-width: 400px; background-color: #0f172a; padding: 40px 35px; border-radius: 16px; border: 1px solid rgba(34, 211, 238, 0.1); transition: all 0.3s ease; position: relative; text-align: center; display: flex; flex-direction: column; overflow: hidden; }
.kill-card-dark:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.kill-card-dark .kill-number { color: var(--accent); opacity: 0.15; font-size: 130px; font-weight: 900; font-family: 'Inter', sans-serif; position: absolute; top: 10px; left: 20px; line-height: 1; z-index: 0; pointer-events: none; }
.kill-card-dark .kill-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; margin-top: 20px; }
.kill-icon-circle { width: 64px; height: 64px; background: rgba(34, 211, 238, 0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px auto; box-shadow: 0 0 20px rgba(34, 211, 238, 0.15); }
.kill-icon-circle svg { width: 32px; height: 32px; }
.kill-card-dark h3 { font-size: 22px; font-weight: 700; color: #ffffff; margin-bottom: 15px; }
.kill-card-dark p { font-size: 15px; color: #cbd5e1; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.kill-features-dark { list-style: none; padding: 0; margin: 0 auto; text-align: left; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; display: inline-block; width: 100%; }
.kill-features-dark li { font-size: 14px; color: #e2e8f0; margin-bottom: 15px; padding-left: 35px; position: relative; font-weight: 500; line-height: 1.4; }
.kill-features-dark li::before { content: '✓'; color: var(--accent); position: absolute; left: 0; font-size: 20px; font-weight: 900; top: -2px; }
.kill-inter-text { max-width: 800px; margin: 80px auto; text-align: center; padding: 0 20px; }
.kill-inter-text h3 { font-size: 30px; font-weight: 800; color: var(--dark-text); margin-bottom: 25px; }
.kill-inter-text p { font-size: 18px; color: #475569; line-height: 1.8; }

.inter-gray-section { width: 100%; padding: 50px 5%; background-color: #f8fafc; text-align: center; color: #0f172a; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.inter-gray-content { max-width: 950px; margin: 0 auto; }
.inter-gray-section h3 { font-family: 'Inter', sans-serif; font-size: 2.5rem; font-weight: 900; margin-bottom: 35px; color: #0f172a; line-height: 1.1; }
.inter-gray-section p { font-size: 1.2rem; line-height: 1.8; color: #475569; font-weight: 400; }
.inter-gray-section strong { color: #0891b2; font-weight: 800; }

.implementation-section { padding: 100px 5%; background-color: #ffffff; color: #0f172a; text-align: center; border-bottom: 1px solid #e2e8f0; }
.impl-header { max-width: 900px; margin: 0 auto 70px; }
.impl-header h2 { font-family: 'Inter', sans-serif; font-size: 2.5rem; font-weight: 900; margin-bottom: 20px; color: #0f172a; line-height: 1.1; text-transform: uppercase; letter-spacing: -1px; }
.impl-header p { font-size: 1.1rem; line-height: 1.6; color: #475569; }
.impl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.impl-item { display: flex; flex-direction: column; align-items: center; padding: 30px 20px; height: 100%; border-radius: 12px; transition: background-color 0.3s ease; }
.impl-item:hover { background-color: #f8fafc; }
.impl-icon-circle { width: 80px; height: 80px; border-radius: 50%; background-color: #f0fdfa; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 25px; transition: all 0.3s ease; color: #0891b2; flex-shrink: 0; }
.impl-item:hover .impl-icon-circle { background-color: var(--accent); color: #ffffff; transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 25px rgba(34, 211, 238, 0.4); }
.impl-icon-circle svg { width: 35px; height: 35px; stroke-width: 2; }
.impl-item h4 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 15px; line-height: 1.3; }
.impl-item p { font-size: 1rem; color: #64748b; line-height: 1.5; margin-bottom: 20px; max-width: 300px; }
.impl-time { display: block; margin-top: auto; padding-top: 20px; border-top: 1px solid #e2e8f0; width: 100%; font-weight: 700; color: #3B90D8; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* SECCIÓN DIFERENCIA */
.mitra-difference-section { width: 100%; padding: 0; margin: 0; background-color: #131313; }
.mitra-container-final { display: flex; flex-direction: row; width: 100%; background-color: #131313; min-height: 600px; font-family: 'Inter', sans-serif; color: white; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.mitra-left-text { width: 45%; padding: 80px 0 80px 80px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; background-color: #131313; z-index: 2; }
.mitra-right-image { width: 55%; position: relative; padding: 0; margin: 0; background-image: url('img/cta_glow.png'); background-color: #131313; background-size: contain; background-position: center right; background-repeat: no-repeat; flex-grow: 1; min-height: 100%; }
.mitra-p { font-family: 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.6; color: #cbd5e1; margin-bottom: 20px; font-weight: 400; }
.mitra-cyan { color: var(--accent); font-weight: 700; }
.mitra-button { display: inline-block; background-color: var(--accent); color: #000; padding: 18px 35px; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 30px; border-radius: 2px; width: fit-content; transition: all 0.3s ease; font-size: 0.9rem; }
.mitra-button:hover { background-color: #ffffff; box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); transform: translateY(-2px); }

/* SECCIÓN TECNOLOGÍA */
.ddr-section-white { padding: 100px 5%; background-color: #ffffff; color: #0f172a; position: relative; font-family: 'Inter', sans-serif; }
.ddr-header-white { text-align: center; max-width: 1000px; margin: 0 auto 60px; }
.ddr-header-white h2 { font-size: 3rem; font-weight: 900; line-height: 1.1; margin-bottom: 30px; color: #0f172a; }
.ddr-problem-box-light { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 50px; max-width: 1100px; margin: 0 auto 80px; }
.ddr-problem-intro-light { text-align: center; margin-bottom: 50px; }
.ddr-problem-intro-light h3 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
.ddr-problem-intro-light p { font-size: 1.1rem; color: #475569; line-height: 1.7; max-width: 900px; margin: 0 auto; }
.ddr-attacks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.attack-item-light { background: #ffffff; padding: 30px; border-radius: 8px; border-left: 4px solid #ef4444; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; }
.attack-item-light:hover { transform: translateY(-5px); }
.attack-item-light h4 { color: #0f172a; font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.attack-item-light p { color: #64748b; font-size: 0.95rem; line-height: 1.5; margin: 0; }

.ddr-section-dark { padding: 100px 5%; background-color: #0f172a; color: white; position: relative; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); }
.ddr-header-dark { text-align: center; margin-bottom: 60px; }
.ddr-solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 80px; align-items: stretch; }
.solution-card-white { background-color: #ffffff; color: #0f172a; border-radius: 16px; padding: 40px; transition: transform 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.solution-card-white:hover { transform: translateY(-8px); border-bottom: 5px solid var(--accent); }
.sol-card-text-wrapper { flex-grow: 1; margin-bottom: 30px; }
.sol-card-image-container { width: 100%; height: 280px; background-color: #f1f5f9; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center center; background-repeat: no-repeat; border: 1px solid #e2e8f0; }
.sol-icon { width: 60px; height: 60px; background: rgba(34, 211, 238, 0.1); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.sol-icon svg { width: 30px; height: 30px; }
.solution-card-white h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: #0f172a; }
.solution-card-white p { color: #475569; line-height: 1.6; margin-bottom: 25px; }
.sol-features-light { padding: 0; margin: 0; }
.sol-features-light li { list-style: none; margin-bottom: 15px; padding-left: 20px; position: relative; color: #64748b; font-size: 0.95rem; line-height: 1.5; }
.sol-features-light li::before { content: '›'; color: var(--accent); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; }
.sol-features-light strong { color: #0f172a; }
#img-math { background-image: url('img/math.png'); }
#img-behavior { background-image: url('img/conducta.png'); }

.ddr-performance-box-white { border-top: none !important; padding-top: 0 !important; margin-top: 0; text-align: center; max-width: 1000px; margin: 0 auto; padding-bottom: 40px; }
.ddr-section-white { border-top: none; }
.ddr-performance-box-white h3 { font-size: 2rem; font-weight: 900; margin-bottom: 20px; color: #0f172a; }
.subtitle-perf { font-size: 1.1rem; color: #64748b; margin-bottom: 50px; }
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.perf-item-white { display: flex; flex-direction: column; align-items: center; text-align: center; }
.perf-icon { width: 70px; height: 70px; background-color: #ecfeff; border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); transition: transform 0.3s ease; }
.perf-item-white:hover .perf-icon { transform: scale(1.1); background-color: var(--accent); color: #ffffff; box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3); }
.perf-icon svg { width: 32px; height: 32px; stroke-width: 2; }
.perf-item-white h4 { color: var(--accent); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.perf-item-white p { color: #475569; font-size: 1rem; line-height: 1.5; }

/* FOOTER */
.footer { background-color: #0f172a; color: #ffffff; padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: #94a3b8; line-height: 1.6; font-size: 0.95rem; }
.footer-main-link { display: block; font-size: 1.1rem; font-weight: 800; color: #ffffff !important; text-decoration: none !important; margin-bottom: 15px; transition: opacity 0.3s ease; }
.footer-main-link:hover { opacity: 0.8; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ffffff !important; text-decoration: none !important; font-size: 0.95rem; opacity: 0.7; transition: opacity 0.3s ease; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { color: #64748b; font-size: 0.85rem; }
.footer-links button#btn-open-contact { background: none; border: none; padding: 0; margin: 0; font-family: inherit; font-size: 0.95rem; cursor: pointer; color: #ffffff !important; opacity: 0.7; text-decoration: none; text-align: left; transition: opacity 0.3s ease; }
.footer-links button#btn-open-contact:hover { opacity: 1; }

/* MODALES Y FORMULARIOS */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px); z-index: 9999; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: white; padding: 40px; border-radius: 16px; width: 90%; max-width: 600px; position: relative; transform: translateY(20px); transition: transform 0.3s ease; box-shadow: 0 25px 50px rgba(0,0,0,0.5); color: #0f172a; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; color: #64748b; background: none; border: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.form-group { display: flex; flex-direction: column; text-align: left; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: #334155; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 1rem; }
.submit-btn { background: #22d3ee; color: #0f172a; border: none; padding: 15px; font-size: 1rem; font-weight: 800; text-transform: uppercase; cursor: pointer; border-radius: 6px; width: 100%; transition: all 0.3s ease; }
.submit-btn:hover { background: #06b6d4; box-shadow: 0 0 20px rgba(34, 211, 238, 0.5); }
.honey-field { display: none; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; min-height: 450px; }
.contact-info-side { background-color: #f8fafc; padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #e2e8f0; }
.contact-info-item { margin-bottom: 30px; }
.contact-info-item h4 { font-size: 0.8rem; text-transform: uppercase; color: #64748b; letter-spacing: 1px; margin-bottom: 8px; font-weight: 700; }
.contact-info-item p { font-size: 1rem; color: #0f172a; font-weight: 600; line-height: 1.5; margin: 0; }
.contact-link { color: #0f172a; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: color 0.3s; }
.contact-link:hover { color: var(--accent); }
.map-link { font-size: 0.85rem; color: #0891b2; margin-top: 8px; display: inline-block; text-decoration: none; font-weight: 600; }
.map-link:hover { text-decoration: underline; }
.contact-form-side { padding: 40px; background: #fff; }

.scroll-top-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--accent); color: #0f172a; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background-color: #ffffff; transform: translateY(-5px); box-shadow: 0 0 20px rgba(34, 211, 238, 0.6); }
.scroll-top-btn svg { width: 24px; height: 24px; stroke-width: 3; }

.privacy-box { margin-top: 15px; margin-bottom: 15px; font-size: 0.85rem; color: #475569; display: flex; align-items: flex-start; gap: 10px; }
.privacy-box input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; cursor: pointer; }
.privacy-box label { font-size: 0.85rem; color: #475569; font-weight: 400; cursor: pointer; }
.privacy-box a { color: var(--accent); text-decoration: underline; }
.legal-text-small { font-size: 0.7rem; color: #94a3b8; line-height: 1.4; margin-top: 10px; border-top: 1px solid #e2e8f0; padding-top: 10px; text-align: left; }

.kill-switch-section .ks-flex-container { display: flex; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; flex-wrap: wrap; }
.kill-switch-section .ks-col-text { flex: 0.8; min-width: 300px; display: flex; flex-direction: column; }
.kill-switch-section .ks-col-image { flex: 1.2; min-width: 300px; display: flex; flex-direction: column; justify-content: center; }
.kill-switch-section .ks-card { background-color: #f4f8fb; border-left: 5px solid #00c3ff; border-radius: 10px; padding: 30px; height: 100%; box-sizing: border-box; font-family: sans-serif; color: #334e68; line-height: 1.6; font-size: 16px; display: flex; flex-direction: column; justify-content: center; }
.kill-switch-section .ks-card p { margin-bottom: 20px; }
.kill-switch-section .ks-card p:last-child { margin-bottom: 0; }
.kill-switch-section .ks-card strong { color: #0070c0; }
.kill-switch-section .ks-img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }

/* Gráfico Comparativo DDR */
.ddr-comparison-graphic { display: flex; align-items: stretch; justify-content: center; gap: 20px; margin: 50px auto; max-width: 1000px; padding: 20px; font-family: 'Inter', sans-serif; flex-wrap: wrap; }
.ddr-comp-card { flex: 1; min-width: 300px; background: #fff; border-radius: 16px; padding: 30px; text-align: center; position: relative; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); transition: transform 0.3s ease; border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.ddr-comp-card.traditional { background: #f8fafc; border-top: 5px solid #94a3b8; }
.ddr-comp-card.mitra { background: #ffffff; border: 1px solid #bae6fd; border-top: 5px solid #00c3ff; box-shadow: 0 20px 40px -10px rgba(0, 195, 255, 0.15); z-index: 2; }
.comp-header { margin-bottom: 25px; }
.comp-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; font-weight: 600; }
.comp-label.highlight { color: #00c3ff; }
.comp-title { font-size: 1.5rem; color: #0f172a; margin: 5px 0 0; font-weight: 800; }
.comp-visual { margin: 20px 0; position: relative; display: flex; flex-direction: column; align-items: center; flex-grow: 1; }
.comp-icon-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.comp-icon-circle svg { width: 40px; height: 40px; }
.comp-icon-circle.gray { background: #e2e8f0; color: #64748b; }
.comp-icon-circle.blue { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); color: #0284c7; }
.comp-icon-circle.pulsing { box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.7); animation: pulse-blue 2s infinite; }
@keyframes pulse-blue { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 195, 255, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 195, 255, 0); } }
.comp-status { font-size: 0.9rem; font-weight: 600; padding: 8px 15px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; }
.comp-status.fail { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.comp-status.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.comp-footer { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 10px; }
.comp-footer p { color: #334155; font-size: 1rem; margin-bottom: 15px; }
.comp-vulnerability ul { list-style: none; padding: 0; font-size: 0.85rem; color: #64748b; }
.comp-vulnerability li::before { content: "⚠️ "; }
.tag-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 5px; }
.tech-tag { font-size: 0.75rem; background: #0f172a; color: #fff; padding: 4px 8px; border-radius: 4px; font-weight: 600; }
.comp-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #cbd5e1; font-weight: 700; position: relative; min-width: 40px; }
.connector-line { width: 2px; height: 100%; background: #e2e8f0; }
.connector-badge { background: #fff; border: 2px solid #e2e8f0; color: #94a3b8; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; z-index: 1; margin: 10px 0; }

.modal-content.legal-box { max-width: 800px; max-height: 80vh; overflow-y: auto; padding: 40px; text-align: left; color: #334e68; line-height: 1.6; }
.modal-content.legal-box h2 { color: #0f172a; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.modal-content.legal-box h3 { color: #0f172a; margin-top: 25px; margin-bottom: 10px; font-size: 1.1rem; }
.modal-content.legal-box ul { margin-bottom: 15px; padding-left: 20px; }
.modal-content.legal-box::-webkit-scrollbar { width: 8px; }
.modal-content.legal-box::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.modal-content.legal-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.modal-content.legal-box::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

#btn-open-demo-footer { padding: 20px 50px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; border-radius: 4px; border: 3px solid transparent; background-image: linear-gradient(white, white), linear-gradient(to right, #1e3a8a, #22d3ee); background-origin: border-box; background-clip: padding-box, border-box; color: #0f172a; box-shadow: 0 0 20px rgba(34, 211, 238, 0.3); }
#btn-open-demo-footer:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(34, 211, 238, 0.6); background-image: linear-gradient(white, white), linear-gradient(to left, #1e3a8a, #22d3ee); }

.awards-section-highlight { background-color: #ffffff; padding: 100px 0; text-align: center; }
.awards-container-centered { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.awards-box-hover { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 16px; padding: 60px 40px; transition: all 0.3s ease; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); }
.awards-box-hover:hover { border-color: var(--accent); box-shadow: 0 20px 40px -10px rgba(0, 195, 255, 0.25); transform: translateY(-5px); }
.awards-grid-large { display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap; }
.award-item-large { text-align: center; }
.award-img-large { height: 180px; width: auto; margin-bottom: 25px; filter: grayscale(20%) contrast(95%); transition: all 0.3s ease; }
.awards-box-hover:hover .award-img-large { filter: grayscale(0%) contrast(100%); transform: scale(1.05); }
.award-title-large { color: #334e68; font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; margin-top: 10px; }

.experience-split-container { display: flex; align-items: center; gap: 60px; justify-content: space-between; flex-wrap: wrap; }
.experience-text-col { flex: 1; min-width: 300px; font-size: 1.15rem; line-height: 1.8; color: #cbd5e1; }
.experience-text-col p { margin-bottom: 25px; }
.experience-text-col strong { color: #ffffff; font-weight: 700; }
.experience-text-col .text-cyan { color: var(--accent); }
.experience-img-col { flex: 0 0 450px; position: relative; }
.ibex-img-generated { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 2; transition: transform 0.3s ease; }
.ibex-img-generated:hover { transform: scale(1.02); }
.ibex-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 80%; background: var(--accent); filter: blur(80px); opacity: 0.15; z-index: 1; }

/* =================================================================
   SECCIÓN DE RESPONSIVIDAD (ESTE ES EL ÚNICO BLOQUE NECESARIO)
================================================================= */

/* --- TABLETS (Max 1024px) --- */
@media (max-width: 1024px) {
    /* 1. ACTIVAR MENÚ HAMBURGUESA */
    .mobile-menu-toggle { display: flex !important; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; cursor: pointer; opacity: 1; pointer-events: auto; }
    .mobile-menu-toggle span { display: block; width: 100%; height: 3px; background-color: #ffffff; border-radius: 2px; transition: 0.3s; }
    .navbar.scrolled .mobile-menu-toggle span { background-color: #0f172a; }

    /* 2. MENÚ DESPLEGABLE */
    .nav-menu { position: fixed; top: 0; right: -100%; width: 70%; max-width: 320px; height: 100vh; background-color: #0f172a; flex-direction: column; justify-content: center; padding: 40px; gap: 30px; transition: right 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 999; }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-item { font-size: 18px; text-align: center; width: 100%; }
    
    /* 3. GRIDS TABLET */
    .ddr-attacks-grid, .ddr-solution-grid, .perf-grid, .impl-grid, .partner-container { grid-template-columns: 1fr; gap: 40px; }
    .awards-grid-large { flex-direction: column; gap: 50px; }
}

/* --- MÓVILES (Max 900px) --- */
@media (max-width: 900px) {

    /* --- 1. NAVBAR FIXED LAYOUT --- */
    .navbar { padding: 0 15px !important; height: 70px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; flex-wrap: nowrap !important; }
    
    /* Logo Izquierda */
    .logo { order: 1; margin: 0 auto 0 0 !important; width: auto !important; max-width: 130px !important; height: auto !important; position: static !important; }
    .logo img { position: static !important; max-height: 35px !important; width: auto !important; transform: none !important; }

    /* Botón Demo (Derecha-Centro) */
    .navbar #btn-open-demo { order: 2; margin-left: auto !important; margin-right: 15px !important; padding: 6px 12px !important; font-size: 11px !important; height: auto !important; display: block !important; white-space: nowrap; }

    /* Menú Hamburguesa (Derecha Extrema) */
    .mobile-menu-toggle { order: 3; margin: 0 !important; z-index: 10005; }
    
    /* VISIBILIDAD BARRAS MENÚ: Blancas en Hero, Negras al bajar */
    .mobile-menu-toggle span { background-color: #ffffff; }
    .navbar.scrolled .mobile-menu-toggle span { background-color: #0f172a; }

    /* --- 2. CORRECCIÓN TEXTOS APLASTADOS (COLUMNAS) --- */
    .mitra-container-final, .experience-split-container, .kill-switch-section .ks-flex-container, .ddr-solution-grid { display: flex !important; flex-direction: column-reverse !important; align-items: center !important; width: 100% !important; height: auto !important; }
    .mitra-left-text, .mitra-right-image, .experience-text-col, .experience-img-col, .ks-col-text, .ks-col-image, .solution-card-white, .sol-card-image-container { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin-bottom: 25px !important; flex: none !important; }
    .ks-col-image { margin-bottom: 30px !important; }

    /* --- 3. CORRECCIÓN ICONOS GIGANTES --- */
    .icon-circle svg, .impl-icon-circle svg, .kill-icon-circle svg, .step-icon-wrapper svg { width: 32px !important; height: 32px !important; }
    .icon-circle, .impl-icon-circle, .kill-icon-circle, .step-icon-wrapper { width: 64px !important; height: 64px !important; margin: 0 auto 15px auto !important; flex-shrink: 0 !important; }

    /* --- 4. GRIDS Y TÍTULOS --- */
    .problem-grid, .solution-grid, .attack-grid, .footer-grid { display: flex !important; flex-direction: column !important; gap: 30px !important; }
    .stat-card { max-width: 100% !important; }
    
    h1 { font-size: 34px !important; line-height: 1.1 !important; }
    .section-title { font-size: 26px !important; }
    .partner-text h2 { font-size: 24px !important; }
    
    /* Flechas rotadas en móvil */
    .arrow-connector { transform: rotate(90deg); margin: 5px 0; height: 30px; }

    /* Gráfico Comparativo */
    .ddr-comparison-graphic { flex-direction: column !important; }
    .comp-connector { flex-direction: row; height: 40px; width: 100%; margin: 15px 0; }
    .connector-line { width: 45%; height: 2px; }
}
/

@media (max-width: 900px) {
    
    /* 1. LOGO: Ocultar físicamente el que no se usa */
    
    /* Por defecto (Fondo oscuro): Muestra Blanco, Elimina Color */
    .navbar .logo-white { 
        display: block !important; 
        width: auto !important; 
        max-width: 100% !important;
    }
    .navbar .logo-color { 
        display: none !important; 
    }

    /* Cuando haces Scroll (Fondo blanco): Muestra Color, Elimina Blanco */
    .navbar.scrolled .logo-white { 
        display: none !important; 
    }
    .navbar.scrolled .logo-color { 
        display: block !important; 
        width: auto !important; 
        max-width: 100% !important;
    }

    /* Ajuste final del contenedor para quitar espacios extra */
    .logo {
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 1; /* Permite encogerse si el móvil es muy estrecho */
    }
    
    /* Aseguramos que la imagen visible no tenga márgenes raros */
    .logo img {
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain;
    }
}
@media (max-width: 900px) {

    /* 1. Asegurar que el botón NO tenga fondo */
    .mobile-menu-toggle {
        background: transparent !important;
        border: none !important;
        padding: 5px; /* Un poco de aire para pulsar mejor */
    }

    /* 2. ESTADO INICIAL (Arriba): Rayas AZULES */
    /* Usamos :not(.scrolled) para detectar cuando NO se ha hecho scroll */
    .navbar:not(.scrolled) .mobile-menu-toggle span {
        background-color: #22d3ee !important; /* Tu azul corporativo */
        box-shadow: 0 1px 3px rgba(0,0,0,0.3); /* Pequeña sombra para que se lea bien sobre cualquier foto */
    }

    /* 3. ESTADO SCROLL (Bajando): Rayas NEGRAS */
    .navbar.scrolled .mobile-menu-toggle span {
        background-color: #000000 !important; /* Negro puro */
        box-shadow: none !important; /* Quitamos sombra en fondo blanco */
    }
}
/* =================================================================
   PARCHE DE ESTABILIZACIÓN DEL LOGO (MÓVIL)
   Estrategia: Caja fija + Superposición absoluta
   Evita que el logo "baile" al hacer scroll
================================================================= */

@media (max-width: 900px) {
    
    /* 1. CONTENEDOR: Definimos una "caja fuerte" fija */
    .logo {
        position: relative !important;  /* Referencia para las imágenes */
        width: 140px !important;        /* Ancho fijo: NUNCA cambiará */
        height: 40px !important;        /* Alto fijo: NUNCA cambiará */
        display: block !important;      /* Bloque para respetar medidas */
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;      /* Prohibido encogerse */
    }

    /* 2. IMÁGENES: Las clavamos en el sitio */
    .logo img {
        position: absolute !important;  /* Superpuestas una encima de la otra */
        top: 50% !important;
        left: 0 !important;
        transform: translateY(-50%) !important; /* Centrado vertical matemático */
        
        width: 100% !important;         /* Llenar el ancho del contenedor (140px) */
        height: auto !important;        
        max-height: 100% !important;    /* No salirse del alto (40px) */
        
        object-fit: contain !important; /* Ajuste perfecto sin deformar */
        object-position: left center !important; /* Siempre pegadas a la izquierda */
        
        margin: 0 !important;
        padding: 0 !important;
        
        /* Importante: Están las dos presentes siempre, solo jugamos con la opacidad */
        display: block !important;      
        transition: opacity 0.3s ease !important;
    }

    /* 3. LÓGICA DE VISIBILIDAD (Cross-fade suave) */
    
    /* Estado INICIAL (Fondo oscuro): Se ve el BLANCO */
    .navbar .logo-white {
        opacity: 1 !important;
        z-index: 2;
    }
    .navbar .logo-color {
        opacity: 0 !important;
        z-index: 1;
    }

    /* Estado SCROLLED (Fondo blanco): Se ve el COLOR */
    .navbar.scrolled .logo-white {
        opacity: 0 !important;
    }
    .navbar.scrolled .logo-color {
        opacity: 1 !important;
    }
}
/* =================================================================
   CORRECCIÓN FINAL: TEXTO DEL MENÚ MÓVIL AL HACER SCROLL
   Evita que las letras se vuelvan negras sobre fondo negro
================================================================= */

@media (max-width: 1024px) {
    
    /* Forzamos que los enlaces del menú sean BLANCOS siempre en móvil */
    /* Incluso cuando la barra principal (.navbar.scrolled) diga que sean negros */
    .navbar.scrolled .nav-menu .nav-item {
        color: #ffffff !important;
    }

    /* Mantenemos el color AZUL para la opción activa o hover */
    .navbar.scrolled .nav-menu .nav-item.active,
    .navbar.scrolled .nav-menu .nav-item:hover {
        color: #22d3ee !important; /* var(--accent) */
    }
}
/* =================================================================
   CORRECCIÓN FINAL: DIAGRAMA TOPOLÓGICO (SECCIÓN NEGRA)
   Problema: La imagen de fondo desaparecía al tener altura 0 en móvil
================================================================= */

@media (max-width: 900px) {
    
    /* 1. Dar altura explícita al contenedor de la imagen */
    .mitra-right-image {
        display: block !important;
        width: 100% !important;
        
        /* Altura mínima obligatoria para que el fondo se vea */
        min-height: 300px !important; 
        height: 300px !important; 
        
        /* Ajustar la imagen de fondo para que se vea entera y centrada */
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        
        /* Separación con el texto que va debajo */
        margin-bottom: 20px !important; 
        flex: none !important;
    }

    /* 2. Ajuste fino del contenedor padre para asegurar el orden correcto */
    /* Asegura Imagen Arriba / Texto Debajo */
    .mitra-container-final {
        display: flex !important;
        flex-direction: column-reverse !important; /* Invierte el orden: (2) Imagen -> (1) Texto */
        height: auto !important;
        padding-bottom: 40px !important; /* Espacio final */
    }

    /* 3. Limpieza del texto para que no tenga rellenos extraños */
    .mitra-left-text {
        width: 100% !important;
        padding: 0 20px !important;
        text-align: center !important; /* Opcional: Centrar texto en móvil suele quedar mejor */
    }
}
/* =================================================================
   CORRECCIÓN FINAL: CUADROS DESALINEADOS Y GRÁFICOS
   Arregla: Tarjetas desplazadas a la derecha, huecos blancos y cortes
================================================================= */

@media (max-width: 900px) {

    /* 1. ARREGLO DEL GRÁFICO COMPARATIVO (La foto que enviaste) */
    .ddr-comparison-graphic {
        display: flex !important;
        flex-direction: column !important; /* Fuerza una columna vertical */
        align-items: stretch !important;   /* Estira las cajas al ancho disponible */
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;        /* Margen de seguridad lateral */
        margin: 30px auto !important;
        box-sizing: border-box !important;
        gap: 0 !important;                 /* Quitamos gap nativo para controlarlo abajo */
    }

    /* La tarjeta blanca (EDR / Mitra) */
    .ddr-comp-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;           /* Elimina el bloqueo de 300px */
        margin: 0 0 20px 0 !important;     /* Solo margen abajo */
        flex: none !important;             /* Evita comportamientos extraños de flex */
        left: 0 !important;                /* Asegura que no esté desplazado */
        transform: none !important;        /* Resetea transformaciones */
    }

    /* El círculo "VS" conector */
    .comp-connector {
        flex-direction: row !important;
        width: 100% !important;
        height: 50px !important;
        margin: 10px 0 30px 0 !important;
    }
    .connector-line {
        width: 100% !important;
        height: 2px !important;
    }

    /* 2. ARREGLO DE ICONOS (Por seguridad, si se ven gigantes) */
    .comp-icon-circle, 
    .icon-circle, 
    .kill-icon-circle {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 20px auto !important;
    }
    
    svg {
        width: 35px !important;
        height: 35px !important;
        max-width: 35px !important;
    }

    /* 3. ARREGLO DE TEXTOS Y MÁRGENES EN MÓVIL */
    .section-header, 
    .solution-header,
    .ddr-header-white {
        padding: 0 20px !important;
        text-align: center !important;
    }
    
    h2, .section-title {
        font-size: 28px !important; /* Reducimos títulos para que no rompan el ancho */
        line-height: 1.2 !important;
    }
}
/* =================================================================
   CORRECCIÓN FINAL: CUADROS DESALINEADOS Y GRÁFICOS
   Arregla: Tarjetas desplazadas a la derecha, huecos blancos y cortes
================================================================= */

@media (max-width: 900px) {

    /* 1. ARREGLO DEL GRÁFICO COMPARATIVO (La foto que enviaste) */
    .ddr-comparison-graphic {
        display: flex !important;
        flex-direction: column !important; /* Fuerza una columna vertical */
        align-items: stretch !important;   /* Estira las cajas al ancho disponible */
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;        /* Margen de seguridad lateral */
        margin: 30px auto !important;
        box-sizing: border-box !important;
        gap: 0 !important;                 /* Quitamos gap nativo para controlarlo abajo */
    }

    /* La tarjeta blanca (EDR / Mitra) */
    .ddr-comp-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;           /* Elimina el bloqueo de 300px */
        margin: 0 0 20px 0 !important;     /* Solo margen abajo */
        flex: none !important;             /* Evita comportamientos extraños de flex */
        left: 0 !important;                /* Asegura que no esté desplazado */
        transform: none !important;        /* Resetea transformaciones */
    }

    /* El círculo "VS" conector */
    .comp-connector {
        flex-direction: row !important;
        width: 100% !important;
        height: 50px !important;
        margin: 10px 0 30px 0 !important;
    }
    .connector-line {
        width: 100% !important;
        height: 2px !important;
    }

    /* 2. ARREGLO DE ICONOS (Por seguridad, si se ven gigantes) */
    .comp-icon-circle, 
    .icon-circle, 
    .kill-icon-circle {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 20px auto !important;
    }
    
    svg {
        width: 35px !important;
        height: 35px !important;
        max-width: 35px !important;
    }

    /* 3. ARREGLO DE TEXTOS Y MÁRGENES EN MÓVIL */
    .section-header, 
    .solution-header,
    .ddr-header-white {
        padding: 0 20px !important;
        text-align: center !important;
    }
    
    h2, .section-title {
        font-size: 28px !important; /* Reducimos títulos para que no rompan el ancho */
        line-height: 1.2 !important;
    }
}
/* =================================================================
   CORRECCIÓN FINAL DEFINITIVA: TARJETAS ANCHAS EN MÓVIL
   Solución: Eliminar márgenes laterales excesivos para ganar espacio
================================================================= */

@media (max-width: 900px) {

    /* 1. ELIMINAR MÁRGENES DE LA SECCIÓN PADRE */
    /* Esto permite que el contenido llegue casi al borde del teléfono */
    .ddr-section-white, 
    .ddr-section-dark,
    .problem-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 2. ENSANCHAR EL CONTENEDOR DE GRÁFICOS */
    .ddr-comparison-graphic {
        width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 !important; /* Quitamos padding del contenedor */
        gap: 0 !important;
    }

    /* 3. TARJETAS: MÁXIMO ANCHO POSIBLE */
    .ddr-comp-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important; /* Solo margen abajo */
        
        /* Reducimos el relleno interno drásticamente */
        padding: 30px 10px !important; 
        
        border-radius: 12px !important;
    }

    /* 4. TÍTULOS: Ajuste de tamaño y ruptura de palabras */
    /* Esto evita que "Antiransomware" se corte o empuje el cuadro */
    .ddr-comp-card h3, 
    .comp-title,
    .solution-card h3 {
        font-size: 20px !important; /* Letra un poco más pequeña */
        word-wrap: break-word !important; /* Romper palabra si es larga */
        overflow-wrap: break-word !important;
        hyphens: auto !important; /* Añadir guiones si es necesario */
        line-height: 1.3 !important;
        padding: 0 5px !important;
    }

    /* 5. ARREGLO VISUAL EXTRA: Conector VS */
    .comp-connector {
        margin: 0 0 20px 0 !important;
    }
}
/* =================================================================
   CORRECCIÓN FINAL: FORMULARIOS CORTADOS (MODAL DEMO)
   Solución: Poner los campos en una sola columna vertical
================================================================= */

@media (max-width: 900px) {

    /* 1. FORZAR COLUMNA VERTICAL EN FORMULARIOS */
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; /* Espacio entre campos */
        margin-top: 10px !important;
    }

    /* 2. ASEGURAR QUE LOS INPUTS OCUPEN EL 100% */
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Forzar inputs y selects al ancho completo */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100% !important;
        box-sizing: border-box !important; /* Vital para que el padding no rompa el ancho */
    }

    /* 3. AJUSTE DEL CONTENEDOR DEL MODAL */
    /* Damos un poco más de aire quitando padding excesivo */
    .modal-content {
        padding: 25px 15px !important; /* Menos relleno lateral */
        width: 95% !important;         /* Casi todo el ancho de pantalla */
        max-width: 100% !important;
    }
    
    /* Ajuste del título del modal para que no se rompa */
    .modal-header h3 {
        font-size: 1.5rem !important;
    }
}
/* =================================================================
   CORRECCIÓN FINAL: MODALES Y FORMULARIOS (SOLICITAR DEMO / CONTACTO)
   Solución: Campos cortados y distribución vertical en móviles
================================================================= */

@media (max-width: 900px) {

    /* 1. FORZAR FORMULARIOS A UNA SOLA COLUMNA VERTICAL */
    /* Esto arregla que "Nombre" y "Email" salgan cortados */
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
        width: 100% !important;
    }

    /* 2. ASEGURAR QUE LOS CAMPOS NO SE DESBORDEN */
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 0 !important; /* El gap del padre ya separa */
    }

    /* Forzar inputs al ancho completo de la pantalla disponible */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important; /* Vital para que el padding no rompa el ancho */
    }

    /* Casilla de privacidad que ocupe todo el ancho */
    .form-group.full-width {
        width: 100% !important;
        grid-column: auto !important;
    }

    /* 3. ARREGLAR MODAL DE CONTACTO (Sede Central + Formulario) */
    .contact-layout {
        display: flex !important;
        flex-direction: column !important; /* Sede arriba, Formulario abajo */
        width: 100% !important;
    }

    .contact-info-side, 
    .contact-form-side {
        width: 100% !important;
        padding: 25px 20px !important; 
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    /* 4. AJUSTE GENERAL DE LA CAJA DEL MODAL */
    /* Damos más espacio útil reduciendo bordes */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
        margin: 10px auto !important;
        max-height: 85vh !important; /* Evita que se salga por abajo */
        overflow-y: auto !important; /* Scroll interno si es necesario */
    }
}
/* =================================================================
   FIX: MODAL PRIVACIDAD ENCIMA DE CONTACTO
   Asegura que los textos legales se vean sobre el formulario
================================================================= */

#modal-privacy, 
#modal-terms, 
#modal-cookies {
    z-index: 20000 !important; /* Muy alto para superar al modal de contacto (9999) */
}
/* =================================================================
   CORRECCIÓN FINAL: ORDEN DEL MODAL CONTACTO (VÍDEO)
   Solución: Poner el formulario PRIMERO y la dirección DEBAJO
================================================================= */

@media (max-width: 900px) {

    /* 1. INVERTIR EL ORDEN: Formulario arriba, Info abajo */
    .contact-layout {
        display: flex !important;
        flex-direction: column-reverse !important; /* TRUCO: Invierte el orden visual */
        width: 100% !important;
    }

    /* 2. OCULTAR EL LOGO DECORATIVO DENTRO DEL MODAL */
    /* En móvil roba demasiado espacio valioso */
    .contact-info-side img {
        display: none !important;
    }

    /* 3. AJUSTES VISUALES PARA LA NUEVA DISPOSICIÓN */
    
    /* El lado del formulario (ahora arriba) */
    .contact-form-side {
        padding: 20px 15px 10px 15px !important; /* Menos padding abajo */
        border-bottom: 1px solid #e2e8f0 !important; /* Línea de separación */
        background: #fff !important;
    }

    /* El lado de la info (ahora abajo) */
    .contact-info-side {
        padding: 20px 15px !important;
        background-color: #f8fafc !important; /* Fondo gris para diferenciarlo */
        text-align: center !important;         /* Centrar texto */
        border-right: none !important;
    }

    /* Centrar los textos de la info (Sede, Teléfono) */
    .contact-info-item {
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    /* 4. ASEGURAR QUE EL TÍTULO SE VEA BIEN */
    .contact-form-side .modal-header {
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    .contact-form-side h3 {
        font-size: 1.6rem !important;
        margin-top: 0 !important;
    }

    /* 5. FIX EXTRA: QUE EL SCROLL NO SE SIENTA "INFINITO" */
    .modal-content {
        max-height: 85vh !important; /* Dejar un margen arriba/abajo */
        margin: 20px auto !important;
    }
}