i[data-lucide] { display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: middle; flex-shrink: 0; }
        :root {
            --primary: #8b0010;
            --primary-dark: #410004;
            --primary-container: #af1e23;
            --tertiary: #004766;
            --ink: #1a1c1b;
            --ink-muted: #5a403e;
            --outline: #8e706d;
            --surface: #f9f9f7;
            --surface-lowest: #ffffff;
            --surface-low: #f4f4f2;
            --surface-high: #e8e8e6;
            --surface-highest: #e2e3e1;
            --inverse: #2f3130;
            --shadow-sunlight: 0 12px 40px rgba(26,28,27,0.06);
            --gradient-red: linear-gradient(135deg, #410004 0%, #8b0010 100%);
        }
        html, body { background: var(--surface); color: var(--ink); }
        body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

        [x-cloak] { display: none !important; }

        /* Contraste AA (fix 16-jun-2026): subir text-ink-subtle de #8e706d (4.07:1) a #6e5654 (>4.5:1) */
        .text-ink-subtle { color: #6e5654; }

        .font-display { font-family: 'Newsreader', Georgia, serif; letter-spacing: -0.01em; }

        .display-xl  { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: clamp(2.75rem, 6.5vw, 5rem); line-height: 1.05; letter-spacing: -0.015em; }
        .display-lg  { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; letter-spacing: -0.012em; }
        .display-md  { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: clamp(1.625rem, 3.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
        .display-sm  { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.25; letter-spacing: -0.005em; }

        .eyebrow { font-family: 'Inter'; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); }

        /* Buttons — flat editorial: solo display en @layer components para no pisar .hidden/.lg:inline-flex de Tailwind v4; colores y fondos sin capa para vencer el reset base */
        @layer components {
            .btn-primary, .btn-ghost, .btn-navy { display: inline-flex; }
        }
        .btn-primary {
            align-items: center; gap: .5rem;
            padding: .85rem 1.75rem; border-radius: 9999px;
            background: var(--primary); color: #fff !important; font-weight: 600; font-size: .95rem;
            box-shadow: 0 4px 12px rgba(139,0,16,.15);
            transition: background .15s ease, transform .15s ease;
        }
        .btn-primary:hover { background: var(--primary-container); transform: translateY(-1px); color: #fff !important; }
        .btn-primary:active { transform: translateY(0); }

        .btn-ghost {
            align-items: center; gap: .5rem;
            padding: .85rem 1.5rem; border-radius: 9999px;
            background: rgba(19,27,46,0.04); color: var(--ink); font-weight: 500; font-size: .95rem;
            transition: background .15s ease;
        }
        .btn-ghost:hover { background: rgba(19,27,46,0.08); }

        .btn-navy {
            align-items: center; gap: .5rem;
            padding: .85rem 1.5rem; border-radius: 9999px;
            background: var(--tertiary); color: #fff !important; font-weight: 600; font-size: .95rem;
            transition: background .15s ease, transform .15s ease;
        }
        .btn-navy:hover { background: var(--tertiary); filter: brightness(1.15); transform: scale(1.02); color: #fff !important; }
        /* Garantizar contraste WCAG AAA en enlaces-botón dentro de cuerpo de guías/prose */
        .guide-body a.btn-primary,
        .guide-body a.btn-navy,
        .prose a.btn-primary,
        .prose a.btn-navy {
            color: #ffffff !important;
            text-decoration: none !important;
        }

        /* Cards — editorial flat, no rounded */
        .card-editorial {
            background: var(--surface-lowest);
            border-radius: 0;
            padding: 2rem;
            box-shadow: var(--shadow-sunlight);
            border-top: 3px solid var(--primary);
        }
        .card-tonal {
            background: var(--surface-high);
            border-radius: 0;
            padding: 2rem;
        }

        /* Input editorial — sharp, bottom accent on focus */
        .input-editorial {
            width: 100%;
            background: var(--surface-low);
            border: 0;
            border-bottom: 2px solid var(--surface-highest);
            border-radius: 0;
            padding: .85rem 1rem;
            font-family: 'Inter'; font-size: 1rem;
            color: var(--ink);
            transition: background .15s, border-color .15s;
            outline: none;
        }
        .input-editorial:focus {
            background: var(--surface-high);
            border-bottom-color: var(--primary);
        }
        .input-editorial::placeholder { color: var(--ink-muted); opacity: .65; }

        /* Editorial accent — flat burgundy color (was gradient) */
        .text-red-shift { color: var(--primary); }

        /* Progress bar red-shift */
        .progress-track { background: var(--surface-highest); border-radius: 9999px; height: 8px; overflow: hidden; }
        .progress-fill  { background: var(--gradient-red); height: 100%; border-radius: 9999px; }

        /* Area family colors (legal areas) */
        .area-laboral  { background: #FFE5E5; color: #8F0020; }
        .area-civil    { background: #D8E2FF; color: #002F6C; }
        .area-familia  { background: #FFE0EA; color: #8A1850; }
        .area-consumo  { background: #FFEFD5; color: #7A4B00; }
        .area-penal    { background: #E0DCFF; color: #2F2A7A; }
        .area-mercantil{ background: #CCEDE1; color: #0F5A3D; }

        /* Nav link hover — no border */
        .nav-link { position: relative; color: var(--ink-muted); font-weight: 500; font-size: .92rem; padding: .5rem .9rem; border-radius: .75rem; transition: color .15s, background .15s; }
        .nav-link:hover { color: var(--ink); background: var(--surface-low); }
        .nav-link.active { color: var(--primary); }

        /* Sunlight shadow utility */
        .shadow-sunlight { box-shadow: var(--shadow-sunlight); }

        /* Dot accent for stats bar */
        .stat-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
        .stat-num.red { color: var(--primary); }

        /* Glass (selectivo) */
        .glass-soft { background: rgba(250,248,255,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

        /* Pulse indicator */
        @keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
        .pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

        /* Fade in up on scroll */
        @keyframes fade-in-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
        .fade-in-up { animation: fade-in-up .6s ease-out both; }

        /* Smooth scroll offset for fixed nav */
        section[id] { scroll-margin-top: 100px; }

        /* Prose adjustments for legal pages */
        .prose-editorial { color: var(--ink); font-size: 1.0625rem; line-height: 1.75; }
        .prose-editorial h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 2rem; letter-spacing: -0.012em; margin-top: 2.75rem; margin-bottom: 1rem; color: var(--ink); line-height: 1.15; }
        .prose-editorial h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; line-height: 1.25; }
        .prose-editorial p  { margin-bottom: 1.125rem; }
        .prose-editorial a  { color: var(--tertiary); text-decoration: underline; text-underline-offset: 3px; }
        .prose-editorial ul { margin-bottom: 1.125rem; padding-left: 1.25rem; list-style: disc; }
        .prose-editorial li { margin-bottom: .375rem; }

        /* Keyboard navigation: keep the focus ring visible across inline and compiled styles. */
        a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
            outline: 3px solid var(--tertiary) !important;
            outline-offset: 3px;
        }
        #contenido-principal:focus {
            outline: 3px solid var(--tertiary) !important;
            outline-offset: 4px;
        }
        .skip-link {
            position: absolute;
            top: .5rem;
            left: 1rem;
            z-index: 100;
            padding: .75rem 1rem;
            border-radius: .5rem;
            background: var(--inverse);
            color: #fff;
            font-weight: 600;
            transform: translateY(-180%);
            transition: transform .15s ease;
        }
        .skip-link:focus-visible {
            transform: translateY(0);
        }

        @media print {
            nav, footer, aside, .btn-primary, .btn-ghost, .btn-navy,
            .eyebrow, section.mt-24, .banner-consulta { display: none !important; }
            body { font-size: 12pt; color: #000 !important; background: #fff !important; }
            .guide-body, .prose-editorial { max-width: 100% !important; color: #000 !important; }
            a { color: #000 !important; text-decoration: none !important; }
            a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
            h1, h2, h3 { page-break-after: avoid; }
            .lg\:grid-cols-12 { display: block !important; }
            .lg\:col-span-9 { width: 100% !important; }
        }

        /* INP & Tap Responsiveness Optimization (Clarity CWV < 200ms) */
        a, button, summary, input, select, textarea, label, [role="button"] { touch-action: manipulation; }

        /* SuperAds AdSense Container Styling & Smart House-Ad Fallback (Strict Zero-CLS Guard) */
        .superads-ad-container { margin: 1.75rem auto; text-align: center; clear: both; width: 100%; overflow: hidden; min-height: 250px; contain: layout style; display: flex; flex-direction: column; justify-content: center; }
        .superads-ad-container[data-ad-position="sidebar-desktop"],
        .superads-ad-container[data-ad-position="boe-sidebar-desktop"] { min-height: 250px; }
        .superads-ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 500; display: block; min-height: 15px; }
        .superads-ad-container.has-house-fallback { min-height: 250px; }
        .superads-ad-container:empty { display: none !important; min-height: 0 !important; }
        .superads-ad-container ins[data-ad-status="unfilled"] { display: none !important; }

        /* ── Backfill de utilidades ausentes en el bundle estático tailwind.css ── */
        .my-8 { margin-top: 2rem; margin-bottom: 2rem; }
        .my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
        .m-0 { margin: 0 !important; }
        .p-0 { padding: 0 !important; }
        .p-2\.5 { padding: 0.625rem; }
        .p-3\.5 { padding: 0.875rem; }
        .px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
        .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
        .pl-6 { padding-left: 1.5rem; }
        .ml-7 { margin-left: 1.75rem; }
        .top-1\.5 { top: 0.375rem; }
        .-left-\[9px\] { left: -9px; }
        .gap-2\.5 { gap: 0.625rem; }
        .h-auto { height: auto; }
        .line-through { text-decoration: line-through; }
        .select-none { user-select: none; -webkit-user-select: none; }
        .list-none { list-style: none; }
        .list-none::-webkit-details-marker { display: none; }
        .text-tertiary { color: var(--tertiary); }
        .underline-offset-2 { text-underline-offset: 2px; }
        .bg-stone-50 { background-color: #fafaf9; }
        .bg-stone-100 { background-color: #f5f5f4; }
        .bg-stone-200 { background-color: #e7e5e4; }
        .text-stone-400 { color: #a8a29e; }
        .text-stone-500 { color: #78716c; }
        .text-stone-600 { color: #57534e; }
        .border-stone-200 { border-color: #e7e5e4; }
        .border-stone-300 { border-color: #d6d3d1; }
        .hover\:border-stone-400:hover { border-color: #a8a29e; }
        .hover\:bg-stone-200:hover { background-color: #e7e5e4; }
        .bg-emerald-50 { background-color: #ecfdf5; }
        .bg-emerald-600 { background-color: #059669; }
        .bg-emerald-700 { background-color: #047857; }
        .border-emerald-200 { border-color: #a7f3d0; }
        .border-emerald-600 { border-color: #059669; }
        .text-emerald-700 { color: #047857; }
        .text-emerald-800 { color: #065f46; }
        .text-emerald-900 { color: #064e3b; }
        .text-emerald-950 { color: #022c22; }
        .bg-rose-50 { background-color: #fff1f2; }
        .bg-rose-600 { background-color: #e11d48; }
        .border-rose-200 { border-color: #fecdd3; }
        .text-rose-800 { color: #9f1239; }
        .text-rose-900 { color: #881337; }
        .text-rose-950 { color: #4c0519; }
        .bg-amber-50 { background-color: #fffbeb; }
        .bg-amber-600 { background-color: #d97706; }
        .bg-amber-700 { background-color: #b45309; }
        .border-amber-200 { border-color: #fde68a; }
        .text-amber-800 { color: #92400e; }
        .text-amber-900 { color: #78350f; }
        .text-amber-950 { color: #451a03; }
        @media (min-width: 640px) {
            .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
            .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
            .sm\:col-span-1 { grid-column: span 1 / span 1; }
            .sm\:col-span-2 { grid-column: span 2 / span 2; }
            .sm\:p-6 { padding: 1.5rem; }
            .sm\:p-7 { padding: 1.75rem; }
            .sm\:p-8 { padding: 2rem; }
            .sm\:pl-8 { padding-left: 2rem; }
            .sm\:ml-4 { margin-left: 1rem; }
            .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
            .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
            .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
        }

        /* ── Sistema Editorial Interactivo Legia (.lg-*) ── */
        .guide-widget {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--ink);
            line-height: 1.45;
        }
        .lg-card {
            background: #FFFFFF;
            border: 1px solid #E5E2DC;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 8px 28px rgba(26, 28, 27, 0.05);
            margin: 2rem 0;
        }
        .lg-card-header {
            background: #181A1B;
            color: #FFFFFF;
            padding: 1.15rem 1.35rem;
            border-bottom: 3px solid var(--primary, #8B0010);
        }
        .lg-card-header-light {
            background: linear-gradient(180deg, #FAF8F5 0%, #FFFFFF 100%);
            padding: 1.25rem 1.35rem 1rem 1.35rem;
            border-bottom: 1px solid #E8E5DF;
            border-left: 4px solid var(--primary, #8B0010);
        }
        .lg-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.6875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.22rem 0.6rem;
            border-radius: 4px;
            pointer-events: none;
            user-select: none;
        }
        /* Anuncios automáticos / Anchor Ads desactivados nativamente en Consola AdSense para legia.es (19/11/2026); retiradas reglas CSS de ocultación para 100% cumplimiento de políticas y Active View */
        .lg-badge-burgundy { background: #FFF0EF; color: #8B0010; border: 1px solid #FFDAD9; }
        .lg-badge-dark { background: rgba(255,255,255,0.12); color: #FFDAD9; }
        .lg-badge-green { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
        .lg-badge-amber { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
        .lg-field {
            background: #FAF9F6;
            border: 1px solid #E5E2DC;
            border-radius: 10px;
            padding: 0.85rem;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .lg-field:focus-within {
            background: #FFFFFF;
            border-color: var(--primary, #8B0010);
            box-shadow: 0 0 0 3px rgba(139, 0, 16, 0.08);
        }
        .lg-label {
            display: block;
            font-size: 0.75rem;
            font-weight: 700;
            color: #1A1C1B;
            margin-bottom: 0.4rem;
            letter-spacing: -0.01em;
        }
        .lg-input, .lg-select {
            width: 100%;
            min-height: 42px;
            padding: 0.5rem 0.75rem;
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            color: #1A1C1B;
            background-color: #FFFFFF;
            border: 1.5px solid #D5D0C8;
            border-radius: 8px;
            outline: none;
            transition: border-color 0.15s ease;
        }
        .lg-select {
            appearance: none;
            -webkit-appearance: none;
            padding-right: 2.25rem;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a403e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.65rem center;
            background-size: 1rem;
        }
        .lg-input:focus, .lg-select:focus {
            border-color: var(--primary, #8B0010);
        }
        .lg-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: 0.45rem;
        }
        .lg-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.2rem 0.55rem;
            min-height: 26px;
            font-size: 0.7rem;
            font-weight: 600;
            border-radius: 9999px;
            border: 1px solid #D8D4CC;
            background: #FFFFFF;
            color: #5A403E;
            cursor: pointer;
            transition: all 0.12s ease;
        }
        .lg-chip:hover {
            border-color: var(--primary, #8B0010);
            color: var(--primary, #8B0010);
        }
        .lg-chip.active {
            background: var(--primary, #8B0010);
            border-color: var(--primary, #8B0010);
            color: #FFFFFF;
        }
        .lg-kpi {
            background: #FAF9F6;
            border: 1px solid #E5E2DC;
            border-radius: 10px;
            padding: 0.9rem 1rem;
        }
        .lg-kpi-highlight {
            background: linear-gradient(135deg, #FFF6F5 0%, #FFFFFF 100%);
            border: 1.5px solid #F5C2C0;
            border-left: 4px solid var(--primary, #8B0010);
            border-radius: 10px;
            padding: 1rem 1.15rem;
        }
        .lg-bar-track {
            width: 100%;
            height: 10px;
            background: #ECEAE4;
            border-radius: 9999px;
            overflow: hidden;
            display: flex;
        }
        .lg-bar-seg {
            height: 100%;
            transition: width 0.25s ease;
        }
        .lg-case-box {
            background: #FAF8F5;
            border: 1px solid #E2DDD5;
            border-left: 4px solid #004766;
            border-radius: 12px;
            padding: 1.15rem 1.25rem;
            margin: 1.5rem 0;
        }
        .guide-table-wrap {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 1.5rem 0;
            border: 1px solid var(--surface-high, #E8E8E6);
            border-radius: 10px;
            background: #FFFFFF;
        }
        .guide-table-wrap table {
            margin: 0 !important;
            min-width: 480px;
        }
        /* ── Clases Completas .lg-* para Simuladores Inline y Tarjetas Editoriales ── */
        .lg-card-body {
            padding: 1.25rem 1.35rem;
            background: #FFFFFF;
        }
        .lg-card-title {
            font-family: 'Newsreader', Georgia, serif;
            font-size: 1.28rem;
            font-weight: 700;
            color: #FFFFFF;
            line-height: 1.25;
            margin: 0.35rem 0 0 0;
        }
        .lg-card-header-light .lg-card-title {
            color: #1A1C1B;
        }
        .lg-card-sub {
            font-size: 0.84rem;
            color: rgba(255, 255, 255, 0.88);
            line-height: 1.48;
            margin: 0.35rem 0 0 0;
        }
        .lg-card-header span[style*="ink-muted"] {
            color: #F3EFEA !important;
            background: rgba(255, 255, 255, 0.12);
            padding: 0.18rem 0.55rem;
            border-radius: 6px;
            font-weight: 600 !important;
        }
        .lg-grid-2 {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 0.9rem;
        }
        .lg-grid-3 {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 0.75rem;
        }
        .lg-grid-5 {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.65rem;
        }
        @media (min-width: 640px) {
            .lg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .lg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .lg-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        }
        .lg-hint {
            display: block;
            font-size: 0.75rem;
            color: #5C5B59;
            margin-top: 0.38rem;
            line-height: 1.4;
        }
        .lg-result-hero {
            margin-top: 1.15rem;
            padding: 1.15rem 1.25rem;
            border-radius: 12px;
            background: linear-gradient(135deg, #FFF6F5 0%, #FAF8F5 100%);
            border: 1.5px solid #F5C2C0;
            border-left: 4px solid var(--primary, #8B0010);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.85rem;
        }
        .lg-kpi-Number {
            font-family: 'Newsreader', Georgia, serif;
            font-size: clamp(1.65rem, 4vw, 2.2rem);
            font-weight: 700;
            color: #1A1C1B;
            line-height: 1.1;
            font-variant-numeric: tabular-nums;
            margin-top: 0.15rem;
        }
        .lg-stat-card {
            background: #FAF9F6;
            border: 1px solid #E5E2DC;
            border-radius: 10px;
            padding: 0.85rem 0.95rem;
        }
        .lg-stat-val {
            display: block;
            font-family: 'Newsreader', Georgia, serif;
            font-size: 1.22rem;
            font-weight: 700;
            color: #1A1C1B;
            margin-top: 0.22rem;
            line-height: 1.2;
            font-variant-numeric: tabular-nums;
        }
        .lg-badge-primary { background: #FFF0EF; color: #8B0010; border: 1px solid #FFDAD9; }
        .lg-badge-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
        .lg-badge-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
        .lg-alert {
            padding: 0.85rem 1rem;
            border-radius: 10px;
            font-size: 0.82rem;
            line-height: 1.5;
            border: 1px solid #E5E2DC;
            background: #FAF9F6;
            color: #1A1C1B;
        }
        .lg-alert-neutral { background: #FAF8F5; border-color: #E2DDD5; border-left: 4px solid #374B63; }
        .lg-alert-danger { background: #FFF5F5; border-color: #FECDD3; border-left: 4px solid #8B0010; color: #4C0519; }
        .lg-alert-success { background: #F0FDF4; border-color: #BBF7D0; border-left: 4px solid #0F5A3D; color: #064E3B; }
        .lg-alert-warning { background: #FFFBEB; border-color: #FDE68A; border-left: 4px solid #B45309; color: #78350F; }
        .lg-bar-fill {
            height: 100%;
            background: var(--primary, #8B0010);
            border-radius: 9999px;
            transition: width 0.25s ease;
        }

        /* ── Barras Deslizantes Táctiles Interactivas (.legia-slider-control) ── */
        .legia-slider-control {
            margin-top: 0.48rem;
            padding: 0.45rem 0.6rem 0.38rem 0.6rem;
            background: #F6F3EE;
            border: 1px solid #E5E2DC;
            border-radius: 10px;
            user-select: none;
            -webkit-user-select: none;
        }
        .legia-slider-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .legia-step-btn {
            width: 34px;
            height: 34px;
            min-width: 34px;
            min-height: 34px;
            border-radius: 8px;
            border: 1px solid #D5D0C8;
            background: #FFFFFF;
            color: #1A1C1B;
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            touch-action: manipulation;
            transition: background 0.12s, border-color 0.12s, transform 0.08s;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
            padding: 0;
        }
        .legia-step-btn:hover {
            border-color: #8B0010;
            color: #8B0010;
        }
        .legia-step-btn:active {
            transform: scale(0.93);
            background: #FFF0EF;
            border-color: #8B0010;
            color: #8B0010;
        }
        .legia-range-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            border-radius: 9999px;
            background: linear-gradient(to right, #8B0010 0%, #8B0010 var(--range-pct, 25%), #DCD8D0 var(--range-pct, 25%), #DCD8D0 100%);
            outline: none;
            cursor: pointer;
            margin: 0;
            touch-action: pan-y;
        }
        .legia-range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #8B0010;
            border: 3px solid #FFFFFF;
            box-shadow: 0 2px 6px rgba(28, 28, 26, 0.28);
            cursor: grab;
            transition: transform 0.1s ease;
        }
        .legia-range-slider::-webkit-slider-thumb:active {
            transform: scale(1.15);
            cursor: grabbing;
            background: #680009;
        }
        .legia-range-slider::-moz-range-thumb {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #8B0010;
            border: 3px solid #FFFFFF;
            box-shadow: 0 2px 6px rgba(28, 28, 26, 0.28);
            cursor: grab;
        }
        .legia-slider-scale {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.69rem;
            font-weight: 600;
            color: #5C5B59;
            margin-top: 0.24rem;
            padding: 0 0.1rem;
            font-variant-numeric: tabular-nums;
            gap: 0.35rem;
        }
        .legia-slider-badge {
            color: #8B0010;
            font-weight: 700;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ── Optimización Integral de Usabilidad Móvil (< 768px) ── */
        @media (max-width: 767px) {
            /* Evita el auto-zoom brusco de iOS Safari en cualquier input/select/textarea */
            input, select, textarea, .input-editorial, .lg-input, .lg-select {
                font-size: 16px !important;
            }
            .lg-input, .lg-select, .input-editorial {
                min-height: 44px;
            }
            /* Tap targets cómodos para el pulgar */
            .lg-chip {
                min-height: 36px !important;
                padding: 0.32rem 0.72rem !important;
                font-size: 0.75rem !important;
            }
            details > summary {
                min-height: 40px;
            }
            /* Anchor Ads desactivados nativamente en Consola AdSense (19/11/2026) */
            select.input-editorial, .lg-select {
                padding-left: 0.65rem !important;
                padding-right: 1.85rem !important;
                letter-spacing: -0.01em;
            }
            /* Indicador táctil de desplazamiento horizontal en tablas jurídicas */
            .guide-table-wrap::before {
                content: "↔ Desliza la tabla lateralmente para ver todas las columnas";
                display: block;
                font-family: 'Inter', system-ui, sans-serif;
                font-size: 0.7rem;
                font-weight: 700;
                color: #5C5B59;
                background: #F6F3EE;
                padding: 0.35rem 0.75rem;
                border-bottom: 1px solid #E5E2DC;
                text-align: right;
            }
        }
        @media (max-width: 639px) {
            .audience-subnav {
                min-height: 38px !important;
                font-size: 0.78rem !important;
                padding-top: 0.25rem !important;
                padding-bottom: 0.25rem !important;
                padding-right: 1.25rem !important;
            }
            .guide-hero-compact {
                padding-top: 1.15rem !important;
                padding-bottom: 1.15rem !important;
            }
            /* Compactar el Hero de las calculadoras (/herramientas/*) en móvil para que el primer input + barra deslizante esté Above the Fold */
            main#contenido-principal > article > section:first-of-type:not(.guide-hero) {
                padding-top: 0.75rem !important;
                padding-bottom: 0.45rem !important;
            }
            main#contenido-principal > article > section:first-of-type:not(.guide-hero) .eyebrow {
                margin-bottom: 0.2rem !important;
                font-size: 0.66rem !important;
            }
            main#contenido-principal > article > section:first-of-type:not(.guide-hero) h1.display-xl {
                font-size: 1.48rem !important;
                line-height: 1.15 !important;
                letter-spacing: -0.02em !important;
            }
            main#contenido-principal > article > section:first-of-type:not(.guide-hero) h1.display-xl + p {
                margin-top: 0.3rem !important;
                font-size: 0.84rem !important;
                line-height: 1.36 !important;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .card-editorial {
                padding: 1.05rem 0.95rem !important;
                border-radius: 12px !important;
            }
            .lg-card-body {
                padding: 0.95rem 0.9rem !important;
            }
            .lg-card-header {
                padding: 0.95rem 1rem !important;
            }
            .lg-card-title {
                font-size: 1.12rem !important;
            }
            .lg-card-sub {
                font-size: 0.78rem !important;
                line-height: 1.38 !important;
            }
        }
        /* Estándares modernos de usabilidad móvil (WCAG 1.4.10 / 2.4.11 / 2.5.5 + safe areas iOS + 0 auto-zoom) */
        html {
            scroll-padding-top: 76px;
            scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        }
        :target, h2[id], h3[id] { scroll-margin-top: 76px; }
        body { width: 100%; overflow-wrap: break-word; }
        h1, h2, h3 { text-wrap: balance; }
        p, li { text-wrap: pretty; }
        :where(a, code) { overflow-wrap: anywhere; }
        img, video { max-inline-size: 100%; block-size: auto; }
        .grid > * { min-width: 0 !important; max-width: 100% !important; }
        .superads-ad-container, ins.adsbygoogle { max-width: 100% !important; overflow-x: hidden !important; }
        .grecaptcha-badge { display: none !important; }
        .lg-table-scroll {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-block: 1rem;
            border-radius: 8px;
        }
        .lg-table-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        .lg-table-scroll > table { margin-block: 0; }
        @media (max-width: 768px) {
            main table {
                display: block;
                width: 100%;
                max-width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
            textarea,
            select {
                font-size: 16px !important;
            }
            .legia-step-btn {
                width: 42px;
                height: 42px;
                min-width: 42px;
                min-height: 42px;
            }
            body > footer {
                padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
            }
        }
        body > footer {
            content-visibility: auto;
            contain-intrinsic-size: auto 34rem;
        }
        #tool-seo-dossier-2026 {
            content-visibility: auto;
            contain-intrinsic-size: auto 48rem;
        }
        @media (pointer: coarse) {
            :root { --target-size: 44px; }
            .lg-num-step,
            .legia-step-btn,
            button[aria-controls="mobile-drawer"] {
                min-height: 44px;
                min-width: 44px;
                width: 44px;
                height: 44px;
            }
        }

/* ── Utilidades responsivas explícitas y compatibilidad global con clases ausentes en tailwind.css (mayo 2026) ── */
        .lg-only-mobile { display: inline; }
        .lg-only-sm-up { display: none; }
        .lg-only-md-up { display: none; }
        .lg-only-xl-up { display: none; }
        .lg-only-2xl-up { display: none; }
        .text-brand-600 { color: #8B0010; }
        .text-brand-700 { color: #6D000D; }
        .bg-brand-50 { background-color: #FFF5F5; }
        .bg-brand-100 { background-color: #FDECEC; }
        .bg-brand-600 { background-color: #8B0010; }
        .bg-brand-700, .hover\:bg-brand-700:hover { background-color: #6D000D; }
        .border-brand-200 { border-color: #F5C2C0; }
        .border-brand-500 { border-color: #8B0010; }
        @media (min-width: 640px) {
            .lg-only-mobile { display: none !important; }
            .sm\:hidden { display: none !important; }
            .lg-only-sm-up { display: inline-flex; }
            span.lg-only-sm-up { display: inline; }
        }
        @media (min-width: 768px) {
            .lg-only-md-up { display: inline-flex; }
            .md\:hidden { display: none !important; }
        }
        @media (min-width: 1280px) {
            .lg-only-xl-up { display: inline-flex; }
            .xl\:hidden { display: none !important; }
            .xl\:inline-flex { display: inline-flex; }
            .xl\:flex { display: flex; }
        }
        @media (min-width: 1480px) {
            .lg-only-2xl-up { display: flex; }
        }
        @media (min-width: 1536px) {
            .\32 xl\:hidden { display: none !important; }
            .\32 xl\:flex { display: flex; }
        }

        /* ── Tipografía de Marca «Legia» (Pura, sin icono cuadrado ni .es) ── */
        .lg-brand-link {
            display: inline-flex;
            align-items: center;
            gap: 11px;
            text-decoration: none !important;
            flex-shrink: 0;
            padding: 4px 0;
        }
        .lg-brand-wordmark-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1;
        }
        .lg-brand-wordmark {
            font-family: 'Playfair Display', 'Newsreader', Georgia, serif;
            font-weight: 700;
            font-size: 29px;
            letter-spacing: -0.035em;
            line-height: 0.92;
            color: #141518;
            position: relative;
            display: inline-flex;
            align-items: baseline;
            transition: color 0.15s ease;
        }
        @media (min-width: 1280px) {
            .lg-brand-wordmark { font-size: 31px; }
        }
        .lg-brand-link:hover .lg-brand-wordmark {
            color: #8B0010;
        }
        .lg-brand-rule {
            display: block;
            width: 100%;
            height: 2.5px;
            margin-top: 4px;
            border-radius: 999px;
            background: linear-gradient(90deg, #8B0010 0%, #C5A059 72%, rgba(197, 160, 89, 0.15) 100%);
        }
        .lg-brand-divider {
            width: 1px;
            height: 26px;
            background: #D8D2C7;
            display: none;
        }
        .lg-brand-colophon {
            display: none;
            flex-direction: column;
            justify-content: center;
            line-height: 1.2;
        }
        /* En móvil >=640px y en desktop >=1280px mostramos el colofón; en 1024-1279px priorizamos que el menú completo quepa con 0px overflow */
        @media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) {
            .lg-brand-divider { display: block; }
            .lg-brand-colophon { display: flex; }
        }
        .lg-brand-colophon-top {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #8B0010;
            white-space: nowrap;
        }
        .lg-brand-colophon-sub {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 9.5px;
            font-weight: 500;
            letter-spacing: 0.01em;
            color: #57534E;
            margin-top: 2px;
            white-space: nowrap;
        }

        /* ── Barra Superior de Soberanía Europea y Confianza ── */
        .lg-topbar {
            background: #14161B;
            color: rgba(255, 255, 255, 0.84);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 11.5px;
        }
        .lg-topbar-pill-eu {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 2px 9px;
            border-radius: 9999px;
            background: rgba(16, 185, 129, 0.14);
            border: 1px solid rgba(110, 231, 183, 0.3);
            color: #D1FAE5;
            font-weight: 600;
            font-size: 11px;
            letter-spacing: 0.01em;
            white-space: nowrap;
        }
        .lg-topbar-dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: #34D399;
            flex-shrink: 0;
        }

        /* ── Navegación Principal y Triggers Desktop ── */
        .lg-nav-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
            gap: 8px;
            min-width: 0;
        }
        .lg-nav-desktop-list {
            display: none;
            align-items: center;
            gap: 2px;
            margin: 0;
            padding: 0;
            list-style: none;
            min-width: 0;
        }
        @media (min-width: 1024px) {
            .lg-nav-desktop-list { display: flex; }
        }
        @media (min-width: 1280px) {
            .lg-nav-desktop-list { gap: 4px; }
        }
        .lg-nav-trigger {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 7px 9px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #262421;
            background: transparent;
            border: 1px solid transparent;
            cursor: pointer;
            transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
            white-space: nowrap;
            text-decoration: none !important;
            line-height: 1.25;
        }
        @media (min-width: 1280px) {
            .lg-nav-trigger {
                padding: 8px 11px;
                font-size: 13.5px;
            }
        }
        .lg-nav-trigger:hover,
        .lg-nav-trigger.is-open {
            background: #F2EFE9;
            color: #8B0010;
            border-color: #E5DFD3;
        }
        .lg-nav-trigger.is-current,
        .lg-nav-trigger[aria-current="page"] {
            color: #8B0010;
            box-shadow: inset 0 -2px 0 #8B0010;
            border-radius: 8px 8px 2px 2px;
        }
        .lg-nav-trigger:focus-visible {
            outline: 2px solid #8B0010;
            outline-offset: 2px;
        }
        .lg-nav-trigger-xl {
            display: none;
        }
        @media (min-width: 1280px) {
            .lg-nav-trigger-xl { display: inline-flex; }
        }
        .lg-nav-badge-count {
            display: inline-flex;
            align-items: center;
            padding: 1px 6px;
            border-radius: 999px;
            font-size: 10.5px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            background: #F7ECEB;
            color: #8B0010;
            line-height: 1.3;
        }
        .lg-nav-cta-desktop {
            display: none;
            align-items: center;
            gap: 6px;
            padding: 9px 15px;
            border-radius: 8px;
            background: #8B0010;
            color: #FFFFFF !important;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.2;
            white-space: nowrap;
            text-decoration: none !important;
            flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(65, 0, 4, 0.2);
            transition: background-color 0.14s ease, transform 0.12s ease;
        }
        .lg-nav-cta-desktop:hover {
            background: #6D000D;
            color: #FFFFFF !important;
        }
        .lg-nav-cta-desktop:focus-visible {
            outline: 2px solid #8B0010;
            outline-offset: 2px;
        }
        @media (min-width: 1024px) {
            .lg-nav-cta-desktop { display: inline-flex; }
        }
        @media (min-width: 1280px) {
            .lg-nav-cta-desktop {
                padding: 9px 17px;
                font-size: 13.5px;
            }
        }

        /* ── Scrim y Paneles Mega-Menú Editorial Desktop ── */
        .lg-mega-scrim {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            height: 100dvh;
            background: rgba(17, 19, 24, 0.28);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            z-index: 60;
        }
        .lg-mega-panel-wrap {
            position: absolute;
            top: 100%;
            left: 16px;
            right: 16px;
            z-index: 70;
            padding-top: 10px;
        }
        @media (min-width: 1280px) {
            .lg-mega-panel-wrap {
                left: 24px;
                right: 24px;
            }
        }
        /* Puente invisible sobre el hueco entre la barra y el panel para que el puntero no dispare pointerleave */
        .lg-mega-panel-wrap::before {
            content: '';
            position: absolute;
            top: -12px;
            left: 0;
            right: 0;
            height: 22px;
        }
        .lg-mega-surface {
            background: #FFFFFF;
            border: 1px solid #DDD7CC;
            border-top: 2.5px solid #8B0010;
            border-radius: 12px;
            box-shadow: 0 24px 64px -12px rgba(17, 19, 24, 0.22), 0 4px 16px rgba(17, 19, 24, 0.06);
            overflow-y: auto;
            max-height: calc(100dvh - 122px);
            overscroll-behavior: contain;
        }
        .lg-mega-sec-title {
            font-size: 10.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.11em;
            color: #8B0010;
            margin: 0 0 12px 0;
            padding-bottom: 7px;
            border-bottom: 1px solid #EFECE5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .lg-mega-card-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
            padding: 9px 11px;
            border-radius: 8px;
            border: 1px solid transparent;
            text-decoration: none !important;
            transition: background-color 0.13s ease, border-color 0.13s ease;
        }
        .lg-mega-card-item:hover,
        .lg-mega-card-item:focus-visible {
            background: #F9F7F3;
            border-color: #E6E0D6;
            outline: none;
        }
        .lg-mega-item-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 8px;
        }
        .lg-mega-item-title {
            display: block;
            font-size: 13.2px;
            font-weight: 700;
            color: #16181D;
            line-height: 1.28;
        }
        .lg-mega-card-item:hover .lg-mega-item-title {
            color: #8B0010;
        }
        .lg-mega-item-count {
            font-size: 10.5px;
            font-weight: 600;
            color: #78716C;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .lg-mega-item-sub {
            display: block;
            font-size: 11.6px;
            color: #5C5751;
            line-height: 1.4;
        }
        .lg-mega-link-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 6px 8px;
            border-radius: 6px;
            font-size: 12.8px;
            font-weight: 500;
            color: #2E2C29;
            text-decoration: none !important;
            transition: background-color 0.12s ease, color 0.12s ease;
            line-height: 1.32;
        }
        .lg-mega-link-row::after {
            content: '→';
            font-size: 11px;
            color: #8B0010;
            opacity: 0;
            transform: translateX(-3px);
            transition: opacity 0.12s ease, transform 0.12s ease;
            flex-shrink: 0;
        }
        .lg-mega-link-row:hover,
        .lg-mega-link-row:focus-visible {
            background: #F6F3EC;
            color: #8B0010;
            outline: none;
        }
        .lg-mega-link-row:hover::after,
        .lg-mega-link-row:focus-visible::after {
            opacity: 1;
            transform: translateX(0);
        }
        .lg-mega-grid-4 {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0;
        }
        .lg-mega-col {
            min-width: 0;
            padding: 18px 18px 16px 18px;
        }
        .lg-mega-col + .lg-mega-col {
            border-left: 1px solid #EFECE5;
        }
        @media (max-width: 1180px) {
            .lg-mega-col {
                padding: 16px 14px 14px 14px;
            }
            .lg-mega-link-row {
                font-size: 12.3px;
                padding: 5.5px 6px;
            }
        }
        .lg-mega-footer {
            padding: 11px 20px;
            background: #FAF8F4;
            border-top: 1px solid #E7E2D8;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            flex-wrap: wrap;
        }
        .lg-mega-footer-link {
            font-size: 12.5px;
            font-weight: 700;
            color: #16181D;
            text-decoration: none !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }
        .lg-mega-footer-link:hover { color: #8B0010; }
        .lg-mega-footer-sub {
            font-size: 12px;
            font-weight: 500;
            color: #5C5751;
            text-decoration: none !important;
            white-space: nowrap;
        }
        .lg-mega-footer-sub:hover { color: #8B0010; }

        /* ── Drawer Móvil Adaptativo ── */
        .lg-mob-drawer {
            background: #FAF8F5;
            border-top: 1px solid #DFDAD0;
            max-height: calc(100dvh - 96px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            box-shadow: 0 24px 48px rgba(15, 17, 21, 0.22);
        }
        .lg-mob-acc-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            border-radius: 12px;
            background: #FFFFFF;
            border: 1px solid #E2DDD3;
            font-size: 14.5px;
            font-weight: 700;
            color: #16181D;
            text-align: left;
            transition: all 0.15s ease;
        }
        .lg-mob-acc-btn.is-open {
            border-color: #8B0010;
            background: #FFFDFC;
        }
        .lg-mob-acc-panel {
            margin-top: 6px;
            padding: 10px;
            border-radius: 12px;
            background: #FFFFFF;
            border: 1px solid #E5E0D6;
        }

.zr-card{--zr-red:#8B0010;--zr-ink:#111827;--zr-gold:#C9A227;--zr-line:#E5E4DF;position:relative;margin:2.5rem 0;padding:1.6rem 1.75rem;border:1px solid var(--zr-line);border-top:3px solid var(--zr-red);border-radius:6px;background:#FFFFFF;color:var(--zr-ink);font-size:15px;line-height:1.5;text-align:left;clear:both;box-shadow:0 4px 16px rgba(17,24,39,.04)}
.zr-card.is-high-amount{border-top-color:#8B0010}
.zr-card *{box-sizing:border-box}
.zr-card.zr-hero{margin:0;padding:1rem 1.2rem;border-color:#E5E4DF;border-top:3px solid var(--zr-red);background:#FFFFFF;box-shadow:0 10px 30px rgba(17,24,39,.07)}
.zr-card.zr-hero .zr-top-row{margin-bottom:7px;padding-bottom:5px}
.zr-card.zr-hero .zr-lawyer{margin-bottom:6px}
.zr-card.zr-hero .zr-avatar{width:40px!important;height:40px!important}
.zr-card.zr-hero .zr-form{gap:.45rem}
.zr-card.zr-hero .zr-row{gap:.48rem}
.zr-card.zr-hero .zr-chip{padding:3px 9px;font-size:11px}
.zr-top-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #F3F4F6}
.zr-tag{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--zr-red);background:transparent;border:0;padding:0}
.zr-card.is-high-amount .zr-tag{color:#8B0010;background:transparent;border:0}
.zr-live-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#4B5563;background:transparent;border:0;padding:0}
.zr-live-dot{width:7px;height:7px;border-radius:50%;background:#10B981;flex-shrink:0}
.zr-grid{display:grid;grid-template-columns:1fr;gap:1.15rem}
@media(min-width:860px){.zr-card.zr-card .zr-grid{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:1.9rem}}
.zr-card.zr-hero .zr-grid,.zr-card.zr-modal .zr-grid{grid-template-columns:1fr!important;gap:.55rem!important}
.zr-lawyer{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.zr-avatar{width:48px!important;height:48px!important;border-radius:50%!important;object-fit:cover;border:2px solid #fff;box-shadow:0 3px 10px rgba(22,24,29,.14),0 0 0 1px #DFD5C5;flex-shrink:0;margin:0!important}
.zr-lawyer-info{display:flex;flex-direction:column;min-width:0}
.zr-lawyer-name{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:15.5px;line-height:1.2;color:var(--zr-ink)!important;text-decoration:none!important}
.zr-lawyer-name:hover{color:var(--zr-red)!important;text-decoration:underline!important}
.zr-lawyer-meta{font-size:11.5px;color:#57534E;line-height:1.3;margin-top:2px}
.zr-card h2.zr-title{font-family:Georgia,'Times New Roman',serif;font-size:1.38rem;line-height:1.22;font-weight:700;margin:0 0 .45rem;color:var(--zr-ink);letter-spacing:-.01em;border:0;padding:0}
.zr-card.zr-hero h2.zr-title{font-size:1.12rem!important;margin:0 0 .25rem!important}
.zr-amount{margin:0 0 .5rem;font-weight:800;color:var(--zr-red);font-size:1.02rem}
.zr-body{margin:0 0 .75rem;color:#44403C;font-size:14px}
.zr-body-compact{font-size:13px!important;line-height:1.42!important;margin:0!important;color:#57534E}
.zr-body-compact code{font-size:11.5px;background:#F3EDE2;padding:1px 5px;border-radius:4px;color:#8B0010;font-weight:700}
.zr-points{list-style:none;margin:0;padding:0;font-size:13.2px;color:#44403C}
.zr-points li{position:relative;padding-left:21px;margin:.28rem 0}
.zr-points li:before{content:'✓';position:absolute;left:0;color:var(--zr-red);font-weight:900}
.zr-form,.zr-enrich-form{display:flex;flex-direction:column;gap:.62rem}
.zr-row{display:grid;grid-template-columns:minmax(0,1fr);gap:.62rem}
@media(min-width:640px){.zr-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.zr-field{display:flex;flex-direction:column;gap:3px;font-size:12.2px;font-weight:700;color:#292524;margin:0;min-width:0}
.zr-field em{font-style:normal;font-weight:500;color:#78716C}
.zr-field input,.zr-field textarea,.zr-field select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;font:inherit;font-size:16px;font-weight:500;color:var(--zr-ink);background:#fff;border:1px solid #D4CCC0;border-radius:10px;padding:9px 11px;outline:none;transition:border-color .15s,box-shadow .15s;resize:vertical;min-height:44px}
.zr-field input[type="file"]{padding:7px 9px;font-size:12.8px;min-height:38px}
.zr-field input:focus,.zr-field textarea:focus,.zr-field select:focus{border-color:var(--zr-red);box-shadow:0 0 0 3px rgba(139,0,16,.12)}
.zr-checklist-hint{font-size:11.4px;font-weight:500;color:#78716C;line-height:1.35}
.zr-more{border:0;border-top:1px solid #ECEAE4;border-radius:0;padding:8px 0 0;background:transparent}
.zr-more-toggle{cursor:pointer;font-size:12.2px;font-weight:700;color:#57534E;list-style:none;user-select:none}
.zr-more-toggle::-webkit-details-marker{display:none}
.zr-more-toggle em{font-style:normal;font-weight:500;color:#78716C}
.zr-more[open] .zr-more-toggle{margin-bottom:8px;color:var(--zr-red)}
.zr-more-fields{display:flex;flex-direction:column;gap:.55rem}
.zr-pref-group{display:flex;flex-wrap:wrap;gap:6px;min-height:42px;align-items:center}
.zr-pref-opt{display:inline-flex;align-items:center;cursor:pointer;margin:0}
.zr-pref-opt{position:relative;overflow:hidden}.zr-pref-opt input{position:absolute;inset:0;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;pointer-events:none}
.zr-pref-opt span{display:inline-flex;align-items:center;gap:4px;padding:7px 10px;border:1px solid #D4CCC0;border-radius:6px;background:#FFFFFF;font-size:12.2px;font-weight:600;color:#374151;transition:border-color .15s,color .15s,background .15s}
.zr-pref-opt input:checked+span{border-color:var(--zr-red);color:var(--zr-red);background:#FFF8F8;font-weight:700}
.zr-wa-direct{padding-top:8px;border-top:1px solid #ECEAE4;text-align:center}
.zr-wa-link{display:inline-block;font-size:12.8px;color:#111827;text-decoration:none;line-height:1.45}
.zr-wa-link strong{color:var(--zr-red);text-decoration:underline}
.zr-wa-link span{color:#4B5563;font-size:12px}
.zr-wa-link:hover{color:var(--zr-red)}
.zr-check{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:#57534E;margin:0;cursor:pointer}
.zr-check input{margin-top:2px;width:16px;height:16px;accent-color:var(--zr-red);flex-shrink:0}
.zr-check a{color:var(--zr-red);text-decoration:underline}
.zr-captcha{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.zr-captcha-box{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:6px 12px 6px 9px;border:1px solid #D4CCC0;border-radius:10px;background:#fff;cursor:pointer;font:inherit;font-size:13.5px;font-weight:600;color:var(--zr-ink)}
.zr-captcha-box:hover{border-color:#A8A29E}
.zr-captcha-icon{width:20px;height:20px;border:2px solid #A8A29E;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;color:#fff;flex-shrink:0}
.zr-captcha.is-busy .zr-captcha-icon{border-color:#D6D0C4;border-top-color:var(--zr-red);border-radius:50%;animation:zr-spin .8s linear infinite}
.zr-captcha.is-ok .zr-captcha-icon{background:#15803D;border-color:#15803D}
.zr-captcha.is-ok .zr-captcha-icon:after{content:'✓'}
.zr-captcha-note{font-size:10.8px;color:#78716C}
@keyframes zr-spin{to{transform:rotate(360deg)}}
.zr-error{margin:0;padding:8px 11px;border-radius:8px;background:#FEF2F2;border:1px solid #FECACA;color:#991B1B;font-size:12.8px;font-weight:600}
.zr-submit{min-height:47px;border:0;border-radius:12px;background:var(--zr-red);color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;padding:11px 16px;box-shadow:0 6px 18px rgba(139,0,16,.22);transition:transform .1s,background .15s}
.zr-submit:hover{background:#6F000D}.zr-submit:active{transform:scale(.99)}.zr-submit[disabled]{opacity:.7;cursor:wait}
.zr-enrich-submit{min-height:43px;font-size:14px;background:#16181D;box-shadow:0 4px 12px rgba(22,24,29,.18)}
.zr-enrich-submit:hover{background:#292D36}
.zr-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.zr-done{text-align:left;padding:.2rem 0}
.zr-done-head{display:flex;align-items:center;gap:11px;padding:0 0 12px;border-bottom:1px solid #E5E4DF;background:transparent;margin-bottom:12px}
.zr-done-check{width:28px;height:28px;border-radius:50%;background:#8B0010;color:#fff;font-size:15px;font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.zr-done-title{font-family:Georgia,serif;font-size:1.08rem;font-weight:700;margin:0!important;color:#111827}
.zr-done-title strong{color:var(--zr-red);letter-spacing:.02em}
.zr-done-text{margin:2px 0 0!important;color:#4B5563;font-size:13px!important}
.zr-enrich-box{padding:4px 0 0;background:transparent;border:0;box-shadow:none}
.zr-enrich-kicker{margin:0 0 3px!important;font-size:12.5px!important;font-weight:800;color:#92400E;text-transform:uppercase;letter-spacing:.04em}
.zr-enrich-kicker span{font-weight:600;color:#78716C;text-transform:none;letter-spacing:0}
.zr-enrich-sub{margin:0 0 9px!important;font-size:12.6px!important;color:#57534E;line-height:1.4!important}
.zr-enrich-ok{padding:10px 0;border-top:1px solid #ECEAE4;background:transparent;color:#065F46;font-size:13.5px}
.zr-done-link{color:var(--zr-red);font-weight:800;text-decoration:underline;font-size:13px}
.zr-inline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:2rem 0;padding:14px 0 14px 16px;border-left:3px solid #8B0010;border-top:1px solid #E5E4DF;border-bottom:1px solid #E5E4DF;border-right:0;border-radius:0;background:transparent;font-size:14px;color:#292524;line-height:1.45;clear:both}
.zr-inline-lead{display:flex;align-items:center;gap:10px;flex:1;min-width:220px}
.zr-inline-avatar{width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover;flex-shrink:0;border:1.5px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.12);margin:0!important}
.zr-inline strong{color:#16181D}
.zr-inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.zr-inline button,.zr-open-btn{min-height:40px;border:1px solid #8B0010;background:#8B0010;color:#fff;border-radius:10px;padding:7px 14px;font:inherit;font-size:13.5px;font-weight:800;cursor:pointer;white-space:nowrap;transition:background .15s}
.zr-inline button:hover,.zr-open-btn:hover{background:#6F000D;color:#fff}
.zr-inline-link{font-size:12.5px;font-weight:700;color:#8B0010!important;text-decoration:underline!important;white-space:nowrap}
.zr-modal-wrap{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;background:rgba(22,24,29,.55);padding:0}
.zr-modal-wrap[hidden]{display:none}
@media(min-width:640px){.zr-modal-wrap{align-items:center;padding:24px}}
.zr-modal-panel{position:relative;width:100%;max-width:560px;max-height:94vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.zr-modal-panel .zr-card{margin:0;border-radius:18px 18px 0 0;box-shadow:0 20px 60px rgba(0,0,0,.35)}
@media(min-width:640px){.zr-modal-panel .zr-card{border-radius:18px}}
.zr-close{position:absolute;top:10px;right:10px;z-index:5;width:36px;height:36px;border-radius:50%;border:1px solid #E5E0D6;background:#fff;color:#16181D;font-size:21px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.zr-modal-panel .zr-head,.zr-modal-panel .zr-badge-row,.zr-modal-panel .zr-top{padding-right:44px}
.lgx-zr-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;margin-top:12px;padding:12px 14px;border-radius:12px;background:#FAF6EE;border:1px solid #EADFC9;font-size:13.5px;line-height:1.45;color:#44403C}
.lgx-zr-strip strong{color:#16181D}
.lgx-zr-strip.is-strong{background:#16181D;border-color:#16181D;color:#CBD5E1}
.lgx-zr-strip.is-strong strong{color:#fff}
.lgx-zr-copy{flex:1;min-width:220px}
.lgx-zr-btn{min-height:40px;padding:8px 14px;border-radius:10px;border:0;background:#8B0010;color:#fff;font:inherit;font-size:13.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.lgx-zr-strip.is-strong .lgx-zr-btn{background:#C9A227;color:#16181D}
/* Aislamiento frente a estilos editoriales (prose) de guías y landings */
.zr-card h2.zr-title{border:0!important;padding:0!important;margin:0 0 .45rem!important;font-size:1.35rem!important;line-height:1.22!important;text-decoration:none!important}
.zr-card.zr-hero h2.zr-title{font-size:1.2rem!important;margin:0 0 .35rem!important}
.zr-card h2.zr-title:before,.zr-card h2.zr-title:after{display:none!important;content:none!important}
.zr-card p{margin:0 0 .55rem;line-height:1.48;font-size:14px;max-width:none!important}
.zr-card p.zr-body-compact{font-size:13px!important;line-height:1.42!important;margin:0!important}
.zr-card p.zr-amount{font-weight:800!important;color:#8B0010!important;font-size:1.02rem!important}
.zr-card ul.zr-points{list-style:none!important;padding:0!important;margin:0!important}
.zr-card ul.zr-points li{list-style:none!important;font-size:13.2px!important;line-height:1.42!important;margin:.25rem 0!important;padding-left:21px!important}
.zr-card ul.zr-points li::marker{content:''!important}
.zr-card label,.zr-card label span{line-height:1.35!important}
.zr-card input,.zr-card textarea,.zr-card select{margin:0!important}
.zr-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
.zr-chip{background:#F8FAFC;border:1px solid #CBD5E1;color:#1E293B;border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:600;line-height:1.3;cursor:pointer;transition:all .15s;text-align:left}
.zr-chip:hover,.zr-chip.is-active{background:#FFFBEB;border-color:#C9A227;color:#78350F}
.zr-mobile-bar{display:none}
@media(max-width:767px){
.zr-mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:9985;min-height:56px;background:#16181D;color:#FFFFFF;border-top:2px solid #C9A227;padding:8px max(10px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));display:flex;align-items:center;justify-content:space-between;gap:8px;box-shadow:0 -8px 24px rgba(15,23,42,.28)}
.zr-mobile-bar[hidden]{display:none!important}
.zr-mobile-bar__txt{font-size:12px;font-weight:700;color:#F8FAFC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.zr-mobile-bar__txt span{color:#FDE68A;font-weight:800}
.zr-mobile-bar__cta{flex-shrink:0;min-height:40px;background:#C9A227;color:#16181D;border:0;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center}
.zr-mobile-bar__close{flex-shrink:0;min-width:36px;min-height:40px;background:transparent;border:0;color:#CBD5E1;font-size:16px;line-height:1;padding:4px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
}
@media(max-width:639px){.zr-card{padding:1.1rem;margin:1.75rem 0}.zr-card.zr-hero{margin:0;padding:1.1rem}.zr-card .zr-points{display:none}.zr-card h2.zr-title{font-size:1.18rem!important}.zr-card p.zr-body{font-size:13.3px!important}}

/* 2026-11-21 Perf & AdSense CLS Rules */
.superads-ad-slot-minh { min-height: 280px; }
.legia-defer-section { content-visibility: auto; contain-intrinsic-size: auto 380px; }
