* { box-sizing: border-box; }

:root {
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --color-bg: #f1f4fa;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-border: #e2e8f0;
    --color-primary: #1e3a8a;
    --color-primary-dark: #172554;
    --color-accent: #3b82f6;
    --color-accent-glow: rgba(59, 130, 246, 0.35);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.14);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --header-bg: linear-gradient(105deg, rgba(8, 12, 26, 0.97) 0%, rgba(17, 26, 48, 0.96) 45%, rgba(22, 36, 71, 0.95) 100%);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 1000px 520px at 92% -8%, rgba(191, 219, 254, 0.42), transparent 55%),
        radial-gradient(ellipse 880px 480px at -5% 0%, rgba(203, 213, 225, 0.45), transparent 50%);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--color-primary-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.container { width: min(1320px, 94%); margin: 0 auto; }
.content-shell { width: min(1320px, 94%); margin: 0 auto; }
.site-main { padding: 42px 0 56px; min-height: 72vh; }

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(2, 6, 23, 0.35);
}
.site-header-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f1f5f9;
    font-weight: 650;
    letter-spacing: -0.01em;
    font-size: 15px;
}
.brand:hover { color: #fff; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 45%, #1e3a8a 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 14px var(--color-accent-glow);
}
.site-nav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.site-nav a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 550;
    padding: 6px 4px;
    border-radius: 6px;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.site-nav a:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.06); }
.site-nav a.is-active { color: #fff; position: relative; font-weight: 650; }
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    border-radius: 999px;
}
.site-nav .nav-cta {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 650;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    margin-left: 4px;
}
.site-nav .nav-cta:hover {
    filter: brightness(1.06);
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.site-breadcrumb {
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.site-breadcrumb-inner {
    min-height: 38px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.site-breadcrumb-inner a {
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.site-breadcrumb-inner a:hover { color: var(--color-primary); border-bottom-color: rgba(30, 58, 138, 0.25); }
.site-breadcrumb-inner [aria-current="page"] { color: #0f172a; font-weight: 700; }
.site-breadcrumb-sep { color: #94a3b8; font-weight: 500; }
.mobile-menu-toggle {
    display: none;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-weight: 650;
    font-family: var(--font);
    cursor: pointer;
}
.mobile-cta-bar { display: none; }

/* Barra CTA móvil: estilos base (visibles solo en media query móvil) */
.mobile-cta-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.15s var(--ease-out), filter 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.mobile-cta-bar__link:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
    .mobile-cta-bar__link { transition: none; }
    .mobile-cta-bar__link:active { transform: none; }
}
.mobile-cta-bar__link--secondary {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mobile-cta-bar__link--secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.mobile-cta-bar__link--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(96, 165, 250, 0.45);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}
.mobile-cta-bar__link--primary:hover {
    color: #fff !important;
    filter: brightness(1.06);
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: linear-gradient(160deg, #0f172a 0%, #111c34 52%, #16213f 100%);
    margin-top: 12px;
    color: #cbd5e1;
}
.site-footer p { margin: 0; padding: 0; font-size: 14px; }
.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
    align-items: flex-start;
    gap: 24px 34px;
    padding: 34px 0 22px;
}
.footer-kicker {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-brand { padding: 0; margin-top: 6px; font-weight: 750; color: #f8fafc; font-size: 20px; letter-spacing: -0.02em; }
.footer-note { padding: 0; margin-top: 10px; color: #cbd5e1; font-size: 14px; line-height: 1.6; max-width: 46ch; }
.footer-contact-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #cbd5e1; }
.footer-contact-list a { color: #e2e8f0; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-contact-list a:hover { color: #fff; border-bottom-color: rgba(226, 232, 240, 0.35); }
.footer-nav-blocks {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: min(840px, 100%);
}
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col-title {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.footer-col a {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.45;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    width: fit-content;
}
.footer-col a:hover { color: #fff; border-bottom-color: rgba(226, 232, 240, 0.35); }
.footer-col--legal a { color: #94a3b8; }
.footer-col--legal a:hover { color: #e2e8f0; }
.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 0 18px;
    flex-wrap: wrap;
}
.footer-bottom small { color: #94a3b8; font-size: 12px; line-height: 1.45; }

.trust-ribbon {
    background: linear-gradient(90deg, #eef2ff 0%, #eff6ff 50%, #f0f9ff 100%);
    border-bottom: 1px solid rgba(191, 219, 254, 0.5);
}
.trust-ribbon-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    color: #334155;
    font-weight: 650;
    letter-spacing: 0.02em;
}
.trust-ribbon-inner span { display: inline-flex; align-items: center; gap: 8px; }
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.clean-hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 36px; align-items: center; padding: 40px 0 28px; }
.clean-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.15rem, 4.2vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--color-text);
    max-width: 15ch;
}
.clean-hero-copy p { margin: 0; color: var(--color-text-muted); max-width: 38rem; font-size: 1.05rem; }
.clean-hero-copy .hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.clean-hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.clean-hero-trust span { font-size: 12px; color: #334155; background: #eef4fd; border: 1px solid #d4e2f6; border-radius: 999px; padding: 5px 10px; font-weight: 600; }
.clean-hero-art { min-height: 360px; border-radius: 24px; background: radial-gradient(420px 220px at 78% 20%, rgba(191, 219, 254, 0.85), rgba(191, 219, 254, 0)), linear-gradient(140deg, #0f172a, #1e3a8a 60%, #1d4ed8); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28); }
.clean-hero-photo {
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.12)),
        url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}
.clean-trust-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 0 26px; border-bottom: 1px solid #dbe3ef; }
.clean-trust-line p { margin: 0; font-size: 13px; color: #334155; font-weight: 600; }
.corporate-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 8px;
}
.corporate-metrics article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.corporate-metrics article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.corporate-metrics strong { display: block; font-size: clamp(1.45rem, 2.5vw, 1.75rem); color: var(--color-text); line-height: 1.15; font-weight: 750; letter-spacing: -0.03em; }
.corporate-metrics p { margin: 8px 0 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.45; }
.corporate-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 18px;
}
.corporate-pillars article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.corporate-pillars article:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}
.corporate-pillars span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 3px 8px;
    margin-bottom: 8px;
}
.corporate-pillars h3 { margin: 0 0 6px; font-size: 1.02rem; }
.corporate-pillars p { margin: 0; color: #475569; font-size: 14px; }
.clean-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 36px 0 28px; }
.clean-process article span { display: inline-block; font-size: 12px; color: #1e3a8a; font-weight: 700; margin-bottom: 8px; }
.clean-process article h3 { margin: 0 0 6px; font-size: 1.15rem; }
.clean-process article p { margin: 0; color: #475569; }
.clean-statement { margin: 24px 0 30px; padding: 30px 0 10px; border-top: 1px solid #dbe3ef; }
.clean-statement h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.15; max-width: 24ch; }
.clean-statement p { margin: 0; color: #334155; max-width: 70ch; }
.cta-lite {
    margin: 8px 0 24px;
    padding: 16px 18px;
    border: 1px solid #d8e4f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.cta-lite h3 { margin: 0 0 4px; font-size: 18px; }
.cta-lite p { margin: 0; color: #475569; font-size: 14px; }
.clean-internal-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 16px 0 8px; }
.clean-internal-nav a { display: block; padding: 8px 0; border-top: 1px solid #cfd8e3; }
.clean-internal-nav h3 { margin: 0 0 6px; font-size: 1.05rem; color: #0f172a; }
.clean-internal-nav p { margin: 0; color: #475569; font-size: 14px; }

/* —— Home: landing clara —— */
.home-page { padding-bottom: 16px; }
.home-page .clean-hero-copy h1 {
    max-width: min(20ch, 100%);
}
.home-page .eyebrow {
    margin-top: 0;
    color: var(--color-text-muted);
    font-weight: 650;
}
.home-hero {
    align-items: center;
    gap: 28px;
    padding: 28px 0 20px;
}
.home-hero__eyebrow {
    color: var(--color-primary);
    letter-spacing: 0.12em;
}
.home-hero__lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 38rem;
}
.home-hero__note {
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    max-width: 38rem;
}
.home-hero__visual {
    min-height: 260px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.home-hero__visual::after { content: none; }

.home-page .home-metrics {
    margin-top: 12px;
    margin-bottom: 0;
}
.home-page .home-metrics article::before { display: none; }
.home-page .home-metrics article {
    padding-top: 18px;
    box-shadow: var(--shadow-sm);
}
.home-page .home-metrics article:hover {
    transform: translateY(-1px);
}

.home-statement {
    margin: 36px 0 28px;
    padding: 26px 28px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.home-statement__title {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1.2;
    max-width: 30ch;
}
.home-statement__lead {
    margin: 0 0 18px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 40rem;
}
.home-statement__list {
    margin: 0;
    padding: 0 0 0 1.15rem;
    display: grid;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.home-doc-cta {
    margin: 0 0 32px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.home-doc-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--color-border);
}
.home-doc-cta__copy h3 {
    margin: 0 0 6px;
    font-size: 1.125rem;
    font-weight: 650;
    color: var(--color-text);
}
.home-doc-cta__copy p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 15px;
}
.home-doc-cta__actions { margin-top: 0; }

.home-pillars { margin-bottom: 32px; }
.home-page .home-pillars article {
    padding: 20px 18px;
    border-left: 0;
    box-shadow: var(--shadow-sm);
}
.home-page .home-pillars article:hover {
    transform: translateY(-1px);
}
.home-page .home-pillars span {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.home-next-steps {
    display: flex;
    flex-direction: column;
    margin: 0 0 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}
.home-next-steps__link {
    display: block;
    padding: 17px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s var(--ease-out);
}
.home-next-steps__link:last-child { border-bottom: 0; }
.home-next-steps__link:hover {
    background: #f8fafc;
    color: inherit;
}
.home-next-steps__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}
.home-next-steps__label {
    display: block;
    font-size: 16px;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 4px;
}
.home-next-steps__hint {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
}

.home-showcase {
    margin-top: 24px;
    margin-bottom: 24px;
}
.home-showcase__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-border);
}
.home-showcase__head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.home-showcase__link {
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(30, 58, 138, 0.35);
}
.home-showcase__link:hover {
    background: none;
    color: var(--color-text);
    text-decoration-color: currentColor;
}
.home-showcase__highlight {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
}

.home-showcase--reviews .home-showcase__head {
    align-items: flex-start;
    gap: 16px 20px;
}
.home-showcase__intro {
    flex: 1 1 260px;
    min-width: min(100%, 280px);
}
.home-showcase--reviews .home-showcase__head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.1vw, 1.45rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    max-width: 36ch;
}
.home-showcase__sub {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted);
    max-width: 48rem;
}

.testimonial-grid {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.testimonial-grid__cell {
    margin: 0;
    padding: 0;
    min-width: 0;
}
.testimonial-card {
    margin: 0;
    padding: 20px 18px 18px 20px;
    height: 100%;
    background: linear-gradient(165deg, #fafbfc 0%, #f4f6f9 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.testimonial-card:hover {
    border-color: #c7d2fe;
    box-shadow: var(--shadow-md);
}
.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2.5rem;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    color: rgba(30, 58, 138, 0.12);
    pointer-events: none;
}
.testimonial-card__stars {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 2px;
}
.testimonial-card__star {
    color: #e2e8f0;
}
.testimonial-card__star.is-on {
    color: #b45309;
}
.testimonial-card__quote {
    margin: 0;
    font-size: 15px;
    line-height: 1.58;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}
.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}
.testimonial-card__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(145deg, #1e3a8a, #334155);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.testimonial-card__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-card__name {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}
.testimonial-card__source {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
}
.testimonial-card__source--muted {
    color: #64748b;
    font-weight: 500;
}

.reviews-hero__lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 52rem;
}
.reviews-hero__note {
    margin: 14px 0 0;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    max-width: 52rem;
}
.reviews-trust {
    margin-top: 8px;
}
.contact-hero {
    margin-top: 12px;
}
.contact-hero .hero-panel a {
    color: #bfdbfe;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.contact-info-card {
    margin: 0;
}
.contact-info-card h2 {
    margin-bottom: 10px;
}
.contact-info-card .list-clean {
    padding-left: 16px;
}
.contact-info-card .list-clean li {
    line-height: 1.5;
}

.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; background: linear-gradient(120deg, #0b1220 0%, #14213d 52%, #1e3a8a 100%); color: #e2e8f0; border-radius: 18px; padding: 42px; margin: 8px 0 20px; box-shadow: 0 24px 70px rgba(11, 18, 32, 0.28); border: 1px solid rgba(191, 219, 254, 0.16); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -140px; top: -130px; background: radial-gradient(circle, rgba(147, 197, 253, 0.28), rgba(147, 197, 253, 0)); pointer-events: none; }
.hero h1 { margin: 0 0 12px; line-height: 1.15; color: #fff; font-size: clamp(2rem, 2.8vw, 3rem); max-width: 20ch; }
.hero p { margin: 0 0 10px; color: #c7d2fe; max-width: 70ch; }
.hero-panel { background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(191, 219, 254, 0.2); border-radius: 14px; padding: 20px; backdrop-filter: blur(3px); }
.hero-panel h3 { margin-top: 0; margin-bottom: 10px; color: #fff; }
.hero-panel ul { margin: 0; padding-left: 18px; color: #dbeafe; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-actions-serious .btn { min-width: 210px; text-align: center; }
.hero-proof { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.proof-pill { display: inline-block; background: rgba(148, 163, 184, 0.2); color: #dbeafe; border: 1px solid rgba(191, 219, 254, 0.25); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.trust-grid { display: grid; gap: 10px; }
.trust-grid article { border: 1px solid rgba(191, 219, 254, 0.28); border-radius: 10px; padding: 11px 12px; background: rgba(15, 23, 42, 0.28); }
.trust-grid strong { color: #fff; font-size: 14px; display: block; margin-bottom: 2px; }
.trust-grid p { margin: 0; font-size: 13px; color: #cbd5e1; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; color: #94a3b8; margin-bottom: 8px; }

.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
    background: linear-gradient(165deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    margin: 18px 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #c7d7f0;
}
.card h1, .card h2, .card h3 { margin-top: 0; color: #0f172a; }
.icon-chip { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; margin: 0 0 10px; font-size: 12px; font-weight: 700; color: #1e3a8a; background: #dbeafe; border: 1px solid #bfdbfe; }
.split-layout {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 22px;
    align-items: start;
    margin: 16px 0 24px;
}
.split-layout > .panel {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
}
.panel { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid #dde4ef; border-radius: 14px; padding: 18px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); }
.panel h3 { margin-top: 0; margin-bottom: 10px; font-size: 1rem; color: #0f172a; }
.panel p, .panel li { color: #334155; }
.list-clean { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.kicker { display: inline-block; margin-top: 10px; font-size: 13px; color: #475569; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 10px; }
.stat-item { background: rgba(255, 255, 255, 0.74); border: 1px solid #dbe4f2; border-radius: 12px; padding: 16px; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.stat-value { margin: 0; font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700; color: #0f172a; line-height: 1.1; }
.stat-label { margin: 4px 0 0; font-size: 13px; color: #475569; }
.fee-banner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin: 10px 0 12px; background: linear-gradient(120deg, #0f172a, #1e293b); border: 1px solid #1e3a8a; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2); }
.fee-main { padding: 24px; color: #e2e8f0; }
.fee-main h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; }
.fee-main p { margin: 0; color: #cbd5e1; max-width: 68ch; }
.fee-points { padding: 20px; background: rgba(15, 23, 42, 0.45); border-left: 1px solid rgba(147, 197, 253, 0.25); display: grid; gap: 10px; align-content: center; }
.fee-points p { margin: 0; color: #dbeafe; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.badge-icon { width: 34px; height: 34px; border-radius: 9px; background: #1e3a8a; border: 1px solid #60a5fa; color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 34px; }
.visual-icons-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.visual-icon-card { background: #fff; border: 1px solid #dbe4f1; border-radius: 12px; padding: 18px; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.visual-icon-card h3 { margin: 0 0 6px; }
.visual-icon-card p { margin: 0; color: #475569; }
.visual-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-grid; place-items: center; margin-bottom: 10px; background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e3a8a; font-weight: 800; border: 1px solid #93c5fd; }
.editorial-visual { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin: 14px 0; }
.editorial-copy { background: linear-gradient(180deg, #ffffff, #f8fbff); border: 1px solid #dae3f1; border-radius: 14px; padding: 20px; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.editorial-copy h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.2; }
.editorial-copy p { margin: 0; color: #475569; }
.editorial-art { border-radius: 14px; border: 1px solid #d9e3f2; background: linear-gradient(120deg, #0f172a, #1e293b); position: relative; overflow: hidden; min-height: 220px; box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2); }
.editorial-art::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; top: -110px; right: -100px; background: radial-gradient(circle, rgba(147, 197, 253, 0.35), rgba(147, 197, 253, 0)); }
.art-card { position: absolute; border-radius: 12px; border: 1px solid rgba(147, 197, 253, 0.28); background: rgba(15, 23, 42, 0.55); box-shadow: 0 12px 24px rgba(2, 6, 23, 0.3); }
.art-card-main { width: 65%; height: 60%; left: 10%; top: 18%; }
.art-card-small { width: 34%; height: 36%; right: 10%; bottom: 12%; }
.guarantees-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 14px; }
.guarantee-card { background: linear-gradient(180deg, #ffffff, #f6faff); border: 1px solid #d9e3f2; border-radius: 12px; padding: 16px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
.guarantee-card h3 { margin: 0 0 6px; font-size: 1rem; }
.guarantee-card p { margin: 0; color: #475569; font-size: 14px; }
.process-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.timeline-step { position: relative; background: #fff; border: 1px solid #dbe4f1; border-radius: 12px; padding: 16px 14px 14px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05); }
.timeline-step h4 { margin: 0 0 6px; font-size: 15px; color: #0f172a; }
.timeline-step p { margin: 0; color: #475569; font-size: 14px; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #1e3a8a; display: inline-block; margin-bottom: 8px; box-shadow: 0 0 0 4px #dbeafe; }
.faq-legal { margin-top: 18px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.faq-grid article { background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 10px; padding: 14px; }
.faq-grid h3 { margin: 0 0 6px; font-size: 15px; }
.faq-grid p { margin: 0; color: #475569; font-size: 14px; }
.trust-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.trust-mini-grid article { background: #fff; border: 1px solid #dbe4f1; border-radius: 10px; padding: 12px; }
.trust-mini-grid h3 { margin: 0 0 5px; font-size: 15px; }
.trust-mini-grid p { margin: 0; font-size: 14px; color: #475569; }
.media-grid {
    display: grid;
    gap: 16px;
    margin-top: 10px;
}
.media-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card {
    background: #fff;
    border: 1px solid #dbe4f1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.media-card:hover { transform: translateY(-3px); box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12); border-color: #bfdbfe; }
.media-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.media-card-lg img { height: 220px; }
.media-card-body { padding: 14px; }
.media-card-body h2,
.media-card-body h3 { margin-top: 0; }
.blog-detail-cover {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}
.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

/* Landing proceso reclamación */
.process-page {
    display: grid;
    gap: 14px;
}
.process-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    align-items: start;
    margin: 0;
}
.process-hero__copy h1 {
    margin-top: 2px;
    line-height: 1.15;
}
.process-hero__panel {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    padding: 16px;
}
.process-hero__panel h2 {
    margin: 0 0 8px;
    font-size: 1.02rem;
}
.process-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.process-kpi {
    margin: 0;
    padding: 18px 16px;
}
.process-kpi strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
}
.process-kpi p {
    margin: 0;
    color: #475569;
}
.process-steps {
    margin: 0;
}
.process-steps h2 {
    margin-bottom: 12px;
}
.process-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.process-two-cols > .card {
    margin: 0;
}
.blog-article-main {
    margin: 0;
}
.blog-detail-sidebar {
    margin: 0;
    position: sticky;
    top: 12px;
}
.blog-detail-widget + .blog-detail-widget {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.blog-detail-widget h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}
.blog-toc-list,
.blog-side-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.blog-toc-list li.is-sub {
    padding-left: 12px;
}
.blog-toc-list a,
.blog-side-links a {
    display: inline-block;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}
.blog-toc-list a:hover,
.blog-side-links a:hover {
    text-decoration: underline;
}
.legal-content h1 { letter-spacing: -0.03em; font-weight: 750; }
.legal-content h2 { margin-top: 26px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-text); }
.legal-content p { color: var(--color-text-muted); line-height: 1.7; }
.legal-content .eyebrow { color: var(--color-primary); }
.credentials-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 6px; }
.credential-item { background: #0f172a; border: 1px solid #1e3a8a; color: #e2e8f0; border-radius: 12px; padding: 16px; }
.credential-item h3 { margin: 0 0 6px; color: #fff; font-size: 1rem; }
.credential-item p { margin: 0; color: #cbd5e1; font-size: 14px; }
.case-types { margin-top: 14px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-grid article { background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 10px; padding: 14px; }
.case-grid h3 { margin: 0 0 6px; font-size: 15px; }
.case-grid p { margin: 0; color: #475569; font-size: 14px; }
.highlight-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; background: linear-gradient(105deg, #0f172a, #1e293b); border-radius: 14px; margin: 8px 0 18px; border: 1px solid #1e3a8a; overflow: hidden; }
.highlight-main { padding: 24px; color: #e2e8f0; }
.highlight-main h3 { margin: 0 0 8px; color: #fff; font-size: 1.4rem; }
.highlight-main p { margin: 0; color: #cbd5e1; }
.highlight-side { padding: 20px; background: rgba(15, 23, 42, 0.45); border-left: 1px solid rgba(148, 163, 184, 0.22); color: #dbeafe; }
.highlight-side ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 650;
    font-family: var(--font);
    font-size: 14px;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.28);
    transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn:hover {
    filter: brightness(1.06);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.32);
}
.btn-soft {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.btn-soft:hover {
    background: #f8fafc;
    color: var(--color-text);
    border-color: #cbd5e1;
}
.btn-ghost { background: transparent; border: 1px solid #93c5fd; color: #dbeafe; }
.btn-ghost:hover { background: rgba(147, 197, 253, 0.14); color: #fff; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn.is-loading { opacity: .85; cursor: wait; }
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.processing-overlay.is-visible { display: flex; }
.processing-box {
    width: min(560px, 94%);
    background: #fff;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.processing-box p {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}
.spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    border-top-color: #1e3a8a;
    animation: spin .9s linear infinite;
    flex: 0 0 24px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.auth-wrap { min-height: 70vh; display: grid; place-items: center; }
.form { width: min(420px, 95%); display: grid; gap: 8px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid #cfd8e3; background: #fff; }
label { display: inline-block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #334155; }
.form-intro { margin: -4px 0 16px; color: #475569; font-size: 14px; }
.case-form { display: grid; gap: 14px; }
.form-section { border: 1px solid #dbe4f1; border-radius: 12px; padding: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.form-section h3 { margin: 0; font-size: 16px; }
.section-hint { margin: 6px 0 12px; color: #64748b; font-size: 13px; }
.form-grid { display: grid; gap: 12px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
.form-grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section-title { margin: 22px 0 10px; font-size: 15px; font-weight: 800; color: #0f172a; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }
.form-section-title:first-of-type { margin-top: 0; }
.site-settings-form.form { width: min(960px, 100%); max-width: 100%; }
.site-settings-form .form-section-title { margin-top: 18px; }
.form-check-row { margin: 12px 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.checkbox-label input { width: auto; margin: 0; }
.req { color: #b91c1c; }
.field { min-width: 0; }
.field-span-2 { grid-column: span 2; }
.form-actions { position: sticky; bottom: 10px; z-index: 3; display: flex; gap: 10px; justify-content: flex-end; padding: 10px; border: 1px solid #dbe4f1; border-radius: 12px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(3px); }
.form-card { width: min(1500px, 100%); margin: 8px auto 18px; padding: 30px; }
.form-card > form.form { width: 100%; max-width: none; }
.form-card .case-form { gap: 18px; }
.form-card .form-section { padding: 18px; }
.form-card .form-grid-2 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.form-card .form-grid-2 .field { grid-column: span 6; }
.form-card .form-grid-2 .field-span-2 { grid-column: span 12; }
.form-card input, .form-card select, .form-card textarea { padding: 12px 13px; }
.error-text { color: #b91c1c; }
.alert { border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

.admin-body {
    font-family: var(--font);
    background:
        radial-gradient(900px 460px at 100% -12%, rgba(191, 219, 254, 0.38), rgba(191, 219, 254, 0)),
        linear-gradient(180deg, #e8edf5 0%, #e4e9f2 100%);
    -webkit-font-smoothing: antialiased;
}
.admin-shell { display: grid; grid-template-columns: 278px 1fr; min-height: 100vh; }
.sidebar {
    background: linear-gradient(165deg, #0a0f1a 0%, #0f1729 38%, #111d36 100%);
    color: #cbd5e1;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 4px 0 32px rgba(2, 6, 23, 0.2);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.sidebar-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    color: #fff;
}
.sidebar h2 { color: #fff; margin: 0; font-size: 16px; }
.sidebar-brand p { margin: 2px 0 0; font-size: 12px; color: #94a3b8; }
.sidebar a {
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}
.sidebar a:hover { background: rgba(30, 41, 59, 0.9); border-color: rgba(148, 163, 184, 0.25); color: #fff; }
.sidebar a.is-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(30, 64, 175, 0.22));
    border-color: rgba(147, 197, 253, 0.45);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.18);
}
.sidebar-logout { margin-top: auto; background: rgba(185, 28, 28, 0.16); border-color: rgba(248, 113, 113, 0.25) !important; color: #fecaca !important; }

.admin-content { padding: 26px 30px; width: 100%; max-width: none; }
.admin-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.admin-header-title { flex: 0 1 auto; min-width: 140px; }
.admin-header-title strong { display: block; font-size: 21px; color: #0f172a; letter-spacing: -0.02em; }
.admin-header-title small { color: #64748b; font-size: 12px; }
.admin-header-search {
    flex: 1 1 260px;
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: min(480px, 100%);
    min-width: 200px;
}
.admin-header-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 14px;
}
.admin-header-search-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
}
.admin-header-search-btn:hover { filter: brightness(1.05); }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.admin-kbd {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    font-size: 11px;
    font-family: inherit;
    font-weight: 700;
}
.admin-global-search--page { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; max-width: 720px; }
.admin-global-search--page input { flex: 1; min-width: 220px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; }
.search-results-meta { font-size: 14px; color: #475569; margin: 8px 0 14px; font-weight: 600; }
.search-count {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}
.admin-user-chip { display: flex; align-items: center; gap: 10px; }
.admin-user-chip span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
    font-weight: 700;
}
.admin-user-chip strong { display: block; line-height: 1.1; font-size: 13px; }
.admin-user-chip small { color: #64748b; font-size: 11px; }
.admin-main { display: grid; gap: 14px; }
.admin-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.25);
}
.admin-body .btn:hover { background: linear-gradient(135deg, #162b66, #1e3a8a); }
.admin-body .btn-soft {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    box-shadow: none;
}
.admin-body .btn-soft:hover { background: #e2e8f0; color: #0f172a; }
.admin-body .btn-danger { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.admin-body .btn-danger:hover { background: linear-gradient(135deg, #991b1b, #b91c1c); }
.admin-body input,
.admin-body select,
.admin-body textarea {
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.6);
}

.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi-card { border-left: 4px solid #2563eb; }
.kpi { font-size: 34px; font-weight: 800; margin: 6px 0 0; color: #0f172a; }
.dashboard-note { border-left: 4px solid #64748b; }

/* —— Admin: navegación agrupada y panel de control —— */
.sidebar-nav-wrap { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; overflow-y: auto; margin: 4px 0 8px; padding-right: 2px; }
.sidebar-nav-group { display: grid; gap: 4px; }
.sidebar-nav-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    padding: 4px 12px 2px;
}
.admin-nav-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 220;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    cursor: pointer;
}
.admin-nav-toggle-bars {
    width: 18px;
    height: 12px;
    border-top: 2px solid #1e3a8a;
    border-bottom: 2px solid #1e3a8a;
    position: relative;
    display: inline-block;
}
.admin-nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    border-top: 2px solid #1e3a8a;
}
.admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 205;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
}
.admin-backdrop.is-visible { display: block; }

.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 55%, #e8f0fe 100%);
    border: 1px solid #dbe4f1;
    box-shadow: 0 16px 36px rgba(30, 58, 138, 0.1);
}
.dashboard-hero-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.06em; }
.dashboard-hero-title { margin: 0; font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; }
.dashboard-hero-lead { margin: 8px 0 0; max-width: 520px; color: #475569; font-size: 15px; line-height: 1.5; }
.dashboard-hero-alerts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dashboard-alert-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}
.dashboard-alert-pill.is-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.dashboard-alert-pill.is-info { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.dashboard-alert-pill.is-attention { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }

.dashboard-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dashboard-kpi-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.dash-stat { padding: 16px 18px; margin: 0 !important; }
.dash-stat h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; }
.dash-stat-val { margin: 0; font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.dash-stat a { font-size: 13px; font-weight: 700; color: #1d4ed8; text-decoration: none; }
.dash-stat a:hover { text-decoration: underline; }
.dash-stat-hint { display: block; margin-top: 6px; font-size: 12px; color: #64748b; line-height: 1.35; }

.dashboard-work { padding: 0; margin-bottom: 4px !important; overflow: hidden; }
.dashboard-work .dashboard-panel-head { padding: 16px 18px 8px; flex-wrap: wrap; }
.dashboard-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #e5edf7;
    border-top: 1px solid #e5edf7;
}
.dashboard-work-col { background: #fff; padding: 14px 16px 16px; min-height: 280px; display: flex; flex-direction: column; }
.dashboard-work-col-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: #0f172a; }
.dashboard-inbox-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.dashboard-inbox-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.dashboard-inbox-item:last-child { border-bottom: 0; }
.dashboard-inbox-link { font-weight: 700; font-size: 13px; color: #1e3a8a; text-decoration: none; display: block; line-height: 1.35; }
.dashboard-inbox-link:hover { text-decoration: underline; }
.dashboard-inbox-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: 12px; color: #64748b; }
.dashboard-inbox-meta a { font-weight: 700; color: #1d4ed8; text-decoration: none; }
.dashboard-inbox-meta a:hover { text-decoration: underline; }
.dashboard-inbox-empty { padding: 12px 0; color: #94a3b8; font-style: italic; font-size: 13px; }
.dashboard-inbox-more { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: #1d4ed8; text-decoration: none; }
.dashboard-inbox-more:hover { text-decoration: underline; }
.dash-due { font-weight: 700; }
.dash-due.is-overdue { color: #b91c1c; }
.dash-due.is-today { color: #b45309; }
.dash-due.is-none { color: #94a3b8; font-weight: 600; }

.dashboard-analytics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; align-items: start; }
.dashboard-chart-card { margin-bottom: 0 !important; }
.dash-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    height: 140px;
    margin-top: 16px;
    padding: 0 4px 4px;
}
.dash-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.dash-bar {
    width: 100%;
    max-width: 36px;
    margin: 0 auto;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 6px 6px 2px 2px;
    min-height: 4px;
    transition: opacity 0.15s ease;
}
.dash-bar:hover { opacity: 0.88; }
.dash-bar-label { font-size: 10px; color: #64748b; margin-top: 6px; font-weight: 600; text-align: center; }

.dashboard-funnels { display: flex; flex-direction: column; gap: 14px; }
.dash-funnel-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.dash-funnel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.dash-funnel-head strong { color: #0f172a; }
.dash-funnel-head strong small { font-weight: 700; color: #64748b; }
.dash-funnel-track { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 4px; }
.dash-funnel-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.dash-funnel-track--cases span { background: linear-gradient(90deg, #0d9488, #0284c7); }

.dashboard-kpi-grid { margin-bottom: 6px; }
.kpi-card--link {
    position: relative;
    display: grid;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    border-left-width: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    padding-top: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
    overflow: hidden;
}
.kpi-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}
.kpi-card--link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.kpi-card-icon {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #1e3a8a;
    background: rgba(37, 99, 235, 0.12);
}
.kpi-card--primary { border-left-color: #2563eb; }
.kpi-card--teal { border-left-color: #0d9488; }
.kpi-card--teal .kpi-card-icon { color: #0f766e; background: rgba(13, 148, 136, 0.15); }
.kpi-card--indigo { border-left-color: #4f46e5; }
.kpi-card--indigo .kpi-card-icon { color: #4338ca; background: rgba(79, 70, 229, 0.14); }
.kpi-card--blue { border-left-color: #0284c7; }
.kpi-card--blue .kpi-card-icon { color: #0369a1; background: rgba(2, 132, 199, 0.14); }
.kpi-card--amber { border-left-color: #d97706; }
.kpi-card--amber .kpi-card-icon { color: #b45309; background: rgba(217, 119, 6, 0.15); }
.kpi-card--orange { border-left-color: #ea580c; }
.kpi-card--orange .kpi-card-icon { color: #c2410c; background: rgba(234, 88, 12, 0.14); }
.kpi-card-cta { font-size: 12px; font-weight: 700; color: #3b82f6; margin-top: 6px; }
.kpi-card--link:hover .kpi-card-cta { text-decoration: underline; }
.kpi-sub { margin: 0; font-size: 13px; font-weight: 700; color: #b45309; }

.dashboard-section-title { margin: 0; font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.dashboard-quick { padding: 18px 20px; margin-bottom: 4px; }
.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.dashboard-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dbe4f1;
    background: #f8fbff;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.dashboard-quick-item:hover { background: #fff; border-color: #93c5fd; color: #1e3a8a; }
.dashboard-quick-item--ghost { background: #fff; border-style: dashed; color: #475569; }
.dashboard-quick-item--ghost:hover { border-color: #64748b; color: #0f172a; }
.dq-i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    background: #e0e7ff;
    color: #3730a3;
    flex-shrink: 0;
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
    align-items: start;
}
.dashboard-panel { padding: 0; overflow: hidden; }
.dashboard-panel-head { padding: 14px 16px 0; margin-bottom: 0; }
.dashboard-panel .table-wrap { padding: 0 8px 8px; }
.dashboard-btn-compact { padding: 8px 14px; font-size: 13px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table--compact th,
.table--compact td { padding: 10px 10px; font-size: 13px; }
.table-link { font-weight: 700; color: #1d4ed8; text-decoration: none; }
.table-link:hover { text-decoration: underline; }
.cell-muted { color: #64748b; font-size: 13px; }
.cell-empty { color: #64748b; font-style: italic; padding: 20px !important; }

.activity-feed { list-style: none; margin: 0; padding: 8px 16px 14px; max-height: 340px; overflow-y: auto; }
.activity-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5edf7;
}
.activity-feed-item:last-child { border-bottom: 0; }
.activity-feed-main strong { display: block; font-size: 13px; color: #0f172a; }
.activity-feed-meta { font-size: 12px; color: #64748b; }
.activity-feed-time { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.activity-feed-empty { border: 0; color: #64748b; font-style: italic; }

.dashboard-events { margin-bottom: 14px; }
.dashboard-note .dashboard-section-title { margin-bottom: 8px; }
.dashboard-note-line { margin: 0 0 8px; }
.role-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: middle; }
.dashboard-note-hint { margin: 0; }
.help-text { font-size: 13px; color: #64748b; line-height: 1.45; }

.table-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid #e5edf7; padding: 12px 12px; text-align: left; vertical-align: top; font-size: 14px; }
.table th { background: #f3f7fd; color: #334155; font-weight: 700; position: sticky; top: 0; z-index: 1; letter-spacing: .02em; text-transform: uppercase; font-size: 12px; }
.table tr:hover td { background: #f5f9ff; }
.card form .btn { margin-top: 4px; }
code { font-family: Consolas, monospace; font-size: 12px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a { display: inline-block; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: #334155; background: #fff; }
.pagination .page-active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e2e8f0; color: #1e293b; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.case-header-card .table-header { align-items: flex-start; }
.case-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.case-kpis article { background: #f8fbff; border: 1px solid #dbe4f1; border-radius: 10px; padding: 12px; }
.case-kpis small { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.case-kpis p { margin: 4px 0 0; font-weight: 700; color: #0f172a; }
.case-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.kv-grid p { margin: 0; }
.obs-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; color: #334155; white-space: normal; }
.data-pill { background: #f8fbff; border: 1px solid #dbe4f1; border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.data-pill span { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #64748b; }
.data-pill strong { color: #0f172a; font-size: 14px; line-height: 1.35; }
.data-pill.is-missing { border-color: #f5c2c7; background: #fff5f5; }
.data-pill.is-missing strong { color: #b42318; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.ai-details summary { cursor: pointer; font-weight: 600; color: #1e3a8a; }
.ai-details .obs-box { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.case-health-card { margin-top: 6px; }
.progress-track { width: 100%; height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin: 10px 0 14px; }
.progress-track span { display: block; height: 100%; border-radius: inherit; }
.progress-ok { background: #16a34a; color: #fff; }
.progress-warn { background: #d97706; color: #fff; }
.progress-danger { background: #dc2626; color: #fff; }
.case-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.health-kpi { background: #f8fbff; border: 1px solid #dbe4f1; border-radius: 10px; padding: 10px 12px; }
.health-kpi small { color: #64748b; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }
.health-kpi p { margin: 3px 0 0; font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.health-kpi.is-alert { background: #fff5f5; border-color: #fecaca; }
.health-kpi.is-alert p { color: #b42318; }
.case-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item { border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.check-item.is-ok { background: #dcfce7; color: #166534; }
.check-item.is-missing { background: #fee2e2; color: #991b1b; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; line-height: 1.1; }
.status-info { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.status-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.status-attention { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.status-primary { background: #dbeafe; color: #1e3a8a; border-color: #bfdbfe; }
.status-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.status-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.status-neutral { background: #f1f5f9; color: #334155; border-color: #e2e8f0; }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.leads-kanban {
    display: grid;
    grid-template-columns: repeat(6, minmax(200px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.kanban-column {
    background: #f8fbff;
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 320px;
}
.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.kanban-column-body {
    padding: 10px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.kanban-card {
    background: #fff;
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 8px;
    cursor: grab;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.is-dragging { opacity: .55; transform: scale(.99); }
.kanban-column.is-drop-target {
    border-color: #60a5fa;
    box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.25);
}
.kanban-card-head a {
    font-weight: 700;
    color: #0f172a;
}
.kanban-card p {
    margin: 0;
    font-size: 14px;
    color: #334155;
}
.kanban-card small {
    color: #64748b;
    font-size: 12px;
}
.kanban-card .inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.kanban-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.kanban-card-actions a {
    font-size: 12px;
    color: #1e3a8a;
    font-weight: 600;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 4px 9px;
}
.kanban-card-actions a:hover { background: #dbeafe; }
.kanban-empty {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px;
}

/* —— Admin: página leads —— */
.leads-hero { margin-bottom: 14px; }
.leads-kpi-strip { margin-bottom: 14px; }
.leads-kpi-chip .dash-stat-val { font-size: 24px; }
.leads-filters-card { margin-bottom: 14px !important; }
.leads-filters-head { align-items: flex-start; }
.leads-filters-head .dashboard-section-title,
.leads-kanban-section .dashboard-section-title,
.leads-table-section .dashboard-section-title { margin: 0; }
.leads-filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 4px;
}
.leads-filters-form .field-grow { flex: 1 1 240px; }
.leads-filters-form label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 4px;
}
.leads-kanban-section { margin-bottom: 14px !important; }
.leads-kanban-section .table-header { align-items: flex-start; margin-bottom: 10px; }
.leads-kanban-meta { margin: 4px 0 0; font-size: 13px; color: #64748b; line-height: 1.45; max-width: 720px; }
.leads-table-section { margin-bottom: 14px !important; }
.leads-table-section .table-header { align-items: flex-start; }
.leads-table-section .cell-empty { text-align: center; }
.leads-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 4px 0 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid #e2e8f0;
}
.leads-bulk-toolbar select { min-width: 220px; }
.leads-bulk-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 4px;
}
.leads-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.leads-pagination-meta { margin: 0; font-size: 14px; color: #475569; }
.pagination-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pagination-nav .is-disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination-ellipsis { padding: 6px 4px; color: #94a3b8; font-weight: 700; font-size: 14px; }
.table .th-checkbox { width: 40px; }
.table td.text-mono { font-variant-numeric: tabular-nums; font-size: 13px; color: #475569; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Vista previa de documentos (modal admin expediente) */
body.doc-preview-open {
    overflow: hidden;
}
.doc-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.doc-preview-modal.is-open {
    display: block;
}
.doc-preview-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
}
.doc-preview-panel {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(960px, 96vw);
    height: min(88vh, 900px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dbe4f1;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.doc-preview-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.doc-preview-toolbar h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.doc-preview-toolbar .doc-preview-close {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
}
.doc-preview-frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border: 0;
    background: #f8fafc;
}
.table-doc-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.table-doc-actions .doc-preview-trigger {
    font-weight: 600;
    font-size: 13px;
}

/* Editor visual de plantillas de documentos */
.templates-editor-page {
    margin-bottom: 10px;
}
.templates-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}
.templates-editor-subtitle {
    margin: 6px 0 0;
    color: #475569;
    max-width: 72ch;
}
.templates-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.templates-editor-status {
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}
.templates-editor-status.is-dirty {
    color: #b45309;
}
.templates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
}
.templates-quick-nav-card {
    margin-top: 0;
    margin-bottom: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.templates-quick-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.templates-quick-nav button {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dbe4f1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.templates-quick-nav button:hover {
    background: #eaf2ff;
    border-color: #bfdbfe;
}
.templates-quick-nav button.is-active {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
}
.templates-main-card {
    margin: 0;
}
.templates-sidebar-card {
    margin: 0;
    position: sticky;
    top: 16px;
    align-self: start;
}
.templates-form {
    width: 100%;
    max-width: none;
    display: grid;
    gap: 18px;
}
.template-editor-block {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    padding: 12px;
}
.template-editor-block {
    display: none;
}
.template-editor-block.is-visible {
    display: block;
}
.template-editor-block.is-focus-mode {
    position: fixed;
    inset: 14px;
    z-index: 2500;
    margin: 0;
    background: #fff;
    border-color: #bfdbfe;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    overflow: auto;
}
body.template-focus-active {
    overflow: hidden;
}
.template-editor-block-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.template-editor-autosave {
    margin: 4px 2px 0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}
.template-editor-block-head h3 {
    margin: 2px 0 0;
    font-size: 16px;
}
.template-editor-hint {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}
.template-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.template-editor-toolbar .btn {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 34px;
}
.template-editor-meta {
    margin: 8px 2px 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}
.template-wysiwyg-sheet {
    min-height: 440px;
    background: #fff;
    border: 1px solid #d1dbe8;
    border-radius: 10px;
    padding: 38px 42px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    line-height: 1.55;
    color: #111827;
}
.template-wysiwyg-sheet h1,
.template-wysiwyg-sheet h2,
.template-wysiwyg-sheet h3 {
    font-family: var(--font);
    color: #0f172a;
    line-height: 1.3;
}
.template-wysiwyg-sheet h2 {
    font-size: 22px;
}
.template-wysiwyg-sheet p {
    margin: 0 0 12px;
}
.template-wysiwyg-sheet:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}
.template-wysiwyg-sheet.is-active-editor {
    border-color: #93c5fd;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08), 0 0 0 3px rgba(191, 219, 254, 0.55);
}
.templates-help-text {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
}
.templates-placeholder-search {
    margin-bottom: 10px;
}
.templates-placeholders-grid {
    display: grid;
    gap: 8px;
}
.templates-placeholder-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}
.templates-placeholder-btn {
    width: 100%;
    text-align: left;
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    padding: 8px 10px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    cursor: pointer;
}
.templates-placeholder-btn:hover {
    background: #eaf2ff;
    border-color: #bfdbfe;
}
.templates-placeholder-copy {
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.templates-placeholder-copy:hover {
    background: #f8fafc;
}
.template-preview-card {
    margin-top: 14px;
}
.template-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.template-preview-head h3 {
    margin: 0;
}
.template-preview-head p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}
.template-preview-frame {
    width: 100%;
    min-height: 540px;
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    background: #fff;
}
.template-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2600;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.template-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 860px) {
    .container, .content-shell { width: 94%; }
    .clean-hero { grid-template-columns: 1fr; padding-top: 24px; }
    .clean-hero-art { min-height: 240px; }
    .clean-trust-line { grid-template-columns: 1fr 1fr; }
    .corporate-metrics { grid-template-columns: 1fr 1fr; }
    .corporate-pillars { grid-template-columns: 1fr; }
    .clean-process { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
    .clean-hero-trust { flex-direction: column; align-items: flex-start; }
    .cta-lite { flex-direction: column; align-items: flex-start; }
    .clean-internal-nav { grid-template-columns: 1fr; gap: 12px; }
    .home-hero { gap: 20px; padding-top: 20px; }
    .home-hero__visual { min-height: 220px; }
    .home-statement { padding: 22px 18px 24px; margin: 28px 0 24px; }
    .home-doc-cta__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .home-doc-cta__actions { width: 100%; }
    .home-doc-cta__actions .btn,
    .home-doc-cta__actions .btn-soft { width: 100%; text-align: center; }
    .home-showcase__head { align-items: flex-start; }
    .hero { grid-template-columns: 1fr; padding: 26px; }
    .trust-ribbon-inner { min-height: auto; padding: 10px 0; flex-direction: column; align-items: flex-start; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .footer-nav-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-bottom { align-items: flex-start; }
    .section-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fee-banner { grid-template-columns: 1fr; }
    .fee-points { border-left: 0; border-top: 1px solid rgba(147, 197, 253, 0.25); }
    .visual-icons-grid { grid-template-columns: 1fr; }
    .editorial-visual { grid-template-columns: 1fr; }
    .guarantees-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .trust-mini-grid { grid-template-columns: 1fr; }
    .media-grid-2,
    .media-grid-3 { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .credentials-band { grid-template-columns: 1fr; }
    .highlight-band { grid-template-columns: 1fr; }
    .highlight-side { border-left: 0; border-top: 1px solid rgba(148, 163, 184, 0.22); }
    .split-layout { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .site-header-inner { min-height: auto; padding: 12px 0; flex-wrap: wrap; }
    .mobile-menu-toggle { display: inline-block; margin-left: auto; }
    .site-nav { width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; }
    .site-nav.is-open { display: flex; }
    .site-nav a { background: rgba(30, 41, 59, 0.55); border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 8px; padding: 10px 12px; }
    .site-nav a.is-active::after { display: none; }
    .site-nav .nav-cta { text-align: center; }

    .card { padding: 16px; margin: 12px 0; }
    .card:hover { transform: none; }
    .hero-actions { width: 100%; }
    .hero-actions .btn,
    .hero-actions .btn-soft,
    .hero-actions .btn-ghost { width: 100%; text-align: center; }
    input, select, textarea { min-height: 44px; font-size: 16px; }
    textarea { min-height: 120px; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .table th, .table td { white-space: nowrap; }

    .mobile-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.94) 100%);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        box-shadow: 0 -12px 40px rgba(2, 6, 23, 0.35);
    }
    .mobile-cta-bar__link { flex: 1; }
    .site-main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .admin-nav-toggle { display: inline-flex; align-items: center; }
    .admin-shell { grid-template-columns: 1fr; position: relative; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(292px, 90vw);
        height: 100vh;
        z-index: 210;
        transform: translateX(-102%);
        transition: transform 0.24s ease;
        flex-direction: column;
        flex-wrap: nowrap;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.2);
    }
    .admin-shell.is-sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-brand { width: auto; }
    .admin-content { padding: 16px; padding-top: 58px; }
    .admin-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .admin-header-search { max-width: none; width: 100%; order: 3; }
    .admin-user-chip { order: 2; align-self: flex-end; }
    .dashboard-work-grid { grid-template-columns: 1fr; }
    .dashboard-analytics { grid-template-columns: 1fr; }
    .dash-bar-chart { height: 120px; }
    .dashboard-split { grid-template-columns: 1fr; }
    .dashboard-hero { padding: 16px; }
    .dashboard-hero-title { font-size: 22px; }
    .table-header { flex-direction: column; align-items: flex-start; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: span 1; }
    .form-actions { position: static; flex-direction: column; }
    .form-card { width: 100%; padding: 18px; margin: 10px 0 14px; }
    .form-card .form-grid-2 { grid-template-columns: 1fr; }
    .form-card .form-grid-2 .field,
    .form-card .form-grid-2 .field-span-2 { grid-column: span 1; }
    .case-kpis { grid-template-columns: 1fr 1fr; }
    .case-health-grid { grid-template-columns: 1fr 1fr; }
    .case-details-grid { grid-template-columns: 1fr; }
    .kv-grid { grid-template-columns: 1fr; }
    .leads-kanban {
        grid-template-columns: 1fr;
        overflow-x: visible;
    }
    .kanban-column { min-height: 180px; }
    .status-legend { display: none; }

    .doc-preview-panel {
        width: 100vw;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        left: 0;
        top: 0;
        transform: none;
    }

    .templates-layout {
        grid-template-columns: 1fr;
    }
    .templates-head-actions {
        width: 100%;
    }
    .templates-head-actions .btn {
        flex: 1;
    }
    .templates-sidebar-card {
        position: static;
    }
    .template-wysiwyg-sheet {
        min-height: 300px;
        padding: 18px;
    }
    .template-preview-frame {
        min-height: 360px;
    }

}

/* Admin blog */
.admin-content .text-muted { color: #64748b; font-size: 14px; line-height: 1.45; }

.blog-admin-page { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }

.blog-admin-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 22px 24px;
}
.blog-admin-hero__text { flex: 1 1 220px; min-width: 0; }
.blog-admin-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.blog-admin-eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.blog-admin-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}
.blog-admin-lead { margin: 0; max-width: 42rem; }
.blog-admin-section-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 650;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.blog-admin-section-hint { margin: 0; font-size: 13px; max-width: 48rem; }

.blog-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.blog-admin-stat {
    padding: 16px 18px;
    text-align: center;
}
.blog-admin-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.blog-admin-stat__value--ok { color: #15803d; }
.blog-admin-stat__value--muted { color: #b45309; }
.blog-admin-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.blog-admin-list { padding: 22px 24px; }
.blog-admin-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 16px;
}
.blog-admin-bulk-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.blog-admin-selected {
    font-size: 13px;
    color: #64748b;
    min-width: 8rem;
}

.blog-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.blog-admin-search {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
}
.blog-admin-filter-select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    min-width: 180px;
}

.blog-admin-empty {
    padding: 32px 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}
.blog-admin-empty .btn { margin-top: 12px; }

.blog-admin-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
}
.blog-admin-table { margin-top: 0; }
.blog-admin-th-check { width: 40px; }
.blog-admin-col-narrow { white-space: nowrap; }
.blog-admin-col-actions { width: 1%; }
.blog-admin-post-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 36rem;
}
.blog-admin-post-id { font-size: 11px; font-weight: 600; color: #94a3b8; }
.blog-admin-post-title { font-weight: 600; color: #0f172a; line-height: 1.35; }
.blog-admin-slug {
    display: inline-block;
    margin: 0;
    padding: 2px 8px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-admin-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    text-transform: uppercase;
}
.blog-admin-badge--draft {
    background: #fef3c7;
    color: #92400e;
}
.blog-admin-badge--published {
    background: #dcfce7;
    color: #166534;
}

.blog-admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    white-space: nowrap;
}
.blog-admin-table-actions a { font-weight: 500; }
.blog-admin-action-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
}
.blog-admin-action-btn:hover { text-decoration: underline; }
.blog-admin-action-btn--danger { color: #b91c1c; }
.blog-admin-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}
.blog-admin-bulk-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 14px;
}
.blog-admin-nowrap { white-space: nowrap; font-size: 13px; color: #334155; }

.blog-admin-ai { padding: 22px 24px; }
.blog-admin-ai-intro { margin: 0 0 20px; max-width: 52rem; }
.blog-admin-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.blog-admin-ai-panel {
    padding: 18px 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
}
.blog-admin-ai-panel--emphasis {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.blog-admin-ai-panel__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 650;
    color: #0f172a;
}
.blog-admin-ai-panel__hint { margin: 0 0 14px; font-size: 13px; }
.blog-admin-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    margin-top: 8px;
}
.blog-admin-field-row label { display: block; margin-bottom: 6px; font-size: 13px; }
.blog-admin-field-row input[type="number"] { max-width: 100px; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1; }
.blog-admin-status { min-height: 1.25em; margin-top: 10px; font-size: 13px; color: #475569; }
.blog-admin-line-count { margin: 6px 0 0; font-size: 12px; color: #64748b; }
.blog-admin-progress { margin: 12px 0 4px; }
.blog-admin-progress__track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.blog-admin-progress__bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    transition: width 0.25s ease;
}
.blog-admin-ai--disabled { opacity: 0.95; }

.blog-ai-heading { margin-top: 0; }
.blog-ai-ideas-out { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.blog-ai-idea-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}
.blog-ai-idea-title { margin: 0 0 8px; font-size: 16px; color: #0f172a; }
.blog-ai-topics-results { margin: 12px 0 0; padding-left: 1.25rem; line-height: 1.6; }
.blog-ai-topics-results li { margin-bottom: 6px; }

.blog-admin-back { margin: 0 0 16px; font-size: 14px; }
.blog-admin-back a { font-weight: 500; color: #475569; text-decoration: none; }
.blog-admin-back a:hover { color: #1e3a8a; text-decoration: underline; }
.blog-admin-editor-ai {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}
.blog-edit-hero {
    padding: 20px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 62%, #e9f1ff 100%);
    border: 1px solid #dbe4f1;
}
.blog-edit-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.blog-edit-hero__lead { margin: 6px 0 0; }
.blog-edit-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: #334155;
}
.blog-edit-shell { padding: 20px 22px; }
.blog-edit-form { margin: 0; }
.blog-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
}
.blog-edit-main,
.blog-edit-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.blog-edit-main textarea[name="content"] {
    min-height: 420px;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
}
.blog-edit-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}
.blog-edit-panel .blog-admin-ai-panel__title { margin-top: 0; }
.blog-edit-danger-note { margin: 0 0 10px; font-size: 13px; }
.blog-admin-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.blog-admin-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.blog-admin-danger-zone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.admin-table-preview {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 40rem;
}
.admin-table-ellipsis {
    display: inline-block;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.admin-rating-stars {
    letter-spacing: 0.04em;
    color: #b45309;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

/* Landings geolocalizadas (público) */
.geo-landing-hub { margin-top: 1.5rem; }
.geo-landing-hub-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.geo-landing-hub-list li { margin: 0; }
.geo-landing-hub-list a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.geo-landing-hub-list a:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.geo-landing-hub-prov { color: #64748b; font-weight: 400; }
.geo-landing-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.geo-landing-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}
.geo-landing-article .geo-landing-faq {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.geo-landing-faq h2 { margin-bottom: 1rem; font-size: 1.35rem; }
.geo-landing-faq__item { margin-bottom: 1.25rem; }
.geo-landing-faq__item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: #0f172a; }
.geo-landing-faq__item p { margin: 0; color: #334155; line-height: 1.55; }
.geo-landing-commercial {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 1rem 0 0.25rem;
}
.geo-landing-commercial__card {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: #f8fbff;
    padding: 14px;
}
.geo-landing-commercial__card h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.geo-landing-commercial__card p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}
.geo-landing-commercial__body {
    margin-top: 1rem;
}
.geo-landing-commercial__body p {
    margin: 0 0 1rem;
    color: #1e293b;
    line-height: 1.72;
}
.geo-landing-map-wrap {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e2e8f0;
}
.geo-landing-map-wrap h2 {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
}
.geo-landing-map {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    border: 1px solid #dbe4f1;
    overflow: hidden;
}

.geo-landing-page .blog-article__excerpt {
    font-size: 1.08rem;
    line-height: 1.6;
}
.geo-landing-hero {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 16px;
    margin: 8px 0 14px;
}
.geo-landing-hero__main {
    border: 1px solid #dbe4f1;
    border-radius: 14px;
    background: linear-gradient(165deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px;
}
.geo-landing-hero__main h1 {
    margin-top: 2px;
    margin-bottom: 10px;
    line-height: 1.15;
}
.geo-landing-hero__side {
    border: 1px solid #dbe4f1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 18px;
}
.geo-landing-hero__side h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}
.geo-landing-hero__side ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #334155;
}
.geo-landing-side-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.geo-landing-keypoints {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #334155;
}
.geo-landing-process {
    margin: 18px 0 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}
.geo-landing-process h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}
.geo-landing-process ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}
.geo-landing-visual-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 8px;
}
.geo-landing-visual-strip article {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.geo-landing-visual-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    font-size: 16px;
    margin-bottom: 6px;
}
.geo-landing-visual-strip h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}
.geo-landing-visual-strip p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}
.geo-landing-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.geo-landing-timeline article {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.geo-landing-timeline .step-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #1e3a8a;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 8px;
}
.geo-landing-timeline h3 {
    margin: 0 0 5px;
    font-size: 15px;
}
.geo-landing-timeline p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}
.geo-landing-related {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.geo-landing-related h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}
.geo-landing-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.geo-landing-related-grid article {
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}
.geo-landing-related-grid h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

@media (max-width: 900px) {
    .process-hero { grid-template-columns: 1fr; }
    .process-kpis { grid-template-columns: 1fr; }
    .process-two-cols { grid-template-columns: 1fr; }
    .blog-detail-layout { grid-template-columns: 1fr; }
    .blog-detail-sidebar { position: static; }
    .blog-admin-stats { grid-template-columns: 1fr; }
    .blog-admin-ai-grid { grid-template-columns: 1fr; }
    .blog-admin-hero__actions { width: 100%; }
    .blog-admin-hero__actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
    .blog-edit-grid { grid-template-columns: 1fr; }
    .blog-edit-main textarea[name="content"] { min-height: 320px; }
    .blog-edit-hero__top { align-items: flex-start; flex-direction: column; }
    .geo-landing-commercial { grid-template-columns: 1fr; }
    .geo-landing-map { height: 300px; }
    .geo-landing-hero { grid-template-columns: 1fr; }
    .geo-landing-visual-strip { grid-template-columns: 1fr; }
    .geo-landing-timeline { grid-template-columns: 1fr; }
    .geo-landing-related-grid { grid-template-columns: 1fr; }
}
