/* =================================================================
   Javier González · Meta Ads Manager
   Sistema de diseño — claro, minimalista, profesional.
   Casi monocromo + un solo acento azul de confianza.
   ================================================================= */

:root {
  /* Color */
  --bg:          #F7F8FA;
  --bg-2:        #F1F3F7;
  --surface:     #FFFFFF;
  --ink:         #131720;
  --ink-soft:    #2A313D;
  --muted:       #57606E;
  --muted-2:     #868F9D;
  --line:        #E6E9EF;
  --line-2:      #D7DCE5;

  --accent:        #2563EB;
  --accent-strong: #1D4ED8;
  --accent-soft:   #EFF4FF;
  --accent-line:   #CFE0FF;

  --ink-block:   #0E1424;   /* bloque oscuro de contraste (CTA final) */
  --on-dark:     #F4F7FC;
  --on-dark-mut: #A7B1C4;

  --pos: #15936B;  /* verde sobrio para variaciones positivas (datos) */

  /* Tipografía */
  --font-display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1140px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --radius: 16px;
  --radius-sm: 11px;
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Sombras suaves (profundidad en tema claro) */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
  --shadow:    0 4px 8px -2px rgba(16,24,40,.06), 0 10px 24px -6px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 48px -16px rgba(16,24,40,.22);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.62;
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.06rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%); top: 10px; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; transition: transform .2s;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Texto util ---------- */
.accent-text { color: var(--accent); }
.eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.55rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.center { display: flex; justify-content: center; }
.center { text-align: center; }
.hide-mobile { display: none; }

.section { position: relative; padding-block: var(--section-y); }
.section-title { font-size: clamp(1.7rem, 1.15rem + 2.5vw, 2.9rem); margin-block: 0.7rem 0; }
.section-title.center { margin-inline: auto; max-width: 19ch; }
.section-lead { color: var(--muted); font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem); margin-top: 1rem; max-width: 58ch; }
.section-lead.center { margin-inline: auto; }

/* ---------- Iconos de línea ---------- */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1;
  padding: 0.82rem 1.4rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s, box-shadow .18s, border-color .18s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); padding-inline: 0.4rem; }
.btn-ghost:hover { color: var(--accent-strong); }
.btn-on-dark { background: #fff; color: var(--ink-block); }
.btn-on-dark:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0,0,0,.5); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-xl { padding: 1.1rem 2.1rem; font-size: 1.12rem; }
.wa-glyph { flex: none; }

/* CTA contextual reutilizable bajo secciones */
.section-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.1rem; margin-top: 2.6rem; }
.section-cta p { color: var(--muted); font-size: 1rem; margin: 0; }
.section-cta.left { justify-content: flex-start; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(247,248,250,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255,255,255,0.9); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-links { display: none; gap: 1.5rem; }
.nav-links a { font-size: 0.94rem; color: var(--muted); position: relative; padding: 0.3rem 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: none; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem var(--pad) 1.3rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 0.8rem 0.2rem; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { justify-content: center; margin-top: 0.7rem; border-bottom: 0; color: #fff; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: var(--section-y); }
.hero-inner { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }

.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 1.1rem; }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.28rem); margin-top: 1.3rem; max-width: 40ch; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin-top: 2rem; }
.hero-badges li { font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 0.45rem; }
.hero-badges svg { width: 16px; height: 16px; stroke: var(--accent); stroke-width: 2.4; fill: none; flex: none; }

/* Panel de resultados (ejemplo) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.panel-title { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.panel-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); border: 1px solid var(--line-2); padding: 0.2rem 0.5rem; border-radius: 6px; }
.panel-metric { display: flex; align-items: baseline; gap: 0.6rem; }
.panel-metric .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.1rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.panel-metric .lab { font-size: 0.82rem; color: var(--muted); }
.panel-delta { color: var(--pos); font-weight: 600; font-size: 0.88rem; }
.panel-chart { position: relative; margin: 0.6rem 0 1rem; }
.panel-chart svg { width: 100%; height: 92px; display: block; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2s .3s cubic-bezier(.4,0,.2,1) forwards; }
.chart-area { fill: url(#fade); opacity: 0; animation: fadein 1s 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.panel-rows { display: grid; gap: 0.55rem; }
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.panel-row span:first-child { color: var(--muted); }
.panel-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-foot { font-size: 0.74rem; color: var(--muted-2); margin-top: 0.9rem; }

/* ===========================================================
   "HABLEMOS CLARO" / PROBLEMA
   =========================================================== */
.problem-grid { display: grid; gap: 1.1rem; margin-top: 3rem; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s, box-shadow .25s; }
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pain .ico { margin-bottom: 1rem; }
.pain h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.pain p { color: var(--muted); font-size: 0.97rem; }
.problem-bridge { max-width: 60ch; margin: 2.6rem auto 0; text-align: center; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: var(--ink); font-weight: 500; line-height: 1.4; }
.problem-bridge b { color: var(--accent); font-weight: 700; }

/* ===========================================================
   SERVICIO
   =========================================================== */
.servicio .section-lead { margin-bottom: 2.8rem; }
.features-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { margin-bottom: 1rem; }
.feature h3 { font-size: 1.16rem; margin-bottom: 0.45rem; }
.feature h3 .hot { display: inline-block; margin-left: 0.4rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 0.15rem 0.5rem; border-radius: 999px; vertical-align: middle; text-transform: uppercase; }
.feature p { color: var(--muted); font-size: 0.96rem; }
.feature p strong { color: var(--ink); }

/* ===========================================================
   MÉTODO / TIMELINE
   =========================================================== */
.timeline { list-style: none; padding: 0; margin: 3rem auto 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px; background: var(--line-2); }
.timeline::after { content: ""; position: absolute; left: 23px; top: 12px; width: 2px; height: var(--tl-fill, 0%); background: var(--accent); transition: height .15s linear; }
.tl-step { position: relative; padding-left: 66px; padding-bottom: 1.3rem; }
.tl-marker {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); z-index: 2;
  transition: color .3s, background-color .3s, border-color .3s; font-variant-numeric: tabular-nums;
}
.tl-step.in .tl-marker { color: #fff; background: var(--accent); border-color: var(--accent); }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; transition: transform .25s, box-shadow .25s; }
.tl-card:hover, .tl-card:focus-within { transform: translateX(5px); box-shadow: var(--shadow); }
.tl-phase { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.tl-card h3 { font-size: 1.14rem; margin: 0.35rem 0 0.45rem; }
.tl-card p { color: var(--muted); font-size: 0.95rem; }
.tl-card em { color: var(--ink); font-style: italic; }

/* ===========================================================
   PRODUCCIÓN
   =========================================================== */
.produccion-inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.produccion-copy p { color: var(--muted); margin-top: 1rem; }
.produccion-copy p strong { color: var(--ink); }
.produccion-note { font-size: 0.9rem; color: var(--ink-soft); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.4rem; }
.produccion-note svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.7; flex: none; margin-top: 1px; }
.produccion-copy .section-cta { margin-top: 1.8rem; }

.angles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.angle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; transition: transform .25s, box-shadow .25s; }
.angle:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.angle .ico { width: 40px; height: 40px; }
.angle .ico svg { width: 20px; height: 20px; }
.angle b { font-size: 0.98rem; color: var(--ink); font-weight: 600; }
.angle span { font-size: 0.84rem; color: var(--muted); }
.angle-2 { margin-top: 1.6rem; }
.angle-3 { margin-top: -0.4rem; }
@media (max-width: 600px) { .angle-2, .angle-3 { margin-top: 0; } }

/* ===========================================================
   CALCULADORA
   =========================================================== */
.calc-frame { margin: 2.6rem auto 0; max-width: 900px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.calc-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.calc-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.calc-bar .dot.r { background: #ff5f57; } .calc-bar .dot.y { background: #febc2e; } .calc-bar .dot.g { background: #28c840; }
.calc-url { font-size: 0.76rem; color: var(--muted); margin-left: 0.7rem; }
.calc-embed { position: relative; min-height: 760px; display: grid; }
.calc-embed iframe { width: 100%; height: 100%; min-height: 760px; border: 0; display: block; background: #fff; }
.calc-load { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; min-height: 760px; text-align: center; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; background: var(--bg-2); transition: background .25s; }
.calc-load:hover { background: var(--accent-soft); }
.calc-load small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.calc-load-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.calc-load-ic svg { width: 22px; height: 22px; fill: #fff; }
.calc-note { margin-top: 1.1rem; font-size: 0.86rem; color: var(--muted); }
.calc-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===========================================================
   RESULTADOS / STATS
   =========================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 3rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3rem); color: var(--accent); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-top: 0.5rem; }
.stat-desc { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.45rem; }
.stats-transparency { max-width: 68ch; margin: 2.4rem auto 0; text-align: center; font-size: 0.96rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.6rem; display: flex; gap: 0.7rem; align-items: flex-start; text-align: left; }
.stats-transparency svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; flex: none; margin-top: 2px; }
.stats-transparency strong { color: var(--ink); }

.testimonials { display: grid; gap: 1.1rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote footer { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }

/* ===========================================================
   MODELO
   =========================================================== */
.modelo-grid { display: grid; gap: 1.1rem; margin-top: 3rem; grid-template-columns: 1fr; }
.modelo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .25s, box-shadow .25s; }
.modelo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.modelo-card .ico { margin-bottom: 1rem; }
.modelo-card h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.modelo-card p { color: var(--muted); }
.modelo-card p strong { color: var(--ink); }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 1.05rem 1.3rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .3s; line-height: 1; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.15rem; color: var(--muted); }
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===========================================================
   CTA FINAL (bloque oscuro de contraste)
   =========================================================== */
.cta-final { background: var(--ink-block); border-radius: 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 18ch; }
.cta-inner > p { color: var(--on-dark-mut); max-width: 54ch; font-size: 1.1rem; }
.cta-fine { font-size: 0.82rem; color: var(--on-dark-mut) !important; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand strong { font-family: var(--font-display); color: var(--ink); display: block; }
.footer-brand span { color: var(--muted); font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-links a[aria-disabled="true"] { opacity: 0.55; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1.4rem 2.2rem; color: var(--muted-2); font-size: 0.8rem; }

/* ===========================================================
   WhatsApp flotante
   =========================================================== */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 90;
  display: inline-flex; align-items: center; gap: 0.55rem; background: var(--accent); color: #fff;
  padding: 0.8rem 1.05rem; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: transform .25s, background-color .2s; opacity: 0; visibility: hidden;
}
.wa-float.show { opacity: 1; visibility: visible; }
.wa-float:hover { transform: translateY(-2px); background: var(--accent-strong); }
.wa-float svg { flex: none; width: 24px; height: 24px; }
.wa-float-text { display: none; font-size: 0.95rem; }

/* ===========================================================
   Reveal
   =========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.problem-grid .pain:nth-child(2) { transition-delay: .07s; }
.problem-grid .pain:nth-child(3) { transition-delay: .14s; }
.features-grid .feature:nth-child(even) { transition-delay: .05s; }
.stats-grid .stat:nth-child(2) { transition-delay: .05s; }
.stats-grid .stat:nth-child(3) { transition-delay: .1s; }
.stats-grid .stat:nth-child(4) { transition-delay: .15s; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (min-width: 620px) {
  .hide-mobile { display: inline; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modelo-grid { grid-template-columns: repeat(2, 1fr); }
  .wa-float-text { display: inline; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .mobile-menu { display: none; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .produccion-inner { grid-template-columns: 1.05fr 0.95fr; }
  .faq-inner { grid-template-columns: 0.85fr 1.15fr; }
  .faq-head { position: sticky; top: 96px; }
}
@media (min-width: 1080px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
}

/* ===========================================================
   Testimonios
   =========================================================== */
.testimonials-title { text-align: center; font-size: clamp(1.35rem, 1rem + 1.5vw, 1.8rem); margin-top: 3.2rem; }
.quote-stat { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.82rem; margin-bottom: 0.9rem; }
.quote p { font-style: italic; }
.testimonials-note { text-align: center; color: var(--muted-2); font-size: 0.84rem; margin-top: 1.5rem; }

/* ===========================================================
   Páginas legales
   =========================================================== */
.legal-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.legal-header .nav-inner { justify-content: space-between; }
.legal-back { color: var(--muted); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.legal-back:hover { color: var(--accent); }
.legal-main { max-width: 800px; margin: 0 auto; padding: clamp(2.5rem,6vw,4.5rem) var(--pad) clamp(3rem,7vw,5rem); }
.legal-main h1 { font-size: clamp(1.8rem,1.3rem+2vw,2.6rem); }
.legal-updated { color: var(--muted-2); font-size: 0.86rem; margin-top: 0.6rem; }
.legal-main h2 { font-size: 1.25rem; margin-top: 2.4rem; margin-bottom: 0.5rem; }
.legal-main h3 { font-size: 1.04rem; margin-top: 1.4rem; margin-bottom: 0.3rem; }
.legal-main p, .legal-main li { color: var(--ink-soft); }
.legal-main p { margin-top: 0.8rem; }
.legal-main ul { margin-top: 0.8rem; padding-left: 1.2rem; }
.legal-main li { margin-top: 0.35rem; }
.legal-main a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-main mark { background: #FFF1B8; color: #6b5300; padding: 0.05em 0.4em; border-radius: 4px; font-weight: 600; }
.legal-note { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: 0.92rem; margin-top: 1.4rem; color: var(--ink-soft); }
