@import url('variables.css');
@import url('fonts.css');

/* ===== Base v4 — azul institucional dominante ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { color: var(--ink-700); }

.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-400); font-weight: 700; margin-bottom: 12px; display: inline-block;
}

/* Secciones alternadas azul / gris claro */
.section { padding: 82px 0; }
.section--light { background: var(--ivory); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); }
.section--navy-mid { background: var(--navy-700); }
.section--navy .eyebrow, .section--navy-mid .eyebrow { color: var(--blue-200); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--navy-mid h1, .section--navy-mid h2, .section--navy-mid h3, .section--navy-mid h4 { color: var(--white); }
.section--navy p, .section--navy-mid p { color: rgba(255,255,255,0.80); }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.02rem; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.93rem; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--blue-400); color: var(--white); }
.btn-accent:hover { background: var(--navy-600); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-outline-light { border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-ghost { border-color: var(--stone-300); color: var(--navy-900); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { line-height: 1.1; }
.brand strong {
  display: block; font-size: 1.08rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.02em; text-transform: uppercase;
}
.brand strong em { font-style: normal; color: var(--white); }
.brand small {
  display: block; font-size: 0.6rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--blue-200); font-weight: 600; margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a, .nav .dropdown > a { color: rgba(255,255,255,0.82); font-size: 0.9rem; font-weight: 500; }
.nav > a:hover, .nav .dropdown > a:hover { color: var(--white); }
.nav .dropdown { position: relative; }
.nav .dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-strong);
  min-width: 250px; padding: 8px; opacity: 0; visibility: hidden; transition: all 0.15s ease;
}
.nav .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; top: calc(100% + 6px); }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--ink-900); }
.dropdown-menu a:hover { background: var(--ivory); color: var(--navy-900); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 10px 18px; font-size: 0.84rem; }
.nav-toggle {
  display: none; width: 40px; height: 40px; background: transparent;
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm);
  color: var(--white); font-size: 1.05rem; cursor: pointer;
}

/* ===== Hero con imagen de Santiago ===== */
.hero {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
  padding: 72px 0 64px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg, .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,10,43,0.96) 0%, rgba(7,10,43,0.88) 42%, rgba(7,10,43,0.62) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.06rem; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-seals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; max-width: 540px; }
.hero-seals div { border-left: 2px solid var(--blue-400); padding-left: 12px; }
.hero-seals strong { display: block; font-size: 0.98rem; color: var(--white); font-weight: 700; }
.hero-seals span { font-size: 0.79rem; color: rgba(255,255,255,0.68); line-height: 1.4; display: block; }

.hero-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-strong);
}
.hero-card h3 { margin-bottom: 4px; font-size: 1.08rem; }
.hero-card > p.small { color: var(--ink-500); font-size: 0.85rem; margin-bottom: 10px; }
.contact-option { display: block; padding: 15px 0; border-top: 1px solid var(--stone-100); }
.contact-option:first-of-type { border-top: none; }
.contact-option strong { display: block; font-size: 0.93rem; color: var(--navy-900); margin-bottom: 3px; }
.contact-option span { font-size: 0.84rem; color: var(--ink-500); display: block; margin-bottom: 7px; }
.contact-option .mini-link { font-size: 0.83rem; font-weight: 700; color: var(--blue-400); }
.contact-option .mini-link:hover { color: var(--navy-900); }

/* ===== Stats ===== */
.stats-bar { background: var(--navy-700); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.stats-grid span { color: var(--blue-200); font-size: 0.85rem; }

/* ===== Tarjetas genéricas ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  background: var(--white); border: 1px solid var(--stone-300);
  border-radius: var(--radius-md); padding: 26px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.why-card .marker { width: 32px; height: 3px; background: var(--blue-400); margin-bottom: 16px; border-radius: 2px; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--navy-900); }
.why-card p { font-size: 0.88rem; color: var(--ink-700); }

/* Ayuda (3 opciones) */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.help-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md); padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.help-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.10); border-color: var(--blue-400); }
.help-card .num { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; color: var(--blue-200); margin-bottom: 12px; }
.help-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.help-card p { font-size: 0.9rem; color: rgba(255,255,255,0.78); flex: 1; margin-bottom: 20px; }
.help-card .btn { align-self: flex-start; }

/* Dos columnas / citas */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.frame-box {
  border: 1px solid var(--stone-300); background: var(--white);
  border-left: 3px solid var(--blue-400); border-radius: var(--radius-md); padding: 30px 32px;
}
.frame-box blockquote { font-size: 1.12rem; font-weight: 600; color: var(--navy-900); line-height: 1.5; margin-bottom: 12px; }
.frame-box cite { font-style: normal; font-size: 0.83rem; color: var(--ink-500); }
.frame-box + .frame-box { margin-top: 16px; }
.section--navy .frame-box, .section--navy-mid .frame-box {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); border-left-color: var(--blue-400);
}
.section--navy .frame-box blockquote, .section--navy-mid .frame-box blockquote { color: var(--white); }
.section--navy .frame-box cite, .section--navy-mid .frame-box cite { color: var(--blue-200); }

/* ===== Áreas ===== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.areas-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 22px auto 0; }
.area-card {
  border: 1px solid var(--stone-300); border-radius: var(--radius-md);
  padding: 30px 26px; background: var(--white);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.area-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.area-card .num { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; color: var(--blue-400); }
.area-card h3 { margin: 10px 0 10px; font-size: 1.18rem; color: var(--navy-900); }
.area-card p { font-size: 0.9rem; margin-bottom: 14px; color: var(--ink-700); }
.area-card ul { margin-bottom: 18px; flex: 1; }
.area-card ul li { font-size: 0.85rem; color: var(--ink-700); padding-left: 15px; position: relative; margin-bottom: 6px; }
.area-card ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--blue-400); border-radius: 50%; }
.area-card ul li.li-label { padding-left: 0; font-weight: 700; color: var(--navy-900); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; }
.area-card ul li.li-label::before { display: none; }
.area-card .link { font-size: 0.87rem; font-weight: 700; color: var(--navy-900); }
.area-card:hover .link { color: var(--blue-400); }

/* ===== Proceso ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step { padding-right: 10px; }
.process-step .n { font-size: 1.9rem; font-weight: 800; color: var(--blue-400); margin-bottom: 6px; }
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.section--navy .process-step h3, .section--navy-mid .process-step h3 { color: var(--white); }
.section--light .process-step h3, .section--white .process-step h3 { color: var(--navy-900); }
.process-step p { font-size: 0.87rem; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--navy-900); border-radius: var(--radius-md);
  padding: 38px 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { color: var(--white); font-size: 1.22rem; margin-bottom: 4px; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin: 0; }
.section--navy .cta-band, .section--navy-mid .cta-band { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }

/* ===== FAQ ===== */
.faq-list .faq-item { border-bottom: 1px solid var(--stone-300); padding: 20px 0; }
.faq-list .faq-item h4 { font-size: 1rem; color: var(--navy-900); margin-bottom: 6px; }
.faq-list .faq-item p { font-size: 0.9rem; margin: 0; }
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.faq-tabs button {
  border: 1px solid var(--stone-300); background: var(--white);
  padding: 8px 18px; border-radius: 30px; font-family: var(--font-sans);
  font-size: 0.84rem; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all 0.15s ease;
}
.faq-tabs button.active, .faq-tabs button:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.faq-panel { display: none; }
.faq-panel.active { display: block; }

/* ===== Blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  border: 1px solid var(--stone-300); border-radius: var(--radius-md); background: var(--white);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.blog-card .body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.blog-card .cat {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-900); background: var(--blue-100); border: 1px solid var(--stone-300);
  padding: 3px 10px; border-radius: 20px;
}
.blog-card .read { font-size: 0.73rem; color: var(--ink-500); }
.blog-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.35; color: var(--navy-900); }
.blog-card p { font-size: 0.85rem; flex: 1; margin-bottom: 14px; color: var(--ink-700); }
.blog-card .link { font-size: 0.83rem; font-weight: 700; color: var(--blue-400); }
.blog-filter { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.blog-filter button {
  border: 1px solid var(--stone-300); background: var(--white);
  padding: 8px 18px; border-radius: 30px; font-family: var(--font-sans);
  font-size: 0.84rem; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all 0.15s ease;
}
.blog-filter button.active, .blog-filter button:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* ===== Artículos ===== */
.post-hero { background: var(--navy-900); padding: 54px 0 44px; }
.post-hero .breadcrumb { color: rgba(255,255,255,0.6); }
.post-hero .breadcrumb a { color: var(--blue-200); }
.post-hero .meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.post-hero .cat { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy-900); background: var(--blue-200); padding: 4px 12px; border-radius: 20px; }
.post-hero .read { font-size: 0.79rem; color: rgba(255,255,255,0.65); }
.post-hero h1 { max-width: 800px; color: var(--white); font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
.post-hero p.lead { max-width: 720px; margin-top: 14px; font-size: 1.01rem; color: rgba(255,255,255,0.82); }
.post-body { max-width: 790px; margin: 0 auto; padding: 52px 24px 40px; background: var(--white); }
.post-wrap { background: var(--white); }
.post-body h2 { font-size: 1.42rem; margin: 38px 0 14px; }
.post-body h3 { font-size: 1.08rem; margin: 24px 0 10px; color: var(--navy-800); }
.post-body p { margin-bottom: 14px; font-size: 0.98rem; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; color: var(--ink-700); font-size: 0.95rem; }
.post-body ul { list-style: disc; }
.post-body li { margin-bottom: 7px; }
.post-body .note { background: var(--blue-100); border-left: 3px solid var(--blue-400); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: var(--ink-700); margin: 18px 0; }
.post-body .warn { background: #fdf1f1; border-left: 3px solid var(--red-700); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem; color: #5c2b2b; margin: 18px 0; }

.toc { background: var(--ivory); border: 1px solid var(--stone-300); border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 8px; }
.toc h2 { font-size: 1rem; margin: 0 0 12px; }
.toc ol { margin: 0 0 0 20px; font-size: 0.9rem; list-style: decimal; }
.toc ol li { margin-bottom: 7px; }
.toc a { color: var(--navy-700); font-weight: 500; }
.toc a:hover { color: var(--blue-400); }

/* Revisión jurídica */
.legal-review {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--ivory); border: 1px solid var(--stone-300);
  border-left: 4px solid var(--navy-800);
  border-radius: var(--radius-md); padding: 20px 24px; margin: 30px 0;
}
.legal-review .lr-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
}
.legal-review strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 6px; }
.legal-review p { font-size: 0.88rem; color: var(--ink-700); margin-bottom: 6px; }
.legal-review p:last-child { margin-bottom: 0; }
.legal-review .lr-date { font-weight: 600; color: var(--navy-900); }
.legal-review .lr-note { color: var(--ink-500); font-size: 0.82rem; }

/* Barra de confianza */
.trust-bar { background: var(--navy-700); padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-grid .t-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.trust-grid span.t-label { color: var(--blue-200); font-size: 0.83rem; display: block; }
.trust-grid a.t-label { color: var(--blue-200); }
.trust-grid a.t-label:hover { color: var(--white); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; } }

/* Especialidad principal — Penal */
.penal-flagship { position: relative; overflow: hidden; }
.flagship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.flagship-badge {
  display: inline-block; background: var(--blue-400); color: var(--white);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.flagship-grid h2 { color: var(--white); }
.flagship-grid > div:first-child p { color: rgba(255,255,255,0.82); }
.flagship-list { margin: 22px 0; display: grid; gap: 10px; }
.flagship-list div { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.88); font-size: 0.94rem; }
.flagship-list div::before { content: '✓'; color: var(--blue-200); font-weight: 800; flex: none; }
@media (max-width: 860px) { .flagship-grid { grid-template-columns: 1fr; } }

/* Selector de área / no sé cuál me corresponde */
.selector-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--navy-900); border-radius: var(--radius-lg); padding: 34px 40px;
}
.selector-box h3 { color: var(--white); margin-bottom: 6px; }
.selector-box p { color: rgba(255,255,255,0.75); margin: 0; max-width: 520px; }

/* Abogados */
.lawyers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.lawyer-card { background: var(--white); border: 1px solid var(--stone-300); border-radius: var(--radius-md); padding: 30px; }
.lawyer-card .initials {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.lawyer-card h3 { margin-bottom: 2px; }
.lawyer-card .role { display: block; color: var(--blue-400); font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; }
.lawyer-card p { font-size: 0.92rem; }
@media (max-width: 760px) { .lawyers-grid { grid-template-columns: 1fr; } }

/* Biblioteca jurídica */
.biblio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biblio-card {
  display: block; background: var(--white); border: 1px solid var(--stone-300); border-left: 4px solid var(--blue-400);
  border-radius: var(--radius-md); padding: 24px 26px; transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.biblio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.biblio-card span.tag { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 8px; }
.biblio-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.biblio-card p { font-size: 0.88rem; color: var(--ink-500); margin: 0; }
@media (max-width: 860px) { .biblio-grid { grid-template-columns: 1fr; } }

/* Bloques de subsidios (hub) */
.ds-block { margin: 34px 0 10px; }
.ds-block-head { margin-bottom: 16px; }
.ds-block-head h2 { margin: 0 0 4px; }
.ds-block-head p { font-size: 0.92rem; color: var(--ink-500); margin: 0; }
.src-note { font-size: 0.78rem; color: var(--ink-500); font-style: italic; }
.fundamento-list { font-size: 0.85rem; color: var(--ink-500); margin-left: 18px; }
.fundamento-list li { margin-bottom: 5px; }

/* Accesos rápidos penales */
.qa-penal { background: var(--ivory); }
.qa-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.qa-card {
  display: block; background: var(--white); border: 1px solid var(--stone-300);
  border-left: 4px solid var(--navy-800); border-radius: var(--radius-md);
  padding: 20px 20px 18px; transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-left-color: var(--blue-400); }
.qa-card .qa-num { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue-400); text-transform: uppercase; margin-bottom: 8px; }
.qa-card strong { display: block; font-size: 1rem; color: var(--navy-900); margin-bottom: 6px; line-height: 1.3; }
.qa-card p { font-size: 0.85rem; color: var(--ink-500); margin: 0; line-height: 1.45; }
@media (max-width: 980px) { .qa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .qa-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .qa-card { scroll-snap-align: start; }
}

/* Relacionados */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 30px; }
.related-card {
  display: block; background: var(--white); border: 1px solid var(--stone-300);
  border-radius: var(--radius-sm); padding: 16px 18px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.related-card span.tag { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 5px; }
.related-card strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* Tablas */
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.legal-table th { background: var(--navy-900); color: var(--white); text-align: left; padding: 12px 14px; font-weight: 600; }
.legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--stone-300); color: var(--ink-700); vertical-align: top; }
.legal-table tr:nth-child(even) td { background: var(--ivory); }
.table-wrap { overflow-x: auto; }

/* Acordeones */
details.accordion { border: 1px solid var(--stone-300); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); overflow: hidden; }
details.accordion summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy-900); font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: '+'; font-size: 1.2rem; color: var(--blue-400); flex-shrink: 0; }
details.accordion[open] summary::after { content: '−'; }
details.accordion[open] summary { border-bottom: 1px solid var(--stone-300); background: var(--ivory); }
details.accordion .acc-body { padding: 18px 20px; }
details.accordion .acc-body p { font-size: 0.92rem; margin-bottom: 10px; }
details.accordion .acc-body ul, details.accordion .acc-body ol { margin: 0 0 10px 20px; font-size: 0.9rem; color: var(--ink-700); list-style: disc; }

/* Roles (víctimas / imputados, trabajadores / empleadores) */
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.role-card { border: 1px solid var(--stone-300); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.role-card header { background: var(--navy-900); padding: 20px 26px; }
.role-card header h3 { color: var(--white); margin: 0; }
.role-card header span { color: var(--blue-200); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.role-card .body { padding: 24px 26px; }
.role-card .body p { color: var(--ink-700); }
.role-card .body h3, .role-card .body h4 { color: var(--navy-900); }
.role-card .body ul li { padding-left: 18px; position: relative; margin-bottom: 9px; font-size: 0.89rem; color: var(--ink-700); }
.role-card .body ul li::before { content: '—'; position: absolute; left: 0; color: var(--blue-400); }
.role-card .body .btn { margin-top: 14px; }

/* Especialidades */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-item {
  background: var(--white); border: 1px solid var(--stone-300); border-left: 3px solid var(--blue-400);
  border-radius: var(--radius-sm); padding: 15px 18px; font-weight: 600; font-size: 0.89rem; color: var(--navy-900);
}
.section--navy .spec-item, .section--navy-mid .spec-item {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); border-left-color: var(--blue-400); color: var(--white);
}

/* Simulador */
.simulator { background: var(--white); border: 1px solid var(--stone-300); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 30px; }
.simulator h3 { margin-bottom: 6px; color: var(--navy-900); }
.simulator .sub { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.simulator label { display: block; font-size: 0.81rem; font-weight: 600; color: var(--navy-900); margin-bottom: 5px; }
.simulator input, .simulator select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--stone-300); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.92rem; background: var(--white);
}
.simulator input:focus, .simulator select:focus { outline: none; border-color: var(--blue-400); }
.sim-result { margin-top: 20px; display: none; border: 1px solid var(--stone-300); border-radius: var(--radius-sm); overflow: hidden; }
.sim-result.show { display: block; }
.sim-result .row { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--stone-100); color: var(--ink-700); }
.sim-result .row strong { color: var(--navy-900); }
.sim-result .total { background: var(--navy-900); }
.sim-result .total, .sim-result .total strong { color: var(--white); font-weight: 700; }
.sim-disclaimer { font-size: 0.75rem; color: var(--ink-500); margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-950); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 34px; }
.footer-grid h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 15px; }
.footer-grid p, .footer-grid a, .footer-grid li { color: rgba(255,255,255,0.6); font-size: 0.87rem; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--blue-200); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: rgba(255,255,255,0.45);
}

/* ===== Botones flotantes ===== */
.float-wa {
  position: fixed; left: 22px; bottom: 22px; z-index: 400;
  background: var(--green-700); color: var(--white);
  padding: 13px 20px; border-radius: 40px; font-size: 0.88rem; font-weight: 700;
  box-shadow: var(--shadow-strong); display: flex; align-items: center; gap: 9px;
  transition: transform 0.18s ease;
}
.float-wa:hover { transform: translateY(-2px) scale(1.03); }
.float-wa .ic { width: 18px; height: 18px; }

/* ===== Chatbot ===== */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  background: var(--navy-900); color: var(--white);
  padding: 12px 18px 12px 14px; border-radius: 40px;
  box-shadow: var(--shadow-strong); display: flex; align-items: center; gap: 10px;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.18s ease;
  font-family: var(--font-sans);
}
.chat-launcher:hover { transform: translateY(-2px) scale(1.02); }
.chat-launcher .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex-shrink: 0; animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.chat-launcher .txt { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.chat-launcher .txt small { display: block; font-size: 0.71rem; color: var(--blue-200); font-weight: 500; }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 401;
  width: 360px; max-width: calc(100vw - 32px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong); overflow: hidden;
  display: none; flex-direction: column;
  max-height: min(560px, calc(100vh - 44px));
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--navy-900); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-head strong { color: var(--white); font-size: 0.94rem; display: block; }
.chat-head span { color: var(--blue-200); font-size: 0.75rem; }
.chat-close { background: transparent; border: none; color: rgba(255,255,255,0.75); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-close:hover { color: var(--white); }
.chat-body { padding: 16px; overflow-y: auto; flex: 1; background: var(--ivory); }
.chat-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 0.88rem; margin-bottom: 10px; line-height: 1.5; }
.chat-msg.bot { background: var(--white); border: 1px solid var(--stone-300); color: var(--ink-900); border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy-900); color: var(--white); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-options { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.chat-options button {
  text-align: left; background: var(--white); border: 1px solid var(--blue-400);
  color: var(--navy-900); padding: 10px 13px; border-radius: 10px;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.chat-options button:hover { background: var(--navy-900); color: var(--white); }
.chat-form { padding: 12px 16px 16px; background: var(--white); border-top: 1px solid var(--stone-300); display: none; }
.chat-form.show { display: block; }
.chat-form label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--navy-900); margin: 8px 0 4px; }
.chat-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--stone-300);
  border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 0.88rem;
}
.chat-form input:focus { outline: none; border-color: var(--blue-400); }
.chat-form button {
  width: 100%; margin-top: 12px; background: var(--green-700); color: var(--white);
  border: none; padding: 12px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.chat-form button:hover { background: var(--green-800); }
.chat-note { font-size: 0.7rem; color: var(--ink-500); margin-top: 8px; text-align: center; }

/* ===== Otros ===== */
.breadcrumb { font-size: 0.82rem; color: var(--ink-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue-400); font-weight: 600; }
.page-hero { background: var(--navy-900); padding: 60px 0 54px; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a { color: var(--blue-200); }
.page-hero h1 { max-width: 780px; margin-bottom: 14px; color: var(--white); }
.page-hero p.lead { max-width: 660px; font-size: 1.04rem; margin-bottom: 24px; color: rgba(255,255,255,0.82); }
.page-hero .eyebrow { color: var(--blue-200); }
.inline-cta { text-align: center; padding: 10px 0 0; }
.map-box { border: 1px dashed rgba(255,255,255,0.28); border-radius: var(--radius-md); padding: 26px; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.contact-methods { display: grid; gap: 14px; }
.contact-method-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); padding: 18px;
}
.contact-method-card strong { color: var(--white); display: block; margin-bottom: 2px; font-size: 0.92rem; }
.contact-method-card span { color: rgba(255,255,255,0.68); font-size: 0.86rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-950); flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav.nav-open { display: flex; }
  .nav > a, .nav .dropdown > a { padding: 10px 0; width: 100%; }
  .nav .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .nav .dropdown-menu a { color: rgba(255,255,255,0.72); }
  .nav .dropdown-menu a:hover { background: transparent; color: var(--white); }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .two-col, .roles-grid, .contact-grid { grid-template-columns: 1fr; }
  .areas-grid, .areas-grid--2, .help-grid, .blog-grid, .spec-grid { grid-template-columns: 1fr; }
  .why-grid, .stats-grid, .hero-seals { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .float-wa { padding: 12px 16px; font-size: 0.82rem; }
  .chat-launcher .txt small { display: none; }
}
@media (max-width: 560px) {
  .why-grid, .stats-grid, .hero-seals { grid-template-columns: 1fr; }
  .float-wa span.label { display: none; }
}


/* ===== Fecha en tarjetas y artículos ===== */
.blog-card .date { font-size: 0.73rem; color: var(--ink-500); }
.post-hero .date { font-size: 0.79rem; color: rgba(255,255,255,0.65); }

/* ===== Bloque de prensa / caso destacado ===== */
.press-card {
  background: var(--white); border: 1px solid var(--stone-300);
  border-left: 4px solid var(--blue-400); border-radius: var(--radius-md);
  padding: 28px 30px;
}
.press-card .source {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-400); margin-bottom: 10px;
}
.press-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy-900); }
.press-card p { font-size: 0.93rem; color: var(--ink-700); margin-bottom: 12px; }
.press-card .link { font-size: 0.86rem; font-weight: 700; color: var(--blue-400); }
.press-card .link:hover { color: var(--navy-900); }

/* ===== Mapa ===== */
.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius-md); display: block; }

/* ============================================================
   v5 — Animaciones de CTA, títulos destacados, reseñas, simulador
   ============================================================ */

/* --- Zoom constante y discreto en los CTA principales --- */
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(77,106,212,0); }
  50%      { transform: scale(1.12); box-shadow: 0 12px 30px rgba(77,106,212,0.55); }
}
.btn.pulse, .cta-band.pulse .btn { animation: cta-pulse 1.25s ease-in-out infinite; }
.btn.pulse:hover { animation-play-state: paused; }

/* Caja completa con latido suave (ej. cta-band destacada) */
@keyframes box-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
.cta-band.pulse-box { animation: box-pulse 1.7s ease-in-out infinite; }

/* Flotantes: alerta discreta */
@keyframes float-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.13); }
}
.float-wa, .chat-launcher { animation: float-pulse 1.4s ease-in-out infinite; }
.float-wa:hover, .chat-launcher:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .btn.pulse, .cta-band.pulse-box, .float-wa, .chat-launcher { animation: none; }
}

/* --- Títulos con fondo azul (chips) --- */
.chip-title {
  display: inline-block;
  background: var(--stone-100); color: var(--ink-900);
  border-left: 3px solid var(--blue-400);
  font-size: 1.02rem; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius-sm);
  margin-bottom: 10px; line-height: 1.3;
}
.chip-title--sm { font-size: 0.9rem; padding: 6px 13px; }
.chip-title--lg { font-size: 1.2rem; padding: 10px 20px; }
.hero-card .chip-title { margin-bottom: 8px; }
.section--navy .chip-title, .section--navy-mid .chip-title {
  background: rgba(255,255,255,0.92); color: var(--ink-900);
}

/* --- Títulos de área más grandes --- */
.area-card .num { font-size: 0.85rem; letter-spacing: 0.1em; }
.area-card h3 { font-size: 1.32rem; }

/* --- Reseñas estilo Google --- */
.reviews-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.reviews-score {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--stone-300);
  border-radius: var(--radius-md); padding: 14px 22px;
}
.reviews-score .num { font-size: 2rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.reviews-score .stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.reviews-score .txt { font-size: 0.8rem; color: var(--ink-500); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--white); border: 1px solid var(--stone-300);
  border-radius: var(--radius-md); padding: 22px 24px;
  display: flex; flex-direction: column;
}
.review-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.review-card p { font-size: 0.9rem; color: var(--ink-700); flex: 1; margin-bottom: 14px; }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .avatar-ini {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.review-card .who strong { display: block; font-size: 0.85rem; color: var(--navy-900); }
.review-card .who span { font-size: 0.74rem; color: var(--ink-500); }
.reviews-note { font-size: 0.78rem; color: var(--ink-500); text-align: center; margin-top: 18px; }

/* --- Simulador a dos columnas --- */
.sim-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 30px; align-items: start; }
.sim-info {
  background: var(--white); border: 1px solid var(--stone-300);
  border-radius: var(--radius-md); padding: 26px 28px;
}
.sim-info h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy-900); }
.sim-info h4 { font-size: 0.9rem; margin: 18px 0 8px; color: var(--navy-800); }
.sim-info p { font-size: 0.89rem; color: var(--ink-700); margin-bottom: 10px; }
.sim-info ul { margin: 0 0 6px 18px; list-style: disc; font-size: 0.86rem; color: var(--ink-700); }
.sim-info ul li { margin-bottom: 6px; }
.sim-aviso {
  background: var(--blue-100); border-left: 3px solid var(--blue-400);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 0.84rem; color: var(--ink-700); margin-top: 16px;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .sim-layout { grid-template-columns: 1fr; }
}

/* --- Portadas de área con fotografía --- */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero--photo .ph-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--photo .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo .ph-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,17,64,0.97) 0%, rgba(12,17,64,0.90) 50%, rgba(12,17,64,0.72) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; }


/* --- Secciones con fotografía de fondo y velo azul --- */
.section--photo { position: relative; overflow: hidden; }
.section--photo > .sec-bg { position: absolute; inset: 0; z-index: 0; }
.section--photo > .sec-bg img { width: 100%; height: 100%; object-fit: cover; }
.section--photo > .sec-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,17,64,0.94) 0%, rgba(12,17,64,0.90) 100%);
}
.section--photo > .container { position: relative; z-index: 1; }
.section--photo.section--navy-mid > .sec-bg::after {
  background: linear-gradient(180deg, rgba(26,37,112,0.93) 0%, rgba(18,26,85,0.94) 100%);
}


/* ============================================================
   v9 — Header con mega menús, tarjetas de materia penal,
   áreas asimétricas, prensa con fotografía y contraste navy
   ============================================================ */

/* ---------- Regla global de contraste sobre navy ----------
   Prohibido azul oscuro sobre azul. Cualquier acento sobre navy
   usa blue-200 o blanco; nunca blue-400 ni navy-*.            */
.section--navy .link, .section--navy-mid .link,
.penal-flagship .link, .site-footer .link { color: var(--blue-200); }
.section--navy .link:hover, .section--navy-mid .link:hover { color: var(--white); }
.section--navy .eyebrow, .section--navy-mid .eyebrow,
.penal-flagship .eyebrow, .lp-hero .eyebrow { color: var(--blue-200); }
.section--navy .area-card ul li::before,
.section--navy-mid .area-card ul li::before { background: var(--blue-200); }
.section--navy strong, .section--navy-mid strong { color: var(--white); }
.section--navy .btn-light, .section--navy-mid .btn-light { color: var(--navy-900); }
.section--navy .legal-table td, .section--navy-mid .legal-table td { color: var(--white); }

/* ============ HEADER v9 ============ */
.site-header { position: sticky; top: 0; z-index: 900; }
.header-row { height: 78px; gap: 18px; }
.brand img { height: 42px; width: auto; display: block; }

.nav { gap: 22px; }
.nav > a, .nav .has-mega > .mega-trigger {
  color: rgba(255,255,255,0.86); font-size: 0.89rem; font-weight: 500;
  background: none; border: none; font-family: var(--font-sans);
  cursor: pointer; padding: 28px 0; display: inline-flex; align-items: center; gap: 6px;
  position: relative;
}
.nav > a { padding: 28px 0; }
.nav > a::after, .nav .has-mega > .mega-trigger::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px;
  background: var(--blue-400); transform: scaleX(0); transition: transform 0.18s ease;
}
.nav > a:hover::after, .nav .has-mega:hover > .mega-trigger::after,
.nav .has-mega.open > .mega-trigger::after, .nav > a.current::after { transform: scaleX(1); }
.nav > a:hover, .nav .has-mega > .mega-trigger:hover { color: var(--white); }
.mega-trigger .caret { font-size: 0.6rem; opacity: 0.7; transition: transform 0.18s ease; }
.has-mega:hover .caret, .has-mega.open .caret { transform: rotate(180deg); }

/* --- Panel del mega menú --- */
.has-mega { position: static; }
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-top: 3px solid var(--blue-400);
  box-shadow: 0 24px 48px rgba(7,10,43,0.26);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 901;
}
.has-mega:hover > .mega-panel,
.has-mega.open > .mega-panel,
.mega-panel:hover,
.has-mega:focus-within > .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  max-width: var(--container-w); margin: 0 auto; padding: 34px 24px 38px;
  display: grid; grid-template-columns: 0.92fr 1.35fr; gap: 42px;
}
.mega-inner--simple { grid-template-columns: 1fr 1.25fr; }
.mega-left .eyebrow { color: var(--blue-400); margin-bottom: 10px; }
.mega-left h3 { font-size: 1.12rem; color: var(--navy-900); margin-bottom: 8px; line-height: 1.3; }
.mega-left p { font-size: 0.89rem; color: var(--ink-700); margin-bottom: 14px; }

.mega-feature {
  background: var(--ivory); border: 1px solid var(--stone-300);
  border-left: 3px solid var(--blue-400); border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 14px;
}
.mega-feature h4 { font-size: 0.97rem; color: var(--navy-900); margin-bottom: 6px; line-height: 1.32; }
.mega-feature p { font-size: 0.84rem; color: var(--ink-700); margin-bottom: 10px; line-height: 1.5; }
.mega-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.79rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); background: var(--navy-900);
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: background 0.16s ease, transform 0.16s ease;
}
.mega-more:hover { background: var(--blue-400); transform: translateX(2px); }

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.mega-card {
  display: block; background: var(--white); border: 1px solid var(--stone-300);
  border-radius: var(--radius-md); padding: 16px 17px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.mega-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.mega-card strong { display: block; font-size: 0.88rem; color: var(--navy-900); line-height: 1.3; margin-bottom: 5px; }
.mega-card span { display: block; font-size: 0.775rem; color: var(--ink-500); line-height: 1.45; }
.mega-card .tag-main {
  display: inline-block; font-size: 0.63rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--white); background: var(--navy-900);
  padding: 2px 8px; border-radius: 20px; margin-bottom: 7px;
}
.mega-foot {
  grid-column: 1 / -1; margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--stone-300);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.mega-foot span { font-size: 0.82rem; color: var(--ink-500); }
.mega-foot a { font-size: 0.84rem; font-weight: 700; color: var(--navy-900); }
.mega-foot a:hover { color: var(--blue-400); }

/* --- CTA del header con movimiento muy sutil --- */
.btn-agendar {
  background: var(--blue-400); color: var(--white);
  padding: 11px 20px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.01em; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  animation: agendar-breathe 3.6s ease-in-out infinite;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
@keyframes agendar-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(77,106,212,0); }
  50%      { transform: scale(1.035); box-shadow: 0 8px 22px rgba(77,106,212,0.42); }
}
.btn-agendar:hover { background: var(--white); color: var(--navy-900); animation-play-state: paused; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .btn-agendar { animation: none; } }

/* ============ HERO v9 ============ */
.hero-actions .btn .wa-ic { width: 17px; height: 17px; flex: none; }
.hero-seals div { border-left-color: var(--blue-200); }

/* ============ BARRA DE CONFIANZA v9 ============ */
.trust-grid > div { padding: 0 8px; }
.trust-grid .t-kicker {
  display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-200); margin-bottom: 6px;
}
.trust-grid .t-title {
  display: block; font-size: 1.02rem; font-weight: 700; color: var(--white); line-height: 1.3;
}
.trust-grid .t-sub { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.45; }
.trust-grid a.t-sub { color: var(--blue-200); font-weight: 600; }
.trust-grid a.t-sub:hover { color: var(--white); text-decoration: underline; }

/* ============ FLAGSHIP PENAL v9 ============ */
.penal-flagship .flag-head { max-width: 780px; margin-bottom: 30px; }
.penal-flagship .flag-head h2 { color: var(--white); margin-bottom: 6px; }
.penal-flagship .flag-sub {
  display: block; font-size: 1.12rem; font-weight: 500; color: var(--blue-200);
  letter-spacing: -0.01em; margin-bottom: 18px;
}
.penal-flagship .flag-head p { color: rgba(255,255,255,0.84); font-size: 0.98rem; margin-bottom: 12px; }
.flag-label {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-200); display: block; margin: 34px 0 16px;
}

/* Tarjetas de materia (sin ilustraciones) */
.delito-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.delito-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.065); border: 1px solid rgba(255,255,255,0.17);
  border-radius: var(--radius-md); padding: 20px 20px 18px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.delito-card:hover { background: rgba(255,255,255,0.12); border-color: var(--blue-200); transform: translateY(-3px); }
.delito-card .d-num {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--blue-200); margin-bottom: 9px; display: block;
}
.delito-card strong {
  display: block; font-size: 0.95rem; color: var(--white); font-weight: 700;
  line-height: 1.3; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.02em;
}
.delito-card p { font-size: 0.83rem; color: rgba(255,255,255,0.74); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.delito-card .d-more { font-size: 0.8rem; font-weight: 700; color: var(--blue-200); }
.delito-card:hover .d-more { color: var(--white); }

/* Bloque de confianza dentro de la grilla */
.delito-card--trust {
  background: var(--white); border-color: var(--white);
}
.delito-card--trust strong { color: var(--navy-900); }
.delito-card--trust p { color: var(--ink-700); }

.flag-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

@media (max-width: 1080px) { .delito-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .delito-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .delito-grid { grid-template-columns: 1fr; } }

/* ============ OTRAS ÁREAS — jerarquía asimétrica ============ */
.areas-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.areas-split .area-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.area-card--lead { border-left: 4px solid var(--navy-900); }
.area-card--lead h3 { font-size: 1.45rem; }
.area-card .sub-label {
  display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy-800); margin: 14px 0 7px;
}
.area-card--lead .two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 900px) {
  .areas-split { grid-template-columns: 1fr; }
  .area-card--lead .two-lists { grid-template-columns: 1fr; }
}

/* ============ CASOS Y PRENSA v9 ============ */
.press-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.press-hero .ph-img { position: absolute; inset: 0; }
.press-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.press-hero .ph-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,10,43,0.96) 0%, rgba(7,10,43,0.90) 46%, rgba(7,10,43,0.58) 100%);
}
.press-hero .ph-body { position: relative; z-index: 1; padding: 46px 46px 42px; }
.press-hero .eyebrow { color: var(--blue-200); }
.press-hero h2 { color: var(--white); margin-bottom: 16px; max-width: 640px; }
.press-hero p { color: rgba(255,255,255,0.84); font-size: 0.96rem; max-width: 700px; margin-bottom: 14px; }
.press-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 26px 0 24px; max-width: 760px; }
.press-fact {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md); padding: 16px 18px;
}
.press-fact span {
  display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-200); margin-bottom: 6px;
}
.press-fact strong { display: block; font-size: 0.93rem; color: var(--white); font-weight: 600; line-height: 1.45; }
.press-quote {
  max-width: 720px; margin: 34px auto 0; text-align: center;
  font-size: 1.04rem; font-weight: 500; color: var(--ink-700); line-height: 1.6; font-style: italic;
}
.press-closing {
  text-align: center; margin-top: 26px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500);
}
@media (max-width: 720px) {
  .press-hero .ph-body { padding: 32px 26px; }
  .press-facts { grid-template-columns: 1fr; }
}

/* ============ Bloque "atención directa" ============ */
.direct-box {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: 30px 34px; margin-top: 30px;
}
.direct-box h3 { color: var(--white); font-size: 1.12rem; margin-bottom: 6px; }
.direct-box p { color: rgba(255,255,255,0.8); margin: 0; max-width: 560px; font-size: 0.92rem; }
.section--light .direct-box, .section--white .direct-box {
  background: var(--navy-900); border-color: var(--navy-900);
}

/* ============ FAQ sobre fotografía ============ */
.faq-photo .faq-tabs button {
  background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.26); color: rgba(255,255,255,0.88);
}
.faq-photo .faq-tabs button.active, .faq-photo .faq-tabs button:hover {
  background: var(--white); color: var(--navy-900); border-color: var(--white);
}
.faq-photo .faq-list .faq-item { border-bottom-color: rgba(255,255,255,0.18); }
.faq-photo .faq-list .faq-item h4 { color: var(--white); }
.faq-photo .faq-list .faq-item p { color: rgba(255,255,255,0.80); }
.faq-photo .faq-list .faq-item a { color: var(--blue-200); font-weight: 700; }
.faq-photo .faq-list .faq-item a:hover { color: var(--white); }
.faq-photo .section-head p { color: rgba(255,255,255,0.82); }

/* ============ Línea discreta de revisión (solo blog) ============ */
.review-line { font-size: 0.8rem; color: var(--ink-500); text-align: center; margin-top: 24px; }

/* ============ Contacto v9 ============ */
.contact-method-card.urgente { border-color: var(--blue-400); background: rgba(77,106,212,0.16); }
.contact-method-card a { color: var(--white); font-weight: 600; }
.contact-method-card a:hover { color: var(--blue-200); }
.todo-flag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.14); border: 1px dashed rgba(255,255,255,0.4);
  color: var(--blue-200); padding: 2px 8px; border-radius: 4px;
}

/* ============ Responsive del header v9 ============ */
@media (max-width: 1080px) {
  .mega-inner { grid-template-columns: 1fr; gap: 26px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.nav-open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy-950); flex-direction: column; align-items: stretch;
    padding: 14px 24px 22px; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.12);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav > a, .nav .has-mega > .mega-trigger {
    padding: 13px 0; width: 100%; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left;
  }
  .nav > a::after, .nav .has-mega > .mega-trigger::after { display: none; }
  .mega-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border-top: none; box-shadow: none;
    display: none;
  }
  .has-mega.open > .mega-panel { display: block; }
  .has-mega:hover > .mega-panel { display: none; }
  .has-mega.open:hover > .mega-panel { display: block; }
  .mega-inner { padding: 14px 0 18px; }
  .mega-left h3, .mega-left p { color: rgba(255,255,255,0.85); }
  .mega-left h3 { color: var(--white); }
  .mega-left .eyebrow { color: var(--blue-200); }
  .mega-feature { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }
  .mega-feature h4 { color: var(--white); }
  .mega-feature p { color: rgba(255,255,255,0.75); }
  .mega-card { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }
  .mega-card strong { color: var(--white); }
  .mega-card span { color: rgba(255,255,255,0.68); }
  .mega-foot { border-top-color: rgba(255,255,255,0.14); }
  .mega-foot span { color: rgba(255,255,255,0.65); }
  .mega-foot a { color: var(--blue-200); }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

/* --- Contraste del hero y de los encabezados sobre fotografía navy --- */
.hero .eyebrow, .press-hero .eyebrow, .faq-photo .eyebrow { color: var(--blue-200); }
.hero-card .chip-title { background: var(--stone-100); color: var(--ink-900); }
.section--photo .section-head .eyebrow { color: var(--blue-200); }
.section--photo h2, .section--photo h3 { color: var(--white); }
.section--photo .help-card h3, .section--photo .help-card .chip-title { color: var(--ink-900); }
.section--photo .direct-box h3 { color: var(--white); }
/* El chip vuelve a su fondo gris cuando la tarjeta ya es blanca */
.section--navy .help-card .chip-title, .section--navy-mid .help-card .chip-title,
.section--photo .help-card .chip-title {
  background: var(--stone-100); color: var(--ink-900); border-left-color: var(--navy-800);
}

/* ============================================================
   v9.1 — Tarjeta "¿Qué necesitas hoy?": legibilidad y jerarquía
   ============================================================ */

/* Texto descriptivo en negro: el plomo perdía atención */
.hero-card .contact-option span:not(.chip-title) {
  color: var(--ink-900);
  font-size: 0.875rem;
  line-height: 1.58;
  margin-bottom: 12px;
}
.hero-card .contact-option span:not(.chip-title) strong { color: var(--navy-900); font-weight: 700; }
.hero-card > p.small { color: var(--ink-700); font-size: 0.87rem; margin-bottom: 14px; }

/* Título principal de la tarjeta: bloque navy sólido */
.hero-card .chip-title--lg {
  background: var(--navy-900);
  color: var(--white);
  border-left: 3px solid var(--blue-400);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 11px 20px;
  margin-bottom: 4px;
}

/* Subtítulos de cada opción: azul claro, más presentes pero sin competir */
.hero-card .chip-title--sm {
  background: var(--blue-100);
  color: var(--navy-900);
  border-left: 4px solid var(--navy-800);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 8px 14px;
  margin-bottom: 10px;
}

/* Un poco más de aire entre opciones */
.hero-card .contact-option { padding: 18px 0; }
.hero-card .contact-option + .contact-option { border-top: 1px solid var(--stone-300); }

/* ============================================================
   v9.2 — Icono de WhatsApp en todos los CTA de contacto
   ============================================================ */
.wa-ic { width: 17px; height: 17px; flex: none; }

/* Elementos que no son flex por defecto (enlaces de texto, chips) */
.con-wa-ic { display: inline-flex; align-items: center; gap: 8px; }
.btn.con-wa-ic, .btn-agendar.con-wa-ic { gap: 9px; }

/* En el botón del header el icono va algo más chico para no recargar */
.btn-agendar .wa-ic { width: 15px; height: 15px; }

/* Dentro de tarjetas y textos, alineación óptica */
.contact-option .con-wa-ic .wa-ic,
.help-card .con-wa-ic .wa-ic { width: 16px; height: 16px; }

/* El flotante ya traía su propio icono: no se duplica */
.float-wa .wa-ic { width: 18px; height: 18px; }

/* v9.2b — el icono pasa a ser el isotipo completo (cuadro verde),
   así que necesita algo más de tamaño y esquinas visibles */
.wa-ic { width: 19px; height: 19px; flex: none; border-radius: 4px; }
.btn-agendar .wa-ic { width: 17px; height: 17px; }
.contact-option .con-wa-ic .wa-ic,
.help-card .con-wa-ic .wa-ic { width: 18px; height: 18px; }
/* El flotante conserva su glifo blanco: verde sobre verde no se vería */
.float-wa .wa-ic { width: 18px; height: 18px; border-radius: 0; }

/* v9.3 — Fix: las negritas dentro de la tarjeta "¿Qué necesitas hoy?" deben
   ser inline. La regla .contact-option strong{display:block} quedó obsoleta
   al pasar los títulos a .chip-title y rompía el flujo del párrafo. */
.hero-card .contact-option strong {
  display: inline;
  font-size: inherit;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--navy-900);
}

/* ============================================================
   v9.4 — Bloque "Lo que puedes esperar / Lo que no vas a encontrar"
   ============================================================ */
.promesa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promesa-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.20);
  border-top: 3px solid var(--blue-400);
  border-radius: var(--radius-md);
  padding: 30px 32px;
}
.promesa-card h3 {
  color: var(--white); font-size: 0.86rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.promesa-card ul { display: grid; gap: 13px; }
.promesa-card li {
  color: rgba(255,255,255,0.88); font-size: 0.93rem; line-height: 1.55;
  padding-left: 24px; position: relative;
}
.promesa-card li::before {
  content: '\2713'; position: absolute; left: 0; top: -1px;
  color: var(--blue-200); font-weight: 800;
}
.promesa-card--no { border-top-color: rgba(255,255,255,0.45); }
.promesa-card--no li::before { content: '\2715'; color: rgba(255,255,255,0.55); font-weight: 700; }
@media (max-width: 860px) { .promesa-grid { grid-template-columns: 1fr; } }

/* ============================================================
   v9.5 — Quiénes somos: cita de apertura + fichas de abogados
   ============================================================ */
.quote-hero { text-align: center; max-width: 880px; margin: 0 auto 42px; }
.quote-hero h2 {
  color: var(--white); line-height: 1.28;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.quote-hero h2 em { font-style: normal; color: var(--blue-200); }
.quote-hero p { color: rgba(255,255,255,0.84); font-size: 1rem; margin: 0 auto; max-width: 780px; }

.lawyer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lawyer-h {
  display: grid; grid-template-columns: 142px 1fr;
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.lawyer-h .mono {
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; letter-spacing: 0.03em;
  border-right: 3px solid var(--blue-400);
}
.lawyer-h .info { padding: 28px 30px; }
.lawyer-h h3 { font-size: 1.22rem; margin-bottom: 3px; color: var(--navy-900); }
.lawyer-h .role {
  display: block; color: var(--navy-800); font-weight: 800;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 14px;
}
.lawyer-h p { font-size: 0.9rem; color: var(--ink-700); margin: 0; }
@media (max-width: 980px) { .lawyer-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .lawyer-h { grid-template-columns: 1fr; }
  .lawyer-h .mono { padding: 20px; font-size: 2rem; border-right: none; border-bottom: 3px solid var(--blue-400); }
}

/* v9.6 — Variante clara del bloque de cita + fichas (Quiénes somos) */
.section--white .quote-hero h2, .section--light .quote-hero h2 { color: var(--navy-900); }
.section--white .quote-hero h2 em, .section--light .quote-hero h2 em { color: var(--blue-400); }
.section--white .quote-hero p, .section--light .quote-hero p { color: var(--ink-700); }
.section--white .lawyer-h, .section--light .lawyer-h {
  border: 1px solid var(--stone-300); box-shadow: none;
}
.section--white .lawyer-h:hover, .section--light .lawyer-h:hover { box-shadow: var(--shadow-soft); }

/* ============================================================
   v9.7 — Texto justificado dentro de recuadros y tarjetas
   Con partición de palabras activada (el idioma se toma de
   <html lang="es-CL">), que es lo que evita los ríos de espacio
   en blanco típicos de justificar en columnas angostas.
   ============================================================ */
.lawyer-h .info p,
.lawyer-card p,
.area-card p,
.role-card .body p,
.help-card p,
.blog-card p,
.biblio-card p,
.frame-box p,
.press-hero p,
.press-card p,
.mega-feature p,
.mega-left p,
.review-card p,
.sim-info p,
.promesa-card li,
.quote-hero p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* El texto centrado de cabeceras no se justifica */
.section-head.center p, .quote-hero h2 { text-align: center; }

/* En columnas muy angostas la justificación se ve peor que la
   alineación a la izquierda: se desactiva en móvil. */
@media (max-width: 600px) {
  .lawyer-h .info p, .lawyer-card p, .area-card p, .role-card .body p,
  .help-card p, .blog-card p, .biblio-card p, .frame-box p,
  .press-hero p, .press-card p, .mega-feature p, .mega-left p,
  .review-card p, .sim-info p, .promesa-card li, .quote-hero p {
    text-align: left;
  }
}

/* v9.8 — Logo oficial en el pie */
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; opacity: 0.95; }

/* ============================================================
   v9.9 — Header: evitar que los enlaces se partan en dos líneas
   ============================================================ */
.nav { gap: 19px; }
.nav > a, .nav .has-mega > .mega-trigger { white-space: nowrap; font-size: 0.87rem; }
.brand img { height: 34px; }
.btn-agendar { padding: 10px 17px; font-size: 0.8rem; white-space: nowrap; }

/* Menú hamburguesa solo en celulares; entre 641 y 1150 px el menú baja a una segunda fila */
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.nav-open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
}
@media (min-width: 1151px) and (max-width: 1240px) {
  .nav { gap: 15px; }
  .nav > a, .nav .has-mega > .mega-trigger { font-size: 0.83rem; }
  .btn-agendar { padding: 9px 14px; font-size: 0.76rem; }
}

/* ============================================================
   v10 — Biblioteca penal: artículos 70/30, callouts, revisión
   discreta, acordeones de preguntas, pilares y tabla de plazos
   ============================================================ */

/* Layout editorial: 70 % contenido / 30 % lateral */
.art-wrap { background: var(--white); }
.art-layout {
  max-width: var(--container-w); margin: 0 auto; padding: 46px 24px 40px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 48px; align-items: start;
}
.art-main { max-width: 760px; }
.art-main p { margin-bottom: 14px; font-size: 0.98rem; line-height: 1.7; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.art-main h2 { font-size: 1.38rem; margin: 36px 0 12px; color: var(--navy-900); }
.art-main h3 { font-size: 1.06rem; margin: 22px 0 8px; color: var(--navy-800); }
.art-main ul, .art-main ol { margin: 0 0 16px 22px; color: var(--ink-700); font-size: 0.95rem; }
.art-main ul { list-style: disc; }
.art-main li { margin-bottom: 7px; }
.art-main table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.art-main th { background: var(--navy-900); color: var(--white); text-align: left; padding: 10px 12px; }
.art-main td { padding: 10px 12px; border-bottom: 1px solid var(--stone-300); vertical-align: top; color: var(--ink-700); }
.art-main tr:nth-child(even) td { background: var(--ivory); }
.art-main .lead-intro {
  font-size: 1.06rem; color: var(--ink-900); border-left: 3px solid var(--blue-400);
  padding: 4px 0 4px 18px; margin: 0 0 22px; text-align: left;
}

/* Callouts "Si usted es el imputado / la víctima" y avisos */
.callout {
  border: 1px solid var(--stone-300); border-left: 4px solid var(--navy-800);
  background: var(--ivory); border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0;
  font-size: 0.92rem; color: var(--ink-700);
}
.callout.vic { border-left-color: var(--blue-400); background: var(--blue-100); }
.callout b { color: var(--navy-900); }

/* Respuesta directa arriba del todo */
.direct-answer {
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-md);
  padding: 18px 22px; margin: 0 0 26px;
}
.direct-answer .da-label { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-200); margin-bottom: 6px; }
.direct-answer p { color: rgba(255,255,255,0.92); margin: 0; text-align: left; font-size: 0.98rem; }
.direct-answer a { color: var(--blue-200); font-weight: 700; }

/* CTA propio del artículo */
.art-cta {
  background: var(--navy-900); border-radius: var(--radius-md); padding: 26px 28px; margin: 34px 0 10px;
}
.art-cta h3 { color: var(--white); margin: 0 0 8px; font-size: 1.12rem; }
.art-cta p { color: rgba(255,255,255,0.86); text-align: left; font-size: 0.93rem; margin-bottom: 12px; }
.art-cta ul { color: rgba(255,255,255,0.86); font-size: 0.9rem; margin-bottom: 16px; }
.art-cta .btn { margin-top: 4px; }

/* Fuentes */
.srcs { font-size: 0.86rem; color: var(--ink-500); list-style: none !important; margin-left: 0 !important; }
.srcs li { padding-left: 16px; position: relative; margin-bottom: 6px; }
.srcs li::before { content: '§'; position: absolute; left: 0; color: var(--blue-400); font-weight: 700; }
.srcs a { color: var(--navy-800); text-decoration: underline; }

/* Revisión jurídica: ficha pequeña, secundaria, sin caja */
.review-mini {
  margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--stone-300);
  font-size: 0.79rem; color: var(--ink-500); line-height: 1.55;
}
.review-mini strong { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-700); margin-bottom: 4px; }
.review-mini span { display: block; }

/* Lateral */
.art-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside-box { background: var(--ivory); border: 1px solid var(--stone-300); border-radius: var(--radius-md); padding: 20px 20px 16px; }
.aside-box h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 12px; }
.aside-box ul { list-style: none; margin: 0; }
.aside-box li { margin-bottom: 10px; font-size: 0.88rem; line-height: 1.4; }
.aside-box li a { color: var(--navy-900); font-weight: 600; }
.aside-box li a:hover { color: var(--blue-400); }
.aside-box li small { display: block; color: var(--ink-500); font-size: 0.78rem; margin-top: 2px; }
.aside-box.cta { background: var(--navy-900); border-color: var(--navy-900); }
.aside-box.cta h4 { color: var(--blue-200); }
.aside-box.cta p { color: rgba(255,255,255,0.86); font-size: 0.88rem; margin-bottom: 12px; text-align: left; }
.aside-box .btn { width: 100%; justify-content: center; }

@media (max-width: 980px) {
  .art-layout { grid-template-columns: 1fr; gap: 30px; }
  .art-aside { position: static; }
  .art-main { max-width: none; }
}

/* Índice interno */
.art-toc { background: var(--ivory); border: 1px solid var(--stone-300); border-radius: var(--radius-md); padding: 18px 22px; margin: 0 0 26px; }
.art-toc strong { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 8px; }
.art-toc ol { margin: 0 0 0 18px; font-size: 0.88rem; }
.art-toc li { margin-bottom: 5px; }
.art-toc a { color: var(--navy-700); }

/* Acordeones de preguntas */
.faq-acc { border: 1px solid var(--stone-300); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); overflow: hidden; }
.faq-acc summary {
  cursor: pointer; list-style: none; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start;
  font-weight: 700; color: var(--navy-900); font-size: 0.97rem;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary .tag { flex: none; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--white); background: var(--navy-800); padding: 4px 8px; border-radius: 4px; margin-top: 2px; }
.faq-acc summary .tag.urg { background: var(--red-700); }
.faq-acc summary .tag.vic { background: var(--blue-400); }
.faq-acc summary::after { content: '+'; margin-left: auto; color: var(--blue-400); font-size: 1.3rem; line-height: 1; flex: none; }
.faq-acc[open] summary::after { content: '−'; }
.faq-acc[open] summary { background: var(--ivory); border-bottom: 1px solid var(--stone-300); }
.faq-acc .acc-body { padding: 18px 20px 20px; }
.faq-acc .acc-body p { font-size: 0.93rem; margin-bottom: 10px; }
.faq-acc .acc-body .qh { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--navy-800); margin: 12px 0 6px; }
.faq-acc .acc-body ol, .faq-acc .acc-body ul { margin: 0 0 10px 20px; font-size: 0.9rem; color: var(--ink-700); }
.faq-acc .acc-body .base { font-size: 0.8rem; color: var(--ink-500); }
.faq-acc .acc-body .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--navy-900); font-size: 0.9rem; }
.faq-acc .acc-body .more:hover { color: var(--blue-400); }

.essential { background: var(--navy-900); border-radius: var(--radius-md); padding: 26px 30px; margin: 0 0 34px; }
.essential h3 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.essential ol { margin: 0 0 0 20px; color: rgba(255,255,255,0.9); font-size: 0.93rem; }
.essential li { margin-bottom: 9px; }
.essential li small { color: var(--blue-200); }

.errors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.error-card { background: var(--white); border: 1px solid var(--stone-300); border-left: 4px solid var(--red-700); border-radius: var(--radius-sm); padding: 16px 18px; }
.error-card strong { display: block; color: var(--navy-900); margin-bottom: 4px; font-size: 0.95rem; }
.error-card p { font-size: 0.88rem; margin: 0; }
@media (max-width: 720px) { .errors-grid { grid-template-columns: 1fr; } }

/* Hub del blog penal */
.hub-cat { margin: 30px 0 10px; }
.hub-cat h2 { font-size: 1.25rem; margin-bottom: 4px; }
.hub-cat p { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hub-card { display: block; background: var(--white); border: 1px solid var(--stone-300); border-radius: var(--radius-md); padding: 16px 18px; transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.hub-card strong { display: block; color: var(--navy-900); font-size: 0.93rem; line-height: 1.35; margin-bottom: 4px; }
.hub-card span { font-size: 0.78rem; color: var(--ink-500); }
.hub-card.pilar { border-left: 4px solid var(--navy-900); background: var(--ivory); }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

/* Tarjetas de materia totalmente clickeables (Defensa Penal) */
a.delito-card { text-decoration: none; }
a.delito-card:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 3px; }

/* Tabla de plazos */
.plazos-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--navy-900); }

/* ============================================================
   v11 — Header en pantallas medianas (641–1150 px): el menú
   no se esconde; pasa a una segunda fila bajo el logo
   ============================================================ */
@media (min-width: 641px) and (max-width: 1150px) {
  .header-row { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 12px; }
  .brand { order: 1; }
  .header-cta { order: 2; }
  .nav, .nav.nav-open {
    order: 3; display: flex; position: static; flex-direction: row; flex-wrap: nowrap;
    justify-content: center; align-items: center; width: 100%; gap: 20px;
    margin-top: 12px; padding: 0; background: transparent; border: 0;
    border-top: 1px solid rgba(255,255,255,0.10); max-height: none; overflow: visible;
  }
  .nav > a, .nav .has-mega > .mega-trigger { padding: 13px 0; font-size: 0.84rem; width: auto; border-bottom: 0; justify-content: flex-start; }
  .nav > a::after, .nav .has-mega > .mega-trigger::after { bottom: 7px; }
  .nav-toggle { display: none; }
  .mega-panel { max-height: calc(100vh - 140px); overflow-y: auto; }
}
@media (min-width: 641px) and (max-width: 760px) {
  .nav, .nav.nav-open { gap: 14px; }
  .nav > a, .nav .has-mega > .mega-trigger { font-size: 0.8rem; }
}

/* v11 — Asistente "Francisco": identidad en la cabecera y botones de salida */
.chat-id { display: flex; align-items: center; gap: 11px; }
.chat-head .chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px;
  display: grid; place-items: center;
  background: var(--blue-200); color: var(--navy-900);
  font-size: 0.95rem; font-weight: 800;
}
.chat-cta { display: block; text-align: center; color: #fff; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; }
.chat-cta--wa { background: var(--green-700); }
.chat-cta--wa:hover { background: var(--green-800); color: #fff; }


/* ===== v11 — Anclas bajo el header fijo ===== */
/* El header es sticky (78 px). Sin esto, al pinchar el índice de una guía el
   título queda tapado y la página aparece "corrida" hacia abajo. */
html { scroll-padding-top: 98px; }
@media (max-width: 640px) { html { scroll-padding-top: 118px; } }

/* ===== v11 — Artículo a una columna + banda de relacionados ===== */
.art-layout { grid-template-columns: minmax(0, 1fr); max-width: 920px; gap: 0; }
.art-main { max-width: none; }

.art-related { margin: 42px 0 32px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.rel-box {
  background: var(--ivory); border: 1px solid var(--stone-300);
  border-radius: var(--radius-md); padding: 20px 22px 16px;
}
.rel-box h4 {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-800); margin-bottom: 12px;
}
.rel-box ul { list-style: none !important; margin: 0 !important; }
.rel-box li { margin-bottom: 11px; font-size: 0.88rem; line-height: 1.4; }
.rel-box li:last-child { margin-bottom: 0; }
.rel-box li a { color: var(--navy-900); font-weight: 600; }
.rel-box li a:hover { color: var(--blue-400); }
.rel-box li small { display: block; color: var(--ink-500); font-size: 0.78rem; margin-top: 2px; font-weight: 400; }
.rel-box.rel-cta { background: var(--navy-900); border-color: var(--navy-900); }
.rel-box.rel-cta h4 { color: var(--blue-200); }
.rel-box.rel-cta p { color: rgba(255,255,255,0.86); font-size: 0.88rem; margin-bottom: 14px; text-align: left; }
.rel-box.rel-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) { .rel-grid { grid-template-columns: 1fr; } }

/* ===== v11b — Consulta al final del artículo (ancho completo) ===== */
.art-consulta {
  margin: 30px 0 34px; padding: 24px 26px;
  background: var(--navy-900); border-radius: var(--radius-md);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 6px; align-items: center;
}
.art-consulta h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-200); margin: 0; grid-column: 1; }
.art-consulta p { color: rgba(255,255,255,0.88); font-size: 0.95rem; line-height: 1.5; margin: 0; text-align: left; grid-column: 1; }
.art-consulta .btn { grid-column: 2; grid-row: 1 / span 2; justify-self: end; white-space: nowrap; }
@media (max-width: 640px) {
  .art-consulta { grid-template-columns: 1fr; }
  .art-consulta .btn { grid-column: 1; grid-row: auto; justify-self: stretch; justify-content: center; margin-top: 8px; }
}

/* ===== v11b — Latido en todos los botones de consulta ===== */
/* Mismo zoom suave del header (3,6 s, escala 1,035): se aplica a todo botón que
   abre WhatsApp o el asistente. Se detiene al pasar el cursor. */
.btn[data-wa], .btn[data-open-chat] { animation: agendar-breathe 3.6s ease-in-out infinite; }
.btn[data-wa]:hover, .btn[data-open-chat]:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .btn[data-wa], .btn[data-open-chat] { animation: none; } }

/* ===== v11c — Botón flotante de WhatsApp más arriba ===== */
.float-wa { bottom: 64px; }

/* ===== v11c — Tarjetas del blog: meta ordenada ===== */
/* Arriba: categoría · subcategoría … fecha a la derecha. Abajo: enlace … minutos. */
.blog-card .meta { flex-wrap: wrap; row-gap: 4px; }
.blog-card .meta .sub { font-size: 0.73rem; color: var(--ink-500); white-space: nowrap; }
.blog-card .meta .read, .blog-card .meta .date { white-space: nowrap; }
.blog-card .meta .date { margin-left: auto; }
.blog-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.blog-card .foot .read { font-size: 0.73rem; color: var(--ink-500); white-space: nowrap; }


/* ===== v12 — Latido más marcado en los botones de contacto ===== */
/* Zoom más visible y más rápido en todo botón que abre WhatsApp o el asistente. */
@keyframes cta-breathe-strong {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(77,106,212,0); }
  50%      { transform: scale(1.09); box-shadow: 0 10px 26px rgba(77,106,212,0.5); }
}
.btn[data-wa], .btn[data-open-chat], .btn-agendar { animation: cta-breathe-strong 1.6s ease-in-out infinite; }
.btn[data-wa]:hover, .btn[data-open-chat]:hover, .btn-agendar:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .btn[data-wa], .btn[data-open-chat], .btn-agendar { animation: none; } }

/* ===== v12b — Contenido un poco más pequeño en escritorio ===== */
/* Reduce proporcionalmente texto, figuras y espacios (8 %) sin tocar el orden ni el diseño. En móvil no aplica. */
@media (min-width: 761px) { body { zoom: 0.92; } }

/* ===== v12c — Simulador de finiquito: cuadro informativo legible ===== */
/* La regla .section--navy strong pintaba de blanco las negritas dentro del cuadro blanco. */
.section--navy .sim-info strong, .section--navy .simulator strong { color: var(--navy-900); }
.sim-info ul { padding-left: 2px; }
.sim-info ul li { line-height: 1.5; }
.sim-info .sim-aviso { background: var(--navy-900); border-left: 3px solid var(--blue-200); color: rgba(255,255,255,0.9); }
.section--navy .sim-info .sim-aviso strong { color: var(--blue-200); }
.simulator .btn-ayuda { margin-top: 12px; width: 100%; justify-content: center; }

/* ===== v12c — Fila "ver más" bajo las guías de las páginas de área ===== */
.more-row { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--stone-300); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.more-row p { margin: 0; color: var(--ink-700); font-size: 0.95rem; flex: 1 1 320px; }

/* ===== v12d — Tablas dentro de las preguntas frecuentes, en cuadros ===== */
.faq-acc .acc-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 6px 0 16px; font-size: 0.86rem; border: 1px solid var(--stone-300); border-radius: var(--radius-sm); overflow: hidden; }
.faq-acc .acc-body th { background: var(--navy-900); color: var(--white); text-align: left; padding: 10px 12px; font-weight: 700; font-size: 0.8rem; vertical-align: bottom; }
.faq-acc .acc-body td { padding: 10px 12px; border-top: 1px solid var(--stone-300); vertical-align: top; color: var(--ink-700); line-height: 1.45; }
.faq-acc .acc-body td + td, .faq-acc .acc-body th + th { border-left: 1px solid var(--stone-300); }
.faq-acc .acc-body th + th { border-left-color: rgba(255,255,255,0.15); }
.faq-acc .acc-body tr:nth-child(even) td { background: var(--ivory); }
.faq-acc .acc-body td:first-child { font-weight: 600; color: var(--navy-900); }
@media (max-width: 640px) {
  .faq-acc .acc-body table { display: block; overflow-x: auto; white-space: normal; }
  .faq-acc .acc-body th, .faq-acc .acc-body td { min-width: 120px; }
}

/* ===== v12e — Constitucional: cinco acciones con el mismo formato (2 grandes + 3 menores) ===== */
.roles-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.role-card { display: flex; flex-direction: column; }
.role-card .body { flex: 1; display: flex; flex-direction: column; }
.role-card .body ul { flex: 1; }
.role-card .body .btn { align-self: flex-start; }
.roles-grid--3 .role-card header { padding: 18px 22px; }
.roles-grid--3 .role-card header h3 { font-size: 1.05rem; line-height: 1.3; }
.roles-grid--3 .role-card .body { padding: 20px 22px; }
.roles-grid--3 .role-card .body p { font-size: 0.86rem !important; }
.roles-grid--3 .role-card .body li { font-size: 0.84rem; }
.roles-grid--3 .role-card .body .btn { font-size: 0.84rem; padding: 11px 16px; }
@media (max-width: 1000px) { .roles-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .roles-grid, .roles-grid--3 { grid-template-columns: 1fr; } }

/* ===== v12f — Inmobiliario: tarjetas de servicios con borde azul ===== */
.page-inmobiliario #servicios .area-card { border: 1.5px solid var(--blue-400); box-shadow: 0 2px 10px rgba(77,106,212,0.08); }
.page-inmobiliario #servicios .area-card:hover { border-color: var(--navy-900); }

/* ===== v12g — Recuadros con borde navy en todo el sitio (antes gris claro, casi invisible) ===== */
.area-card, .art-toc, .aside-box, .biblio-card, .blog-card, .callout, .error-card, .faq-acc,
.faq-acc .acc-body table, .frame-box, .hub-card, .lawyer-card, .mega-card, .mega-feature, .press-card,
.qa-card, .rel-box, .related-card, .review-card, .reviews-score, .role-card, .sim-info, .sim-result,
.simulator, .spec-item, .toc, .why-card, details.accordion,
.section--white .lawyer-h, .section--light .lawyer-h {
  border-top-color: var(--navy-800); border-right-color: var(--navy-800); border-bottom-color: var(--navy-800);
  border-top-width: 1.5px; border-right-width: 1.5px; border-bottom-width: 1.5px;
}
/* el borde izquierdo conserva su acento de color donde lo tenía; donde era gris pasa a navy */
.area-card, .art-toc, .aside-box, .blog-card:not([style*="border-left"]), .faq-acc, .faq-acc .acc-body table,
.hub-card:not(.pilar), .lawyer-card, .mega-card, .press-card, .qa-card, .rel-box, .review-card, .reviews-score,
.role-card, .sim-info, .sim-result, .simulator, .spec-item, .toc, .why-card, details.accordion {
  border-left-color: var(--navy-800); border-left-width: 1.5px;
}
/* sobre fondo navy los recuadros ya se distinguen: se mantiene su borde translúcido */
.section--navy .frame-box, .section--navy-mid .frame-box, .section--navy .rel-box.rel-cta, .rel-box.rel-cta,
.section--navy .area-card, .section--navy-mid .area-card { border-color: rgba(255,255,255,0.22); }
.area-card:hover, .hub-card:hover, .blog-card:hover, .mega-card:hover { border-color: var(--blue-400); }

/* ===== v12h — Hubs: preguntas frecuentes destacadas a todo el ancho + datos extra ===== */
.faq-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 6px; align-items: center;
  background: var(--navy-900); border-radius: var(--radius-md); padding: 28px 32px; margin-bottom: 22px;
  border-left: 6px solid var(--blue-400); transition: transform .15s ease, box-shadow .15s ease;
}
.faq-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(12,17,64,0.28); }
.faq-hero .fh-eyebrow { grid-column: 1; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-200); }
.faq-hero strong { grid-column: 1; color: var(--white); font-size: 1.45rem; line-height: 1.25; }
.faq-hero .fh-sub { grid-column: 1; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.faq-hero .fh-cta {
  grid-column: 2; grid-row: 1 / span 3; background: var(--white); color: var(--navy-900); font-weight: 700; font-size: 0.95rem;
  padding: 14px 22px; border-radius: var(--radius-sm); white-space: nowrap;
  animation: cta-breathe-strong 1.6s ease-in-out infinite;
}
.faq-hero:hover .fh-cta { animation-play-state: paused; }
.hub-extra { margin-bottom: 10px; }
.fh-extra-label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 10px; }
@media (max-width: 760px) {
  .faq-hero { grid-template-columns: 1fr; padding: 22px; }
  .faq-hero .fh-cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; white-space: normal; }
  .hub-extra .hub-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) { .faq-hero .fh-cta { animation: none; } }
.hub-subcat { font-size: 1rem; margin: 20px 0 2px; color: var(--navy-800); }
.hub-subdesc { font-size: 0.86rem; color: var(--ink-500); margin-bottom: 10px; }

/* ===== v12i — Enlaces dentro del texto: subrayados para que se note que son cliqueables ===== */
.art-main p a:not(.btn), .art-main li a:not(.btn), .art-main td a:not(.btn),
.faq-acc .acc-body p a:not(.btn):not(.more), .faq-acc .acc-body li a:not(.btn),
.hub-cat > p a, .faq-list p a, .area-card p a, .role-card .body p a {
  color: var(--blue-400); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(77,106,212,0.55);
}
.art-main p a:not(.btn):hover, .art-main li a:not(.btn):hover, .art-main td a:not(.btn):hover,
.faq-acc .acc-body p a:not(.btn):not(.more):hover, .faq-acc .acc-body li a:not(.btn):hover,
.hub-cat > p a:hover, .faq-list p a:hover, .area-card p a:hover, .role-card .body p a:hover {
  color: var(--navy-900); text-decoration-color: var(--navy-900);
}
/* sobre fondo navy (recuadros "En síntesis" y CTA) el enlace va en azul claro */
.direct-answer a, .art-cta p a, .art-consulta p a, .callout.vic a { color: var(--blue-200); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
/* listas de índice, fuentes y relacionados conservan su estilo propio */
.art-main .art-toc a { font-weight: 400; text-decoration: none; color: var(--navy-700); }
.art-main .art-toc a:hover { text-decoration: underline; }
.art-main .srcs a { color: var(--navy-800); font-weight: 400; }
.art-main .rel-box li a { color: var(--navy-900); text-decoration: none; }
.art-main .rel-box li a:hover { color: var(--blue-400); }

/* ===== v12j — Footer: contacto ordenado y números cliqueables ===== */
.footer-grid .fc-item { margin-bottom: 14px; }
.footer-grid .fc-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-200); margin-bottom: 4px; }
.footer-grid a.fc-num { display: inline-flex; align-items: center; gap: 7px; color: var(--white); font-weight: 600; font-size: 0.92rem; white-space: nowrap; margin: 0 0 4px; }
.footer-grid a.fc-num + a.fc-num { display: flex; }
.footer-grid a.fc-num:hover { color: var(--blue-200); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid a.fc-tel::before { content: '☎'; font-size: 0.85rem; color: var(--blue-200); }
.footer-grid a.fc-num svg { width: 15px; height: 15px; }

/* ===== v12k — WhatsApp flotante y chat a media altura ===== */
@media (min-width:761px){ .float-wa { bottom: 52vh; } .chat-launcher { bottom: 30vh; } }
@media (max-width:760px){ .float-wa, .chat-launcher { bottom: 96px; } }

/* ===== v12l — Flotante con el isotipo de WhatsApp (borde blanco para que se vea sobre verde) ===== */
.float-wa .wa-ic { width: 22px; height: 22px; border-radius: 6px; box-shadow: 0 0 0 1.5px #fff; }

/* ===== v13 — tres áreas (Penal, Laboral, Constitucional) ===== */
.areas-split .area-stack { grid-template-rows: 1fr; }
.areas-split .area-stack > .area-card { height: 100%; }

/* v14 — Laboral: fotos difuminadas en secciones azules (área y blog) */
.post-hero--photo { position: relative; background-color: var(--navy-900); background-position: center; background-size: cover; background-repeat: no-repeat; isolation: isolate; }
.post-hero--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(12,17,64,.95) 0%, rgba(14,21,72,.91) 60%, rgba(18,27,82,.84) 100%); }
.post-hero--photo h1, .post-hero--photo p.lead { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ph-laboral-santiago { background-image: url(../img/laboral-santiago-1600.webp); }
.ph-laboral-oficina { background-image: url(../img/laboral-oficina-1600.webp); }
.ph-laboral-viga { background-image: url(../img/laboral-viga-1600.webp); background-position: center 30%; }
.post-hero--photo::after { background: linear-gradient(100deg, rgba(12,17,64,.96) 0%, rgba(12,17,64,.88) 50%, rgba(12,17,64,.70) 100%); }

/* ===== v14b — Home (Design Council #2): un solo foco de movimiento y tarjeta de contacto antes en móvil ===== */
.page-home .btn[data-wa], .page-home .btn[data-open-chat], .page-home .btn-agendar, .page-home .btn.pulse { animation: none; }
.page-home .hero-actions .hero-main { animation: cta-breathe-strong 1.6s ease-in-out 1s 3; }
.page-home .btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.page-home .btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .page-home .hero-actions .hero-main { animation: none; } }
@media (max-width: 900px) {
  .page-home .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .page-home .hero-grid > div:first-child { display: contents; }
  .page-home .hero-grid .hero-card { order: 2; margin: 4px 0 30px; }
  .page-home .hero-grid .hero-seals { order: 3; }
}
.lawyer-h .info p { text-align: left; hyphens: manual; }

/* ===== v14c — Home: caso de Corte Suprema más llamativo ===== */
.press-hero--big .ph-img::after { background: linear-gradient(100deg, rgba(10,14,52,.95) 0%, rgba(12,17,64,.88) 55%, rgba(12,17,64,.7) 100%); }
.press-hero--big .ph-body { padding: 56px 56px 46px; }
.press-badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); background: var(--blue-200); padding: 6px 12px; border-radius: 20px; margin-bottom: 18px; }
.press-hero--big h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; max-width: 820px; margin-bottom: 18px; }
.press-hero--big h2 em { font-style: normal; color: var(--blue-200); }
.press-hero--big p { text-align: left; max-width: 720px; font-size: 1rem; }
.press-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 28px 0 28px; border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.press-stats div { padding: 18px 18px 16px 0; }
.press-stats div + div { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.press-stats strong { display: block; color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.press-stats span { display: block; color: rgba(255,255,255,.7); font-size: .82rem; margin-top: 5px; }
.press-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.press-hero--big .press-note { font-size: .76rem; color: rgba(255,255,255,.55); margin: 16px 0 0; }
@media (max-width: 900px) { .press-stats { grid-template-columns: 1fr 1fr; } .press-stats div:nth-child(3) { padding-left: 0; border-left: 0; } .press-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 600px) { .press-hero--big .ph-body { padding: 34px 22px 30px; } }
.lawyer-shared { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--stone-300, #d9dce6); font-size: .95rem; font-weight: 600; color: var(--navy-900); text-align: center; }

/* ===== v15 — Enlaces legales en el pie ===== */
.footer-bottom { flex-wrap: wrap; row-gap: 8px; }
.footer-legal { flex-basis: 100%; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--white); }
.chat-form label.consent, .form label.consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: .76rem; color: var(--ink-700); margin: 10px 0 4px; line-height: 1.4; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--navy-900); }
.consent a { color: var(--blue-400); text-decoration: underline; }
.consent input { padding: 0; }

/* ===== v15 · Accesibilidad: contraste mínimo 4,5:1 sobre fondos claros ===== */
:root { --blue-500: #3f5bc8; }
.section--light .eyebrow, .section--white .eyebrow { color: var(--blue-500); }
.art-main p a:not(.btn), .art-main li a:not(.btn), .art-main td a:not(.btn), .faq-acc .acc-body p a:not(.btn):not(.more),
.faq-acc .acc-body li a:not(.btn), .hub-cat > p a, .faq-list p a, .area-card p a, .role-card .body p a { color: var(--blue-500); }
.art-main .art-toc li a:not(.btn) { color: var(--navy-700); }
.footer-bottom { color: rgba(255,255,255,0.62); }
.brand img, .footer-logo { object-fit: contain; object-position: left center; }
/* v15 · tablas de artículos: en celulares chicos se desplazan de lado dentro de su caja, sin ensanchar la página */
@media (max-width: 480px) {
  .art-main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .art-main th, .art-main td { min-width: 120px; }
}
/* v15 · logo legible en celulares chicos (sin deformarse) */
@media (max-width: 420px) {
  .brand { flex-shrink: 0; }
  .brand img { height: 24px; width: auto; }
  .btn-agendar { padding: 8px 11px; font-size: 0.72rem; }
  .btn-agendar .wa-ic { display: none; }
}
/* v15 · nombre del revisor enlazado a su ficha, discreto */
.review-mini a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.review-mini a:hover { color: var(--navy-700); }
