/* ==========================================================================
   STRUKT — Sistema de Diseño Corporativo Tier-1 (Fase 2)
   Estética Editorial Clara + Hero Ejecutivo en Azul Medianoche (WCAG AAA)
   ========================================================================== */

:root {
    --navy-950: #070f1d;
    --navy-900: #0a1628;
    --navy-800: #13233d;
    --navy-700: #1d3458;
    --cobalt: #1d4ed8;
    --cobalt-dark: #1e40af;
    --gold: #b48a4e;
    --gold-light: #d4b27a;

    --bg-page: #f7f8fa;
    --bg-surface: #ffffff;
    --bg-subtle: #eff2f6;
    --border-light: #e2e8f0;
    --border-dark: rgba(226, 232, 240, 0.14);

    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-inverse: #f8fafc;
    --ink-inverse-muted: #cbd5e1;

    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 10px 30px -10px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 24px 50px -16px rgba(10, 22, 40, 0.2);

    --container-max: 1200px;
    --nav-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--ink-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.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;
}

/* --- NAVBAR FIJA --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink-inverse);
}

.brand-monogram {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid rgba(197, 160, 89, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 19px;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.03);
}

.brand-wordmark {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink-inverse-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-cta {
    background: var(--gold);
    color: var(--navy-950) !important;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-dark);
    color: var(--ink-inverse);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-950);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-navy {
    background: var(--navy-900);
    color: #ffffff;
}
.btn-navy:hover { background: var(--navy-700); transform: translateY(-1px); }

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(248, 250, 252, 0.35);
}
.btn-outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--border-light);
}
.btn-outline-dark:hover {
    border-color: var(--navy-900);
    background: var(--bg-subtle);
}

/* --- ETIQUETAS Y TIPOGRAFÍA DE SECCIÓN --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: currentColor;
}

.section {
    padding: 88px 0;
}

.section-white { background: var(--bg-surface); }
.section-subtle { background: var(--bg-page); }
.section-dark {
    background: var(--navy-900);
    color: var(--ink-inverse);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: inherit;
}

.section-lead {
    font-size: 17px;
    color: var(--ink-500);
    max-width: 640px;
    margin: 0;
    line-height: 1.65;
}

.section-dark .section-lead {
    color: var(--ink-inverse-muted);
}

/* --- HERO EJECUTIVO (INDEX) --- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 75% 60% at 85% 15%, rgba(29, 78, 216, 0.22), transparent 60%),
        radial-gradient(ellipse 55% 45% at 10% 90%, rgba(180, 138, 78, 0.14), transparent 55%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
    color: var(--ink-inverse);
    padding: 96px 0 84px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4.8vw, 60px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: #ffffff;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-inverse-muted);
    max-width: 600px;
    margin: 0 0 36px;
}

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

.hero-panel {
    background: rgba(19, 35, 61, 0.65);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 32px;
    backdrop-filter: blur(8px);
}

.hero-panel-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0 0 20px;
}

.hero-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-pillars li {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-dark);
}

.hero-pillars li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hero-pillars strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 4px;
}

.hero-pillars span {
    font-size: 13.5px;
    color: var(--ink-inverse-muted);
    line-height: 1.5;
}

/* --- PROPUESTA / FIRMA --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.pillar-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 14px;
    line-height: 1;
}

.pillar-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--ink-900);
}

.pillar-card p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-700);
    line-height: 1.65;
}

/* --- ÁREAS DE PRÁCTICA --- */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.practice-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--navy-900);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s ease;
}

.practice-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--gold);
}

.practice-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.practice-item h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--ink-900);
}

.practice-item p {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--ink-700);
    line-height: 1.65;
}

.practice-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.practice-item:hover .practice-link { color: var(--cobalt); }

/* --- TARJETAS DE INSIGHTS (HOME Y BLOG) --- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.insight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.insight-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    overflow: hidden;
}

.insight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.insight-card:hover .insight-media img {
    transform: scale(1.04);
}

.insight-media-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(197, 160, 89, 0.24), transparent 55%),
        linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
}

.insight-media-fallback span {
    font-family: var(--font-serif);
    font-size: 15px;
    letter-spacing: 0.14em;
    color: rgba(248, 250, 252, 0.45);
    text-transform: uppercase;
}

.badge-video-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(10, 22, 40, 0.86);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}

.insight-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-cat {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cobalt);
    margin-bottom: 10px;
}

.insight-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.28;
    color: var(--ink-900);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-excerpt {
    font-size: 14.5px;
    color: var(--ink-700);
    line-height: 1.6;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.insight-meta {
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 12.5px;
    color: var(--ink-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Tarjeta Destacada (Featured en blog.html) */
.insight-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.insight-featured:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.insight-featured .insight-media {
    aspect-ratio: auto;
    min-height: 320px;
    height: 100%;
}

.insight-featured .insight-body {
    padding: 36px 40px;
    justify-content: center;
}

.insight-featured .insight-title {
    font-size: clamp(24px, 2.8vw, 34px);
    -webkit-line-clamp: 4;
}

.insight-featured .insight-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 4;
}

/* --- SKELETON LOADERS --- */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- ECOSISTEMA STRUKT --- */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ecosystem-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ecosystem-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.ecosystem-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin: 0 0 10px;
    color: #ffffff;
}

.ecosystem-card p {
    margin: 0 0 20px;
    font-size: 14.5px;
    color: var(--ink-inverse-muted);
    line-height: 1.6;
}

.ecosystem-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold-light);
    text-decoration: none;
}
.ecosystem-link:hover { text-decoration: underline; }

/* --- CONTACTO / DIAGNÓSTICO B2B --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-list li {
    padding: 16px 18px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink-700);
}

.contact-info-list strong {
    display: block;
    color: var(--ink-900);
    margin-bottom: 2px;
}

.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--ink-900);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.form-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
}
.form-status.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- FILTROS Y BÚSQUEDA (BLOG) --- */
.hub-banner {
    background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
    color: var(--ink-inverse);
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--border-dark);
}

.hub-banner h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.15;
}

.hub-banner p {
    margin: 0;
    font-size: 17px;
    color: var(--ink-inverse-muted);
    max-width: 680px;
}

.hub-toolbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.hub-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    color: var(--ink-700);
    padding: 8px 15px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}

.filter-pill.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #ffffff;
}

.search-box {
    position: relative;
    min-width: 260px;
    flex: 0 1 320px;
}

.search-box input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink-900);
    background: var(--bg-page);
}

.search-box input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--cobalt);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-500);
    font-size: 14px;
    pointer-events: none;
}

/* --- LECTOR EDITORIAL (ARTICULO.HTML) --- */
.reading-progress {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cobalt), var(--gold));
    z-index: 95;
    transition: width 0.08s linear;
}

.article-shell {
    background: var(--bg-surface);
    padding: 44px 0 80px;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-500);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--ink-500);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--cobalt); }

.article-header {
    max-width: 820px;
    margin: 0 auto 36px;
}

.article-cat-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cobalt);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    text-decoration: none;
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink-900);
    margin: 0 0 20px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-700);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info strong { display: block; color: var(--ink-900); }
.author-info span { font-size: 13px; color: var(--ink-500); }

.share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    color: var(--ink-700);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}
.share-btn:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
    background: #ffffff;
}

.article-media {
    max-width: 920px;
    margin: 0 auto 44px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--navy-900);
    box-shadow: var(--shadow-md);
}

.article-media img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-layout {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 720px) 260px;
    gap: 56px;
    justify-content: center;
    align-items: start;
}

.article-layout.no-toc {
    grid-template-columns: minmax(0, 740px);
}

.prose {
    font-size: 18px;
    line-height: 1.82;
    color: var(--ink-900);
}

.prose p { margin: 0 0 1.4em; }

.prose h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.25;
    margin: 2em 0 0.7em;
    color: var(--navy-900);
}

.prose h3 {
    font-family: var(--font-serif);
    font-size: 23px;
    line-height: 1.3;
    margin: 1.7em 0 0.6em;
    color: var(--navy-900);
}

.prose ul, .prose ol {
    margin: 0 0 1.5em;
    padding-left: 1.4em;
}

.prose li { margin-bottom: 0.7em; }

.prose blockquote {
    margin: 1.8em 0;
    padding: 20px 26px;
    border-left: 4px solid var(--gold);
    background: var(--bg-page);
    font-family: var(--font-serif);
    font-size: 21px;
    font-style: italic;
    line-height: 1.55;
    color: var(--navy-900);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose a {
    color: var(--cobalt);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose img {
    border-radius: var(--radius-sm);
    margin: 1.8em auto;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 15px;
    display: block;
    overflow-x: auto;
}

.prose th, .prose td {
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    text-align: left;
}
.prose th { background: var(--bg-page); font-weight: 700; }

/* Neutralizar colores inline heredados de portapapeles */
.prose span, .prose em, .prose strong {
    color: inherit !important;
    background-color: transparent !important;
}

.toc-aside {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
    padding: 20px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.toc-aside h2 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin: 0 0 12px;
}

.toc-aside ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-aside a {
    font-size: 13.5px;
    color: var(--ink-700);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.toc-aside a:hover { color: var(--cobalt); }

.citation-box {
    margin-top: 44px;
    padding: 22px 24px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.citation-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.citation-box-head strong {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-500);
}

.citation-text {
    margin: 0;
    font-size: 14px;
    color: var(--ink-700);
    line-height: 1.55;
}

.consult-cta-box {
    margin-top: 36px;
    padding: 32px;
    background: var(--navy-900);
    color: var(--ink-inverse);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.consult-cta-box h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin: 0 0 6px;
    color: #ffffff;
}

.consult-cta-box p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-inverse-muted);
    max-width: 520px;
}

.badge-pdf-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(180, 138, 78, 0.94);
    color: var(--navy-950);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.pdf-download-banner {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.pdf-download-banner strong {
    display: block;
    font-size: 15px;
    color: var(--navy-900);
    margin-bottom: 3px;
}

.pdf-download-banner span {
    font-size: 13.5px;
    color: var(--ink-500);
}

.author-bio-card {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--navy-900);
    color: var(--gold-light);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-bio-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin: 0 0 2px;
    color: var(--ink-900);
}

.author-bio-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.author-bio-card p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-700);
}

.author-linkedin-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--cobalt);
    text-decoration: none;
}
.author-linkedin-link:hover { text-decoration: underline; }

/* --- FOOTER CORPORATIVO --- */
.site-footer {
    margin-top: auto;
    background: var(--navy-950);
    color: var(--ink-inverse-muted);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.65;
    margin: 16px 0 0;
    max-width: 340px;
    color: var(--ink-inverse-muted);
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink-inverse-muted);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col button:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

/* --- MODAL LEGAL --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 29, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}
.modal-backdrop.open { display: flex; }

.modal-card {
    background: #ffffff;
    color: var(--ink-900);
    max-width: 600px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-head h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin: 0;
}

.modal-close {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--ink-500);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    grid-column: 1 / -1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .insights-grid { grid-template-columns: repeat(2, 1fr); }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .toc-aside { display: none; }
    .insight-featured { grid-template-columns: 1fr; }
    .insight-featured .insight-media { min-height: 240px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--navy-950);
        border-bottom: 1px solid var(--border-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 18px 24px 24px;
        gap: 14px;
    }
    .nav-links.open { display: flex; }
    .nav-cta { text-align: center; }

    .section { padding: 64px 0; }
    .hero { padding: 64px 0 56px; }
    .pillars-grid,
    .practices-grid,
    .insights-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-card { padding: 24px; }
    .insight-featured .insight-body { padding: 24px; }
}
