/* ==========================================================================
   Murillo y Guzmán — Abogados y Notarios
   Hoja de estilos principal. Paleta del despacho: marfil, tinta azul marino
   (la del logo) y un acento bronce. Una sola familia tipográfica, Schibsted
   Grotesk, para títulos y texto: el aire clásico lo pone el logo.

   Criterios de diseño (octubre de 2026):
   - Sin rótulos numerados ("01 El despacho") ni etiquetas que repitan el título.
   - Sin palabras en cursiva de adorno dentro de los títulos.
   - Botones y etiquetas en minúscula normal, no en mayúsculas espaciadas.
   - Las cifras destacadas usan números de altura uniforme (lining-nums).
   ========================================================================== */

:root {
  --bg: #FAF8F3;
  --surface: #F0ECE3;
  --surface-2: #E7E1D5;
  --ink: #0F1B2D;
  --ink-soft: #2A3647;
  --muted: #5B6573;
  --navy: #1C2F47;          /* azul del logo */
  --navy-deep: #0F1B2D;
  --brass: #94703F;
  --brass-light: #C8AE84;
  --line: rgba(15, 27, 45, .12);
  --line-strong: rgba(15, 27, 45, .24);
  --on-dark: #F4F1EA;
  --on-dark-muted: rgba(244, 241, 234, .72);
  --line-dark: rgba(244, 241, 234, .16);

  --display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 128px);
  --radius: 8px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-abierto { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.h1 { font-family: var(--display); font-weight: 650; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; }
.h2 { font-family: var(--display); font-weight: 650; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.2; letter-spacing: -.015em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); }
/* Etiqueta breve sobre un título (por ejemplo, la categoría de un artículo).
   Solo cuando aporta información: nunca rótulos numerados ni que repitan el título. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600; color: var(--brass);
}
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: .98rem; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--solid { background: var(--ink); color: var(--on-dark); }
.btn--solid:hover { background: var(--navy); border-color: var(--navy); box-shadow: 0 8px 20px rgba(15, 27, 45, .18); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--brass:hover { background: #7E5E33; border-color: #7E5E33; }
.btn--light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.btn--outline-light { background: transparent; border-color: rgba(244, 241, 234, .3); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); background: rgba(244, 241, 234, .06); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-deep); color: var(--on-dark-muted); font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: var(--brass-light); }
.topbar__items { display: flex; gap: 24px; white-space: nowrap; }
.topbar__dir { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .topbar__dir { display: none; } .topbar .wrap { justify-content: center; } }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15, 27, 45, .06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header__logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav__link {
  position: relative; font-size: .95rem; font-weight: 500; padding: 6px 0; color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
  font-size: .95rem; font-weight: 600; padding: 10px 0;
}
.menu-toggle__bars { position: relative; width: 24px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

/* ---------- Botón de idioma (bandera + código) ---------- */
.header__tools { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.lang-switch:hover { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.flag { display: block; width: 22px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 27, 45, .18); }
.btn svg.flag { width: 22px; height: 14px; }
.translation-note {
  display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted);
  padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 40px; border-radius: var(--radius);
}
.translation-note .flag { margin-top: 4px; }
.translation-note a { border-bottom: 1px solid currentColor; color: var(--ink); }
@media (max-width: 380px) { .header__tools { gap: 12px; } .lang-switch { padding: 0 9px; } }

/* Menú a pantalla completa (celular y tableta) */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--ink);
  padding: calc(var(--header-h) + 38px + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__nav a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.2;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.overlay__nav a::after { content: "→"; font-size: 1.2rem; color: var(--brass); }
.overlay__foot { display: grid; gap: 12px; font-size: .95rem; color: var(--muted); }
.overlay__foot .btn { width: 100%; }
/* Con el menú abierto el encabezado sigue claro: el logo nunca necesita placa. */
.menu-abierto .header { background: var(--bg); border-bottom-color: var(--line); }

@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1041px) { .overlay { display: none; } }
@media (max-width: 520px) { .header__logo img { height: 50px; } :root { --header-h: 72px; } }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  isolation: isolate;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.hero__title { max-width: 14ch; margin: 0 0 24px; }
.hero__lead { max-width: 52ch; color: var(--on-dark-muted); font-size: clamp(1.06rem, 1.5vw, 1.22rem); margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* "¿En qué le ayudamos?": accesos directos a las áreas más consultadas */
.needs {
  background: rgba(244, 241, 234, .045); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px);
}
.needs h2 { font-size: 1.1rem; font-weight: 600; color: var(--on-dark); margin-bottom: 8px; }
.needs ul { display: grid; }
.needs ul a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark); font-size: 1.02rem;
  transition: color .2s var(--ease), padding .25s var(--ease);
}
.needs li:last-child a { border-bottom: 0; }
.needs ul a::after { content: "→"; color: var(--brass-light); transition: transform .25s var(--ease); }
.needs ul a:hover { color: var(--brass-light); padding-left: 6px; }
.needs ul a:hover::after { transform: translateX(3px); }
.needs__all { display: inline-block; margin-top: 14px; font-size: .92rem; color: var(--on-dark-muted); border-bottom: 1px solid var(--line-dark); }
.needs__all:hover { color: var(--on-dark); border-bottom-color: var(--on-dark); }

/* Cifras: las tres del mismo tamaño, como "Todo el país" */
.hero__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line-dark);
}
.hero__fact { padding: 28px 24px 0 0; }
.hero__fact + .hero__fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero__fact strong {
  display: block; font-family: var(--display); font-weight: 650; letter-spacing: -.03em;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.05; color: var(--on-dark);
  font-variant-numeric: lining-nums tabular-nums;
}
.hero__fact strong * { font: inherit; color: inherit; }
.hero__fact > span { display: block; margin-top: 8px; font-size: .92rem; color: var(--on-dark-muted); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero__title { max-width: 18ch; } }
@media (max-width: 640px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact, .hero__fact + .hero__fact { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy-deep); color: var(--on-dark); }
.section--dark .muted { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--brass-light); }
.section__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 6vw, 96px);
  align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
.section__head p { margin: 0; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* Despacho */
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 120px); }
.statement .h2 { max-width: 16ch; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.pillar { padding: 22px 22px 24px; background: var(--surface); border-radius: var(--radius-lg); }
.pillar h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.pillar p { font-size: .97rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .statement, .pillars { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.practices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.practices__group h3 {
  font-size: .95rem; font-weight: 600; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
}
.practice-link {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(1.12rem, 1.4vw, 1.26rem); line-height: 1.3;
  transition: color .25s var(--ease), padding .3s var(--ease);
}
.practice-link small { grid-column: 1; display: block; font-family: var(--text); font-weight: 400; letter-spacing: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.practice-link::after { content: "→"; grid-row: 1; grid-column: 2; font-family: var(--text); color: var(--brass); transition: transform .3s var(--ease); }
.practice-link:hover { color: var(--navy); padding-left: 6px; }
.practice-link:hover::after { transform: translateX(4px); }
@media (max-width: 960px) { .practices { grid-template-columns: 1fr; } }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; border-radius: var(--radius-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.person:hover .portrait img, .staff__card:hover .portrait img { transform: scale(1.02); }
.portrait__initials { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--navy); opacity: .45; letter-spacing: -.02em; }
.portrait__note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); }
.person__name { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; }
.person__role { margin: 8px 0 12px; font-size: .97rem; color: var(--ink-soft); }
.person__meta { display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.person__meta div { display: flex; gap: 6px; flex-wrap: wrap; }
.person__meta dt { font-weight: 600; color: var(--ink-soft); }
.person__meta dt::after { content: ":"; }
.person__meta dd { margin: 0; }
.person__bio { margin-top: 16px; font-size: .99rem; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: .84rem; padding: 5px 12px; background: var(--surface); border-radius: 100px; color: var(--ink-soft); }
.cred__title { margin: 28px 0 4px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.cred li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.cred li strong { font-weight: 600; color: var(--ink); }
.cred li span { font-size: .88rem; color: var(--muted); }
.cred--small li { padding: 9px 0; font-size: .92rem; }
.cred-more { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.cred-more summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 1rem; font-weight: 600; color: var(--ink-soft);
}
.cred-more summary::-webkit-details-marker { display: none; }
.cred-more summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--brass); transition: transform .3s var(--ease); }
.cred-more[open] summary::after { transform: rotate(45deg); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.staff__title { grid-column: 1 / -1; font-size: 1rem; font-weight: 600; color: var(--muted); }
/* Personal de apoyo: tarjeta horizontal con foto o iniciales en círculo */
.staff__card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; }
.staff__card .portrait { aspect-ratio: 1; border-radius: 50%; }
.staff__card .portrait__initials { font-size: 1.15rem; opacity: .55; }
.staff__card h4 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.staff__card p { font-size: .92rem; color: var(--muted); margin: 2px 0 0; }
.staff__card .staff__langs { font-size: .86rem; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .person .portrait { max-width: 320px; } }

/* ---------- Pasos (una secuencia real: aquí el número sí informa) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: paso; }
.step {
  padding: 26px 24px 18px; counter-increment: paso;
  background: rgba(244, 241, 234, .045); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
}
.step::before {
  content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brass-light); color: var(--navy-deep);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px;
}
.step h3 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { font-size: .97rem; color: var(--on-dark-muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bandas de acción (cita / cotización) ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-card {
  background: #fff; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cta-card:hover { box-shadow: 0 16px 40px rgba(15, 27, 45, .08); }
.section--surface .cta-card { border-color: transparent; }
.cta-card .h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-card p { color: var(--muted); margin: 0; }
.cta-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .cta-split { grid-template-columns: 1fr; } }

/* ---------- Publicaciones ---------- */
.posts { border-top: 1px solid var(--line-strong); }
.post-item {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: clamp(16px, 4vw, 56px); align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-item__meta { font-size: .9rem; font-weight: 600; color: var(--brass); }
.post-item__meta time { display: block; color: var(--muted); margin-top: 4px; font-weight: 400; }
.post-item__title { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; }
.post-item__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.post-item__title a:hover { background-size: 100% 2px; }
.post-item__excerpt { margin: 10px 0 0; font-size: .98rem; color: var(--muted); }
.post-item__author { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 760px) { .post-item { grid-template-columns: 1fr; gap: 8px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 100px; padding: 8px 16px;
  font-size: .9rem; cursor: pointer; transition: all .2s var(--ease);
}
.filter[aria-pressed="true"], .filter:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.contact__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__row dt { font-size: .95rem; font-weight: 600; color: var(--muted); }
.contact__row dd { margin: 0; }
.contact__row a:hover { color: var(--brass); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.map { position: relative; min-height: 420px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.03); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .map { min-height: 320px; } .contact__row { grid-template-columns: 96px 1fr; } }

/* ---------- Encabezado de página interior ---------- */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { max-width: 22ch; }
.page-hero .breadcrumb + .h1, .page-hero .eyebrow + .h1 { margin-top: 18px; }
.page-hero .lead { margin: 22px 0 0; max-width: 62ch; }
.breadcrumb { font-size: .9rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Contenido largo (servicios, artículos) ---------- */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.2; margin-top: 2em; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; margin: .55em 0; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
/* Listas numeradas: un solo número por punto (el navegador ya no pone el suyo) */
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; position: relative; padding-left: 40px; margin: .8em 0; }
.prose ol li::before {
  content: counter(item); position: absolute; left: 0; top: .05em;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--navy); font-size: .85rem; font-weight: 700;
}
.prose a { color: var(--navy); border-bottom: 1px solid var(--brass-light); }
.prose a:hover { border-bottom-color: var(--navy); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brass); font-size: 1.18rem; color: var(--ink-soft); }
.prose strong { font-weight: 600; }
.prose code { font-size: .88em; overflow-wrap: anywhere; }
.prose img { margin: 1.6em 0; border-radius: var(--radius-lg); }

.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); padding: 30px; display: grid; gap: 16px; border-radius: var(--radius-lg); }
.aside-card h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.4rem; line-height: 1.2; }
.aside-card p { margin: 0; font-size: .97rem; color: var(--muted); }
.aside-card .btn { width: 100%; }
.aside-card hr { border: 0; border-top: 1px solid var(--line-strong); margin: 8px 0; width: 100%; }
.aside-card small { font-size: .88rem; color: var(--muted); }
.aside-card ol { display: grid; gap: 10px; counter-reset: a; }
.aside-card ol li { counter-increment: a; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .97rem; color: var(--muted); }
.aside-card ol li::before {
  content: counter(a); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--navy); font-size: .85rem; font-weight: 700;
}

/* Preguntas frecuentes */
.faq { margin-top: 64px; border-top: 1px solid var(--line-strong); }
.faq h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.55rem; margin: 32px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font-weight: 600; font-size: 1.1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--brass); line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--ink-soft); max-width: 64ch; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* Artículo */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: .92rem; color: var(--muted); }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-foot { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.disclaimer { font-size: .9rem; color: var(--muted); background: var(--surface); padding: 20px 24px; margin-top: 48px; border-radius: var(--radius); }

/* ---------- Formularios (cotización / cita) ---------- */
.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: .88rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28, 47, 71, .14); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__error { color: #8C2A1F; font-size: .94rem; margin: 0; min-height: 1.4em; }
fieldset { border: 0; padding: 0; margin: 0; }

.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option__card {
  height: 100%; display: grid; gap: 10px; padding: 24px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.option__card h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; font-size: 1.22rem; }
.option__card p { margin: 0; font-size: .95rem; color: var(--muted); }
.option__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.option__price { font-weight: 600; color: var(--navy); }
.option input:checked + .option__card { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy), 0 10px 28px rgba(15, 27, 45, .08); }
.option input:focus-visible + .option__card { outline: 2px solid var(--brass); outline-offset: 3px; }

.booking-steps { display: grid; gap: 0; counter-reset: bstep; }
.booking-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 40px 0; border-top: 1px solid var(--line-strong); counter-increment: bstep; }
.booking-step::before {
  content: counter(bstep); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-deep); color: var(--on-dark); font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.booking-step h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin: 6px 0 8px; }
.booking-step > div > p { color: var(--muted); }
@media (max-width: 560px) { .booking-step { grid-template-columns: 1fr; gap: 12px; } }
.pay-box { display: grid; gap: 16px; padding: 24px; background: var(--surface); margin-top: 8px; border-radius: var(--radius-lg); }
.pay-box p { margin: 0; }
.sinpe { font-family: var(--display); font-weight: 650; font-size: 1.6rem; color: var(--navy); }
.calendar-embed { margin-top: 16px; border: 1px solid var(--line); background: #fff; min-height: 680px; border-radius: var(--radius-lg); overflow: hidden; }
.calendar-embed iframe { width: 100%; height: 720px; border: 0; display: block; }
.notice { font-size: .94rem; padding: 16px 20px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); }

/* ---------- Pie de página ---------- */
.footer { background: var(--surface); color: var(--ink-soft); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: .96rem; }
.footer a:hover { color: var(--navy); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-strong); }
/* El logo es marca registrada: va SIEMPRE con sus colores originales.
   El pie es claro (marfil) para que el logo, que es un PNG transparente,
   se integre al fondo sin placa ni recuadro. Nunca se invierte ni se filtra. */
.footer__brand img { width: 240px; height: auto; }
.footer__brand p { margin-top: 24px; max-width: 34ch; }
.footer h2 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .86rem; }
.footer__note { margin-top: 24px; font-size: .86rem; max-width: 90ch; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px;
  background: var(--ink); color: var(--on-dark); border-radius: 100px;
  border: 1px solid rgba(244, 241, 234, .35);
  box-shadow: 0 10px 30px rgba(15, 27, 45, .25);
  font-size: .95rem; font-weight: 600;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); background: var(--navy); }
.wa-float svg { width: 22px; height: 22px; color: #6FCF97; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { width: 54px; padding: 0; justify-content: center; } }
.menu-abierto .wa-float { display: none; }

/* ---------- Animación al desplazarse ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* Aviso de urgencias en la página de citas */
.notice--urgente { border-color: var(--brass-light); background: var(--surface); }
.notice--urgente a { color: var(--navy); font-weight: 600; border-bottom: 1px solid currentColor; }
