/* =========================================================
   Asesoría Rivas — Editorial claro crema · acento terracota
   Tokens en :root. Mobile-first. Efectos ligeros.
   ========================================================= */

:root {
  /* Color */
  --bg:        #f6f2ea;
  --bg-alt:    #efe8db;
  --surface:   #fffdf8;
  --ink:       #241f1a;
  --ink-soft:  #5c534a;
  --ink-mute:  #857b70;
  --line:      #e4dbcb;
  --line-soft: #ede5d6;
  --acento:    #a8492f;
  --acento-600:#8c3b24;
  --acento-100:#f3e4dc;
  --dark:      #221d18;
  --dark-2:    #2c261f;
  --on-dark:   #f3ede2;
  --on-dark-soft:#c9bfb0;

  /* Tipografía */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Escala de espaciado */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;
  --s7: 6.5rem;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(40,30,20,.04), 0 12px 32px -18px rgba(60,40,25,.28);
  --shadow-lg: 0 30px 60px -30px rgba(60,40,25,.45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s2); }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.25rem); }
.sr-only, .skip-link { 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:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 200; background: var(--ink); color: var(--on-dark); padding: .6rem 1rem; border-radius: 8px; }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acento); margin: 0 0 var(--s2); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.28rem); color: var(--ink-soft); }

/* Foco accesible visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--acento);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-solid { background: var(--acento); color: #fff; box-shadow: 0 14px 26px -14px rgba(168,73,47,.7); }
.btn-solid:hover { background: var(--acento-600); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.on-dark .btn-outline { color: var(--on-dark); border-color: rgba(243,237,226,.35); }
.on-dark .btn-outline:hover { border-color: var(--on-dark); }

/* Botón de teléfono en la cabecera */
.btn-phone {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--ink); color: var(--on-dark); text-decoration: none;
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn-phone:hover { background: var(--acento); transform: translateY(-2px); }
.btn-phone-ico { display: inline-flex; }
.btn-phone-label { color: var(--on-dark-soft); font-weight: 500; margin-right: .15rem; }
.btn-phone:hover .btn-phone-label { color: #fff; }

/* ---------- Cabecera ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(60,40,25,.5); }
.head-inner { display: flex; align-items: center; gap: var(--s3); padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--acento); color: #fff; border-radius: 12px;
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1;
  box-shadow: 0 10px 20px -12px rgba(168,73,47,.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; }
.brand-tag { font-size: .72rem; letter-spacing: .04em; color: var(--ink-mute); }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; gap: var(--s3); align-items: center; }
.nav-menu a { text-decoration: none; color: var(--ink-soft); font-size: .96rem; font-weight: 500; position: relative; padding: .3rem 0; transition: color .18s var(--ease); }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--acento); transition: right .25s var(--ease); }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a:hover::after { right: 0; }
.nav-toggle { display: none; }

/* ---------- Secciones ---------- */
section { position: relative; overflow-x: clip; }
.section { padding-block: clamp(3.2rem, 8vw, var(--s7)); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: var(--s5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); margin-bottom: var(--s2); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.8rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600;
  color: var(--acento-600); background: var(--acento-100); padding: .45rem .9rem; border-radius: 999px; margin-bottom: var(--s3);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acento); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.3rem); letter-spacing: -0.02em; margin-bottom: var(--s3); }
.hero h1 em { font-style: italic; color: var(--acento); }
.hero-sub { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: var(--s4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.hero-fine { margin-top: var(--s3); font-size: .9rem; color: var(--ink-mute); display: flex; align-items: center; gap: .5rem; }
.hero-fine svg { color: var(--acento); flex: none; }

/* Tarjeta lateral del hero */
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow-lg); position: relative;
}
.hero-card h2 { font-size: 1.15rem; margin-bottom: var(--s3); }
.hero-card-list { list-style: none; display: grid; gap: var(--s2); }
.hero-card-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.hero-card-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--acento-100); color: var(--acento-600); display: grid; place-items: center; margin-top: 1px; }
.hero-card-foot { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-soft); display: flex; align-items: baseline; gap: .6rem; }
.hero-card-foot strong { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.hero-card-foot span { font-size: .88rem; color: var(--ink-mute); }

/* ---------- Barra de confianza ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; justify-content: space-between; padding-block: 1.15rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-soft); }
.trust-item strong { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.trust-item svg { color: var(--acento); flex: none; }

/* ---------- Problema / situación ---------- */
.problem-grid { display: grid; gap: var(--s3); }
.problem-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s3); }
.problem-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.problem-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.problem-card .q { font-family: var(--serif); font-style: italic; color: var(--acento); font-size: 1.4rem; display: block; margin-bottom: .6rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: var(--s3); }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--acento-100); }
.service-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--acento-100); color: var(--acento-600); display: grid; place-items: center; margin-bottom: var(--s3); }
.service h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service p { color: var(--ink-soft); font-size: .97rem; margin-bottom: var(--s3); }
.service ul { list-style: none; display: grid; gap: .45rem; margin-top: auto; }
.service ul li { position: relative; padding-left: 1.3rem; font-size: .92rem; color: var(--ink-soft); }
.service ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }
.service.featured { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.service.featured h3, .service.featured p { color: var(--on-dark); }
.service.featured p, .service.featured ul li { color: var(--on-dark-soft); }
.service.featured .service-ico { background: rgba(168,73,47,.25); color: #f0b9a8; }
.service.featured ul li::before { background: var(--acento); }
.service-tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #f0b9a8; background: rgba(168,73,47,.2); padding: .3rem .7rem; border-radius: 999px; margin-bottom: var(--s3); }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: var(--s3); counter-reset: paso; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step-num {
  counter-increment: paso; font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--acento);
}
.step-num::before { content: counter(paso, decimal-leading-zero); }
.step h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Nosotros ---------- */
.about { background: var(--dark); color: var(--on-dark); }
.about .section-head h2 { color: #fff; }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.35; color: #fff; margin-bottom: var(--s4); }
.about-lead em { font-style: italic; color: #f0b9a8; }
.about-body p { color: var(--on-dark-soft); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-top: var(--s4); }
.about-stat { border-left: 2px solid var(--acento); padding-left: var(--s3); }
.about-stat strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); color: #fff; line-height: 1; }
.about-stat span { font-size: .9rem; color: var(--on-dark-soft); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: var(--s3); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); position: relative; }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--acento-100); position: absolute; top: .5rem; left: 1.2rem; }
.quote p { position: relative; font-size: 1.05rem; color: var(--ink); margin-bottom: var(--s3); }
.quote-who { display: flex; align-items: center; gap: .8rem; }
.quote-av { width: 42px; height: 42px; border-radius: 50%; background: var(--acento-100); color: var(--acento-600); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; flex: none; }
.quote-who b { display: block; font-size: .95rem; font-weight: 600; }
.quote-who span { font-size: .85rem; color: var(--ink-mute); }

/* ---------- Precio / transparencia ---------- */
.pricing { display: grid; gap: var(--s3); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); text-align: center; }
.price-card .ico { width: 46px; height: 46px; margin: 0 auto var(--s3); border-radius: 12px; background: var(--acento-100); color: var(--acento-600); display: grid; place-items: center; }
.price-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.price-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- CTA banda ---------- */
.cta-band { background: linear-gradient(135deg, var(--acento) 0%, var(--acento-600) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: var(--s2); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 34rem; margin: 0 auto var(--s4); }
.cta-band .btn-solid { background: #fff; color: var(--acento-600); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.cta-band .btn-solid:hover { background: var(--ink); color: #fff; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--s2); max-width: 46rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform .25s var(--ease); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: var(--acento); border-radius: 2px; }
.faq-item summary .plus::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-item summary .plus::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: opacity .25s var(--ease); }
.faq-item[open] summary .plus::after { opacity: 0; }
.faq-answer { padding: 0 var(--s3) 1.2rem; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-aside h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--s2); }
.contact-aside p { color: var(--ink-soft); }
.contact-methods { list-style: none; display: grid; gap: var(--s2); margin-top: var(--s4); }
.contact-method { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s2) var(--s3); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.contact-method:hover { border-color: var(--acento); transform: translateX(3px); }
.contact-method .ico { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--acento-100); color: var(--acento-600); display: grid; place-items: center; }
.contact-method b { display: block; font-size: 1rem; }
.contact-method span { font-size: .85rem; color: var(--ink-mute); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: .8rem .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-100); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-soft); margin-bottom: var(--s3); }
.consent input { margin-top: .2rem; accent-color: var(--acento); flex: none; }
.consent a { color: var(--acento-600); }
.form-card .btn-solid { width: 100%; }
.form-note { text-align: center; font-size: .84rem; color: var(--ink-mute); margin: var(--s2) 0 0; }
.form-status { margin-top: var(--s2); font-size: .95rem; padding: .8rem 1rem; border-radius: 11px; text-align: center; }
.form-status.ok { background: #e7f0e4; color: #2f5c2a; }
.form-status.err { background: #f6e2dd; color: #8c3b24; }

/* ---------- Pie ---------- */
.site-foot { background: var(--dark-2); color: var(--on-dark); padding-top: var(--s6); }
.foot-grid { display: grid; gap: var(--s4); padding-bottom: var(--s5); }
.foot-brand .brand-mark { margin-bottom: var(--s2); }
.foot-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin: 0 0 .4rem; }
.foot-note { color: var(--on-dark-soft); font-size: .92rem; max-width: 24rem; margin: 0; }
.foot-h { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); margin: 0 0 var(--s2); font-weight: 600; }
.foot-list { list-style: none; display: grid; gap: .5rem; }
.foot-list a, .foot-list li { color: var(--on-dark-soft); text-decoration: none; font-size: .93rem; }
.foot-list a { transition: color .18s var(--ease); }
.foot-list a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; align-items: center; border-top: 1px solid rgba(243,237,226,.12); padding-block: var(--s3); font-size: .85rem; color: var(--on-dark-soft); }
.foot-bottom p { margin: 0; }

/* ---------- Banner cookies ---------- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; z-index: 150;
  width: min(680px, calc(100% - 2rem)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s3);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; justify-content: space-between;
}
.cookie-txt { margin: 0; font-size: .88rem; color: var(--ink-soft); flex: 1 1 18rem; }
.cookie-txt a { color: var(--acento-600); }
.cookie-actions { display: flex; gap: .6rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 140;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(37,211,102,.7);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Página legal / cabecera simple ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) var(--s4); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--s2); }
.page-head p { color: var(--ink-soft); margin: 0; }
.legal { padding-block: var(--s5) var(--s6); }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin: var(--s4) 0 var(--s2); }
.legal h3 { font-size: 1.1rem; margin: var(--s3) 0 var(--s1); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; margin-bottom: var(--s2); }
.legal li { margin-bottom: .4rem; }
.legal .review { background: var(--acento-100); border: 1px dashed var(--acento); border-radius: var(--radius); padding: var(--s3); color: var(--acento-600); font-size: .92rem; margin-bottom: var(--s4); }
.legal .review strong { color: var(--acento-600); }

/* ---------- Reveal (con red de seguridad en JS) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ---------- Deriva al scroll (las tarjetas se juntan y se separan) ---------- */
/* El desplazamiento horizontal lo aplica el JS por transform en línea;
   aquí solo dejamos que el transform sea instantáneo (que siga al scroll)
   y que la aparición siga animando la opacidad. */
.drift-group > * { will-change: transform; }
.drift-active { transition-property: opacity; }

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .step { grid-template-columns: auto 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Menú móvil */
@media (max-width: 859px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: var(--s2) clamp(1.15rem, 4vw, 2.25rem) var(--s3);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s var(--ease), opacity .25s var(--ease), padding .3s var(--ease);
  }
  .nav-menu.open { max-height: 70vh; opacity: 1; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--line-soft); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a { display: block; padding: .9rem 0; font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .btn-phone-txt { display: none; }
  .btn-phone { padding: .7rem; }
  .btn-phone-ico { display: inline-flex; }
}

@media (max-width: 400px) {
  .brand-tag { display: none; }
}

/* Reduced motion: solo corta lo intrusivo, no los microdetalles (Windows) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float, .btn-solid, .service, .contact-method { transition-duration: .01ms; }
}
