/* ==========================================================================
   Murillo y Guzmán — Abogados y Notarios
   Hoja de estilos principal. Paleta y tipografía inspiradas en firmas
   jurídicas de primer nivel: marfil, tinta azul marino y un acento bronce.
   ========================================================================== */

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

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 152px);
  --radius: 2px;
  --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(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -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: 400; }
ul { 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;
}
.skip-link:focus { top: 12px; }

.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(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); font-weight: 300; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow .num { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
em.serif { font-family: var(--serif); font-style: italic; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--on-dark); }
.btn--solid:hover { background: var(--navy); border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--brass:hover { background: #876838; border-color: #876838; }
.btn--light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--on-dark); }
.btn--outline-light { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.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: .8rem; }
.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, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.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.4vw, 36px); }
.nav__link {
  position: relative; font-size: .88rem; font-weight: 500; letter-spacing: .02em; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  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: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 10px 0;
}
.menu-toggle__bars { position: relative; width: 26px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; 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: .78rem; font-weight: 600; letter-spacing: .14em;
  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: 1px; box-shadow: 0 0 0 1px rgba(15, 27, 45, .18); }
.btn svg.flag { width: 22px; height: 14px; }
.menu-abierto .header .lang-switch { color: var(--on-dark); border-color: var(--line-dark); }
.translation-note {
  display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted);
  padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 40px;
}
.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(--navy-deep); color: var(--on-dark);
  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: baseline;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.2;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
}
.overlay__nav a span { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; color: var(--brass-light); }
.overlay__foot { display: grid; gap: 12px; font-size: .95rem; color: var(--on-dark-muted); }
.overlay__foot .btn { width: 100%; }
.menu-abierto .header { background: var(--navy-deep); border-bottom-color: var(--line-dark); }
.menu-abierto .header .menu-toggle { color: var(--on-dark); }
.menu-abierto .header__logo img { filter: brightness(0) invert(.95); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--on-dark);
  padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 9vw, 120px);
  isolation: isolate;
}
.hero::before {
  /* retícula fina, a la manera de un papel de oficio */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(244,241,234,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,234,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -12vw; top: -20vw; width: 60vw; height: 60vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(156,122,75,.22), transparent 62%);
}
.hero .eyebrow { color: var(--brass-light); }
.hero__title { max-width: 15ch; margin: 28px 0 32px; }
.hero__title em { font-style: italic; color: var(--brass-light); }
.hero__lead { max-width: 56ch; color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 300; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(64px, 9vw, 112px); 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(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--on-dark); }
.hero__fact span { display: block; margin-top: 10px; font-size: .84rem; color: var(--on-dark-muted); }
@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(24px, 6vw, 96px);
  align-items: end; margin-bottom: clamp(48px, 6vw, 80px);
}
.section__head .h2 { margin-top: 18px; }
.section__head p { margin: 0; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* Despacho (declaración) */
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 120px); }
.statement__quote { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.3; }
.statement__quote::before { content: ""; display: block; width: 56px; height: 1px; background: var(--brass); margin-bottom: 28px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 40px; }
.pillar h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.pillar p { font-size: .96rem; 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: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--line-strong);
}
.practice-link {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.3;
  transition: color .25s var(--ease), padding .3s var(--ease);
}
.practice-link small { grid-column: 1; display: block; font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.practice-link::after { content: "→"; grid-row: 1; grid-column: 2; font-family: var(--sans); 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;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--ease), transform .8s var(--ease); }
.person:hover .portrait img, .staff__card:hover .portrait img { filter: grayscale(0); transform: scale(1.02); }
.portrait__initials { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); color: var(--navy); opacity: .5; letter-spacing: .04em; }
.portrait__note { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.person__name { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.25; }
.person__role { margin: 8px 0 4px; font-size: .9rem; color: var(--ink-soft); }
.person__carne { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.person__bio { margin-top: 16px; font-size: .96rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: .74rem; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--ink-soft); }
.cred__title { margin: 28px 0 4px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cred li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.cred li strong { font-weight: 500; color: var(--ink); }
.cred li span { font-size: .84rem; color: var(--muted); }
.cred--small li { padding: 9px 0; font-size: .88rem; }
.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: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.cred-more summary::-webkit-details-marker { display: none; }
.cred-more summary::after { content: "+"; font-size: 1.3rem; font-weight: 300; color: var(--brass); letter-spacing: 0; transition: transform .3s var(--ease); }
.cred-more[open] summary::after { transform: rotate(45deg); }
.staff { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.staff__title { grid-column: 1 / -1; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.staff__card .portrait__initials { font-size: 2rem; }
.staff__card h4 { font-family: var(--serif); font-size: 1.1rem; margin-top: 14px; }
.staff__card p { font-size: .86rem; color: var(--muted); margin: 2px 0 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } .staff { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .person .portrait { max-width: 320px; } }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: paso; border-top: 1px solid var(--line-dark); }
.step { padding: 32px 28px 8px 0; counter-increment: paso; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.step::before { content: "0" counter(paso); display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--brass-light); line-height: 1; margin-bottom: 20px; }
.step h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 10px; }
.step p { font-size: .94rem; color: var(--on-dark-muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-dark); }
}

/* ---------- Bandas de acción (cita / cotización) ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cta-card { background: var(--bg); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.cta-card .h3 { font-size: clamp(1.6rem, 2.6vw, 2.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: 200px minmax(0, 1fr) auto; gap: clamp(16px, 4vw, 56px); align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.post-item__meta { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.post-item__meta time { display: block; color: var(--muted); margin-top: 6px; font-weight: 500; }
.post-item__title { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; }
.post-item__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.post-item__title a:hover { background-size: 100% 1px; }
.post-item__excerpt { margin: 10px 0 0; font-size: .96rem; color: var(--muted); }
.post-item__author { font-size: .86rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 760px) { .post-item { grid-template-columns: 1fr; gap: 10px; } }
.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: .82rem; 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: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.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); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }
@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(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { margin-top: 20px; max-width: 22ch; }
.page-hero .lead { margin-top: 24px; max-width: 62ch; }
.breadcrumb { font-size: .8rem; 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.05rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; margin-top: 2em; }
.prose h3 { font-family: var(--serif); font-size: 1.3rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin: .55em 0; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--brass); }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; position: relative; padding-left: 36px; margin: .7em 0; }
.prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; font-family: var(--serif); color: var(--brass); }
.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: 2px solid var(--brass); font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); }
.prose strong { font-weight: 600; }
.prose img { margin: 1.6em 0; }

.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); padding: 32px; display: grid; gap: 16px; }
.aside-card h2 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.aside-card p { margin: 0; font-size: .95rem; 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: .82rem; color: var(--muted); }

/* Preguntas frecuentes */
.faq { margin-top: 64px; border-top: 1px solid var(--line-strong); }
.faq h2 { font-family: var(--serif); font-size: 1.6rem; 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: 22px 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; 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 24px; 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: .88rem; color: var(--muted); }
.article-meta strong { color: var(--ink); font-weight: 500; }
.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: .84rem; color: var(--muted); background: var(--surface); padding: 20px 24px; margin-top: 48px; border-left: 2px solid var(--brass); }

/* ---------- 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: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field .hint { font-size: .84rem; 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, .12); }
.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: .9rem; 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: .9rem; 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); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.option__card h3 { font-family: var(--serif); font-size: 1.3rem; }
.option__card p { margin: 0; font-size: .92rem; color: var(--muted); }
.option__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.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); }
.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: 64px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-top: 1px solid var(--line-strong); counter-increment: bstep; }
.booking-step::before { content: "0" counter(bstep); font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--brass); }
.booking-step h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 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; }
.pay-box p { margin: 0; }
.sinpe { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.calendar-embed { margin-top: 16px; border: 1px solid var(--line); background: #fff; min-height: 680px; }
.calendar-embed iframe { width: 100%; height: 720px; border: 0; display: block; }
.notice { font-size: .9rem; padding: 16px 20px; border: 1px solid var(--line-strong); background: #fff; }

/* ---------- Pie de página ---------- */
.footer { background: var(--navy-deep); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 112px) 0 32px; font-size: .94rem; }
.footer a:hover { color: var(--on-dark); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer__brand img { width: 220px; opacity: .92; }
.footer__brand p { margin-top: 24px; max-width: 34ch; }
.footer h2 { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .8rem; }
.footer__note { margin-top: 24px; font-size: .8rem; max-width: 90ch; line-height: 1.6; }
@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 (sobrio) */
.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: .82rem; font-weight: 600; letter-spacing: .06em;
  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(18px); transition: opacity .9s var(--ease), transform .9s 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; }
