/* =============================================================
   Saldaña & Anguiano · Abogados
   1. Tokens
   ============================================================= */
:root {
  --paper: #F5F9FB;
  --ice: #E4EEF4;
  --ice-2: #D5E5EE;
  --ice-3: #BDD3E0;
  --gold-1: #F2DE96;
  --gold: #C9A142;
  --gold-2: #A9852E;
  --gold-ink: #7A5C17;
  --ink: #1D262E;
  --ink-2: #46535F;
  --ink-3: #6B7884;
  --navy: #0C1B30;
  --navy-2: #13294A;
  --line: rgba(29, 38, 46, .12);
  --gold-grad: linear-gradient(120deg, #F2DE96 0%, #C9A142 45%, #E6C976 72%, #8E6B1F 100%);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --caps: "Cinzel", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(12, 27, 48, .35), 0 8px 20px -12px rgba(12, 27, 48, .18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
  --mono-a: #1D262E;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 em, h1 em { font-style: italic; color: var(--gold-2); }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--caps);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: .8rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--gold-1); }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); background-size: 140% 140%; color: #1E1606; box-shadow: 0 12px 26px -12px rgba(169, 133, 46, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 18px 34px -14px rgba(169, 133, 46, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy-2); box-shadow: 0 14px 28px -14px rgba(12,27,48,.7); }
.btn-line { border: 1px solid rgba(29,38,46,.28); color: var(--ink); }
.btn-line:hover { border-color: var(--gold-2); color: var(--gold-ink); }
.btn-line-light { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-line-light:hover { border-color: var(--gold-1); color: var(--gold-1); }
.btn-sm { padding: .65rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

.link-gold { color: var(--gold-ink); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-gold:hover { color: var(--ink); }

/* Monograma */
.mono-s { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 124px; }
.mono-a { font-family: var(--caps); font-weight: 500; font-size: 96px; fill: var(--mono-a); }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mono { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--caps); font-weight: 600; font-size: 1.12rem; letter-spacing: .04em; color: var(--ink); }
.brand-name i { font-family: var(--serif); color: var(--gold-2); font-weight: 600; }
.brand-sub { font-size: .66rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-3); margin-top: .35rem; }
.brand-light { --mono-a: #F5F9FB; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255,255,255,.55); }

/* =============================================================
   5. Topbar & nav
   ============================================================= */
.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: .45rem; vertical-align: middle; box-shadow: 0 0 0 4px rgba(201,161,66,.18); }
.topbar-tel strong { color: var(--gold-1); font-weight: 600; }
.topbar-tel:hover strong { text-decoration: underline; }

.nav { position: sticky; top: 0; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.is-scrolled { background: rgba(245, 249, 251, .96); box-shadow: 0 10px 30px -20px rgba(12,27,48,.35); }
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(245, 249, 251, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-links { display: none; }
.nav-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center; gap: 6px; position: relative; z-index: 2; }
.nav-toggle span:not(.sr-only) { width: 20px; height: 1.6px; background: var(--ink); transition: transform .35s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

.nav.menu-open, .nav.is-scrolled.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.nav-links.is-open {
  z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .4rem;
  position: fixed; inset: 0; background: var(--paper); padding: 6rem var(--gutter) 2rem;
  animation: menuIn .45s var(--ease-out);
}
.nav-links.is-open a:not(.btn) { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; padding: .2rem 0; }
.nav-links.is-open .btn { margin-top: 1.4rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding-block: clamp(5rem, 10vw, 8.5rem); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
.section-lead { color: var(--ink-2); font-size: 1.08rem; margin-top: 1.1rem; max-width: 58ch; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 70% 40%, rgba(255,255,255,.85), transparent 70%),
    linear-gradient(180deg, var(--ice) 0%, #EAF2F7 100%);
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: clip;
}
.folds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
@media (min-width: 960px) { .folds { display: block; } }
.fold-a { fill: rgba(255,255,255,.45); }
.fold-b { fill: rgba(189, 211, 224, .35); }
.fold-line { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .85; }
.fold-line.thin { stroke-width: 1; opacity: .55; }

.hero-grid { position: relative; display: grid; gap: 3.5rem; align-items: center; }
.hero-title {
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
.hero-title em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 54ch; margin-top: 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 600px; }
.hero-proof li { display: flex; flex-direction: column; gap: .25rem; }
.hero-proof strong { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; font-weight: 600; }
.hero-proof span { font-size: .8rem; color: var(--ink-3); }

.hero-photo { position: absolute; inset: 0; display: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: heroZoom 18s var(--ease-out) both; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234,242,247,.96) 0%, rgba(234,242,247,.82) 34%, rgba(234,242,247,.18) 58%, transparent 72%), linear-gradient(0deg, rgba(234,242,247,.6), transparent 22%); }
@keyframes heroZoom { from { transform: scale(1.06); } }

.hero-figure { position: relative; border-radius: 22px; overflow: visible; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.hero-figure .seal { right: -6px; bottom: -34px; }

.seal { position: absolute; width: clamp(112px, 14vw, 160px); height: auto; aspect-ratio: 1; z-index: 3; animation: spin 40s linear infinite; filter: drop-shadow(0 12px 20px rgba(12,27,48,.25)); }
.seal-desk { display: none; }
.seal-disc { fill: var(--navy); stroke: var(--gold); stroke-width: 1; }
.seal-ring { fill: none; stroke: var(--gold); stroke-width: 1; }
.seal-text { font-family: var(--caps); font-size: 12.5px; fill: var(--gold-1); }
.seal-scale path { fill: none; stroke: var(--gold-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal-scale circle { fill: var(--gold-1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquesina ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding-block: 1.25rem; border-block: 1px solid rgba(201,161,66,.35); }
.marquee-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ¿Qué te preocupa? ---------- */
.worry { background: var(--paper); }
.worry-box { display: grid; gap: 1.5rem; }
.worry-tabs { display: flex; gap: .6rem; overflow-x: auto; overflow-y: visible; padding: .2rem .1rem 1rem; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.worry-tabs button {
  flex: none; scroll-snap-align: start;
  text-align: left; padding: .85rem 1.15rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: .92rem;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.worry-tabs button:hover { border-color: var(--gold); color: var(--ink); }
.worry-tabs button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.worry-panels { position: relative; }
.worry-panel {
  background: linear-gradient(140deg, #fff 0%, var(--ice) 100%);
  border: 1px solid rgba(201,161,66,.35);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.worry-panel { display: grid; align-content: start; }
.worry-panel + .worry-panel { margin-top: 1rem; }
.js .worry-panel { display: none; margin-top: 0; }
.js .worry-panel.is-active { display: grid; animation: panelIn .55s var(--ease-out); }
.panel-photo { order: -1; margin: calc(clamp(1.6rem, 4vw, 3rem) * -1) calc(clamp(1.6rem, 4vw, 3rem) * -1) 1.6rem; position: relative; z-index: 1; }
.panel-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; }
.worry-panel > *:not(.panel-photo) { position: relative; z-index: 1; }
.worry-panel > .btn { justify-self: start; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.worry-panel::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(201,161,66,.35); transform: rotate(45deg); }
.panel-kicker { font-family: var(--caps); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.worry-panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .6rem 0 1rem; }
.worry-panel > p { color: var(--ink-2); max-width: 62ch; }
.ticks { display: grid; gap: .55rem; margin: 1.4rem 0 1.8rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: rotate(-45deg); }

/* ---------- Áreas ---------- */
.areas { background: linear-gradient(180deg, var(--ice) 0%, var(--paper) 100%); }
.area-list { border-top: 1px solid var(--line); }
.area { border-bottom: 1px solid var(--line); }
.area summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.5rem .2rem;
  transition: padding .4s var(--ease-out), color .3s;
}
.area summary::-webkit-details-marker { display: none; }
.area summary:hover { padding-left: .8rem; }
.area-num { font-family: var(--caps); font-size: .85rem; color: var(--gold-ink); letter-spacing: .1em; }
.area-ico { width: 34px; height: 34px; fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.area-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2.25rem); line-height: 1.1; }
.area-plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.area-plus::before, .area-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.area-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.area[open] .area-plus { background: var(--ink); border-color: var(--ink); }
.area[open] .area-plus::before, .area[open] .area-plus::after { background: #fff; }
.area[open] .area-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.area-body { padding: 0 .2rem 2rem; display: grid; gap: 1.2rem; animation: panelIn .5s var(--ease-out); }
.area-body p { color: var(--ink-2); max-width: 64ch; font-size: 1.04rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .4rem .85rem; border-radius: 999px; background: #fff; border: 1px solid rgba(201,161,66,.4); font-size: .84rem; font-weight: 500; color: var(--ink-2); }

/* ---------- Urgencias ---------- */
.urgent {
  background:
    radial-gradient(50% 80% at 85% 20%, rgba(201,161,66,.16), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding-block: clamp(5rem, 9vw, 7.5rem);
  position: relative; overflow: clip;
}
.urgent::after { content: ""; position: absolute; left: -120px; bottom: -120px; width: 360px; height: 360px; border: 1px solid rgba(201,161,66,.3); transform: rotate(45deg); }
.urgent-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; opacity: .55; }
.urgent::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,27,48,.97) 0%, rgba(12,27,48,.86) 45%, rgba(12,27,48,.55) 100%); }
.urgent-grid { display: grid; gap: 3rem; position: relative; z-index: 2; }
.urgent h2 em { color: var(--gold-1); }
.urgent-head > p { color: rgba(255,255,255,.75); margin-top: 1.1rem; font-size: 1.08rem; max-width: 46ch; }
.urgent-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.urgent-steps { display: grid; gap: 1rem; counter-reset: s; }
.urgent-steps li { display: flex; gap: 1.2rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s; }
.urgent-steps li:hover { background: rgba(255,255,255,.08); border-color: rgba(201,161,66,.45); }
.step-n { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1E1606; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }
.urgent-steps h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.urgent-steps p { color: rgba(255,255,255,.72); font-size: .97rem; }

/* ---------- Método ---------- */
.steps { display: grid; gap: 1.2rem; position: relative; }
.steps li { background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; border: 1px solid var(--line); position: relative; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,161,66,.5); }
.step-roman { font-family: var(--caps); font-size: 1.8rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .8rem; }
.steps h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* ---------- El despacho ---------- */
.firm { background: var(--ice); overflow: clip; }
.firm-grid { display: grid; gap: 3rem; align-items: center; }
.firm-media { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.firm-media::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid rgba(201,161,66,.6); border-radius: 26px; }
.firm-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.firm-badge { position: absolute; left: -1rem; bottom: 2rem; width: 104px; height: 104px; border-radius: 50%; background: var(--paper); box-shadow: 0 18px 34px -14px rgba(12,27,48,.45); display: grid; place-items: center; border: 1px solid rgba(201,161,66,.5); }
.firm-badge svg { width: 78px; height: 78px; }
.firm-copy > p { color: var(--ink-2); font-size: 1.06rem; margin-top: 1.1rem; max-width: 60ch; }
.firm-copy strong { color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1.6rem; margin-top: 2.4rem; }
.pillar { border-top: 1px solid var(--gold); padding-top: 1rem; }
.pillar h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.pillar p { font-size: .92rem; color: var(--ink-2); }
.quote { margin: clamp(4rem, 8vw, 6.5rem) auto 0; width: min(1000px, 100% - 2 * var(--gutter)); text-align: center; }
.quote p { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.15; font-weight: 500; }
.quote em { color: var(--gold-2); }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; gap: 2rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.35rem 2.6rem 1.35rem 0; position: relative; font-weight: 600; font-size: 1.06rem; transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); transition: transform .4s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--gold-ink); }
.faq-list details p { padding: 0 2rem 1.5rem 0; color: var(--ink-2); animation: panelIn .45s var(--ease-out); }
.faq .section-head .btn { margin-top: 1.8rem; }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(180deg, var(--paper) 0%, var(--ice) 100%); }
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.phones { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: 2rem; }
.phones a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-radius: 14px; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.55rem; font-weight: 600; transition: border-color .3s, transform .35s var(--ease-out), box-shadow .35s; }
.phones a:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: 0 14px 28px -20px rgba(12,27,48,.5); }
.phones small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ph-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--gold-ink); font-size: 1.1rem; flex: none; }
.contact-meta { margin-top: 1.8rem; display: grid; gap: .45rem; color: var(--ink-2); }
.contact-meta .link-gold { justify-self: start; margin-top: .6rem; }

.form { background: #fff; border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); border: 1px solid rgba(201,161,66,.3); display: grid; gap: 1.1rem; position: relative; }
.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 22px 22px 0 0; background: var(--gold-grad); }
.form h3 { font-size: 2rem; margin-bottom: .3rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(29,38,46,.18); background: var(--paper);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); background: #fff; box-shadow: 0 0 0 4px rgba(201,161,66,.18); }
.field.is-invalid input, .field.is-invalid select { border-color: #B3412E; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--gold-2); flex: none; }
.check a { color: var(--gold-ink); text-decoration: underline; }
.check.is-invalid span { color: #B3412E; }
.form-note { font-size: .82rem; color: var(--ink-3); text-align: center; }
.form-note.is-error { color: #B3412E; }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: clamp(4rem, 7vw, 5.5rem); padding-bottom: 6rem; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-brand p { margin-top: 1.2rem; max-width: 34ch; font-size: .95rem; }
.footer h4 { font-family: var(--caps); font-weight: 500; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .5rem; font-size: .95rem; }
.footer ul a:hover { color: #fff; }
.footer-legal { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: .4rem; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Accesos rápidos ---------- */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: none; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); transition: transform .35s var(--ease-out); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); border-top: 1px solid rgba(201,161,66,.4); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { padding: 1rem; text-align: center; color: #fff; font-weight: 600; font-size: .95rem; }
.mobile-bar a.is-gold { background: var(--gold-grad); color: #1E1606; }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .phones { grid-template-columns: 1fr 1fr; }
  .phones a { font-size: 1.35rem; }
}
@media (min-width: 720px) {
  .section-head.split { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-legal { grid-template-columns: 1fr auto; }
  .area-body { padding-left: calc(2.6rem + 34px + 2rem); }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.8rem); font-size: clamp(.84rem, 1.1vw, .92rem); font-weight: 500; white-space: nowrap; }
  .nav-links a:not(.btn) { position: relative; padding-block: .4rem; color: var(--ink-2); transition: color .3s; }
  .nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
  .nav-links a:not(.btn):hover { color: var(--ink); }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-links .btn { color: #fff; }

  .hero { min-height: min(820px, 92svh); display: flex; align-items: center; }
  .hero-grid { width: min(1240px, 100% - 2 * var(--gutter)); }
  .hero-copy { max-width: 600px; }
  .hero-photo { display: block; }
  .hero-figure { display: none; }
  .seal-desk { display: block; right: 4%; bottom: 7%; }

  .worry-panel { grid-template-columns: 1fr minmax(220px, 34%); column-gap: 2.5rem; }
  .worry-panel > *:not(.panel-photo) { grid-column: 1; }
  .panel-photo { order: 0; grid-column: 2; grid-row: 1 / span 6; margin: calc(clamp(1.6rem, 4vw, 3rem) * -1) calc(clamp(1.6rem, 4vw, 3rem) * -1) calc(clamp(1.6rem, 4vw, 3rem) * -1) 0; }
  .panel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }

  .worry-box { grid-template-columns: 330px 1fr; gap: 2rem; align-items: start; }
  .worry-tabs { flex-direction: column; overflow: visible; padding: 0; }
  .worry-tabs button { padding: 1rem 1.2rem; }
  .worry-tabs button:hover { transform: translateX(4px); }

  .urgent-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { content: ""; position: absolute; top: 3.3rem; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); z-index: -1; }
  .firm-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .phones { grid-template-columns: 1fr; }
  .phones a { font-size: 1.6rem; }

  .mobile-bar { display: none; }
  .wa-float { display: grid; }
  .footer { padding-bottom: 3rem; }
}
@media (min-width: 1280px) {
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .phones { grid-template-columns: 1fr 1fr; }
  .phones a { font-size: 1.45rem; }
}
@media (max-width: 539px) {
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .hero-proof { grid-template-columns: 1fr 1fr; }
  .hero-proof li:last-child { grid-column: 1 / -1; }
  .brand-mono { width: 44px; height: 44px; }
  .brand-name { font-size: 1rem; }
  .area summary { grid-template-columns: auto 1fr auto; gap: .8rem; }
  .area-num { display: none; }
  .area-ico { width: 28px; height: 28px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   9. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal { animation: none; }
  .marquee-track { animation-duration: 120s; }
  .wa-float::after { animation: none; }
}
