/* ============================================================
   Miñarro Abogados — Sistema de estilos
   Clásico · prestigio · cercano
   ============================================================ */

:root {
  /* Paleta */
  --navy:       #14283c;
  --navy-900:   #0d1e2e;
  --navy-800:   #1a3250;
  --gold:       #3061aa;
  --gold-soft:  #e8eef5;
  --gold-deep:  #3061aa;
  --logo-gray:  #787878;
  --cream:      #f2f4f7;
  --paper:      #f7f9fc;
  --white:      #ffffff;
  --ink:        #14283c;
  --muted:      #5b6772;
  --line:       rgba(20, 40, 60, 0.14);
  --line-soft:  rgba(20, 40, 60, 0.08);

  /* Tipografía */
  --serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Medidas */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 41, 66, 0.12);
  --shadow-lg: 0 30px 80px rgba(10, 29, 48, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -0.02em; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-weight: 700; }
p { margin: 0 0 1em; -webkit-hyphens: none; hyphens: none; }
p:last-child { margin-bottom: 0; }
/* Justificar solo los textos anchos de lectura */
.faq-body, .legal-text p, .legal-text li { text-align: justify; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.eyebrow.is-light { color: var(--gold-soft); }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: none; text-align: justify; -webkit-hyphens: none; hyphens: none; }
.hero__lead, .page-hero .lead { text-align: justify; -webkit-hyphens: none; hyphens: none; }
.center .lead { margin-inline: auto; text-align: center; -webkit-hyphens: manual; hyphens: manual; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; transition: all .25s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #3d73bd; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(48,97,170,.32); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--lg { --pad-y: 18px; --pad-x: 38px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(250,248,243,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 116px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 132px; width: auto; display: block; }
.footer-brand .brand__logo { filter: brightness(0) invert(1); opacity: 0.85; }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  background: var(--navy); border-radius: 3px;
  white-space: nowrap; line-height: 1; letter-spacing: -0.5px;
}
.brand__mark span { color: var(--gold-soft); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.brand__sub { font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 10px 16px; border-radius: var(--radius);
  position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav-cta-mobile { display: none; }

/* Menú desplegable "Servicios" */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop__toggle { padding-right: 28px !important; }
.nav-drop__toggle::before {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease;
}
.nav-drop:hover .nav-drop__toggle::before { transform: rotate(225deg); margin-top: -2px; }
.nav-drop__menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { display: flex; }
.nav-drop__menu a { padding: 11px 14px; border-radius: 4px; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-drop__menu a::after { display: none; }
.nav-drop__menu a:hover { background: var(--cream); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--navy); font-size: 15px; }
.header-phone .dot { width: 8px; height: 8px; border-radius: 50%; background: #3a9d5d; box-shadow: 0 0 0 3px rgba(58,157,93,.18); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--cream); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(48,97,170,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; grid-template-areas: "intro media" "content media"; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; padding-block: clamp(72px, 10vw, 130px); }
.hero__intro { grid-area: intro; align-self: end; }
.hero__content { grid-area: content; align-self: start; }
.mob-br { display: none; }
.hero h1 { color: var(--cream); }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__lead { color: rgba(244,241,234,.78); font-size: clamp(1.05rem, 1.5vw, 1.28rem); max-width: 50ch; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__trust .ht { display: flex; flex-direction: column; }
.hero__trust .ht b { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 2.2rem); color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.hero__trust .ht span { font-size: 13px; letter-spacing: .04em; color: rgba(244,241,234,.7); }

.hero__media { grid-area: media; position: relative; align-self: center; }
.hero__frame {
  aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -28px; bottom: 34px;
  background: var(--cream); color: var(--navy);
  padding: 18px 22px; border-radius: 5px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; max-width: 250px;
  border-left: 3px solid var(--gold);
}
.hero__badge .stars { color: var(--gold-deep); font-size: 15px; letter-spacing: 2px; }
.hero__badge b { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.hero__badge small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(15,41,66,.05) 0 2px, transparent 2px 11px),
    var(--cream);
  display: grid; place-items: center;
}
.hero__frame .ph { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #16385c, #0c2138); }
.ph__label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px; letter-spacing: .06em;
  color: var(--muted); background: rgba(255,255,255,.7);
  padding: 7px 12px; border-radius: 3px; border: 1px solid var(--line-soft);
  text-align: center;
}
.hero__frame .ph__label { color: rgba(244,241,234,.82); background: rgba(10,29,48,.4); border-color: rgba(255,255,255,.16); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-900); color: var(--cream); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar .ti { padding: 30px 26px; border-right: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; text-align: center; align-items: center; }
.trustbar .ti:last-child { border-right: 0; }
.trustbar .ti b { font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.85rem); color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.trustbar .ti span { font-size: 13.5px; color: rgba(244,241,234,.72); }

/* ---------- Section heading block ---------- */
.section-head { max-width: none; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }

/* ---------- Areas grid ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
/* Grid de 8 áreas (familia): 6 columnas → 3 por fila y las 2 últimas a todo el ancho */
.areas--family { grid-template-columns: repeat(6, 1fr); }
.areas--family .area-card { grid-column: span 2; }
.areas--family .area-card:nth-last-child(-n+2) { grid-column: span 3; }
@media (max-width: 980px) {
  .areas--family .area-card,
  .areas--family .area-card:nth-last-child(-n+2) { grid-column: auto; }
}
.area-card {
  background: var(--white); padding: 38px 32px; position: relative;
  transition: background .3s ease, transform .3s ease; display: flex; flex-direction: column; gap: 14px;
}
.area-card:hover { background: var(--navy); }
.area-card__num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); font-weight: 600; letter-spacing: .05em; }
.area-card h3 { transition: color .3s; }
.area-card p { color: var(--muted); font-size: 16px; transition: color .3s; }
.area-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.area-card__tags span { font-size: 12.5px; font-weight: 600; color: var(--navy); background: var(--cream); padding: 4px 11px; border-radius: 100px; transition: all .3s; }
.area-card__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--gold-deep); letter-spacing: .03em; transition: color .3s; }
.area-card__more::after { content: " →"; }
.area-card:hover h3 { color: var(--white); }
.area-card:hover p { color: rgba(244,241,234,.78); }
.area-card:hover .area-card__more { color: var(--gold-soft); }
.area-card:hover .area-card__tags span { background: rgba(255,255,255,.1); color: var(--gold-soft); }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--media-first .split__media { order: -1; }
.split__media { aspect-ratio: 5/4; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.feature-list { display: grid; gap: 22px; margin-top: 30px; }
.feature-list--row { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(40px, 6vw, 64px); }
.feature-list--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feature-list--4 { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .fi-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.feature-list :is(h3, h4) { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 3px; font-weight: 600; }
.feature-list p { color: var(--muted); font-size: 16px; }

/* ---------- About media (foto con acento + insignia) ---------- */
.about-media { position: relative; }
.about-media img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-lg); }
.about-media__accent { position: absolute; z-index: 0; top: -22px; right: -22px; width: 64%; height: 80%; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--navy)); }
.about-media__badge {
  position: absolute; z-index: 2; left: -28px; bottom: 30px;
  background: var(--white); color: var(--navy); text-align: center;
  padding: 16px 24px; border-radius: 12px; box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold);
}
.about-media__badge .stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.about-media__badge b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--navy); margin: 2px 0; }
.about-media__badge span { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 680px) {
  .about-media__accent { top: -12px; right: -12px; width: 50%; height: 60%; }
  .about-media__badge { left: 14px; bottom: 14px; padding: 12px 18px; }
  .about-media__badge b { font-size: 1.7rem; }
}

/* ---------- Feature band (sección destacada navy) ---------- */
.feature-band {
  display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: stretch;
  background: var(--navy); color: var(--cream);
  border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
}
.feature-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 320px at 92% 0%, rgba(48,97,170,.22), transparent 60%);
}
.feature-band__media { position: relative; min-height: 420px; }
.feature-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, rgba(15,30,46,.5)); }
.feature-band__body { position: relative; padding: clamp(34px, 4vw, 60px); }
.feature-band__body h2 { color: var(--cream); }
.feature-band__body .lead { color: rgba(244,241,234,.82); }
.feature-band__body .feature-list { margin-top: 26px; gap: 18px; }
.feature-band__body .feature-list :is(h3, h4) { color: var(--cream); }
.feature-band__body .feature-list p { color: rgba(244,241,234,.7); }
.feature-band__body .feature-list .fi-mark { border-color: var(--gold-soft); color: var(--gold-soft); }
@media (max-width: 860px) {
  .feature-band { grid-template-columns: 1fr; }
  .feature-band__media { min-height: 240px; }
  .feature-band__media::after { background: linear-gradient(180deg, transparent 65%, rgba(15,30,46,.5)); }
}

/* ---------- Process ---------- */
.process { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step__n { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); font-weight: 600; line-height: 1; }
.step :is(h3, h4) { font-family: var(--serif); font-size: 1.25rem; margin: 12px 0 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15.5px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px; background: var(--gold); }

/* ---------- Testimonials ---------- */
.quotes-slider { position: relative; width: 100%; }
.quotes-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.quotes-track { display: flex; gap: 24px; transition: transform .5s ease; will-change: transform; }
.quote { background: var(--white); border: 1px solid var(--line-soft); border-radius: 6px; padding: 36px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; flex-shrink: 0; box-sizing: border-box; }
.quotes-dots { display: flex; justify-content: center; gap: 2px; margin-top: 24px; -webkit-mask-image: none; mask-image: none; }
/* Área táctil 24×24 (WCAG 2.2 — 2.5.8) conservando el punto visual de 10px vía background-clip */
.quotes-dots button { width: 24px; height: 24px; padding: 7px; box-sizing: border-box; border-radius: 50%; border: none; background: var(--line); background-clip: content-box; cursor: pointer; transition: background .3s, transform .3s; }
.quotes-dots button.active { background: var(--gold); background-clip: content-box; transform: scale(1.3); }
.quote .stars { color: var(--gold-deep); letter-spacing: 2px; font-size: 15px; }
.quote p { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--navy); line-height: 1.5; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-800)); border: 1.5px solid var(--gold-soft); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; flex: none; }
.quote .who b { display: block; font-family: var(--sans); font-size: 15px; color: var(--navy); font-weight: 700; }
.quote .who span { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 80% 120%, rgba(48,97,170,.18), transparent 60%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--cream); max-width: 18ch; }
.cta-band p { color: rgba(244,241,234,.78); margin-top: 12px; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(244,241,234,.72); padding-block: clamp(56px, 7vw, 84px) 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer :is(h3, h4) { color: var(--cream); font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact .ic { color: var(--gold); flex: none; }
.footer-brand .brand__name { color: var(--cream); }
.footer-brand .brand__sub { color: rgba(244,241,234,.6); }
.footer-brand p { margin-top: 18px; max-width: 34ch; color: rgba(244,241,234,.62); font-size: 14.5px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(244,241,234,.55); }
.footer-bottom a { color: rgba(244,241,234,.7); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% -20%, rgba(48,97,170,.14), transparent 60%); }
.page-hero__inner { position: relative; padding-block: clamp(56px, 8vw, 96px); }
.page-hero h1 { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero .lead { color: rgba(244,241,234,.8); margin-top: 20px; max-width: none; }
.breadcrumb { font-size: 13px; letter-spacing: .04em; color: rgba(244,241,234,.6); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: var(--gold-soft); }

/* ---------- Detailed service blocks ---------- */
.svc-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.svc-block + .svc-block { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.svc-block__head { position: sticky; top: 110px; }
.svc-block__num { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); font-weight: 600; line-height: 1; }
.svc-block__head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 14px 0 16px; }
.svc-block__head p { color: var(--muted); font-size: 16.5px; }
.svc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.svc-item { background: var(--white); padding: 26px 26px; display: flex; flex-direction: column; gap: 8px; transition: background .25s; }
.svc-item:hover { background: var(--cream); }
.svc-item :is(h3, h4) { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); }
.svc-item p { font-size: 15px; color: var(--muted); }
.svc-item .tick { color: var(--gold-deep); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(48,97,170,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.form-success { background: #eef7f0; border: 1px solid #b9dcc4; color: #1f6b3c; padding: 16px 18px; border-radius: var(--radius); font-weight: 600; display: none; }
.form-success.show { display: block; }

/* ---------- Contact direct actions ---------- */
.contact-grid > * { min-width: 0; }
.contact-actions { display: grid; gap: 14px; }
/* Variante en fila: 4 canales en 4 columnas, tarjeta en vertical */
.contact-grid--intro { align-items: center; }
.contact-actions--row { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(30px, 4vw, 44px); }
.contact-actions--row .contact-action { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; }
.contact-action {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; padding: 20px 22px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.contact-action:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-action__ic { font-size: 22px; width: 50px; height: 50px; flex: none; display: grid; place-items: center; background: var(--cream); border-radius: 50%; }
.contact-action__txt { display: flex; flex-direction: column; min-width: 0; }
.contact-action__txt b { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--navy); }
.contact-action__txt span { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
.contact-action__arrow { margin-left: auto; color: var(--gold-deep); font-size: 20px; font-weight: 700; transition: transform .25s; }
.contact-action:hover .contact-action__arrow { transform: translateX(4px); }

.info-card { background: var(--navy); color: var(--cream); border-radius: 8px; padding: clamp(30px, 4vw, 44px); height: 100%; }
.info-card h3 { color: var(--cream); }
.info-list { margin-top: 24px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list li > div { min-width: 0; }
.info-list .ic { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-soft); display: grid; place-items: center; }
.info-list b { display: block; color: var(--cream); font-family: var(--sans); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.info-list span, .info-list a { color: rgba(244,241,234,.78); font-size: 15.5px; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--gold-soft); }
.map-frame { margin-top: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-frame--full { margin-top: clamp(36px, 5vw, 64px); height: 420px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.team-card__img { width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.2rem; color: var(--navy); }
.team-card__role { color: var(--gold-deep); font-weight: 600; font-size: 14px; }
.team-card__title { font-weight: 700; font-size: 15px; color: var(--navy); }
.team-card p:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 680px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 26px; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; color: var(--gold-deep); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 26px 24px; color: var(--muted); font-size: 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "media" "content"; row-gap: 28px; }
  .hero__media { max-width: 340px; margin-inline: auto; width: 100%; }
  .areas, .quotes, .steps, .svc-items { grid-template-columns: 1fr 1fr; }
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .trustbar .ti:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split--media-first .split__media { order: 0; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block__head { position: static; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-actions--row { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 32px; }

  /* Las imágenes split no deben crecer demasiado en tablet */
  .split__media { aspect-ratio: 16/10; max-height: 460px; }
  /* La imagen ya no es la primera columna: que vaya debajo del texto */
  .split--media-first .split__media { order: 2; }
}

/* Menú hamburguesa: se activa antes para que la cabecera nunca desborde */
@media (max-width: 980px) {
  .nav, .header-phone, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 16px var(--gutter) 26px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav.is-open a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-cta-mobile { display: none; }
  .nav.is-open .nav-cta-mobile { display: inline-flex; justify-content: center; margin-top: 14px; border: 0; }

  /* Menú desplegable en móvil: submenú siempre visible e indentado */
  .nav.is-open .nav-drop { flex-direction: column; align-items: stretch; width: 100%; }
  .nav.is-open .nav-drop__toggle { padding-right: 4px !important; }
  .nav.is-open .nav-drop__toggle::before { display: none; }
  .nav.is-open .nav-drop__menu { position: static; display: flex; box-shadow: none; border: 0; background: transparent; padding: 4px 0 4px 16px; min-width: 0; }
  .nav.is-open .nav-drop__menu a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); font-weight: 500; }

  /* Hero: bloques de confianza centrados cuando el hero se apila */
  .hero__trust { justify-content: center; }
  .hero__trust .ht { align-items: center; text-align: center; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  /* Una sola columna en todas las rejillas */
  .areas, .quotes, .steps, .trustbar__grid, .svc-items, .field-row, .contact-grid, .contact-actions--row, .footer-grid, .feature-list--row, .feature-list--4 {
    grid-template-columns: 1fr;
  }

  /* Espaciado vertical más compacto entre secciones */
  .section { padding-block: clamp(48px, 12vw, 64px); }
  .section--tight { padding-block: clamp(40px, 9vw, 56px); }

  /* --- Tipografía ajustada para móvil --- */
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .lead { font-size: 1.05rem; }

  /* --- Hero --- */
  .hero__grid { padding-block: 56px 64px; }
  .mob-br { display: initial; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.6rem); }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 28px; gap: 12px; }
  .hero__trust { margin-top: 32px; padding-top: 24px; gap: 20px 32px; }
  .hero__badge { display: none; }

  /* --- Botones: ancho consistente (full-width) en móvil --- */
  .hero__cta .btn,
  .cta-band__inner > div:last-child .btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .btn--lg { --pad-y: 16px; --pad-x: 28px; }

  /* --- Trust bar: columna única centrada --- */
  .trustbar .ti { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 22px 20px; }
  .trustbar .ti:last-child { border-bottom: 0; }

  /* --- Split: imagen debajo del texto, altura contenida --- */
  .split { gap: 28px; }
  .split__media { aspect-ratio: 16/10; max-height: 320px; }
  .split--media-first .split__media { order: 2; }
  .feature-list { margin-top: 24px; gap: 18px; }

  /* --- Áreas / servicios: tarjetas con padding más ajustado --- */
  .area-card { padding: 28px 24px; }
  .svc-item { padding: 22px 22px; }

  /* --- Proceso --- */
  .steps { gap: 24px; }

  /* --- CTA band: contenido y botones apilados --- */
  .cta-band__inner { flex-direction: column; align-items: stretch; }
  .cta-band__inner > div:last-child { display: flex; flex-direction: column; width: 100%; gap: 12px; }

  /* --- Footer: columnas apiladas --- */
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  /* --- FAQ: legible y con padding correcto --- */
  .faq summary { padding: 18px 20px; font-size: 1.08rem; }
  .faq .faq-body { padding: 0 20px 20px; font-size: 15.5px; }

  /* --- Contacto: campos e info a ancho completo --- */
  .info-card { padding: 28px 24px; }
  .map-frame { height: 260px; }
  .contact-action { padding: 18px 18px; gap: 14px; }

  /* --- Header más compacto en móvil --- */
  .header-inner { height: 86px; }
  .brand__logo { height: 92px; }

  /* --- Carrusel de reseñas: 1 tarjeta visible --- */
  .quote { padding: 28px 24px; }
  .quote p { font-size: 1.08rem; }
}
