/* =============================================================
   Unicorn · Diseño Web Profesional
   1. Tokens
   ============================================================= */
:root {
  --bg: #07080a;
  --bg-2: #0d0e11;
  --bg-3: #13151a;
  --ink: #f1ece1;
  --ink-soft: #a39d92;
  --ink-muted: #6a655c;
  --line: rgba(241, 236, 225, 0.08);
  --line-strong: rgba(241, 236, 225, 0.16);

  /* Colores del logo */
  --accent: #a9c500;
  --accent-hi: #c4e01a;
  --accent-soft: rgba(169, 197, 0, 0.12);
  --accent-line: rgba(169, 197, 0, 0.35);
  --slate: #34373f;

  --wa: #25d366;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow-card: 0 30px 80px -40px rgba(0, 0, 0, 0.7), 0 6px 20px -10px rgba(0, 0, 0, 0.5);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--accent); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Componentes
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-size: .95rem; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .35s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #0b0c0e; }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 14px 36px -12px rgba(169, 197, 0, .55); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(241, 236, 225, .02); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-whatsapp { background: var(--wa); color: #06210f; font-weight: 600; }
.btn-whatsapp:hover { box-shadow: 0 14px 36px -12px rgba(37, 211, 102, .55); }
.btn-whatsapp svg { stroke: #06210f; }
.btn-whatsapp:hover svg { transform: none; }
.btn .fill, .wa-float .fill { fill: currentColor; stroke: none; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(241, 236, 225, .03);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169,197,0,.55); } 70% { box-shadow: 0 0 0 9px rgba(169,197,0,0); } 100% { box-shadow: 0 0 0 0 rgba(169,197,0,0); } }

.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.badge {
  position: absolute; top: -12px; right: 20px;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--accent); color: #0b0c0e;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(241,236,225,.035), rgba(241,236,225,.01));
  transition: border-color .35s, transform .5s var(--ease-out), background-color .35s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-4px); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 500; font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* =============================================================
   5. Header
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 10, .82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; letter-spacing: .16em; font-size: 1rem; color: var(--accent); }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }

.nav { display: none; }
.nav a { font-size: .9rem; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-cta { display: none; }

.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* menú móvil abierto */
.nav.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: fixed; inset: var(--header-h) 0 auto 0;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.nav .btn-primary { color: #0b0c0e; }
.nav.is-open a:not(.btn) { padding: .9rem 0; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav.is-open .nav-cta-mobile { margin-top: 1rem; }
.nav-cta-mobile { display: none; }
.nav.is-open .nav-cta-mobile { display: inline-flex; }

/* =============================================================
   6. Secciones
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
  isolation: isolate;
}
/* Foto de portada detrás del texto */
.hero-photo {
  position: absolute; inset: 0 0 auto 0; z-index: -2;
  height: min(100svh, 980px);
  overflow: hidden;
  pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 30%;
  animation: heroZoom 24s var(--ease-soft) infinite alternate;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 42%, rgba(7, 8, 10, .55), transparent 75%),
    linear-gradient(180deg, rgba(7, 8, 10, .7) 0%, rgba(7, 8, 10, .5) 40%, rgba(7, 8, 10, .8) 75%, var(--bg) 100%);
}
.hero-photo picture { display: block; width: 100%; height: 100%; }

/* Celular: foto completa arriba, más visible, y se funde hacia abajo */
@media (max-width: 719px) {
  .hero { padding-top: calc(var(--header-h) + 34vw); }
  .hero-photo { height: auto; aspect-ratio: 900 / 870; }
  .hero-photo img { object-position: center top; animation-duration: 30s; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(7, 8, 10, .45) 0%, rgba(7, 8, 10, .35) 30%, rgba(7, 8, 10, .6) 60%, var(--bg) 100%);
  }
  .hero-title, .hero-lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .65); }
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-glow {
  position: absolute; inset: -10% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 50% 18%, rgba(169, 197, 0, .16), transparent 70%),
    radial-gradient(30% 30% at 80% 40%, rgba(52, 55, 63, .5), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%);
  opacity: .6;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin-top: 1.75rem;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  max-width: 16ch;
}
.hero-lead {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft);
}
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Web armándose sola ---------- */
.builder {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  width: min(940px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(169,197,0,.05), 0 40px 120px -50px rgba(169,197,0,.35);
  overflow: hidden;
  text-align: left;
}
.builder-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-muted);
}
.dots { display: flex; gap: 6px; }
.dots i, .device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate); }
.builder-url { flex: 1; padding: .3rem .8rem; border-radius: 999px; background: rgba(241,236,225,.04); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.builder-status { margin-left: auto; color: var(--accent); white-space: nowrap; }
.spark { display: inline-block; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.builder-prompt {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
  font-size: .92rem; color: var(--ink);
  min-height: 3.6rem;
}
.prompt-label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); padding: .2rem .55rem; border: 1px solid var(--accent-line); border-radius: 6px; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.builder-canvas { padding: 1.25rem; display: grid; gap: 1rem; }
.builder-canvas i { display: block; }
.b-nav { display: flex; align-items: center; gap: .6rem; }
.b-nav i { height: 8px; width: 44px; border-radius: 4px; background: rgba(241,236,225,.1); }
.b-nav .b-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); margin-right: auto; }
.b-nav .b-pill { width: 70px; height: 22px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.b-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; align-items: center; }
.b-hero-text { display: grid; gap: .6rem; }
.b-line { height: 9px; border-radius: 5px; background: rgba(241,236,225,.1); }
.b-line.tall { height: 18px; border-radius: 6px; background: rgba(241,236,225,.22); }
.b-line.accent { background: linear-gradient(90deg, var(--accent), rgba(169,197,0,.4)); }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.b-btn { width: 110px; height: 28px; margin-top: .4rem; border-radius: 999px; background: var(--accent); }
.b-hero-img {
  aspect-ratio: 4 / 3; border-radius: 14px;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(169,197,0,.35), transparent 70%),
    linear-gradient(135deg, var(--slate), #1a1c22);
  position: relative; overflow: hidden;
}
.b-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3.2s var(--ease-soft) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.b-card { display: grid; gap: .5rem; padding: .7rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(241,236,225,.02); }
.b-thumb { aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(135deg, rgba(169,197,0,.18), rgba(52,55,63,.6)); }

/* animación de armado: solo si JS está activo */
.motion .builder .b-piece { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion .builder .b-piece.is-built { opacity: 1; transform: none; }

/* ---------- Franja de confianza ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem .5rem; text-align: center; }
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.trust-item strong { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--accent); min-height: 2rem; display: grid; place-items: center; }
.trust-item strong svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.trust-item span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.section-lead { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; }
.section-head-row { max-width: none; display: grid; gap: 1rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: 1rem; }
.service h3 { font-size: 1.4rem; margin: 1.25rem 0 .6rem; }
.service p { color: var(--ink-soft); font-size: .96rem; }
.icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-feature { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(169,197,0,.08), rgba(169,197,0,.01)); }

/* ---------- Comparación ---------- */
.compare { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row > span { padding: 1rem 1.1rem; font-size: .92rem; border-top: 1px solid var(--line); }
.compare-row > span:first-child { grid-column: 1 / -1; padding-bottom: .2rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.compare-row > span:nth-child(2) { color: var(--ink-muted); border-top: 0; text-decoration: line-through; text-decoration-color: rgba(241,236,225,.25); }
.compare-row > span.is-us { color: var(--ink); border-top: 0; background: var(--accent-soft); font-weight: 500; }
.compare-head > span { border-top: 0 !important; }
.compare-head > span:first-child { display: none; }
.compare-head > span:nth-child(2) { text-decoration: none; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.compare-head .is-us { display: flex; align-items: center; gap: .5rem; color: var(--accent) !important; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem; border-top: 1px solid var(--line-strong); }
.step-num { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 3.2rem; line-height: 1; color: var(--accent); }
.step h3 { margin: 1rem 0 .5rem; font-size: 1.35rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 1.2s var(--ease-out) .2s;
}
.step.is-visible::before { width: 100%; }

/* ---------- Portafolio ---------- */
.work-grid { display: grid; gap: 1rem; }
.work {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); transition: border-color .35s, transform .5s var(--ease-out);
}
.work:hover { border-color: var(--accent-line); }
.work-media { display: block; padding: clamp(1rem, 3vw, 2rem); background: radial-gradient(70% 80% at 50% 0%, rgba(169,197,0,.14), transparent 70%), var(--bg-3); }
.device { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); background: var(--bg-2); }
.device-bar { display: flex; align-items: center; gap: 5px; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.device-bar i { width: 8px; height: 8px; }
.device-bar span { margin-left: .6rem; font-family: var(--font-mono); font-size: .66rem; color: var(--ink-muted); }
.device-screen { display: block; overflow: hidden; aspect-ratio: 800 / 480; }
.device-screen img { width: 100%; transition: transform 1.2s var(--ease-out); }
.work:hover .device-screen img { transform: scale(1.04); }
.work-info { padding: 1.5rem 1.75rem 1.75rem; }
.work-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work-info h3 { font-size: 1.6rem; margin: .5rem 0 .5rem; }
.work-info p:not(.work-tag) { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.work-info p.work-status { margin: 0; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.work-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .6; }
.work-feats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.work-feats li { padding: .3rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; color: var(--ink-soft); }

/* Computadora + celular superpuestos */
.mockup { position: relative; display: block; padding: 0 9% 7% 0; }
.mockup .device-screen { aspect-ratio: 16 / 10; }
.mockup .device-screen img { height: 100%; object-fit: cover; object-position: top center; }
.phone {
  position: absolute; right: 0; bottom: 0;
  width: 24%; aspect-ratio: 375 / 760;
  padding: 5px;
  border-radius: 20px;
  background: #1b1d22;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6);
  transition: transform .8s var(--ease-out);
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; z-index: 1;
  width: 32%; height: 7px; border-radius: 999px;
  background: #1b1d22; transform: translateX(-50%);
}
.phone-screen { display: block; height: 100%; overflow: hidden; border-radius: 15px; background: var(--bg); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.work:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.work:hover .phone-screen img { transform: scale(1.04); }

/* ---------- Precios ---------- */
.plans { display: grid; gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(241,236,225,.03), rgba(241,236,225,.005));
}
.plan h3 { font-size: 1.6rem; }
.plan-for { margin-top: .4rem; color: var(--ink-soft); font-size: .92rem; }
.price { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; margin: 1.5rem 0; font-family: var(--font-display); font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.price .cur { font-size: 1.3rem; color: var(--ink-soft); }
.price .per { flex-basis: 100%; margin-top: .5rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.plan-list { display: grid; gap: .7rem; margin-bottom: 2rem; flex: 1; }
.plan-list li { position: relative; padding-left: 1.6rem; font-size: .94rem; color: var(--ink); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23a9c500' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan-featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(169,197,0,.1), rgba(169,197,0,.015)); box-shadow: 0 40px 100px -60px rgba(169,197,0,.6); }
.plans-note { margin-top: 2rem; text-align: center; color: var(--ink-soft); }
.plans-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--font-sans); font-size: 1.2rem; color: var(--accent);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Llamada final ---------- */
.cta { isolation: isolate; overflow: clip; }
.cta-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 60% at 15% 50%, rgba(169,197,0,.16), transparent 70%),
    radial-gradient(40% 50% at 90% 80%, rgba(52,55,63,.6), transparent 70%);
}
.cta-inner { display: grid; gap: 2.5rem; align-items: center; }
.cta-copy h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-copy .btn { margin-top: 2rem; }
.contact-form {
  display: grid; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(13, 14, 17, .85);
  box-shadow: var(--shadow-card);
}
.form-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .25rem; }
.contact-form label { display: grid; gap: .4rem; }
.contact-form label > span { font-size: .8rem; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-muted); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form .is-invalid { border-color: #d9534f; }
.form-note { font-size: .78rem; color: var(--ink-muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 110px; }
.footer-brand p { margin-top: 1.25rem; max-width: 32ch; color: var(--ink-soft); font-size: .93rem; }
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { color: var(--ink-soft); font-size: .93rem; transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .35rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--wa); color: #06210f;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .35s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #06210f; stroke-width: 1.6; stroke-linejoin: round; }

/* =============================================================
   7. Aparición al hacer scroll (solo con JS activo)
   ============================================================= */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .b-hero-text { gap: .7rem; }
}
@media (min-width: 720px) {
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .trust-item:last-child { border-right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
  .compare-row { grid-template-columns: 1.1fr 1fr 1fr; }
  .compare-row > span:first-child { grid-column: auto; padding-bottom: 1rem; font-family: var(--font-sans); font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
  .compare-row > span { border-top: 1px solid var(--line) !important; }
  .compare-head > span { border-top: 0 !important; }
  .compare-head > span:first-child { display: block; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; gap: 1.75rem; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: translateY(-14px); }
  .section-head-row { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
  .section-head-row .section-lead { justify-self: end; margin-bottom: .4rem; }
  .why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
  .why .section-head { margin-bottom: 0; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .cta-inner { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
@media (max-width: 539px) {
  .builder-bar .builder-url { display: none; }
  .b-hero { grid-template-columns: 1fr; }
  .b-hero-img { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* =============================================================
   9. Reducir movimiento (solo efectos que se repiten sin parar)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip-dot, .spark, .b-hero-img::after, .hero-photo img { animation: none; }
}
