/* =============================================================
   ESTUDIO JURÍDICO EDR — styles.css
   Archetype: Editorial Light Cream (layout/effects mechanics)
   Palette: "Clásica" — azul marino, blanco, gris claro, dorado sobrio
   Priority: readability for older adults (18px base, generous
   line-height, high contrast, no disorienting motion).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — Clásica (navy / white / light gray / soft gold). NO RED anywhere. */
  --navy:        #12294d;
  --navy-2:      #1c3a63;
  --navy-deep:   #0a1c34;
  --white:       #ffffff;
  --bg:          #f6f7fa;
  --bg-soft:     #eef1f6;
  --paper:       #ffffff;
  --ink:         #16233a;
  --ink-soft:    #3b4a63;
  --ink-mute:    #5d6b86;
  --gold:        #a9843c;
  --gold-soft:   #cdae74;
  --gold-line:   rgba(169,132,60,0.35);
  --line:        rgba(22,35,58,0.14);
  --line-soft:   rgba(22,35,58,0.08);
  --success:     #2f6f4f;
  --whatsapp:    #25d366;
  --whatsapp-dark: #1ea952;
  --shadow-1:    0 1px 2px rgba(10,28,52,0.06);
  --shadow-2:    0 12px 30px -10px rgba(10,28,52,0.18);
  --shadow-3:    0 30px 60px -20px rgba(10,28,52,0.24);

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

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 92px;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  font-size: 112.5%;              /* 18px base — readability for older adults */
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;               /* generous line-height */
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { 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; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  font-weight: 600;
}
strong { font-weight: 600; }
::selection { background: var(--gold-soft); color: var(--navy-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.85rem 1.3rem; background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold);
  display: inline-block;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-soft { background: var(--bg-soft); }
.section-paper { background: var(--paper); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 0.6rem; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; color: var(--ink-soft); }
.section-head.center { margin-inline: auto; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600; color: var(--navy-2);
}

/* =============================================================
   4. Buttons & CTAs
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.7rem; min-height: 52px;
  border-radius: 999px; font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #8f6e30; }

.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-soft); }

.btn-ghost-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(246,247,250,0.0);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav-inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 720px) { .nav-inner { padding-inline: 2rem; } }

.nav.is-scrolled, .nav.is-static {
  background: rgba(255,255,255,0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .nav.is-scrolled, .nav.is-static { background: rgba(255,255,255,0.98); }
}

.brand {
  display: flex; flex-direction: column; line-height: 1.15;
  font-family: var(--serif); font-weight: 700; color: var(--white);
  transition: color .4s var(--ease-out);
}
.brand-name { font-size: 1.28rem; }
.brand-tag { font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft);
  transition: color .4s var(--ease-out); }

.nav-links {
  display: none;
  align-items: center; gap: 1.9rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  position: relative; padding: 0.3rem 0; font-weight: 600; font-size: 0.98rem;
  color: rgba(255,255,255,0.88);
  transition: color .4s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--white); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

/* Scrolled / static nav sits on a white background — switch to dark text */
.nav.is-scrolled .brand, .nav.is-static .brand { color: var(--navy); }
.nav.is-scrolled .brand-tag, .nav.is-static .brand-tag { color: var(--gold); }
.nav.is-scrolled .nav-link, .nav.is-static .nav-link { color: var(--ink-soft); }
.nav.is-scrolled .nav-link:hover, .nav.is-static .nav-link:hover,
.nav.is-scrolled .nav-link[aria-current="page"], .nav.is-static .nav-link[aria-current="page"] { color: var(--navy); }
.nav.is-scrolled .nav-burger span, .nav.is-static .nav-burger span { background: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-cta-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.15rem; border-radius: 999px;
  background: var(--whatsapp); color: var(--white); font-weight: 700; font-size: 0.92rem;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-soft), background-color .3s;
}
.nav-cta-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.nav-cta-whatsapp svg { width: 18px; height: 18px; }
@media (max-width: 539px) { .nav-cta-whatsapp .cta-label { display: none; } }

.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
}
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block; height: 2.5px; width: 100%; background: var(--white); border-radius: 2px;
  transition: transform .35s var(--ease-soft), opacity .35s var(--ease-soft), background-color .4s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 290;
  background: var(--navy);
  display: grid; place-items: center; padding: 6rem 1.5rem 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile-list a {
  font-family: var(--serif); font-size: 1.7rem; color: var(--white); font-weight: 600;
}
.nav-mobile-list a[aria-current="page"] { color: var(--gold-soft); }
.nav-mobile-foot { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 92svh;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  color: var(--white);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  animation: heroAmbient 34s ease-in-out infinite;
}
@keyframes heroAmbient {
  0%, 100% { transform: scale(1.02); }
  50%      { transform: scale(1.07); }
}
.hero-bg-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,28,52,0.86) 0%, rgba(18,41,77,0.82) 45%, rgba(10,28,52,0.92) 100%);
}
.hero-inner { padding-block: clamp(3rem, 8vw, 5rem); max-width: 44rem; }
.hero-inner.wide { max-width: 52rem; }
.hero-eyebrow { color: var(--gold-soft); }
.hero-eyebrow::before { background: var(--gold-soft); }
.hero-title {
  color: var(--white);
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  margin-top: 1rem;
  line-height: 1.1;
}
.hero-title em { color: var(--gold-soft); font-style: italic; }
.hero-sub {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.88); max-width: 42ch; line-height: 1.65;
}
.hero-ctas { margin-top: 2.2rem; }
.hero-trustbar {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem;
  padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.2);
}
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-num { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-soft); font-weight: 700; }
.trust-label { font-size: 0.86rem; color: rgba(255,255,255,0.78); max-width: 16ch; }

/* Page hero (interior pages, no photo, navy background) */
.page-hero {
  background: var(--navy); color: var(--white);
  padding-top: calc(var(--nav-h) + clamp(2.6rem, 6vw, 4.2rem));
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-top: 0.8rem; }
.page-hero p { margin-top: 1.1rem; font-size: 1.12rem; color: rgba(255,255,255,0.86); max-width: 46rem; line-height: 1.7; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero .cta-row { margin-top: 1.8rem; }

/* =============================================================
   7. Pull-quote (anchor phrase)
   ============================================================= */
.pullquote {
  position: relative;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 5vw, 3.6rem);
  background: var(--bg-soft);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p {
  font-family: var(--serif); font-style: italic; color: var(--navy);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.45;
}
.pullquote cite {
  display: block; margin-top: 1.2rem; font-style: normal; font-size: 0.95rem;
  color: var(--ink-mute); font-weight: 600;
}

/* =============================================================
   8. Cards
   ============================================================= */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .45s;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--gold-line); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-soft); color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card-link {
  margin-top: auto; font-weight: 700; color: var(--navy); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding-top: 0.4rem;
}
.card-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }
.card-flagship { border-color: var(--gold-line); background: linear-gradient(180deg, #fffaf0, var(--paper) 60%); }
.card-flagship .card-icon { background: var(--gold); color: var(--white); }
.card-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold); background: rgba(169,132,60,0.12);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* =============================================================
   9. Service detail blocks (servicios.html)
   ============================================================= */
.service-block {
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 1.2rem);
}
.service-block:first-of-type { border-top: 0; }
.service-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.9rem 1.4rem; }
.service-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.service-grid {
  margin-top: 1.6rem; display: grid; gap: 1.6rem; grid-template-columns: 1fr;
}
@media (min-width: 960px) { .service-grid { grid-template-columns: 1.1fr 0.9fr; } }
.service-col h4 {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--navy-2); margin-bottom: 0.6rem;
}
.service-col p, .service-col li { color: var(--ink-soft); }
.service-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.service-col li { position: relative; padding-left: 1.4rem; }
.service-col li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}
.service-cta { margin-top: 1.6rem; }

/* =============================================================
   10. FAQ accordion (native <details> — works without JS)
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: clip;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.3rem 1.6rem; font-weight: 700; font-size: 1.05rem; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-soft); color: var(--navy);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 400;
  transition: transform .35s var(--ease-soft), background-color .3s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--white); }
.faq-answer { padding: 0 1.6rem 1.5rem; color: var(--ink-soft); font-size: 1rem; max-width: 62ch; }

/* =============================================================
   11. Process / steps
   ============================================================= */
.steps { counter-reset: step; display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { display: flex; flex-direction: column; gap: 0.7rem; }
.step-num {
  counter-increment: step;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--gold);
}
.step-num::before { content: counter(step, decimal-leading-zero) "."; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* =============================================================
   12. Audience chips (público objetivo)
   ============================================================= */
.audience-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-chip {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.1rem 1.3rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.audience-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.audience-chip span { font-weight: 600; color: var(--ink); }

/* =============================================================
   13. Blog idea cards
   ============================================================= */
.blog-card { position: relative; }
.blog-card .card-tag { position: absolute; top: 1.4rem; right: 1.4rem; }

/* =============================================================
   14. Forms
   ============================================================= */
.form-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.95rem 1.05rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18,41,77,0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-check { display: flex; align-items: flex-start; gap: 0.7rem; }
.field-check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--navy); }
.field-check label { font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }

.form-helper {
  margin-top: 1.2rem; font-size: 0.88rem; color: var(--ink-mute);
  padding: 1rem 1.1rem; background: var(--bg-soft); border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.form-error {
  display: none; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--navy);
  padding: 0.9rem 1.1rem; background: var(--bg-soft); border-radius: var(--radius-sm);
  border-left: 3px solid var(--navy-2);
}
.form-error a { color: var(--navy); text-decoration: underline; }
.form-error.is-visible { display: block; }

.cta-form { position: relative; transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; inset: 0; }
.form-submit { position: relative; width: 100%; }
.form-submit-label { transition: opacity .2s; }
.form-submit-spinner {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
}
.is-sending .form-submit-label { opacity: 0; }
.is-sending .form-submit-spinner { display: flex; }
.form-submit-spinner::after {
  content: ""; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none; text-align: center; padding: 2.4rem 1.5rem;
}
.form-success.is-visible { display: block; }
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin-inline: auto 1.2rem;
  background: rgba(47,111,79,0.12); color: var(--success);
  display: grid; place-items: center;
}
.form-success h3 { margin-top: 1rem; color: var(--navy); }
.form-success p { margin-top: 0.6rem; color: var(--ink-soft); }

/* =============================================================
   15. Contact info panel
   ============================================================= */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.95fr 1.15fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.6rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--bg-soft); color: var(--navy); display: grid; place-items: center;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { font-size: 1rem; color: var(--navy); }
.contact-info-item p, .contact-info-item a { color: var(--ink-soft); font-size: 1rem; }
.contact-info-item a:hover { color: var(--navy); text-decoration: underline; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); }
.footer-top {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  display: grid; gap: 2.6rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: rgba(255,255,255,0.68); font-size: 0.95rem; }
.footer h5 {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 0.98rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-whatsapp {
  margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--white); font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* =============================================================
   17. WhatsApp floating button (site-wide)
   ============================================================= */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 400;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.55), 0 2px 8px rgba(10,28,52,0.2);
  transition: transform .35s var(--ease-soft), box-shadow .35s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); background: var(--whatsapp-dark); }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 720px) { .wa-float { width: 68px; height: 68px; } .wa-float svg { width: 34px; height: 34px; } }

/* =============================================================
   18. Reveal on scroll (defensive)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensive: split-text-like elements never get stuck invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   19. Legal / aviso-legal page typography
   ============================================================= */
.legal-content { max-width: 68ch; }
.legal-content h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); margin-top: 0.9rem; }
.legal-content ul { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-content li { position: relative; padding-left: 1.3rem; margin-top: 0; }
.legal-content li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}
.legal-updated { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-mute); }

/* =============================================================
   20. Credits page
   ============================================================= */
.credits-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.credits-list li {
  padding: 1.1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: 0.95rem;
}
.credits-list a { color: var(--navy); font-weight: 600; }
.credits-list a:hover { text-decoration: underline; }

/* =============================================================
   21. Responsive breakpoints (structural, mobile-first already applied above)
   ============================================================= */
@media (min-width: 540px) { }
@media (min-width: 720px) { }
@media (min-width: 960px) { }
@media (min-width: 1280px) { .container { padding-inline: 0; } }
@media (min-width: 1600px) { }

/* =============================================================
   22. Reduced motion — only the truly intrusive gets gated
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  /* Everything else (hover lifts, reveals, accordion, count-up) keeps running */
}

/* =============================================================
   23. View Transitions API (multi-page, zero-JS)
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: fadeOutUp .5s var(--ease-out); }
  ::view-transition-new(root) { animation: fadeInUp .5s var(--ease-out); }
  @keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes fadeInUp  { from { opacity: 0; transform: translateY(10px); } }
}

/* =============================================================
   24. Print
   ============================================================= */
@media print {
  .nav, .wa-float, .nav-mobile { display: none !important; }
}
