/* Layout: a printed-brief rhythm. Cream paper, navy ink, the slate three-tile banner from the Instagram grid as the hero emblem. Single light look by choice (brand paper). */
:root {
  --navy-900: #1d2a40;
  --navy-700: #2a3b57;
  --slate-500: #7f93a7;
  --slate-200: #d6dee7;
  --sand-200: #e9e0d3;
  --cream-100: #f6f2ec;
  --white: #ffffff;
  --ink: #1f2633;
  --muted: #55657a;
  --on-navy-muted: #bcc8d6;
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-text: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --space-2: .5rem; --space-4: 1rem; --space-6: 1.5rem; --space-10: 2.5rem; --space-16: 4rem; --space-24: 6rem;
  --radius-sm: 4px;
  --wrap: 72rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--cream-100); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; color: var(--navy-700); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 3px; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(2rem, env(safe-area-inset-left, 0px)); padding-right: max(2rem, env(safe-area-inset-right, 0px)); }
}
.label {
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-text); font-size: 1rem; font-weight: 600;
  text-decoration: none; line-height: 1.2;
  border: 1px solid var(--navy-700);
  transition: background-color .2s, color .2s;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: var(--white); }
.btn-light { background: var(--cream-100); color: var(--navy-900); border-color: var(--cream-100); }
.btn-light:hover { background: var(--white); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--cream-100);
  border-bottom: 1px solid var(--slate-200);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.25rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--navy-700); }
.brand-mark { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; letter-spacing: .01em; }
.brand-mark span { font-size: .72em; }
.brand-sub { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .28em; margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-links { display: none; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink); }
.nav-links a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: .6rem 1rem; font-size: .9rem; }
@media (min-width: 56rem) { .nav-links { display: flex; } }
@media (max-width: 26rem) { .nav .btn-text { display: none; } }

/* Hero */
.hero { padding-block: var(--space-16) var(--space-16); }
.hero .wrap { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 56rem) {
  .hero { padding-block: var(--space-24); }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-16); }
}
.hero-copy { display: grid; gap: var(--space-6); min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; color: var(--navy-700); }
.hero h1 em { font-style: italic; color: var(--navy-900); }
.hero .lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero-note strong { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* The three-tile banner, as on the Instagram grid */
.banner {
  position: relative;
  aspect-ratio: 12 / 5;
  max-width: 100%;
  background: var(--slate-500);
  display: grid; place-items: center; align-content: center;
  color: var(--white);
  overflow: hidden;
  container-type: inline-size;
}
@media (min-width: 56rem) { .banner { aspect-ratio: 4 / 5; } }
.banner-letters {
  font-family: var(--font-display); font-weight: 500;
  font-size: 30cqw; line-height: .9; letter-spacing: -.01em;
  white-space: nowrap;
}
.banner-letters span { font-size: .55em; vertical-align: .18em; margin-inline: .04em; }
.banner-sub { font-family: var(--font-display); font-weight: 500; font-size: 6.2cqw; letter-spacing: .14em; margin-top: 1.5cqw; }
.banner::before, .banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--cream-100);
}
.banner::before { left: calc(33.333% - 1.5px); }
.banner::after { left: calc(66.666% - 1.5px); }
@media (min-width: 56rem) {
  .banner::before, .banner::after { display: none; }
  .banner { background:
      linear-gradient(var(--cream-100), var(--cream-100)) 0 33.333% / 100% 3px no-repeat,
      linear-gradient(var(--cream-100), var(--cream-100)) 0 66.666% / 100% 3px no-repeat,
      var(--slate-500); }
  .banner-letters { font-size: 36cqw; }
  .banner-sub { font-size: 7.4cqw; }
}
.facts {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  margin: 0; padding: 0; list-style: none;
  font-size: .95rem; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: .5rem; }
.facts li::before { content: ""; width: .4rem; height: .4rem; background: var(--slate-500); }

/* Sections */
.section { padding-block: var(--space-16); }
@media (min-width: 56rem) { .section { padding-block: var(--space-24); } }
.section-head { display: grid; gap: var(--space-4); max-width: 44rem; margin-bottom: var(--space-10); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.08; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Estudio */
.estudio { background: var(--white); border-block: 1px solid var(--slate-200); }
.estudio-grid { display: grid; gap: var(--space-10); }
@media (min-width: 56rem) { .estudio-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); align-items: start; } }
.years { display: grid; gap: var(--space-2); }
.years-num {
  font-family: var(--font-display); font-weight: 500; color: var(--navy-700);
  font-size: clamp(7rem, 20vw, 12rem); line-height: .8; letter-spacing: -.03em;
  font-variant-numeric: lining-nums;
}
.years-num sup { font-size: .4em; vertical-align: .9em; margin-left: .05em; }
.years-txt { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--navy-700); max-width: 14em; }
.estudio-body { display: grid; gap: var(--space-6); min-width: 0; }
.estudio-body p { max-width: 38em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--slate-200); margin-top: var(--space-4); }
.value { padding-top: var(--space-4); padding-right: var(--space-4); }
.value + .value { border-left: 1px solid var(--slate-200); padding-left: var(--space-4); }
.value h3 { font-size: 1.5rem; line-height: 1.1; }
.value p { font-size: .9rem; color: var(--muted); margin-top: .35rem; line-height: 1.45; }
@media (max-width: 30rem) {
  .values { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; padding-left: 0; border-top: 1px solid var(--slate-200); }
  .value { padding-bottom: var(--space-4); }
}
.lawyer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6); background: var(--cream-100); border: 1px solid var(--slate-200); }
.lawyer-seal { width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: var(--navy-700); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.lawyer-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--navy-700); font-weight: 600; }
.lawyer-role { font-size: .92rem; color: var(--muted); }
.pull {
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--navy-700);
  margin: 0; padding-left: var(--space-6); border-left: 1px solid var(--slate-500);
}

/* Áreas */
.areas-grid { display: grid; gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); }
@media (min-width: 48rem) { .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area { background: var(--cream-100); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
@media (min-width: 48rem) { .area { padding: 2rem; } }
.area-icon { width: 2.5rem; height: 2.5rem; color: var(--navy-700); }
.area h3 { font-size: 1.85rem; line-height: 1.1; }
.area p { color: var(--muted); }
.area ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.area li { display: flex; gap: .65rem; font-size: .98rem; line-height: 1.45; }
.area li::before { content: ""; flex: none; width: .4rem; height: .4rem; margin-top: .55em; background: var(--slate-500); }
.area-salud { background: var(--navy-700); color: var(--white); }
@media (min-width: 64rem) { .area-salud { grid-row: span 2; } }
.area-salud h3, .area-salud .area-icon { color: var(--white); }
.area-salud .q { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; color: var(--white); }
.area-salud p { color: var(--on-navy-muted); }
.area-salud li { color: var(--white); }
.area-salud li::before { background: var(--sand-200); }
.area-salud .tagline { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--sand-200); line-height: 1.3; }
.area-salud .btn { justify-self: start; margin-top: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--sand-200); color: var(--ink); font-size: .85rem; padding: .3rem .65rem; }

/* Casos */
.casos { background: var(--sand-200); }
.casos-grid { display: grid; gap: var(--space-6); }
@media (min-width: 56rem) { .casos-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.caso { background: var(--cream-100); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
@media (min-width: 48rem) { .caso { padding: var(--space-10); } }
.caso h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.caso ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--slate-200); }
.caso ol li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem; padding-block: .8rem; border-bottom: 1px solid var(--slate-200); line-height: 1.45; }
.caso ol svg { width: 1.4rem; height: 1.4rem; color: var(--navy-700); margin-top: .1rem; }
.caso .meta { font-size: .9rem; color: var(--muted); }
.caso-quote { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--navy-700); line-height: 1.3; }

/* Contacto */
.contacto { background: var(--navy-700); color: var(--white); }
.contacto h2 { color: var(--white); }
.contacto .label { color: var(--on-navy-muted); }
.contacto .section-head p { color: var(--on-navy-muted); }
.contact-grid { display: grid; gap: var(--space-10); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); } }
.channels { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(255,255,255,.22); }
.channels li { border-bottom: 1px solid rgba(255,255,255,.22); }
.channels a, .channels .static { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: center; padding-block: 1rem; text-decoration: none; }
.channels a:hover .val { text-decoration: underline; text-underline-offset: 4px; }
.channels svg { width: 1.35rem; height: 1.35rem; color: var(--sand-200); }
.channels .k { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); font-weight: 600; }
.channels .val { display: block; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; overflow-wrap: anywhere; }
.form { background: var(--cream-100); color: var(--ink); padding: var(--space-6); display: grid; gap: var(--space-4); min-width: 0; }
@media (min-width: 48rem) { .form { padding: var(--space-10); } }
.form h3 { font-size: 1.8rem; }
.form .row { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #a9b6c4; border-radius: var(--radius-sm);
  padding: .7rem .8rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy-700); outline-offset: 0; border-color: var(--navy-700); }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.form-foot p { font-size: .88rem; color: var(--muted); max-width: 26em; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); padding-block: var(--space-10); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.site-footer .brand { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Floating WhatsApp */
.fab {
  position: fixed; z-index: 25;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--navy-700); color: var(--white);
  box-shadow: 0 6px 18px rgba(29, 42, 64, .3);
  border: 2px solid var(--cream-100);
}
.fab svg { width: 1.6rem; height: 1.6rem; }
.fab:hover { background: var(--navy-900); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Footer (multi-column) */
.footer-grid { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); } }
.site-footer .wrap.footer-grid { display: grid; }
.footer-brand { display: grid; gap: var(--space-4); }
.footer-brand p { line-height: 1.6; }
.site-footer nav { display: grid; gap: .45rem; align-content: start; }
.footer-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--white); margin-bottom: .25rem; }
.site-footer .wrap.footer-legal { display: block; margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }

/* Area card link on home */
.area-more { justify-self: start; font-weight: 600; font-size: .95rem; color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.area-more:hover { text-decoration-thickness: 2px; }
.area-salud .area-more { color: var(--sand-200); }

/* Inner pages */
.page-hero { padding-block: var(--space-10) var(--space-16); border-bottom: 1px solid var(--slate-200); }
.page-hero .wrap { display: grid; gap: var(--space-6); }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--slate-500); }
.crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; max-width: 16em; }
.page-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.page-grid { display: grid; gap: var(--space-10); }
@media (min-width: 60rem) { .page-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-16); align-items: start; } }
.prose { display: grid; gap: var(--space-4); max-width: 42rem; min-width: 0; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); line-height: 1.1; margin-top: var(--space-6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.5rem; line-height: 1.15; }
.prose ul, .prose ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.1rem; line-height: 1.55; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; background: var(--slate-500); }
.prose strong { font-weight: 600; color: var(--ink); }
.steps { counter-reset: s; border-top: 1px solid var(--slate-200); gap: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: .85rem 0 .85rem 2.5rem; border-bottom: 1px solid var(--slate-200); line-height: 1.5; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .7rem; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--navy-700); }
.callout { background: var(--sand-200); padding: var(--space-6); display: grid; gap: var(--space-4); margin-block: var(--space-4); }
.callout ul li::before { background: var(--navy-700); }
.side { display: grid; gap: var(--space-6); }
@media (min-width: 60rem) { .side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); } }
.side-card { background: var(--navy-700); color: var(--white); padding: var(--space-6); display: grid; gap: var(--space-4); }
.side-card h2 { color: var(--white); font-size: 1.7rem; line-height: 1.1; }
.side-card p { color: var(--on-navy-muted); font-size: .95rem; }
.side-card .phone { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.side-card .btn { justify-content: center; }
.side-links { display: grid; gap: .5rem; padding: var(--space-6); border: 1px solid var(--slate-200); background: var(--white); }
.side-links a { color: var(--navy-700); }
.faq { background: var(--white); border-block: 1px solid var(--slate-200); }
.faq-list { display: grid; max-width: 48rem; border-top: 1px solid var(--slate-200); }
.faq details { border-bottom: 1px solid var(--slate-200); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 1.1rem; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; color: var(--navy-700); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-text); font-weight: 400; color: var(--slate-500); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 40em; }
.cta-band { background: var(--navy-700); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; padding-block: var(--space-16); }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band p { color: var(--on-navy-muted); margin-top: .4rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
