html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   CaseCovery Triage — Cyber-Legal UI/UX Design System
   ========================================================================== */

:root {
    /* Color Palette: Cyber-Legal Dark Theme */
    --bg-base: #070c18;
    --bg-surface: #0b1325;
    --bg-card: #0f172a;
    --bg-card-hover: #162038;
    --bg-elevated: #1e293b;
    --border-subtle: #1e293b;
    --border-card: rgba(56, 189, 248, 0.15);
    --border-highlight: rgba(56, 189, 248, 0.4);

    /* Accent Colors */
    --accent-cyan: #38bdf8;
    --accent-cyan-glow: rgba(56, 189, 248, 0.25);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.2);
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    --accent-red: #ef4444;

    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Shadows & Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-cyan: 0 0 25px rgba(56, 189, 248, 0.25);
    --shadow-gold: 0 0 30px rgba(245, 158, 11, 0.25);

    /* Layout */
    --max-width: 1240px;
    --nav-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 68px;
    background: radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.22) 0%, transparent 55%),
                radial-gradient(circle at 10% 35%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 65%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
                var(--bg-base);
    min-height: 100vh;
}

section[id], div[id], [id] {
    scroll-margin-top: 80px;
}

/* Top Security Announcement Banner */
.top-banner {
    background: linear-gradient(90deg, #091124 0%, #0f1f42 50%, #091124 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 7px 16px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.top-text {
    color: var(--text-secondary);
}

/* ==========================================================================
   Fixed Navigation Header (+15% Scaling on Logo & Menu Links)
   ========================================================================== */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(7, 12, 24, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: none;
    box-shadow: none;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
}

.brand-sub {
    font-size: 0.70rem;
    color: #00b4d8;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   CASECOVERY Triage — Unificación Tipográfica Oficial (Imagen 2)
   ========================================================================== */
.brand-style {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: baseline;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.brand-style .c-cap {
    font-size: 1.16em !important;
    font-weight: 900 !important;
    color: #00b4d8 !important; /* Cian oficial Image 2 */
    line-height: 1;
    display: inline-block;
}

.brand-style .brand-body,
.brand-style {
    color: #ffffff; /* Letras blancas para contraste óptimo en fondos oscuros */
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* En modales o secciones de fondo claro */
.light-theme .brand-style,
.light-theme .brand-style .brand-body,
.modal-content .brand-style,
.modal-content .brand-style .brand-body,
.desktop-header .brand-style,
.desktop-header .brand-style .brand-body {
    color: #0f172a !important; /* Azul noche oscuro oficial Image 2 */
}

.brand-style .triage-text {
    font-size: 1.02em;
    font-weight: 700;
    color: #d4af37 !important; /* Dorado ocre oficial Image 2 */
    margin-left: 5px;
    letter-spacing: 0.01em;
}

.hero-title .hero-title-highlight {
    display: block;
    margin-top: 18px;
    color: #38bdf8;
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
    font-size: 0.83em;
}

/* Main Navigation Links */
nav.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.1vw, 16px);
    flex-shrink: 1;
}

nav.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.85rem, 0.95vw, 0.96rem);
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

nav.main-nav a:hover {
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-actions .btn-primary {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Flag Icon Image */
.flag-icon-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

/* Custom Language Selector Dropdown */
.custom-lang-selector {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.lang-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d1527;
    color: #f8fafc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 0.88rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-height: 38px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lang-selector-btn:hover,
.lang-selector-btn:focus,
.custom-lang-selector.open .lang-selector-btn {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan-glow);
    background: #111d38;
}

.lang-selector-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.custom-lang-selector.open .lang-selector-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 175px;
    background: #0d1527;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 189, 248, 0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 10005;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.custom-lang-selector.open .lang-dropdown-menu {
    display: flex !important;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.lang-dropdown-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
}

.lang-dropdown-item.active {
    background: rgba(56, 189, 248, 0.22);
    color: #ffffff;
    font-weight: 700;
}

.lang-check-icon {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.15s;
}

.lang-dropdown-item.active .lang-check-icon {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    padding: 10px 18px;
    font-size: 0.92rem;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #070c18;
    padding: 10px 20px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
section.hero-section {
    padding: 36px 24px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: flex-start;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.4px;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.8px;
    color: var(--text-primary);
}

.hero-title .highlight-red {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.metric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.hero-media-col {
    position: relative;
    align-self: flex-start;
    margin-top: 68px;
}

.hero-media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-cyan);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-media-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
}

.hero-media-card img,
.hero-media-card video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-media-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   Section Layouts & General Components
   ========================================================================== */
section.landing-section {
    padding: 70px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

section#pasos.landing-section {
    padding-top: 32px;
    padding-bottom: 50px;
}

#pasos .section-header {
    margin-bottom: 24px;
}

.section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-badge {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}

.section-badge.badge-red {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.section-badge.badge-green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.section-badge.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Section: El Problema (Riesgo Procesal)
   ========================================================================== */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.risk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 18px;
    transition: all 0.3s ease;
}

.risk-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.risk-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.risk-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
}

.risk-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   Steps 1 to 6 Rows
   ========================================================================== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.step-row {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.step-row:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.step-row.step-reverse {
    direction: rtl;
}

.step-row.step-reverse > * {
    direction: ltr;
}

.step-text-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
}

.step-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.step-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.step-tag {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.step-media-col {
    position: relative;
}

.step-media-frame {
    background: #070c18;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.step-media-frame img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Section: 17 Jurisdicciones
   ========================================================================== */
.jurisdictions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.jurisdiction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
}

.jurisdiction-card:hover {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.jurisdiction-flag {
    font-size: 1.75rem;
    line-height: 1;
}

.jurisdiction-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jurisdiction-country {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.jurisdiction-law {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

/* ==========================================================================
   Section: Garantía Local-First
   ========================================================================== */
.privacy-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

.privacy-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.privacy-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.privacy-bullet-icon {
    color: var(--accent-green);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ==========================================================================
   Section: Interactive Demo Workbench
   ========================================================================== */
.demo-workbench-container {
    background: #09101f;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-cyan);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.demo-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-docket-badge {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.demo-counter-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.demo-chat-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.chat-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    background: #0f172a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.chat-bubble-row:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: #14203a;
}

.chat-bubble-row.bubble-sent {
    align-self: flex-end;
    background: #111d38;
    border-color: rgba(56, 189, 248, 0.25);
}

.chat-bubble-row.is-key-finding {
    border-color: var(--accent-gold) !important;
    background: rgba(245, 158, 11, 0.08) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

.bubble-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.bubble-sender {
    color: var(--accent-cyan);
}

.bubble-text {
    font-size: 0.94rem;
    color: #f1f5f9;
    line-height: 1.45;
}

/* Audio Player & Media Workbench */
.audio-player-box, .audio-player-mock {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 8px 0;
}

.btn-play-audio, .audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #070c18;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.btn-play-audio:hover, .audio-play-btn:hover {
    transform: scale(1.08);
}

.highlight-playing {
    background: rgba(0, 87, 255, 0.22) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45) !important;
    transition: all 0.3s ease;
}

.media-preview-container {
    margin-top: 8px;
}

.chat-img-preview {
    max-width: 280px;
    max-height: 280px;
    border-radius: 8px;
    border: 1px solid #334155;
    display: block;
    margin-top: 6px;
    cursor: pointer;
    object-fit: contain;
    background: #0b0f19;
    transition: transform 0.2s;
}
.chat-img-preview:hover {
    transform: scale(1.02);
}

.media-filename {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: block;
    margin-top: 4px;
}

.attachment-box-doc {
    background: rgba(15, 23, 42, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 6px;
    border: 1px solid #334155;
}

.audio-waveform-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-grow: 1;
    height: 20px;
}

.wave-bar {
    width: 3px;
    background: #38bdf8;
    border-radius: 2px;
    opacity: 0.7;
}

.audio-duration {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.bubble-transcription-box {
    background: rgba(2, 6, 23, 0.7);
    border-left: 3px solid var(--accent-gold);
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
    font-style: italic;
    color: #fef3c7;
}

.transcription-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    font-style: normal;
}

.hk-indicator-badge {
    display: none;
    margin-top: 8px;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}

.chat-bubble-row.is-key-finding .hk-indicator-badge {
    display: inline-block;
}

/* ==========================================================================
   Section: Pricing
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.pricing-featured {
    border-color: var(--accent-cyan);
    background: linear-gradient(180deg, #111d38 0%, #0f172a 100%);
    box-shadow: var(--shadow-cyan);
    transform: scale(1.04);
}

/* Featured Ribbon: Centrado Matemático Vertical + Texto Blanco en una sola línea */
.featured-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
    z-index: 10;
}

.plan-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
}

.plan-price {
    font-size: 2.35rem;
    font-weight: 800;
    color: #f8fafc;
}

.plan-period {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.plan-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.check-icon {
    color: var(--accent-green);
    font-weight: 800;
}

/* ==========================================================================
   Section: FAQs (11 Preguntas en Acordeón)
   ========================================================================== */
.faqs-container {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 900px;
    margin: 0 auto;
}

/* FAQs Cluster Headers */
.faq-cluster-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.faqs-container .faq-cluster-header:first-child {
    margin-top: 6px;
}
.faq-cluster-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan, #38bdf8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    white-space: nowrap;
}
.faq-cluster-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

details.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 18px;
    transition: all 0.2s ease;
}

details.faq-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(17, 29, 56, 0.65);
}

details.faq-card[open] {
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.1);
    padding-bottom: 12px;
}

summary.faq-summary {
    font-size: 0.94rem;
    font-weight: 400;
    color: #f8fafc;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    line-height: 1.4;
}

summary.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-cyan);
    transition: transform 0.25s ease;
}

details.faq-card[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.90rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   Modals (Report & Download)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content-card {
    background: #0b1329;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
}

.modal-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
}

.modal-docket {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-top: 4px;
}

.modal-close-x {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close-x:hover {
    color: #ffffff;
}

.modal-hash-box {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.modal-hash-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.modal-hash-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #38bdf8;
    word-break: break-all;
}

.modal-acta-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.modal-findings-table-wrap {
    overflow-x: auto;
}

.modal-findings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.modal-findings-table th {
    background: #111d38;
    color: var(--accent-cyan);
    text-align: left;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-subtle);
}

.modal-findings-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: #e2e8f0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

/* Download Modal Specifics */
.download-modal-card {
    max-width: 640px;
}

.download-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 10px 0;
}

.download-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 14px;
}

.download-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-col .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
}

.smartscreen-notice-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smartscreen-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.smartscreen-desc {
    font-size: 0.86rem;
    color: #fef3c7;
    line-height: 1.55;
}

/* ==========================================================================
   Footer & Trust Badges
   ========================================================================== */
footer.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #040813;
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    border-bottom: 1px solid #111a2e;
    padding-bottom: 30px;
}

.trust-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badge-pill {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}


/* ==========================================================================
   SECCIÓN COMPACTA DE 17 JURISDICCIONES EN 1 LÍNEA Y MODAL DE LEY (BASE)
   ========================================================================== */
.jurisdictions-compact-container {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-shadow, 0 10px 25px -5px rgba(0, 0, 0, 0.5));
}

.jurisdictions-compact-container h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jurisdictions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jurisdiction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b1120;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.jurisdiction-item:hover {
  border-color: var(--accent-cyan, #06b6d4);
  background: #111d35;
}

.jurisdiction-item .flag { 
  font-size: 1.25rem; 
  flex-shrink: 0;
}

.jurisdiction-item .country-name { 
  font-weight: 700; 
  color: #38bdf8; 
  min-width: 140px; 
  flex-shrink: 0;
}

.jurisdiction-item .legal-ref { 
  color: #cbd5e1; 
  flex-grow: 1; 
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
}

.btn-consultar-ley {
  background: #1e293b;
  color: #f59e0b;
  border: 1px solid #f59e0b;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-consultar-ley:hover {
  background: #f59e0b;
  color: #070c18;
  transform: translateY(-1px);
}

#lawModal .modal-content-card {
  max-width: 880px;
  width: 95%;
  max-height: 90vh;
  height: 88vh;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}

.mobile-menu-btn {
  display: none;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #f8fafc;
  font-size: 1.35rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

/* ==========================================================================
   ADAPTABILIDAD RESPONSIVE PROFESIONAL (TABLETS Y SMARTPHONES)
   NOTA: La versión de escritorio (> 1024px) se mantiene 100% intacta.
   ========================================================================== */

/* 1. TABLETS Y PANTALLAS MEDIANAS (<= 1024px) */
@media (max-width: 1024px) {
  body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .site-header {
    padding: 10px 20px;
  }

  .nav-container {
    padding: 0;
  }

  /* Menú Hamburguesa en Tablet */
  .mobile-menu-btn {
    display: inline-flex;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #09101f;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    z-index: 9999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    color: #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
  }

  .navbar-menu .nav-link:hover,
  .navbar-menu .nav-link:focus {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
  }

  /* Hero Section */
  .hero-wrapper {
    grid-template-columns: 1fr;
    padding: 24px 20px 36px;
    gap: 28px;
  }

  .hero-media-col {
    order: 1;
    width: 100%;
  }

  .hero-text-col {
    order: 2;
    width: 100%;
  }

  .hero-badge-pill {
    display: none !important;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
  }

  .hero-media-card {
    max-width: 680px;
    margin: 0 auto;
  }

  /* Pasos Forenses */
  .step-row, 
  .step-row.step-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .step-row.step-reverse .step-media-col {
    order: 2;
  }
  .step-row.step-reverse .step-text-col {
    order: 1;
  }

  /* Jurisdicciones */
  .jurisdictions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Privacidad */
  .privacy-wrapper {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 30px;
  }

  /* Precios */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .pricing-card.pricing-featured {
    transform: none;
  }

  /* Demo Workbench */
  .demo-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .demo-controls-left {
    flex-wrap: wrap;
    gap: 8px;
  }

  .chat-bubble-row {
    max-width: 85%;
  }

  /* Modales */
  .modal-content-card {
    max-width: 90vw;
    max-height: 90vh;
    padding: 24px 20px;
  }
}

/* 2. SMARTPHONES Y TELÉFONOS MÓVILES (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .site-header {
    padding: 8px 12px;
    height: 60px;
  }

  .navbar-menu {
    top: 60px;
    padding: 16px;
  }

  /* Marca en móvil */
  .brand-logo img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  /* Botones del Header en Móvil */
  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-primary {
    display: none; /* Se accede desde el menú hamburguesa o el hero para evitar colisiones */
  }

  .lang-selector-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .lang-dropdown-menu {
    right: 0;
    max-width: 88vw;
    min-width: 160px;
  }

  /* Hero Móvil */
  .hero-section {
    padding: 14px 12px 36px;
  }

  .hero-wrapper {
    padding: 4px 0;
    gap: 20px;
  }

  .hero-media-col {
    order: 1 !important;
    width: 100%;
  }

  .hero-text-col {
    order: 2 !important;
    width: 100%;
  }

  .hero-badge-pill {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(1.45rem, 5.5vw, 1.95rem) !important;
    line-height: 1.25;
    letter-spacing: -0.4px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-title .brand-style {
    white-space: normal !important;
    display: inline !important;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-large {
    width: 100%;
    min-height: 48px;
    font-size: 0.94rem;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .metric-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
  }

  .metric-val {
    font-size: 1.25rem;
  }

  .metric-desc {
    font-size: 0.78rem;
  }

  .hero-media-card {
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  }

  .hero-media-card video {
    border-radius: 10px;
  }

  .hero-media-caption {
    font-size: 0.78rem;
    margin-top: 8px;
    line-height: 1.4;
  }

  /* Secciones Generales */
  section.landing-section {
    padding: 44px 14px;
    box-sizing: border-box;
    width: 100%;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* El Problema */
  .risk-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .risk-card {
    padding: 18px 14px;
    gap: 14px;
    border-radius: 12px;
  }

  .risk-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .risk-content h3 {
    font-size: 1.05rem;
  }

  .risk-content p {
    font-size: 0.88rem;
  }

  /* Pasos Forenses */
  .steps-container {
    gap: 28px;
  }

  .step-row {
    padding: 20px 14px;
    gap: 20px;
    border-radius: 14px;
  }

  .step-title {
    font-size: 1.3rem;
  }

  .step-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .step-media-frame {
    padding: 6px;
    border-radius: 10px;
  }

  /* 17 Jurisdicciones */
  .jurisdictions-compact-container {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .jurisdiction-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 10px;
  }

  .jurisdiction-item .country-name {
    min-width: auto;
    font-size: 0.9rem;
  }

  .jurisdiction-item .legal-ref {
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .btn-consultar-ley {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    font-size: 0.84rem;
  }

  /* Demo Interactivo */
  .demo-workbench-container {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .demo-toolbar {
    padding-bottom: 12px;
  }

  .demo-controls-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .demo-controls-left .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.88rem;
    box-sizing: border-box;
  }

  .dropdown-download {
    width: 100%;
  }

  .dropdown-download .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .dropdown-download .dropdown-menu-content {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .chat-bubble-row {
    max-width: 95%;
    width: 95%;
    padding: 12px;
    border-radius: 10px;
  }

  .bubble-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.74rem;
  }

  .bubble-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .audio-player-box {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
  }

  .audio-waveform-bars {
    max-width: 100px;
  }

  /* Sello de Garantía Móvil */
  .forensic-seal-box {
    padding: 12px !important;
  }

  .forensic-seal-box > div:nth-child(2) {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .seal-hash-box,
  .forensic-seal-box div[style*="min-width"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px !important;
  }

  #landingSealSha256 {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }

  /* Precios */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .pricing-card {
    padding: 28px 18px;
    border-radius: 16px;
    transform: none !important;
  }

  .featured-ribbon {
    position: static;
    transform: none;
    display: inline-block;
    margin: 0 auto 16px;
    text-align: center;
  }

  .pricing-amount {
    font-size: 2.2rem;
  }

  /* FAQs en Móvil */
  .faqs-container {
    gap: 6px;
  }

  /* FAQs Cluster Headers */
.faq-cluster-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.faqs-container .faq-cluster-header:first-child {
    margin-top: 6px;
}
.faq-cluster-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan, #38bdf8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    white-space: nowrap;
}
.faq-cluster-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

details.faq-card {
    padding: 7px 14px;
    border-radius: 8px;
  }

  summary.faq-summary {
    font-size: 0.88rem;
    font-weight: 400;
    gap: 10px;
  }

  .faq-chevron {
    width: 16px;
    height: 16px;
  }

  .faq-answer {
    font-size: 0.84rem;
  }

  .download-grid-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Modales en Móvil */
  .modal-overlay {
    padding: 10px;
  }

  .modal-content-card {
    width: 95vw;
    max-width: 95vw;
    max-height: 88vh;
    padding: 18px 14px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* Footer */
  footer.site-footer {
    padding: 40px 14px 24px;
    margin-top: 40px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    justify-content: center;
    gap: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* 3. MÓVILES PEQUEÑOS (<= 480px) */
@media (max-width: 480px) {
  #currentLangLabel {
    display: none; /* Ahorra espacio mostrando solo la bandera y flecha en pantallas estrechas */
  }

  .lang-selector-btn {
    padding: 5px 8px;
  }

  .hero-title {
    font-size: 1.4rem !important;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-title .brand-style {
    white-space: normal !important;
    display: inline !important;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-actions .btn {
    font-size: 0.88rem;
    padding: 10px 12px;
  }

  .pricing-features li {
    font-size: 0.85rem;
  }
}


/* ==========================================================================
   LANDING PAGE V7.0 - LEGISLATION DROPDOWN & MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
.legislation-section {
  padding: 4rem 0;
}

.legislation-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 16, 31, 0.97) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.legislation-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(129, 140, 248, 0.8), transparent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.legislation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.country-select-wrapper {
  position: relative;
  max-width: 580px;
  margin: 0.75rem auto 1.75rem auto;
}

.country-select-dropdown {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  background-color: #0b1329;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.country-select-dropdown:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

.country-select-dropdown option {
  background-color: #0b1329;
  color: #f8fafc;
  padding: 10px;
  font-weight: 600;
}

.country-select-dropdown:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 0 25px rgba(56, 189, 248, 0.3);
}

.country-select-wrapper::after {
  content: '▼';
  font-size: 0.85rem;
  color: #38bdf8;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.country-law-card {
  background: rgba(13, 22, 44, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 2rem;
  display: block;
  animation: fadeInLaw 0.3s ease-in-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.country-law-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.country-law-card p {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.law-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.law-tag {
  background-color: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container, .hero-container, .main-content, .hero-wrapper, .landing-section, main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .hero-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .site-header {
    padding: 10px 16px !important;
    width: 100% !important;
  }

  .nav-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .navbar-menu {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #09101f !important;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3) !important;
    flex-direction: column !important;
    padding: 20px !important;
    gap: 10px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9) !important;
    z-index: 99999 !important;
    max-height: calc(100vh - 65px) !important;
    overflow-y: auto !important;
  }

  .navbar-menu.active {
    display: flex !important;
  }

  .navbar-menu .nav-link {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
  }

  .legislation-box {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .country-select-wrapper {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .legislation-box {
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  .country-select-dropdown {
    font-size: 0.92rem !important;
    padding: 0.8rem 2.2rem 0.8rem 0.85rem !important;
  }
  .country-law-card {
    padding: 1rem !important;
  }
}
