/* ── Fuentes alojadas en la propia web (sin Google Fonts: no se envían datos a terceros) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Variables e Identidad Visual ── */
:root {
    --bg: #07090F;
    --surface: rgba(13, 21, 38, 0.60);
    --surface-2: rgba(19, 31, 56, 0.70);
    --surface-solid: #0d1526;
    --brand-blue: #4A80FF;
    --brand-blue-hover: #3A6AEF;
    --brand-blue-glow: rgba(74, 128, 255, 0.25);
    
    --border: rgba(74, 128, 255, 0.18);
    --border-soft: rgba(255, 255, 255, 0.06);
    
    --text: #F0F6FF;
    --text-muted: #7A95BF;
    --text-dim: #3D5070;
    
    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.10);
    --success-border: rgba(34, 197, 94, 0.20);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.10);
    --warning: #F97316;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset y Estilos Globales ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(74, 128, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 128, 255, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Scrollbar Personalizada ── */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border: 2px solid var(--bg);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* ── Estructura Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ── Componentes de Texto ── */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #FFF 30%, #A0B8FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-blue-text {
    background: linear-gradient(135deg, #4A80FF 0%, #8DAEFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    text-align: center;
}

.section-desc {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 60px;
    text-align: center;
}

/* ── Botones Premium ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 4px 20px var(--brand-blue-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 128, 255, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(74, 128, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--brand-blue);
}

/* ── Tarjetas Glassmórficas ── */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(74, 128, 255, 0.05);
}

/* ── Cabecera (Navbar) ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(7, 9, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(7, 9, 15, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* ── Hero Section ── */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    min-height: 95vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(74, 128, 255, 0.1);
    border: 1px solid rgba(74, 128, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 24px;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(74, 128, 255, 0); }
    100% { box-shadow: 0 0 16px rgba(74, 128, 255, 0.15); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-soft);
    padding-top: 32px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Mockup de Celular / Escritorio Flotante */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 480px;
}

.mockup-phone {
    position: absolute;
    width: 230px;
    height: 460px;
    background: #0D1526;
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(74, 128, 255, 0.15);
    z-index: 5;
    left: 20px;
    top: 0;
    overflow: hidden;
    transform: rotate(-4deg);
    transition: var(--transition);
}

.mockup-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-desktop {
    position: absolute;
    width: 320px;
    height: 220px;
    background: #0d1526;
    border: 6px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(124, 92, 252, 0.1);
    z-index: 3;
    right: 0px;
    bottom: 40px;
    overflow: hidden;
    transform: rotate(3deg);
    transition: var(--transition);
}

.mockup-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-phone:hover {
    transform: rotate(-1deg) translateY(-8px) scale(1.02);
    z-index: 10;
}

.mockup-desktop:hover {
    transform: rotate(1deg) translateY(-8px) scale(1.02);
    z-index: 10;
}

.decor-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 128, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    filter: blur(30px);
}

/* ── Sección Pestañas de Roles Interactiva ── */
.roles-section {
    background: rgba(13, 21, 38, 0.2);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.roles-tabs {
    display: flex;
    justify-content: center;
    background: var(--surface);
    padding: 8px;
    border-radius: 100px;
    max-width: 550px;
    margin: 0 auto 50px;
    border: 1px solid var(--border-soft);
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 128, 255, 0.25);
}

.role-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.role-panel.active {
    display: grid;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.role-info h3 {
    font-size: 2rem;
    margin-bottom: 18px;
}

.role-info-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.role-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74, 128, 255, 0.1);
    border: 1px solid rgba(74, 128, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-blue);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Showcase de Capturas de Pantalla */
.role-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-showcase .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07090F;
}

.role-showcase .carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.showcase-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(13, 21, 38, 0.8);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-soft);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--brand-blue);
    width: 20px;
    border-radius: 100px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(7, 9, 15, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(240, 246, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.role-showcase:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(74, 128, 255, 0.25);
    border-color: rgba(74, 128, 255, 0.45);
    color: var(--brand-blue);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

@media (hover: none) {
    .carousel-btn {
        opacity: 1;
        pointer-events: auto;
        width: 32px;
        height: 32px;
    }
}

/* ── Seguridad (Triple Capa) ── */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.security-card {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-blue);
    opacity: 0;
    transition: var(--transition);
}

.security-card:hover::before {
    opacity: 1;
}

.security-num {
    font-family: 'Outfit', sans-serif;
    font-size: 54px;
    font-weight: 800;
    color: rgba(74, 128, 255, 0.12);
    position: absolute;
    top: 20px;
    right: 28px;
    line-height: 1;
}

.security-icon {
    font-size: 36px;
    margin-bottom: 24px;
    display: inline-block;
}

.security-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.security-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Módulos ── */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.module-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.module-content h3 {
    font-size: 1.75rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-desc {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1rem;
}

.module-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.module-bullets li {
    display: flex;
    gap: 12px;
    font-size: 15px;
}

.module-bullets li svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

.module-visual {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 16px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.module-visual img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.module-visual:hover img {
    transform: scale(1.04);
}

/* ── FAQ Acordeón ── */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border);
}

.faq-header {
    width: 100%;
    padding: 24px 30px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-icon-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 30px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active {
    background: var(--surface-2);
    border-color: rgba(74, 128, 255, 0.25);
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--brand-blue);
}

.faq-item.active .faq-body {
    padding-bottom: 24px;
}

/* ── CTA Final ── */
.cta-section {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-glass {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(13, 21, 38, 0.8) 0%, rgba(19, 31, 56, 0.6) 100%);
    border: 1px solid var(--border);
    padding: 80px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(74, 128, 255, 0.08);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 36px;
}

.cta-mail {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    transition: var(--transition);
}

.cta-mail:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(74, 128, 255, 0.6);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border-soft);
    padding: 50px 0;
    background: #04060A;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    width: auto;
    align-self: flex-start;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 13px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-email {
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-email:hover {
    color: var(--brand-blue);
}

/* ── Media Queries (Responsividad) ── */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .role-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100vw;
        width: 100vw;
        height: calc(100vh - 80px);
        background: #07090F;
        border-top: 1px solid var(--border-soft);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-menu .btn {
        width: 100%;
        margin-top: 20px;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .mockup-container {
        height: 100%;
    }
    
    .mockup-phone {
        width: 180px;
        height: 360px;
        left: 10px;
    }
    
    .mockup-desktop {
        width: 250px;
        height: 170px;
        bottom: 20px;
        right: 10px;
    }
    
    .roles-tabs {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 6px;
    }
    
    .tab-btn {
        width: 100%;
        padding: 10px 18px;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        align-self: center;
    }
    
    .footer-contact {
        align-items: center;
    }
}

/* ── Estilos del Simulador Interactivo ── */
.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.sim-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sim-pane-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* Teléfono Simulador */
.sim-phone-bezel {
    width: 290px;
    height: 520px;
    background: #0d1526;
    border: 10px solid #1c2b4d;
    border-radius: 42px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 30px rgba(74, 128, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-bottom-width: 14px;
}

.sim-phone-screen {
    flex: 1;
    background: #07090f;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sim-phone-screen .notch {
    width: 120px;
    height: 18px;
    background: #1c2b4d;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.sim-phone-header {
    text-align: center;
    width: 100%;
}

.sim-phone-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #131f38;
    margin: 8px auto;
    border: 2px solid var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sim-phone-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.sim-phone-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sim-qr-container {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sim-qr-container svg {
    width: 100%;
    height: 100%;
    fill: #07090f;
}

.sim-qr-shield {
    position: absolute;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-qr-shield img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sim-qr-ttl {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sim-ttl-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sim-ttl-progress {
    width: 140px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.sim-ttl-bar {
    width: 100%;
    height: 100%;
    background: var(--brand-blue);
    border-radius: 10px;
}

.sim-phone-footer {
    font-size: 0.75rem;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 10px;
}

/* Terminal Escáner */
.sim-scanner-bezel {
    width: 320px;
    height: 420px;
    background: rgba(13, 21, 38, 0.8);
    border: 2px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px rgba(74, 128, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sim-camera-view {
    height: 240px;
    background: #020305;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sim-camera-grid {
    position: absolute;
    inset: 15px;
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 16px;
    z-index: 2;
}

.sim-camera-view::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    background: linear-gradient(rgba(74, 128, 255, 0.06), rgba(74, 128, 255, 0));
    pointer-events: none;
    z-index: 1;
}

/* Láser Escáner */
.sim-laser {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 4px;
    background: rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.9);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sim-laser.scanning {
    opacity: 1;
    animation: laserSweep 1.8s infinite ease-in-out;
}

@keyframes laserSweep {
    0% { top: 15px; }
    50% { top: 220px; }
    100% { top: 15px; }
}

.sim-camera-placeholder {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.sim-scanner-icon {
    font-size: 32px;
    opacity: 0.5;
}

.scanner-status-panel {
    flex: 1;
    background: #0a0f1d;
    border-top: 1px solid var(--border-soft);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.scanner-status-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scanner-status-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.scanner-status-panel.success {
    background: var(--success-bg);
    border-top-color: var(--success-border);
}

.scanner-status-panel.success .scanner-status-title {
    color: var(--success);
}

.scanner-status-panel.error {
    background: var(--error-bg);
    border-top-color: rgba(239, 68, 68, 0.2);
}

.scanner-status-panel.error .scanner-status-title {
    color: var(--error);
}

/* Controles de Simulación */
.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.sim-controls .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.sim-history-list {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
}

.sim-history-item {
    font-size: 0.8rem;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: itemIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes itemIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sim-history-time {
    color: var(--text-dim);
}

.sim-history-status {
    font-weight: 700;
}

.sim-history-status.ok {
    color: var(--success);
}

.sim-history-status.fail {
    color: var(--error);
}

.sim-aforo-overlay {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(13, 21, 38, 0.85);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    z-index: 8;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .sim-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ════════════════════════════════════════════════
   MEJORAS V2 — Animaciones, UX, Nuevas Secciones
   ════════════════════════════════════════════════ */

/* ── Fondo Animado (Orbs) ── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(74, 128, 255, 0.13) 0%, transparent 60%);
    top: -200px;
    left: -200px;
    animation: orbFloat 22s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.10) 0%, transparent 60%);
    top: 40%;
    right: -150px;
    animation: orbFloat 28s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 128, 255, 0.07) 0%, transparent 60%);
    bottom: -100px;
    left: 25%;
    animation: orbFloat 20s ease-in-out infinite 5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0px, 0px); }
    25%       { transform: translate(40px, -30px); }
    50%       { transform: translate(-20px, 40px); }
    75%       { transform: translate(30px, 20px); }
}

/* Asegurar que el contenido quede por encima de los orbs */
section, footer { position: relative; z-index: 1; }

/* ── Barra de Progreso de Scroll ── */
.scroll-progress-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue), #A78BFA);
    transition: width 0.08s linear;
    z-index: 1001;
}

/* ── Animación Float del Mockup Hero ── */
@keyframes floatPhone {
    0%, 100% { transform: rotate(-4deg) translateY(0px); }
    50%       { transform: rotate(-4deg) translateY(-14px); }
}

.mockup-phone.floating {
    animation: floatPhone 5s ease-in-out infinite;
}

.mockup-phone.floating:hover {
    animation-play-state: paused;
    transform: rotate(-1deg) translateY(-8px) scale(1.02) !important;
}

/* ── Scroll Reveal ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.48s; }

/* ── Sección: Cómo Funciona ── */
.steps-section {
    background: rgba(13, 21, 38, 0.15);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    margin-top: 60px;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, rgba(74, 128, 255, 0.2) 100%);
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #7C5CFC 100%);
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(74, 128, 255, 0.3), 0 8px 24px rgba(74, 128, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .steps-grid::before {
        top: 0;
        left: 27px;
        right: auto;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        align-items: flex-start;
        padding: 0 0 36px 0;
    }

    .step-circle {
        margin-bottom: 0;
    }

    .step-content {
        align-items: flex-start;
        padding-top: 6px;
    }
}

/* ── Sección Contacto ── */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.contact-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 16px 0 20px;
    line-height: 1.15;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.perk-item svg {
    color: var(--success);
    flex-shrink: 0;
}

.contact-email-link {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 2px;
    transition: var(--transition);
}

.contact-email-link:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea {
    background: rgba(7, 9, 15, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    width: 100%;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-blue);
    background: rgba(74, 128, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 128, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group textarea {
    min-height: 100px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.form-feedback {
    margin-top: 14px;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.form-feedback.hidden {
    display: none;
}

.form-feedback.form-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.form-feedback.form-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.form-feedback.form-success a {
    color: var(--success);
    font-weight: 700;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

/* ════════════════════════════════════════════════
   LEGAL — Banner Cookies + Modal + Footer
   ════════════════════════════════════════════════ */

/* ── Banner de Cookies ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 880px;
    background: rgba(13, 21, 38, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(74, 128, 255, 0.08);
    z-index: 900;
    animation: bannerSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner.cookie-hiding {
    animation: bannerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bannerSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bannerSlideDown {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}

.cookie-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
}

.cookie-emoji {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.cookie-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    background: none;
    border: none;
    color: var(--brand-blue);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.cookie-link:hover {
    color: #8DAEFF;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-inner {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-btns {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ── Modal Legal ── */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.3s ease forwards;
}

.legal-modal-overlay.hidden {
    display: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.legal-modal-box {
    background: #0d1526;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.legal-tabs {
    display: flex;
    gap: 4px;
}

.legal-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
    border-radius: 6px 6px 0 0;
}

.legal-tab:hover {
    color: var(--text);
}

.legal-tab.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}

.legal-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.legal-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 28px 32px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    outline: none;
}

/* Scrollbar del modal */
.legal-modal-content::-webkit-scrollbar { width: 6px; }
.legal-modal-content::-webkit-scrollbar-track { background: transparent; }
.legal-modal-content::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }

.legal-modal-content h2 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
}

.legal-modal-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.legal-modal-content p {
    margin-bottom: 12px;
}

.legal-modal-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-modal-content ul li {
    margin-bottom: 6px;
}

.legal-modal-content a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-modal-content a:hover {
    color: #8DAEFF;
}

.legal-modal-content code {
    background: rgba(74, 128, 255, 0.08);
    border: 1px solid rgba(74, 128, 255, 0.15);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: var(--brand-blue);
}

/* Tabla legal */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 13px;
}

.legal-table th,
.legal-table td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border-soft);
}

.legal-table thead th {
    background: rgba(74, 128, 255, 0.07);
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table tbody td:first-child {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.legal-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 480px) {
    .legal-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .legal-tabs {
        flex-wrap: wrap;
    }

    .legal-tab {
        font-size: 12px;
        padding: 8px 12px;
    }

    .legal-modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .legal-modal-box {
        position: relative;
    }
}

/* ── Footer — Fila Legal ── */
.footer-legal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
}

.footer-legal-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-legal-btn:hover {
    color: var(--brand-blue);
}

.footer-legal-sep {
    color: var(--text-dim);
    font-size: 12px;
    pointer-events: none;
}

/* ── Footer legal links como <a> además de <button> ── */
a.footer-legal-btn {
    text-decoration: none;
}

a.footer-legal-btn[aria-current="page"] {
    color: var(--brand-blue);
}

/* ════════════════════════════════════════════════
   PÁGINAS LEGALES (privacidad, cookies, aviso-legal)
   ════════════════════════════════════════════════ */

.legal-page-hero {
    padding: 140px 0 56px;
    border-bottom: 1px solid var(--border-soft);
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    list-style: none;
}

.legal-breadcrumb a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition);
}

.legal-breadcrumb a:hover {
    color: #8DAEFF;
    text-decoration: underline;
}

.legal-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.legal-page-date {
    font-size: 13px;
    color: var(--text-dim);
}

.legal-content-section {
    padding: 60px 0 100px;
}

/* Contenedor del documento legal */
.legal-doc {
    max-width: 760px;
    margin: 0 auto;
}

.legal-doc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    margin: 36px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.legal-doc h2:first-of-type {
    margin-top: 0;
}

.legal-doc p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-doc ul {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 22px;
    margin-bottom: 14px;
}

.legal-doc ul li {
    margin-bottom: 6px;
}

.legal-doc strong {
    color: var(--text);
    font-weight: 600;
}

.legal-doc a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.legal-doc a:hover {
    color: #8DAEFF;
}

.legal-doc code {
    background: rgba(74, 128, 255, 0.08);
    border: 1px solid rgba(74, 128, 255, 0.15);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: var(--brand-blue);
}

/* Aviso pendiente (completar datos del titular) */
.legal-notice-box {
    background: rgba(249, 115, 22, 0.07);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #F97316 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 16px 0 !important;
}

/* Navegación entre páginas legales */
.legal-nav-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-soft);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.legal-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.legal-nav-link:hover {
    color: #8DAEFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ── Botón Volver Arriba ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(74, 128, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 128, 255, 0.28);
    color: var(--brand-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(74, 128, 255, 0.0);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(74, 128, 255, 0.22);
    border-color: rgba(74, 128, 255, 0.55);
    box-shadow: 0 4px 24px rgba(74, 128, 255, 0.25);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top svg {
    transition: transform 0.2s ease;
}


/* ════════════════════════════════════════════════
   V3 (2026-11) — Secciones nuevas, SEO y conversión
   ════════════════════════════════════════════════ */

.text-center { text-align: center; }

.nav-link, .footer-nav a { text-decoration: none; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
}

/* Botones de pestañas: reset nativo */
.tab-btn {
    background: none;
    border: none;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-warn { border-color: rgba(249, 115, 22, 0.35); }

/* ── Portada ── */
.hero-badge { margin-bottom: 24px; }

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    border-top: 1px solid var(--border-soft);
    padding-top: 26px;
    width: 100%;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-trust li::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
    border: 1px solid var(--success-border);
}

.mockup-desktop img { object-position: top; }

/* ── Para quién ── */
.audience-section {
    padding: 28px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: rgba(13, 21, 38, 0.25);
}

.audience-title {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.audience-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.audience-list li {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

/* ── Funciones ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card { padding: 26px; }

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(74, 128, 255, 0.1);
    border: 1px solid rgba(74, 128, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

.module-visual { height: 280px; }

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ── Familias ── */
.family-section,
.brand-section {
    background: rgba(13, 21, 38, 0.15);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.brand-section { background: transparent; border: none; }

.family-grid,
.brand-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.brand-grid { grid-template-columns: 0.8fr 1.2fr; }

.section-title-left { text-align: left; }

.family-desc {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.family-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px;
}

.family-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.family-point-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74, 128, 255, 0.1);
    border: 1px solid rgba(74, 128, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.family-point h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.family-point p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.family-visual { display: flex; justify-content: center; }

.family-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(74, 128, 255, 0.08);
}

.family-card-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
}

.family-kid {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(7, 9, 15, 0.55);
    border: 1px solid var(--border-soft);
    margin-bottom: 10px;
}

.family-kid > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.family-kid strong { font-size: 15px; }
.family-kid span { font-size: 13px; color: var(--text-muted); }

.family-kid-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #131f38;
    border: 2px solid var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.family-kid .family-kid-tag {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--brand-blue);
    padding: 4px 10px;
    border-radius: 100px;
}

.family-card-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ── Tu entidad, tu imagen ── */
.brand-visual { display: flex; justify-content: center; }

.brand-phone {
    width: 260px;
    border-radius: 34px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(74, 128, 255, 0.15);
    background: #0d1526;
}

.brand-phone img {
    display: block;
    width: 100%;
    height: auto;
}

.brand-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.brand-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15.5px;
    color: var(--text);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-soft);
}

.brand-list li span { font-size: 18px; line-height: 1.4; }

/* ── Seguridad: franja de confianza ── */
.trust-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.trust-strip li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(74, 128, 255, 0.05);
}

.trust-strip strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
}

.trust-strip span {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ── Simulador ── */
.sim-section {
    background: rgba(13, 21, 38, 0.1);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.sim-history-title {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ── Pasos (lista ordenada) ── */
ol.steps-grid { list-style: none; }

/* ── CTA intermedia ── */
.cta-section { padding: 40px 0 100px; }

/* ── FAQ: h3 sin estilos propios ── */
.faq-q {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

/* ── Formulario ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-group select {
    background: rgba(7, 9, 15, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A95BF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 13px 40px 13px 16px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-group select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(74, 128, 255, 0.12);
}

.form-group select option { background: #0d1526; color: var(--text); }

.form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 20px;
    cursor: pointer;
    line-height: 1.5;
}

.form-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--brand-blue);
    cursor: pointer;
}

.form-check a { color: var(--brand-blue); }

.form-feedback.form-success { text-align: left; }
.form-feedback.form-success p { margin-bottom: 8px; color: var(--text); }
.form-feedback.form-success strong { color: var(--success); }
.form-feedback.form-success .btn { margin-top: 4px; color: var(--text); }
.form-success-alt { font-size: 13.5px; }
.form-feedback.form-success .form-success-alt a { color: var(--brand-blue); }

.contact-perks { list-style: none; }

.contact-alt {
    font-size: 15px;
    color: var(--text-muted);
}

/* ── Pie ── */
.footer-grid { align-items: flex-start; }

.footer-info { max-width: 360px; }

.footer-about {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav a:hover { color: var(--brand-blue); }

.footer-contact .btn { margin-top: 10px; }

.footer-legal-row .footer-copy { font-size: 12px; }

/* ── Barra fija de llamada a la acción (solo móvil) ── */
.mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 850;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(7, 9, 15, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        transform: translateY(110%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-cta.visible { transform: translateY(0); }

    body.has-mobile-cta .back-to-top { bottom: 90px; right: 16px; }
    body.has-mobile-cta .cookie-banner { bottom: 90px; }
}

/* ── Responsive de las secciones nuevas ── */
@media (max-width: 1100px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .family-grid,
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .brand-visual { order: 2; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .hero-trust { justify-content: center; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .hero-section { padding-top: 120px; min-height: auto; }
    .family-points { grid-template-columns: 1fr; }
    .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
    .footer-info { max-width: none; align-items: center; }
    .footer-grid { align-items: center; }
    .footer-contact { align-items: center; }
    .nav-menu { height: calc(100vh - 70px); }
    .contact-section { padding: 70px 0; }
    .cta-section { padding: 20px 0 70px; }
    .cta-glass { padding: 50px 24px; }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; }
    .hero-btns .btn { width: 100%; }
    .contact-form-wrapper { padding: 24px 18px; }
    .brand-phone { width: 220px; }
    .module-visual { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* Tablas legales en móvil: sin desborde horizontal */
@media (max-width: 640px) {
    .legal-doc { overflow-wrap: anywhere; }
    .legal-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .legal-table tbody td:first-child { white-space: normal; }
    .legal-table td, .legal-table th { padding: 8px 10px; }
}
