/* ============================================================
   Fyxel Agency — Landing pública
   Paleta: violeta (principal) · negro (base) · dorado (acento)
   Mobile-first. Sin frameworks.
   ============================================================ */

:root {
  --bg:        #05060e;
  --bg-2:      #0a0d1c;
  --surface:   #10142c;
  --surface-2: #171c40;
  --line:      #262c52;

  --violet:        #5b6ef5;
  --violet-bright: #7d8bff;
  --violet-soft:   #b9c2ff;
  --violet-deep:   #2a2f7a;

  --cyan:        #2fe3c4;
  --cyan-bright: #6ffbe4;

  --gold:        #d98a4a;
  --gold-bright: #f3ab6b;

  --text:       #f2f4ff;
  --text-muted: #aab0e0;
  --text-dim:   #767ea8;

  --radius:   16px;
  --radius-s: 10px;
  --wrap:     1120px;

  --shadow:      0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glow-gold:   0 0 0 1px rgba(217, 138, 74, 0.35), 0 8px 30px -8px rgba(217, 138, 74, 0.35);
  --glow-violet: 0 0 0 1px rgba(91, 110, 245, 0.4), 0 10px 40px -12px rgba(91, 110, 245, 0.5);
  --glow-cyan:   0 0 0 1px rgba(47, 227, 196, 0.35), 0 8px 30px -8px rgba(47, 227, 196, 0.4);

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --cursor-f: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><g fill="%237d8bff"><rect x="4" y="3" width="7" height="24" rx="2.5"/><rect x="4" y="3" width="18" height="7" rx="2.5"/><rect x="4" y="13" width="13" height="6.5" rx="2.5"/></g><rect x="23" y="3" width="5.5" height="5.5" rx="1.6" fill="%23f3ab6b"/></svg>') 6 4, auto;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cursor de marca: la "F" de Fyxel reemplaza la flecha en pantallas
   con mouse. En touch no aplica (no hay cursor real). */
@media (hover: hover) and (pointer: fine) {
  body { cursor: var(--cursor-f); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--gold-bright);
  color: #05060e;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Fondo de nebulosa ----------
   Tres nubes de color (índigo, cian, cobre) que reaccionan al mouse
   (--nx/--ny) en desktop y al scroll (--ny) en mobile, más una deriva
   lenta propia para que se sienta viva aunque nadie se mueva. */
.nebula-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.nebula-bg .blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(75px);
  will-change: transform;
  opacity: 0.8;
}
.nebula-bg .blob-1 {
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  top: -14%;
  left: 6%;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.6), transparent 70%);
  transform: translate3d(calc(var(--nx, 0) * -30px), calc(var(--ny, 0) * -24px + var(--sy, 0) * -40px), 0);
  animation: drift-1 28s ease-in-out infinite;
}
.nebula-bg .blob-2 {
  width: min(52vw, 540px);
  height: min(52vw, 540px);
  bottom: -16%;
  right: 2%;
  background: radial-gradient(circle, rgba(47, 227, 196, 0.45), transparent 70%);
  transform: translate3d(calc(var(--nx, 0) * 26px), calc(var(--ny, 0) * 20px + var(--sy, 0) * 50px), 0);
  animation: drift-2 34s ease-in-out infinite;
}
.nebula-bg .blob-3 {
  width: min(38vw, 400px);
  height: min(38vw, 400px);
  top: 36%;
  left: 44%;
  background: radial-gradient(circle, rgba(217, 138, 74, 0.36), transparent 70%);
  transform: translate3d(calc(var(--nx, 0) * -16px), calc(var(--ny, 0) * 14px + var(--sy, 0) * -30px), 0);
  animation: drift-3 22s ease-in-out infinite;
}
.nebula-bg .blob-4 {
  width: min(30vw, 320px);
  height: min(30vw, 320px);
  top: 8%;
  right: 22%;
  background: radial-gradient(circle, rgba(180, 110, 255, 0.32), transparent 70%);
  transform: translate3d(calc(var(--nx, 0) * 20px), calc(var(--ny, 0) * -18px + var(--sy, 0) * 24px), 0);
  animation: drift-4 30s ease-in-out infinite;
}
.nebula-bg .star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@keyframes drift-1 {
  0%, 100% { margin-top: 0; margin-left: 0; }
  50%      { margin-top: 3vh; margin-left: -2vw; }
}
@keyframes drift-2 {
  0%, 100% { margin-bottom: 0; margin-right: 0; }
  50%      { margin-bottom: -3vh; margin-right: 3vw; }
}
@keyframes drift-3 {
  0%, 100% { transform: translate3d(calc(var(--nx, 0) * -16px), calc(var(--ny, 0) * 14px + var(--sy, 0) * -30px), 0) scale(1); }
  50%      { transform: translate3d(calc(var(--nx, 0) * -16px), calc(var(--ny, 0) * 14px + var(--sy, 0) * -30px), 0) scale(1.18); }
}
@keyframes drift-4 {
  0%, 100% { margin-top: 0; margin-right: 0; opacity: 0.85; }
  50%      { margin-top: 2vh; margin-right: -2vw; opacity: 1; }
}
.nebula-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 139, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 139, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
@media (prefers-reduced-motion: reduce) {
  .nebula-bg .blob { animation: none; transform: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-wa,
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #05060e;
  box-shadow: var(--glow-gold);
}
.btn-wa:hover,
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(212,175,55,0.6), 0 14px 40px -10px rgba(212,175,55,0.55); }

.btn-alt {
  background: linear-gradient(180deg, var(--violet-bright), var(--violet));
  color: #fff;
  box-shadow: var(--glow-violet);
}
.btn-alt:hover { box-shadow: 0 0 0 1px rgba(168,85,247,0.7), 0 16px 44px -10px rgba(124,58,237,0.6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 6, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; flex: none; display: block; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.brand-text-dim { color: var(--text-dim); font-weight: 500; }

.nav { display: flex; align-items: center; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

.nav-list {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(12, 8, 22, 0.98);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 12px 20px 18px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-list.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-list a {
  display: block;
  padding: 10px 6px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-list a:hover { color: var(--text); }
.nav-cta { margin-top: 6px; }
.nav-cta a { color: #05060e !important; }

/* ---------- Secciones genéricas ---------- */
.section { padding-block: clamp(48px, 9vw, 96px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--violet-soft);
  margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold-bright); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.section-sub { color: var(--text-muted); margin-top: 12px; }
/* Solo existe para mostrarse en mobile (ver retoques de celular) --
   en compu el texto largo se queda en el hero, como siempre. */
.section-sub-mobile { display: none; }

.lead { color: var(--text-muted); font-size: 1.06rem; }
.grad {
  background: linear-gradient(100deg, var(--violet-bright), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ----------
   Composición centrada: la F grande vive detrás del título, como una
   marca de agua que orbita despacio; el texto va encima, en su propia
   capa (z-index), para que siempre quede legible. */
.hero { padding-block: clamp(40px, 9vw, 80px) clamp(20px, 4vw, 48px); }
.hero-center { display: flex; justify-content: center; }
.hero-copy-center {
  position: relative;
  z-index: 0;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy-center h1 {
  font-size: clamp(2.1rem, 8.5vw, 3.7rem);
  margin: 0;
}

/* La F vive en su propia capa, por debajo de todo el contenido del
   hero (z-index -1 dentro del contexto de apilamiento que arma
   .hero-copy-center) -- así nunca puede quedar arriba del botón ni
   de ningún texto, la recorra como la recorra. */
.hero-f-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: clamp(180px, 26vw, 340px);
  height: auto;
  opacity: 0.28;
  pointer-events: none;
  filter: drop-shadow(0 30px 70px rgba(91, 110, 245, 0.45));
  translate:
    calc(-50% + var(--px, 0px) * 0.15 + var(--fx, 0px))
    calc(-50% + var(--py, 0px) * 0.15 + var(--fy, 0px));
}

.hero .lead { max-width: 52ch; margin-inline: auto; }

.cta-row-center { display: flex; justify-content: center; margin-top: 26px; }
.cta-row-center .btn { flex: 0 1 auto; }

.hero-trust {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
}


/* ---------- Servicios ---------- */
.cards { display: grid; gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(16, 20, 44, 0.68), rgba(10, 13, 28, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: card-float 8s ease-in-out infinite;
}
@keyframes card-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}
.card:nth-child(3n+2) { animation-delay: -2.6s; }
.card:nth-child(3n+3) { animation-delay: -5.3s; }
@media (prefers-reduced-motion: reduce) {
  .card, .pack, .why-item, .step { animation: none; }
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 138, 74, 0.4);
  box-shadow: var(--shadow);
}
.card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(91, 110, 245, 0.16);
  border: 1px solid rgba(91, 110, 245, 0.4);
  margin-bottom: 16px;
}
.card-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.16rem; margin-bottom: 6px; }
.card-tag {
  color: var(--violet-soft);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.card p:last-of-type { color: var(--text-muted); font-size: 0.96rem; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.92rem;
}
/* ---------- Por qué Fyxel ---------- */
.why-grid { display: grid; gap: 18px; }
.why-item {
  background: linear-gradient(180deg, rgba(16, 20, 44, 0.68), rgba(10, 13, 28, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  animation: card-float 8s ease-in-out infinite;
}
.why-item:nth-child(3n+2) { animation-delay: -2.6s; }
.why-item:nth-child(3n+3) { animation-delay: -5.3s; }
.why-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}
.why-item h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.why-item p { color: var(--text-muted); font-size: 0.96rem; }

.testimonials { display: grid; gap: 16px; margin-top: 30px; }
.testimonials blockquote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 20px;
}
.testimonials blockquote p { font-size: 1.02rem; }
.testimonials footer { margin-top: 10px; color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Cómo trabajamos ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
.step {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  animation: card-float 8s ease-in-out infinite;
}
.step:nth-child(3n+2) { animation-delay: -2.6s; }
.step:nth-child(3n+3) { animation-delay: -5.3s; }
.step-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: #05060e;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-item {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 4px 22px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold-bright);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; padding-bottom: 18px; margin-top: -6px; }
.faq-item p a { color: var(--gold-bright); text-decoration: underline; }

/* ---------- FAQ + Contacto (una sola sección, mitad y mitad) ---------- */
.faq-contact-grid { display: grid; gap: 48px; }
.faq-contact-col .section-head { margin-bottom: 28px; }
@media (min-width: 900px) {
  .faq-contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

.wa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212,175,55,0.12), var(--surface));
  border: 1px solid rgba(217, 138, 74, 0.4);
  box-shadow: var(--glow-gold);
  transition: transform 0.15s ease;
}
.wa-card:hover { transform: translateY(-3px); }
.wa-card-ico {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.wa-card-ico svg { width: 24px; height: 24px; fill: none; stroke: #05060e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-card strong { display: block; font-family: var(--font-head); }
.wa-card span span { color: var(--text-muted); font-size: 0.88rem; }

.contact-form-wrap {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet-bright);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.25);
}
.field textarea { resize: vertical; }

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}
.form-status.ok { color: #5be0a0; }
.form-status.err { color: #ff8f8f; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: 54px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  gap: 30px;
  padding-bottom: 34px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; max-width: 42ch; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-loc { color: var(--text-muted); font-size: 0.92rem; }
.footer-cov { color: var(--text-dim); font-size: 0.82rem; margin-top: 8px; }

.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-dim); font-size: 0.84rem; }
.footer-legal a:hover { color: var(--gold-bright); }

/* ---------- Legal (Términos / Privacidad) ---------- */
.legal { padding-block: clamp(48px, 10vw, 90px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 6px; }
.legal-updated { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: var(--gold-bright); text-decoration: underline; }
.legal strong { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-dim);
}
.footer-admin { color: var(--text-dim); }
.footer-admin:hover { color: var(--violet-soft); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #05060e;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 34px -8px rgba(217, 138, 74, 0.6);
}
.wa-float svg { width: 20px; height: 20px; fill: none; stroke: #05060e; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--gold-bright);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; opacity: 0; }
}

/* ---------- Scroll reveal ----------
   Solo se ocultan si el JS está vivo (agrega la clase .js al <html>).
   Sin JS, todo el contenido se ve igual. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Entrada escalonada: las tarjetas de una misma grilla no aparecen
   todas juntas, sino una tras otra, para que se sienta más cuidado. */
.cards .card:nth-child(2), .why-grid .why-item:nth-child(2), .packs-grid .pack:nth-child(2), .faq-list .faq-item:nth-child(2) { transition-delay: 0.08s; }
.cards .card:nth-child(3), .why-grid .why-item:nth-child(3), .packs-grid .pack:nth-child(3), .faq-list .faq-item:nth-child(3) { transition-delay: 0.16s; }
.cards .card:nth-child(4), .why-grid .why-item:nth-child(4), .packs-grid .pack:nth-child(4), .faq-list .faq-item:nth-child(4) { transition-delay: 0.24s; }
.cards .card:nth-child(5), .faq-list .faq-item:nth-child(5) { transition-delay: 0.32s; }
.cards .card:nth-child(6), .faq-list .faq-item:nth-child(6) { transition-delay: 0.4s; }
.faq-list .faq-item:nth-child(7) { transition-delay: 0.48s; }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .cta-row .btn { flex: 0 1 auto; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav-list {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-list a { padding: 8px 12px; }
  .nav-cta a { padding: 9px 16px; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  .steps { position: relative; }
}

/* ============================================================
   Packs
   ============================================================ */
.packs {
  background:
    radial-gradient(600px 380px at 12% 0%, rgba(91, 110, 245, 0.12), transparent 60%),
    linear-gradient(180deg, transparent, rgba(217, 138, 74, 0.05), transparent);
}
.packs-grid { display: grid; gap: 18px; align-items: start; }
.pack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(16, 20, 44, 0.68), rgba(10, 13, 28, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pack { animation: card-float 8s ease-in-out infinite; }
.pack:nth-child(3n+2) { animation-delay: -2.6s; }
.pack:nth-child(3n+3) { animation-delay: -5.3s; }
.pack-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pack h3 { font-size: 1.2rem; }
.pack-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #05060e;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 999px;
  padding: 3px 9px;
}
.pack-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold-bright);
}
.pack-resumen { color: var(--text-muted); font-size: 0.96rem; }
.pack-incluye { list-style: none; display: grid; gap: 8px; margin-top: 2px; }
.pack-incluye li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.pack-incluye li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--violet-bright), var(--gold));
}
.pack .btn { margin-top: auto; }
.pack-destacado {
  border-color: rgba(217, 138, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(217, 138, 74, 0.18), var(--glow-gold);
}

/* pack-summary/pack-details existen para poder "cerrar" el pack en
   mobile (ver retoques de celular más abajo). En compu quedan
   siempre abiertos -- el botón se comporta como un contenedor mudo,
   sin look de botón ni cursor de click. */
.pack-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: default;
}
.pack-details { display: flex; flex-direction: column; gap: 14px; }
.pack-chevron { display: none; }

@media (min-width: 760px) { .packs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .packs-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Retoques SOLO para celular (≤699px) -- el desktop no toca
   nada de esto, sigue usando los valores de arriba tal cual.

   Tercera pasada: más aire entre el hero y "Qué hacemos", los
   bloques bien transparentes (se tienen que ver las estrellas
   pasando atrás, sin blur), y los packs pasan a ser cuadrados que
   se tocan para expandir -- en vez de tarjetas larguísimas.
   ============================================================ */
@media (max-width: 699px) {
  .hero-copy-center h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); order: 1; }
  /* El hero ocupa toda la pantalla (incluso con la barra de Safari
     abierta, por eso el min-height en dos unidades) y centra su
     contenido adentro -- así el título/botón quedan más abajo y
     centrados, y "Qué hacemos" nunca asoma hasta que se scrollea. */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    /* Un poco menos de aire arriba que abajo -- así el contenido
       centrado queda apenas más arriba del centro exacto. */
    padding-block: clamp(16px, 4vw, 28px) clamp(40px, 10vw, 64px);
  }
  .section { padding-block: clamp(40px, 10vw, 60px); }

  /* El eyebrow pasa de estar arriba del título a estar abajo, más
     chico -- así el espacio que había entre el header y el título
     queda libre (lo cubre el padding-top del hero de arriba). */
  .hero-copy-center .eyebrow {
    order: 2;
    font-size: 0.66rem;
    margin-top: 16px;
    margin-bottom: 0;
  }
  .hero-copy-center .lead { order: 3; }
  .hero-copy-center .cta-row-center { order: 4; }
  .hero-copy-center .hero-trust { order: 5; }
  /* El salto de "Qué hacemos" después del hero es el que más se
     sentía apretado -- le suma aire extra solo a esa transición,
     sin alargar el resto de las secciones de nuevo. */
  #servicios { padding-block-start: clamp(56px, 14vw, 80px); }

  /* El párrafo largo del hero se saca de acá y se muestra más abajo,
     en "Qué hacemos" (.section-sub-mobile) -- el espacio que deja
     libre queda vacío a propósito, no se rellena con nada. */
  .hero .lead { display: none; }
  .cta-row-center { margin-top: clamp(48px, 14vw, 72px); }
  .section-sub-mobile { display: block; }

  .cards, .why-grid, .steps, .packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  /* Packs: dos arriba, y el tercero (Negocio Full) abajo centrado
     entre los dos de arriba, en vez de una fila entera para él solo. */
  .packs-grid .pack:nth-child(3) {
    grid-column: 1 / -1;
    max-width: min(210px, 60%);
    margin-inline: auto;
  }

  /* Marco bien transparente -- sin blur, para que las estrellitas
     se sigan viendo nítidas pasando atrás de cada bloque. El borde
     queda más presente para que el "encuadre" siga leyéndose. */
  .card, .why-item, .step, .pack {
    padding: 16px 14px;
    background: linear-gradient(180deg, rgba(16, 20, 44, 0.32), rgba(10, 13, 28, 0.2));
    border-color: rgba(120, 130, 190, 0.55);
  }
  .card h3, .why-item h3, .step h3, .pack h3 { font-size: 0.98rem; }
  .card p, .why-item p, .step p, .pack-resumen { font-size: 0.86rem; }
  /* En la grilla de a dos, el párrafo largo de cada card de servicio
     hacía que el bloque quedara muy alto y desparejo -- se deja solo
     el título + la frase corta (card-tag), más a tono con "ir al
     punto" sin perder de qué se trata cada servicio. */
  .card p:not(.card-tag) { display: none; }
  .card-ico { width: 34px; height: 34px; margin-bottom: 10px; }
  .card-ico svg { width: 18px; height: 18px; }

  /* Packs: cuadrados cerrados por default, se tocan para expandir. */
  .pack { aspect-ratio: 1; justify-content: center; }
  .pack.is-open { aspect-ratio: auto; justify-content: flex-start; }
  .pack-summary {
    cursor: pointer;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .pack-summary .pack-top { flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
  .pack-chevron {
    display: block;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
  }
  .pack.is-open .pack-chevron { transform: rotate(180deg); }
  .pack-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    gap: 12px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  .pack.is-open .pack-details { max-height: 600px; opacity: 1; margin-top: 4px; }

  .pack-badge { font-size: 0.6rem; padding: 2px 7px; }
  .pack-price { font-size: 1.15rem; }
  .pack-incluye { gap: 6px; }
  .pack-incluye li { font-size: 0.8rem; }
  .pack .btn { font-size: 0.84rem; padding: 9px 12px; }

  .faq-item summary { font-size: 0.94rem; padding: 15px 30px 15px 0; }
  .faq-item p { font-size: 0.9rem; }

  /* FAQ y Contacto van al revés que en compu: Contacto ("Empecemos")
     primero, y las preguntas frecuentes quedan al final. */
  .faq-contact-col#faq { order: 2; }
  .faq-contact-col#contacto { order: 1; }
}
