/* =============================================================
   Marketers Online — embudos evergreen + Google Ads
   Archetype 05 (Mouse-Reactive Gradient) adapted to a light palette
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f7;
  --ink: #000000;
  --ink-soft: #1b1b1b;
  --ink-mute: #565656;      /* ~7:1 on white */
  --ink-faint: #8a8a8a;
  --accent: #00ffcd;        /* graphic use only — never text on white */
  --accent-deep: #04140f;   /* near-black with green tint, for accent-on-dark blocks */
  --line: rgba(0, 0, 0, 0.12);
  --line-soft: rgba(0, 0, 0, 0.07);

  --grad-1: rgba(0, 255, 205, 0.42);
  --grad-2: rgba(0, 209, 255, 0.20);
  --grad-3: rgba(120, 255, 224, 0.34);

  --serif: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

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

  --gutter: clamp(1.2rem, 5vw, 4rem);
  --maxw: 1240px;
  --radius: 18px;
}

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
/* anti-spam honeypot — hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  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; }
input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
em { font-style: italic; }
::selection { background: var(--accent); color: #04140f; }

:focus-visible {
  outline: 2px solid #00c9a3;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 10001; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------
   3. Background: mouse-reactive gradient + grain
   ------------------------------------------------------------- */
.bg-gradient {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(circle 40vw at var(--mx, 22%) var(--my, 16%), var(--grad-1) 0%, transparent 55%),
    radial-gradient(circle 46vw at calc(var(--mx, 78%) + 12%) calc(var(--my, 30%) + 4%), var(--grad-2) 0%, transparent 55%),
    radial-gradient(circle 38vw at calc(var(--mx, 40%) - 16%) calc(var(--my, 82%) + 6%), var(--grad-3) 0%, transparent 55%),
    var(--bg);
  filter: blur(60px) saturate(140%);
  transform: translateZ(0);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* -------------------------------------------------------------
   4. Splash
   ------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease-out), clip-path 1s var(--ease-out);
  animation: splashSafety .01s 4.5s 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-mark { display: grid; gap: .9rem; justify-items: center; }
.splash-logo {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink); letter-spacing: -0.04em;
}
.splash-logo i { color: #00c9a3; font-style: normal; }
.splash-bar { width: 140px; height: 3px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.splash-bar i { display: block; width: 40%; height: 100%; background: var(--accent); animation: splashBar 1.1s var(--ease-soft) infinite; }
@keyframes splashBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* -------------------------------------------------------------
   5. Custom cursor
   ------------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; will-change: transform; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: #00c9a3; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1.5px solid rgba(0, 0, 0, 0.35);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), border-color .3s;
}
.cursor.is-interactive .cursor-ring { width: 52px; height: 52px; margin: -26px; border-color: #00c9a3; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* -------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------- */
.btn {
  --pad-y: .95rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--serif); font-weight: 600; font-size: .98rem; letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s, color .3s;
  white-space: nowrap;
}
.btn-solid {
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.btn-solid > * { position: relative; }
.btn-solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0,201,163,.4);
  background: var(--accent); color: #04140f;
}
.btn-solid:active { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px #00c9a3, 0 16px 34px rgba(0,0,0,.12); }
.btn-ghost:active { transform: translateY(-1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn .btn-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn-label { opacity: .35; }
.btn.is-loading .btn-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* magnetic wrapper */
.has-magnetic { display: inline-flex; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .6s var(--ease-soft); }

/* -------------------------------------------------------------
   7. Nav
   ------------------------------------------------------------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s; }
.nav.is-scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-soft); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.04em; color: var(--ink); }
.nav-logo i, .footer-logo i, .splash-logo i { color: #00c9a3; font-style: normal; }
.nav-links { display: none; gap: 1.7rem; margin-left: auto; }
.nav-link { position: relative; font-size: .93rem; font-weight: 500; color: var(--ink-soft); padding: .3rem 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle { position: relative; z-index: 101; display: grid; gap: 5px; margin-left: auto; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transform-origin: center; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(5.5rem + env(safe-area-inset-top)) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1.1rem; }
.nav-mobile-links a {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.6rem, 8vw, 2.2rem); letter-spacing: -0.02em;
}
.nav-mobile-foot { display: flex; flex-direction: column; gap: 1.3rem; }
.nav-mobile-foot .btn { align-self: flex-start; }
.nav-mobile-contact { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--ink-mute); }

/* menu open: solidify the top bar so the close button reads, and hide floating buttons */
body.menu-open .nav { background: var(--bg); box-shadow: 0 1px 0 var(--line-soft); }
body.menu-open .wa-float,
body.menu-open .assistant,
body.menu-open .cookie-bar { display: none !important; }

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

/* -------------------------------------------------------------
   8. Layout helpers
   ------------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.75rem) var(--gutter); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 4vw, 2.75rem); }
.kicker {
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
}
.kicker span { color: #00c9a3; }
.section-title { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.section-lead { margin-top: 1.1rem; font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--ink-mute); max-width: 42rem; }
.section-lead strong { color: var(--ink); font-weight: 600; }

/* Reveal state is gated behind .js so the site is fully visible without JavaScript */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   9. Hero
   ------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7rem, 16vw, 10.5rem) var(--gutter) clamp(2rem, 5vw, 3.25rem);
  display: grid; gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
  min-height: 92svh;
}
.hero-title { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; }
.hero-title em { color: var(--ink); position: relative; white-space: nowrap; }
.hero-title em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.24em; z-index: -1;
  background: var(--accent); border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out) .5s;
}
.is-revealed .hero-title em::after, .hero-title.is-revealed em::after { transform: scaleX(1); }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.05rem, 2.4vw, 1.32rem); color: var(--ink-mute); max-width: 34rem; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { margin-top: 3.2rem; display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1.4rem, 4vw, 3rem); justify-content: start; }
.hero-stats dt { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--ink); letter-spacing: -0.03em; }
.hero-stats dd { font-size: .82rem; color: var(--ink-mute); margin-top: .3rem; max-width: 15ch; }
.hero-stats sup { color: #00c9a3; }
.hero-note { margin-top: 1.4rem; font-size: .78rem; color: var(--ink-faint); }
.hero-note sup { color: #00c9a3; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: clamp(18px, 2vw, 26px);
  box-shadow: 0 50px 110px -34px rgba(0, 0, 0, 0.34);
}

/* Abstract band images inside sections */
.band-visual {
  display: block; border-radius: var(--radius);
  background: var(--accent-deep);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.35);
}
.proceso .band-visual {
  width: 100%; max-height: 240px; object-fit: cover; object-position: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.hero-visual-glow {
  position: absolute; inset: -14% -22% -20% -10%; z-index: -1;
  background: radial-gradient(45% 45% at 55% 42%, var(--grad-1), transparent 72%);
  filter: blur(60px);
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-top: clamp(9rem, 16vw, 13rem); }
  .hero-inner { min-width: 0; }
  .hero-visual { order: 2; min-width: 0; width: 125%; }
}
@media (min-width: 1400px) {
  .hero-visual { width: 138%; }
}

/* -------------------------------------------------------------
   10. Marquee
   ------------------------------------------------------------- */
.marquee { overflow: hidden; position: relative; border-block: 1px solid var(--line-soft); padding: 1.1rem 0; display: flex; flex-wrap: nowrap; align-items: center; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: inline-flex; flex: 0 0 auto; gap: 2.4rem; padding-right: 2.4rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--mono); font-size: .9rem; letter-spacing: 0.02em; color: var(--ink-mute); text-transform: uppercase; }
.marquee-track span:nth-child(even) { color: #00c9a3; }

/* -------------------------------------------------------------
   11. Ventajas
   ------------------------------------------------------------- */
.ventajas-grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .ventajas-grid { grid-template-columns: repeat(2, 1fr); } }
.vcard {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .4s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}
.vcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(0,255,205,.18), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.vcard:hover { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.22); border-color: rgba(0,201,163,.4); }
.vcard:hover::before { opacity: 1; }
.vcard > * { position: relative; z-index: 1; }
.vcard-icon {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--accent-deep); color: var(--accent);
  margin-bottom: 1.2rem;
}
.vcard-icon svg { width: 22px; height: 22px; }
.vcard h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.vcard p { font-size: .96rem; color: var(--ink-mute); }

/* -------------------------------------------------------------
   12. Proceso (expandable steps)
   ------------------------------------------------------------- */
.steps { border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step-head {
  width: 100%; display: flex; align-items: center; gap: 1.2rem;
  padding: clamp(1.3rem, 3vw, 1.9rem) 0; text-align: left;
}
.step-num { font-family: var(--mono); font-size: .95rem; color: #00c9a3; flex-shrink: 0; }
.step-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 3vw, 1.7rem); color: var(--ink); flex: 1; letter-spacing: -0.02em; }
.step-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.step-plus::before, .step-plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), background-color .3s; }
.step-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.step-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.step.is-open .step-plus::after { transform: scaleY(0); }
.step.is-open .step-plus::before { background: #00c9a3; }
.step-body { overflow: hidden; height: 0; transition: height .4s var(--ease-out); }
.step-body p { padding-bottom: clamp(1.3rem, 3vw, 1.9rem); max-width: 46rem; color: var(--ink-mute); font-size: 1.02rem; padding-left: calc(0.95rem + 1.2rem); }
@media (max-width: 560px) { .step-body p { padding-left: 0; } }

/* -------------------------------------------------------------
   13. Calculadora
   ------------------------------------------------------------- */
.calc-shell {
  background: var(--accent-deep);
  color: #eafff9;
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(1.6rem, 5vw, 3.4rem);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.5);
  position: relative; overflow: hidden;
}
.calc-shell::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 50%; height: 90%;
  background: radial-gradient(circle, rgba(0,255,205,.32), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.calc-shell > * { position: relative; z-index: 1; }
.calc-step-label { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 1.4rem; }

.field { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 500; color: #bfe9df; }
.field-opt { color: #7faea3; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #eafff9;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f9a90; }
.field select option { color: #04140f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,255,205,.18); }
.field input[type="file"] { padding: .6rem; font-size: .85rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.calc-file-status { font-size: .8rem; color: var(--accent); min-height: 1em; }
.calc-file-status.is-error { color: #ffbdbd; }
.calc-next { margin-top: .5rem; }
.calc-legal, .calc-disclaimer { font-size: .78rem; color: #9dc7bd; margin-top: 1rem; line-height: 1.55; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: #bfe9df; margin: .4rem 0 1.2rem; cursor: pointer; }
.check input { margin-top: .2rem; accent-color: #00c9a3; width: 16px; height: 16px; flex-shrink: 0; }

.calc-result .calc-step-label { color: var(--accent); }
.calc-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
@media (min-width: 720px) { .calc-metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: rgba(255,255,255,.05); border: 1px solid rgba(0,255,205,.22); border-radius: 14px; padding: 1.1rem; text-align: center; }
.metric-value { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); color: #fff; letter-spacing: -0.02em; }
.metric-label { font-size: .74rem; color: #9dc7bd; margin-top: .4rem; display: block; }
.calc-analysis { font-size: .96rem; color: #d6f5ee; line-height: 1.7; margin-bottom: 1rem; }
.calc-analysis p { margin-bottom: .7rem; }
.calc-result .btn-solid { background: var(--accent); color: #04140f; margin-top: .5rem; }
.calc-result .btn-solid:hover { background: #ffffff; color: #04140f; }

/* -------------------------------------------------------------
   14. Casos
   ------------------------------------------------------------- */
.casos-grid { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .casos-grid { grid-template-columns: repeat(3, 1fr); } }
.caso {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); background: var(--bg);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform .4s var(--ease-soft), box-shadow .4s;
}
.caso:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(0,0,0,.18); }
.caso-icon {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--accent-deep); color: var(--accent);
  margin-bottom: -.4rem;
}
.caso-icon svg { width: 22px; height: 22px; }
.caso:hover .caso-icon { transform: rotate(-6deg) scale(1.06); transition: transform .4s var(--ease-soft); }
.caso-tag { align-self: flex-start; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); background: var(--bg-soft); border: 1px solid var(--line-soft); padding: .25rem .6rem; border-radius: 999px; }
.caso blockquote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; flex: 1; }
.caso figcaption { display: flex; align-items: center; gap: .8rem; font-size: .84rem; color: var(--ink-mute); }
.caso figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.caso figcaption strong { color: var(--ink); }

/* -------------------------------------------------------------
   15. FAQ
   ------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.4rem 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--ink); letter-spacing: -0.02em; }
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out); }
.faq-plus::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq-plus::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.faq-item.is-open .faq-plus::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease-out); }
.faq-a p { padding-bottom: 1.4rem; color: var(--ink-mute); font-size: .98rem; max-width: 44rem; }

/* -------------------------------------------------------------
   16. Contacto
   ------------------------------------------------------------- */
.contacto { position: relative; }
.contacto .section-title em { position: relative; white-space: nowrap; }
.contacto .section-title em::after {
  content: ""; position: absolute; left: -3%; right: -3%; bottom: .06em; height: .3em;
  background: var(--accent); z-index: -1; border-radius: 3px;
}

.contacto-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 880px) {
  .contacto-grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); }
}
.contacto-intro { display: flex; flex-direction: column; gap: 1rem; }
.contacto-mail {
  align-self: flex-start;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--ink); letter-spacing: -0.02em; word-break: break-word;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease-out);
}
.contacto-mail:hover { background-size: 100% 40%; }
.contacto-note { font-size: .88rem; color: var(--ink-faint); }

.contact-form { display: grid; gap: 1.1rem; }
.contact-form .field label { color: var(--ink-mute); }
.contact-form .field input, .contact-form .field textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 12px; padding: .85rem 1rem;
}
.contact-form .field input:focus, .contact-form .field textarea:focus { outline: none; border-color: #00c9a3; box-shadow: 0 0 0 3px rgba(0,255,205,.18); }
.contact-form .check { color: var(--ink-mute); }
.contact-form .check input { accent-color: #00c9a3; }
.contact-form .btn { justify-self: flex-start; }
.contact-success { margin-top: 2rem; padding: 1.6rem; border: 1px solid rgba(0,201,163,.4); border-radius: var(--radius); background: var(--bg-soft); }
.contact-success h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.contact-success p { color: var(--ink-mute); }

/* -------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem var(--gutter); display: grid; gap: 1.2rem; }
.footer-logo { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.04em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { font-size: .9rem; color: var(--ink-mute); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { font-size: .78rem; color: var(--ink-faint); line-height: 1.6; }

/* -------------------------------------------------------------
   18. Asistente
   ------------------------------------------------------------- */
.assistant { position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: 400; }
.assistant-toggle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transition: transform .3s var(--ease-bounce), background-color .3s;
}
.assistant-toggle:hover { transform: scale(1.06); }
.assistant-toggle svg { width: 24px; height: 24px; }
.assistant-ico-close { display: none; }
.assistant.is-open .assistant-toggle { background: #00c9a3; color: #04140f; }
.assistant.is-open .assistant-ico-chat { display: none; }
.assistant.is-open .assistant-ico-close { display: block; }

.assistant-panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(90vw, 380px);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.assistant.is-open .assistant-panel { opacity: 1; transform: none; pointer-events: auto; }
.assistant-head { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.assistant-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-deep); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.assistant-head strong { display: block; font-family: var(--serif); font-size: .95rem; color: var(--ink); }
.assistant-head small { color: var(--ink-mute); font-size: .78rem; }
.assistant-log { padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; overflow-y: auto; max-height: 46vh; min-height: 140px; }
.msg { padding: .7rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; max-width: 88%; }
.msg-bot { background: var(--bg-soft); color: var(--ink-soft); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { color: var(--ink-faint); font-style: italic; }
.assistant-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .8rem; }
.assistant-suggest button { font-size: .78rem; padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-mute); transition: border-color .25s, color .25s; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant-suggest button:hover { border-color: #00c9a3; color: var(--ink); }
.assistant-form { display: flex; gap: .5rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line-soft); }
.assistant-form input { flex: 1; padding: .7rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.assistant-form input:focus { outline: none; border-color: #00c9a3; box-shadow: 0 0 0 3px rgba(0,255,205,.16); }
.assistant-form button { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background-color .25s; }
.assistant-form button:hover { background: #00c9a3; color: #04140f; }
.assistant-form button svg { width: 17px; height: 17px; }
.assistant-legal { font-size: .68rem; color: var(--ink-faint); padding: 0 1.1rem 1rem; }

/* -------------------------------------------------------------
   18b. WhatsApp floating button (stacked above the assistant) + contact methods
   ------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 4vw, 2rem);
  bottom: calc(clamp(1rem, 4vw, 2rem) + 68px);
  z-index: 401;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
  transition: transform .3s var(--ease-bounce), box-shadow .3s, opacity .25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.5); }
.wa-float svg { width: 30px; height: 30px; }
/* hide WhatsApp while the assistant panel is open so it doesn't overlap it */
body:has(.assistant.is-open) .wa-float { opacity: 0; pointer-events: none; transform: scale(.8); }

/* lift the floating buttons above the cookie bar while it's visible */
body.cookies-pending .wa-float { bottom: calc(clamp(1rem, 4vw, 2rem) + 68px + 92px); }
body.cookies-pending .assistant { bottom: calc(clamp(1rem, 4vw, 2rem) + 92px); }

/* -------------------------------------------------------------
   18c. Cookie bar
   ------------------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--accent-deep); color: #dcefe9;
  padding: clamp(.9rem, 3vw, 1.2rem) clamp(1rem, 5vw, 2rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.25);
  animation: cookieUp .5s var(--ease-out);
}
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: none; } }
.cookie-bar p { font-size: .82rem; line-height: 1.55; flex: 1 1 320px; margin: 0; }
.cookie-bar a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-actions .btn { --pad-y: .6rem; --pad-x: 1.1rem; font-size: .85rem; }
.cookie-actions .btn-ghost { color: #dcefe9; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.cookie-actions .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* -------------------------------------------------------------
   18d. Calculator field help
   ------------------------------------------------------------- */
.field-help { font-size: .78rem; line-height: 1.5; color: #9dc7bd; margin: -.15rem 0 .1rem; }
.contact-form .field-help { color: var(--ink-faint); }

/* -------------------------------------------------------------
   18e. Legal page
   ------------------------------------------------------------- */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(7rem, 16vw, 10rem) var(--gutter) 5rem; }
.legal-inner h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: .6rem 0 .4rem; }
.legal-updated { font-family: var(--mono); font-size: .8rem; color: var(--ink-mute); margin-bottom: 2.5rem; }
.legal-inner h2 { font-size: 1.2rem; margin: 2.2rem 0 .6rem; }
.legal-inner p { color: var(--ink-soft); margin-bottom: .9rem; }
.legal-inner ul { margin: 0 0 1rem 1.1rem; color: var(--ink-soft); }
.legal-inner li { margin-bottom: .4rem; }
.legal-inner a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-inner em { color: var(--ink-mute); }
.legal-back { margin-top: 2.5rem; font-family: var(--serif); font-weight: 600; }
.legal-back a { text-decoration: none; }

/* -------------------------------------------------------------
   18f. Thank-you page
   ------------------------------------------------------------- */
.gracias { max-width: 820px; margin: 0 auto; padding: clamp(8rem, 18vw, 11rem) var(--gutter) 5rem; }
.gracias-check {
  display: inline-flex; width: 60px; height: 60px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 1.6rem;
  background: var(--accent-deep); color: var(--accent);
}
.gracias-check svg { width: 28px; height: 28px; }
.gracias-inner h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: .5rem 0 1rem; }
.gracias-lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-mute); max-width: 40rem; }
.gracias-study { margin: 2.5rem 0; }
.gracias-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.gracias-actions .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }

.contacto-methods { margin-top: 1.1rem; }
.contacto-intro .contacto-methods { margin-top: 0; }
.contacto-methods a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--ink);
  padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--line);
  transition: border-color .25s, background-color .25s;
}
.contacto-methods a:hover { border-color: #25d366; background: rgba(37,211,102,.08); }
.contacto-methods svg { width: 18px; height: 18px; color: #25d366; }

.footer-contact { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-contact a { font-size: .9rem; color: var(--ink-mute); }
.footer-contact a:hover { color: var(--ink); }
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.footer-legal-nav a { font-size: .82rem; color: var(--ink-faint); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.footer-legal-nav a:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* -------------------------------------------------------------
   19. Responsive tweaks
   ------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:last-child { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------
   20. Reduced motion — only intrusive effects
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-bar i { animation-duration: 1.6s; }
  .bg-gradient { filter: blur(60px) saturate(140%); }
}
