/* =============================================================
   NORMA ARZATE · Seguridad Social — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand — from kit oficial de marca */
  --verde:        #004D40;   /* teal principal */
  --verde-deep:   #00332A;   /* footer / splash bg */
  --verde-soft:   #0C5E50;
  --dorado:       #D4B47A;   /* dorado cálido */
  --dorado-soft:  #E8CEA0;   /* dorado claro (firma) */
  --teal-acento:  #3FA693;   /* teal acento */

  /* Neutrals — warm cream editorial */
  --bg:           #FAF7F0;
  --bg-2:         #F1EAD9;
  --paper:        #FFFFFF;
  --ink:          #142420;
  --ink-soft:     #2B3B34;
  --ink-mute:     #66756D;
  --cream:        #F4EFE2;   /* text on dark green */
  --cream-mute:   rgba(244,239,226,0.72);
  --line:         rgba(20,36,32,0.12);
  --line-on-dark: rgba(244,239,226,0.18);

  /* Semantic */
  --accent:       var(--verde);
  --accent-2:     var(--dorado);
  --accent-3:     var(--teal-acento);
  --success:      #2E7D4F;

  /* Type */
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Alex Brush", "Segoe Script", cursive;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --nav-h: 84px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
@property --mesh2-x    { syntax: "<percentage>"; inherits: false; initial-value: 70%; }
@property --mesh2-y    { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  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 { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
::selection { background: var(--dorado); color: var(--verde-deep); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 780px; }
.container--wide { max-width: 1400px; }

.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: .7rem 1.2rem; background: var(--verde); color: var(--cream);
  border-radius: var(--radius-sm); font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--verde);
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dorado);
  flex: none;
}
.kicker--light { color: var(--dorado-soft); }
.kicker--light::before { background: var(--dorado-soft); }

.eyebrow-line { display: block; width: 46px; height: 2px; background: var(--dorado); margin-block: 1rem 1.4rem; }

section { position: relative; }
.section-pad { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-pad-sm { padding-block: clamp(3rem, 6vw, 5rem); }

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--ink-mute);
  max-width: 46ch;
}

.text-on-dark { color: var(--cream); }
.text-on-dark .lede, .text-on-dark p { color: var(--cream-mute); }
.text-on-dark h1, .text-on-dark h2, .text-on-dark h3, .text-on-dark h4 { color: var(--cream); }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  border-radius: 999px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--verde); color: var(--cream);
  box-shadow: 0 4px 14px rgba(0,77,64,0.18), 0 1px 3px rgba(0,77,64,0.12);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,77,64,0.28), 0 8px 18px rgba(212,180,122,0.22); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-gold {
  background: var(--dorado); color: var(--verde-deep);
  box-shadow: 0 4px 14px rgba(212,180,122,0.3);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(212,180,122,0.38); }

.btn-ghost {
  background: transparent; color: var(--verde);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--verde); background: rgba(0,77,64,0.05); }

.btn-ghost-light { color: var(--cream); border: 1.5px solid var(--line-on-dark); }
.btn-ghost-light:hover { border-color: var(--dorado); background: rgba(244,239,226,0.07); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--verde-deep);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s var(--ease-out);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav.is-scrolled {
  background: rgba(0,51,42,0.96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: .65rem; flex: none; }
.nav-logo img { height: 58px; width: 58px; border-radius: 50%; transition: height .3s var(--ease-out), width .3s var(--ease-out); flex: none; box-shadow: 0 3px 12px rgba(0,0,0,0.35), 0 0 0 2px rgba(244,239,226,0.14); }
.nav.is-scrolled .nav-logo img { height: 48px; width: 48px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-logo-text strong { font-size: .98rem; font-weight: 800; letter-spacing: .04em; color: var(--dorado-soft); text-transform: uppercase; }
.nav-logo-text small { font-size: .6rem; font-weight: 600; letter-spacing: .1em; color: var(--cream-mute); text-transform: uppercase; }
@media (max-width: 539px) { .nav-logo-text small { display: none; } }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link {
  position: relative; padding: .3rem 0;
  font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--cream);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--dorado);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--dorado-soft); font-weight: 700; }

.nav-cta { display: none; }

.nav-burger { color: var(--cream); background: rgba(244,239,226,0.12); }
.nav-burger:hover { background: rgba(244,239,226,0.2); }

/* --- Language toggle --- */
.lang-toggle {
  display: inline-flex; align-items: center; background: rgba(244,239,226,0.12);
  border-radius: 999px; padding: 3px; flex: none;
}
.lang-toggle button {
  padding: .38rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; color: var(--cream); transition: background .3s, color .3s;
}
.lang-toggle button.is-active { background: var(--dorado); color: var(--verde-deep); }
.nav-mobile .lang-toggle { background: rgba(244,239,226,0.12); margin-top: .4rem; }
.nav-mobile .lang-toggle button { color: var(--cream); }
.nav-mobile .lang-toggle button.is-active { background: var(--dorado); color: var(--verde-deep); }

/* --- Floating WhatsApp --- */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,0.55);
  transition: transform .4s var(--ease-bounce), box-shadow .4s;
  animation: waFloat 3.2s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 18px 36px -6px rgba(37,211,102,0.65); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes waFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* --- Hero rotating word --- */
.hero-rotate {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .86rem; font-weight: 600; color: var(--ink-mute); margin-bottom: 1.2rem;
}
.hero-rotate .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-acento); flex: none; animation: liveDot 1.8s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.hero-rotate-word {
  color: var(--verde); font-weight: 700; display: inline-block;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.hero-rotate-word.is-cycling { opacity: 0; transform: translateY(6px); }

/* Default to Spanish before i18n.js runs / if JS is disabled */
[data-lang-block="en"] { display: none; }
.nav-burger {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: rgba(0,77,64,0.06);
}
.nav-burger svg { width: 20px; height: 20px; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* --- Mobile menu --- */
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--verde-deep); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  clip-path: circle(2% at calc(100% - 2.6rem) 2.6rem);
  transition: clip-path .7s var(--ease-soft);
  pointer-events: none;
}
.nav-mobile[data-open="true"] { clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem); pointer-events: auto; }
.nav-mobile a { font-size: 1.5rem; font-weight: 600; color: var(--cream); }
.nav-mobile a:hover { color: var(--dorado); }
.nav-mobile .btn { margin-top: .8rem; }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(244,239,226,0.1);
}

/* --- Splash loader --- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--verde-deep);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s var(--ease-out), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.2s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-badge { width: min(240px, 46vw); animation: splashPulse 2.4s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: .96; } 50% { transform: scale(1.035); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash-badge { animation: none; } }

/* --- Cards --- */
.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s;
}
.has-tilt { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.has-tilt:hover { transition-duration: .15s; }
.card:hover {
  border-color: rgba(212,180,122,0.5);
  box-shadow: 0 40px 80px -24px rgba(0,77,64,0.22), 0 14px 30px -12px rgba(20,36,32,0.14);
}
.has-halo { isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(212,180,122,.22), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.has-halo:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.4rem;
  background: rgba(0,77,64,0.08); color: var(--verde);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .95rem; color: var(--ink-mute); }

/* --- Stat / count-up --- */
.stat { text-align: center; }
.stat-num {
  font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; color: var(--verde);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-num .unit { font-size: .5em; font-weight: 600; margin-left: .15em; color: var(--dorado); }
.stat-label { margin-top: .5rem; font-size: .82rem; color: var(--ink-mute); letter-spacing: .02em; }
.text-on-dark .stat-num { color: var(--dorado-soft); }
.text-on-dark .stat-label { color: var(--cream-mute); }

/* --- Marquee --- */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee-light::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-light::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-dark::before { left: 0; background: linear-gradient(90deg, var(--verde-deep), transparent); }
.marquee-dark::after { right: 0; background: linear-gradient(270deg, var(--verde-deep), transparent); }
.marquee-track { display: inline-flex; gap: 3.2rem; white-space: nowrap; will-change: transform; align-items: center; }
.marquee-item { display: inline-flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 600; letter-spacing: .02em; color: var(--verde); }
.marquee-dark .marquee-item { color: var(--cream); }
.marquee-item svg { width: 16px; height: 16px; color: var(--dorado); flex: none; }

/* --- Badge seal --- */
.seal { display: inline-flex; align-items: center; gap: .8rem; padding: .6rem 1.1rem .6rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seal img { width: 52px; height: 52px; border-radius: 50%; }
.seal-text { display: flex; flex-direction: column; line-height: 1.25; }
.seal-text strong { font-size: .82rem; color: var(--verde); }
.seal-text span { font-size: .74rem; color: var(--ink-mute); }

/* --- Forms --- */
.field { position: relative; margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: .96rem; font-weight: 400;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(0,77,64,0.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: .78rem; color: var(--ink-mute); margin-top: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.form-status {
  margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: rgba(178,44,44,0.08); color: #7A1F1F; }
.form-status.is-success { background: rgba(46,125,79,0.1); color: #1F5233; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--nav-h) + 3.2rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1;
  background:
    radial-gradient(50% 42% at var(--mesh-x) var(--mesh-y), rgba(0,77,64,.22), transparent 65%),
    conic-gradient(from var(--mesh-angle), rgba(212,180,122,.26), rgba(63,166,147,.16), rgba(0,77,64,.2), rgba(212,180,122,.26));
  filter: blur(85px) saturate(130%);
  opacity: .95;
  animation: meshShift 22s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 10% -15% -25% -15%; height: 120%; z-index: -1;
  background: radial-gradient(38% 36% at var(--mesh2-x) var(--mesh2-y), rgba(63,166,147,.24), transparent 70%);
  filter: blur(95px) saturate(130%);
  opacity: .8;
  animation: meshShift2 31s ease-in-out infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 14%; --mesh-y: 22%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 82%; --mesh-y: 62%; }
  100% { --mesh-angle: 360deg; --mesh-x: 14%; --mesh-y: 22%; }
}
@keyframes meshShift2 {
  0%   { --mesh2-x: 78%; --mesh2-y: 20%; }
  50%  { --mesh2-x: 22%; --mesh2-y: 70%; }
  100% { --mesh2-x: 78%; --mesh2-y: 20%; }
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }

.hero-eyebrow { margin-bottom: 1.3rem; }
.hero-title { margin-bottom: 1.3rem; }
.hero-title .script-word { display: block; font-size: 1.35em; line-height: .82; margin-bottom: .12em; }
.hero-lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-trust-item { display: flex; align-items: center; gap: .6rem; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--verde); flex: none; }

.hero-visual { position: relative; }
.hero-badge-ring {
  position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto;
  border-radius: 50%; background: var(--verde-deep);
  display: grid; place-items: center;
  box-shadow: 0 50px 100px -30px rgba(0,77,64,0.45);
}
.hero-badge-ring::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed rgba(212,180,122,0.45);
  animation: spinSlow 40s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-badge-ring img { width: 92%; height: 92%; border-radius: 50%; object-fit: cover; }
.hero-visual-chip {
  position: absolute; bottom: 6%; left: -6%;
  background: var(--paper); border-radius: var(--radius-md); padding: 1rem 1.3rem;
  box-shadow: 0 24px 50px -18px rgba(20,36,32,0.28); border: 1px solid var(--line);
  display: flex; align-items: center; gap: .8rem; max-width: 240px;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), border-color .3s;
}
.hero-visual-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -16px rgba(20,36,32,0.34);
  border-color: var(--dorado);
}
.hero-visual-chip svg { width: 30px; height: 30px; color: var(--dorado); flex: none; }
.hero-visual-chip strong { display: block; font-size: .9rem; color: var(--verde); }
.hero-visual-chip span { font-size: .76rem; color: var(--ink-mute); }

/* --- YouTube stats banner --- */
.yt-banner {
  background: var(--verde-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; gap: 2rem;
  position: relative; overflow: hidden; isolation: isolate;
}
.yt-banner::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 160%; z-index: -1;
  background: radial-gradient(50% 45% at 80% 20%, rgba(212,180,122,.22), transparent 70%);
  filter: blur(60px);
}
@media (min-width: 860px) { .yt-banner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; } }
.yt-banner-head { display: flex; align-items: center; gap: 1rem; }
.yt-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--dorado); display: grid; place-items: center; flex: none; }
.yt-icon svg { width: 26px; height: 26px; color: var(--verde-deep); }
.yt-banner-head h3 { color: var(--cream); margin-bottom: .2rem; }
.yt-banner-head p { color: var(--cream-mute); font-size: .88rem; }
.yt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.yt-banner .btn { flex: none; }
.yt-banner-actions { display: flex; flex-direction: column; align-items: center; gap: .7rem; flex: none; }
.yt-banner-actions .btn { display: inline-flex; align-items: center; gap: .5rem; }
.yt-banner-link { font-size: .82rem; font-weight: 600; color: var(--dorado-soft); white-space: nowrap; transition: color .25s; }
.yt-banner-link:hover { color: var(--cream); }
@media (max-width: 859px) { .yt-banner-actions { align-items: flex-start; margin-top: .5rem; } }

/* --- Bento / services --- */
.bento { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(220px, auto); }
  .bento .card:nth-child(1) { grid-column: span 7; }
  .bento .card:nth-child(2) { grid-column: span 5; }
  .bento .card:nth-child(3) { grid-column: span 5; }
  .bento .card:nth-child(4) { grid-column: span 7; }
}

/* --- Manifesto / about --- */
.manifesto { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .manifesto { grid-template-columns: .44fr .56fr; gap: 4rem; align-items: center; } }
.manifesto-figure {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4/5; width: 100%; max-width: 420px;
  background: linear-gradient(160deg, var(--verde), var(--verde-deep));
  box-shadow: 0 50px 90px -30px rgba(0,77,64,0.4);
}
.manifesto-figure img:not(.manifesto-figure-seal img) { width: 100%; height: 100%; object-fit: cover; display: block; }
.manifesto-figure-seal {
  position: absolute; right: -18px; bottom: -18px; width: 96px; height: 96px; border-radius: 50%;
  background: var(--paper); padding: 8px; box-shadow: 0 20px 40px -12px rgba(20,36,32,0.35);
}
.manifesto-figure-seal img { width: 100%; height: 100%; border-radius: 50%; }

/* --- Steps --- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.2rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--verde); color: var(--cream);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}

/* --- CTA final --- */
.cta-final {
  background: var(--verde-deep); border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 5rem); text-align: center; position: relative; overflow: hidden; isolation: isolate;
}
.cta-final::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 180%; z-index: -1;
  background: radial-gradient(55% 45% at 50% 30%, rgba(212,180,122,.25), transparent 70%);
  filter: blur(70px);
}
.cta-final .lede { margin-inline: auto; }
.cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* --- Footer --- */
.footer { background: var(--verde-deep); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.6rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 2rem; } }
.footer-brand-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 52px; width: 52px; border-radius: 50%; flex: none; }
.footer-brand-head strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; color: var(--dorado-soft); text-transform: uppercase; }
.footer-brand-head small { display: block; font-size: .68rem; color: var(--cream-mute); letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem; }
.footer-brand p { font-size: .88rem; color: var(--cream-mute); max-width: 30ch; }
.footer h4 { color: var(--dorado-soft); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul li { margin-bottom: .65rem; }
.footer a { font-size: .9rem; color: var(--cream-mute); transition: color .25s; }
.footer a:hover { color: var(--dorado); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(244,239,226,0.08);
  display: grid; place-items: center; transition: background .3s, transform .3s;
}
.footer-social a:hover { background: var(--dorado); color: var(--verde-deep); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-on-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--cream-mute);
}
.footer-bottom ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--dorado); }

/* --- Page header (subpages) --- */
.page-header { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--bg-2); }
.page-header .kicker { margin-bottom: 1rem; }
.page-header .lede { margin-top: 1rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--verde); }

/* --- Legal pages --- */
.legal-doc { max-width: 780px; margin-inline: auto; }
.legal-doc h2 { font-size: 1.4rem; margin-top: 2.6rem; margin-bottom: .9rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { font-size: .96rem; color: var(--ink-soft); margin-bottom: .9rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-doc ul li { list-style: disc; }
.legal-doc ol li { list-style: decimal; }
.legal-doc strong { color: var(--ink); }
.legal-doc .updated { font-size: .82rem; color: var(--ink-mute); margin-bottom: 2rem; }
.legal-doc a { color: var(--verde); text-decoration: underline; text-underline-offset: 3px; }

/* --- Agenda / booking --- */
.booking {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: 0 40px 90px -40px rgba(20,36,32,0.25);
}
.booking-progress { display: flex; align-items: center; gap: .5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.booking-progress-step {
  display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--ink-mute);
}
.booking-progress-step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: .74rem; color: var(--ink-mute); transition: background .3s, color .3s; }
.booking-progress-step.is-active .dot, .booking-progress-step.is-done .dot { background: var(--verde); color: var(--cream); }
.booking-progress-step.is-active { color: var(--verde); }
.booking-progress-sep { flex: 1; height: 1px; background: var(--line); min-width: 16px; }

.service-picker { display: grid; gap: .9rem; }
@media (min-width: 640px) { .service-picker { grid-template-columns: 1fr 1fr; } }
.service-option {
  border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.3rem;
  cursor: pointer; transition: border-color .3s, background .3s;
  display: flex; flex-direction: column; gap: .3rem;
}
.service-option:hover { border-color: var(--dorado); }
.service-option.is-selected { border-color: var(--verde); background: rgba(0,77,64,0.05); }
.service-option strong { font-size: .96rem; color: var(--ink); }
.service-option span.price { font-size: .84rem; color: var(--verde); font-weight: 700; }
.service-option span.duration { font-size: .78rem; color: var(--ink-mute); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .6rem; }
.slot-btn {
  padding: .75rem .5rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-size: .84rem; font-weight: 600; text-align: center; color: var(--ink-soft);
  transition: border-color .25s, background .25s, color .25s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--dorado); }
.slot-btn.is-selected { background: var(--verde); border-color: var(--verde); color: var(--cream); }
.slot-btn:disabled { opacity: .32; text-decoration: line-through; cursor: not-allowed; }

.booking-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.booking-summary { background: var(--bg-2); border-radius: var(--radius-md); padding: 1.3rem 1.5rem; margin-bottom: 1.6rem; font-size: .9rem; }
.booking-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.booking-summary dt { color: var(--ink-mute); }
.booking-summary dd { font-weight: 600; color: var(--ink); text-align: right; }

.booking-panel { display: none; }
.booking-panel.is-active { display: block; animation: fadeUp .5s var(--ease-soft); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.booking-loading { display: flex; align-items: center; gap: .7rem; color: var(--ink-mute); font-size: .88rem; padding: 1rem 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--verde); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.booking-result { text-align: center; padding: 2rem 0; }
.booking-result svg { width: 64px; height: 64px; margin-inline: auto 1.2rem; color: var(--success); }
.booking-result.is-error svg { color: #B22C2C; }

/* --- Contact map --- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-info-list { display: grid; gap: 1.4rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; flex: none; }
.contact-info-item h4 { margin-bottom: .3rem; }
.contact-info-item p, .contact-info-item a { font-size: .9rem; color: var(--ink-mute); }
.contact-info-item a:hover { color: var(--verde); }

/* =============================================================
   7. Effects
   ============================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: rgba(20,36,32,0.06); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--verde), var(--dorado)); transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear; }

/* =============================================================
   8. Responsive breakpoints reference — mobile first
   ============================================================= */
@media (min-width: 540px)  { }
@media (min-width: 720px)  { }
@media (min-width: 960px)  { }
@media (min-width: 1280px) { }

/* =============================================================
   9. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .yt-banner::before, .cta-final::before { animation: none; }
  .hero-badge-ring::before { animation: none; }
  .splash-badge { animation: none; }
}

/* =============================================================
   10. Componentes de subpáginas
   (servicios, agenda, contacto, legales)
   ============================================================= */

/* --- Tarjetas de servicio (servicios.html) --- */
.service-cards { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
.service-cards .card { display: flex; flex-direction: column; }
.service-cards .card > p { flex: 1; }

.service-meta {
  display: grid; gap: .55rem;
  margin-top: 1.3rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.service-meta li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .86rem; color: var(--ink-mute);
}
.service-meta svg { width: 17px; height: 17px; color: var(--dorado); flex: none; }

.service-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.service-price {
  font-size: 1.45rem; font-weight: 700; color: var(--verde);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.service-price small { font-size: .5em; font-weight: 600; color: var(--ink-mute); margin-left: .2em; }

/* --- FAQ --- */
.faq { display: grid; gap: .8rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(212,180,122,.55); box-shadow: 0 18px 40px -24px rgba(0,77,64,.26); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--verde); }
.faq-chevron {
  position: relative; width: 14px; height: 14px; flex: none;
  transition: transform .35s var(--ease-out);
}
.faq-chevron::before, .faq-chevron::after {
  content: ""; position: absolute; background: var(--verde); border-radius: 2px;
}
.faq-chevron::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-chevron::after  { left: 6px; top: 0; width: 2px; height: 14px; transition: opacity .35s var(--ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] .faq-chevron::after { opacity: 0; }
.faq-body { padding: 0 1.5rem 1.4rem; }
.faq-body p { font-size: .95rem; color: var(--ink-mute); margin: 0; }

/* --- Agenda --- */
.booking-title { font-size: 1.3rem; margin-bottom: 1.5rem; }

.service-option { text-align: left; }
.service-option .price { margin-top: .35rem; }

.consent {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .88rem; color: var(--ink-mute); margin-top: .4rem;
}
.consent input { margin-top: .22rem; width: 17px; height: 17px; accent-color: var(--verde); flex: none; }
.consent a { color: var(--verde); text-decoration: underline; text-underline-offset: 2px; }

.booking-send {
  display: grid; gap: .8rem; justify-items: center;
  margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.booking-send .btn { max-width: 420px; }
.booking-or { font-size: .82rem; color: var(--ink-mute); }

.booking-result h2 { margin-bottom: .8rem; }
.booking-result svg { margin: 0 auto 1.2rem; }

/* --- Contacto --- */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

/* --- Legales --- */
.lang-notice {
  padding: .9rem 1.1rem; border-left: 3px solid var(--dorado);
  background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem; color: var(--ink-mute); margin-bottom: 2rem;
}
.legal-doc .legal-foot {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-mute);
}

/* --- Cabecera de subpágina: el h1 necesita menos peso que el del hero --- */
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* =============================================================
   11. Correcciones responsive
   ============================================================= */

/* El banner de YouTube se recortaba en móvil: el hijo flexible no podía
   encogerse (min-width:auto por defecto) y las 3 columnas de estadísticas
   no caben por debajo de ~420px. */
.yt-banner-head > div { min-width: 0; }
.yt-banner-head h3,
.yt-banner-head p { overflow-wrap: anywhere; }

@media (max-width: 859px) {
  .yt-stats { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 1rem .8rem; }
  .yt-stats .stat-num { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}

/* El chip del hero sobresalía del contenedor en pantallas angostas. */
@media (max-width: 700px) {
  .hero-visual-chip { left: 0; bottom: 2%; max-width: min(240px, 72vw); }
}
