@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── 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;
    --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;
}
