/* =========================================================
   MAVLY STUDIO · styles.css
   Mobile-first: los estilos base son para teléfono.
   Las media queries (min-width) añaden mejoras para pantallas mayores.
   ========================================================= */

:root {
  --black: #050505;
  --surface: #171717;
  --surface-2: #101010;
  --white: #ffffff;
  --muted: #a1a1aa;
  --lime: #b6f34a;
  --lime-ink: #0a0f02;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --error: #ff8a80;

  --font-display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Manrope", "Inter", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--lime-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg);
  font-weight: 600; font-size: 0.975rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary { --btn-bg: var(--lime); color: var(--lime-ink); }
.btn--primary:hover { box-shadow: 0 0 0 4px rgba(182, 243, 74, 0.18), 0 10px 30px -10px rgba(182, 243, 74, 0.55); }
.btn--ghost { border-color: var(--line-strong); color: var(--white); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 54px; padding: 15px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
/* Con el menú abierto se quita el desenfoque de la barra: backdrop-filter convertiría la barra
   en el contenedor del menú (position: fixed) y lo recortaría. */
.nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: #050505; }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand__logo { height: 28px; width: auto; }
.brand__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Si no existe /assets/logo.png, script.js añade .brand--text y se muestra el nombre */
.brand--text .brand__logo { display: none; }
.brand--text .brand__text {
  position: static; width: auto; height: auto; clip: auto;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 1.02rem;
}

.nav__links, .nav__cta { display: none; }

.burger {
  width: 48px; height: 48px; margin-right: -10px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .35s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 0 0;
  background: rgba(5, 5, 5, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu.is-visible { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu__actions { display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 48px) 0 64px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; width: 640px; height: 640px; right: -260px; top: -180px;
  background: radial-gradient(closest-side, rgba(182, 243, 74, 0.16), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 10%, transparent 75%);
  opacity: .55;
}
@keyframes drift { to { transform: translate3d(-80px, 60px, 0); } }

.hero__inner { position: relative; display: grid; gap: 48px; }
.hero__title {
  font-size: clamp(2.35rem, 9.2vw, 4.6rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 14ch;
}
.hero__lead {
  margin-top: 20px; color: var(--muted);
  font-size: clamp(1.05rem, 3.6vw, 1.2rem); max-width: 34rem;
}
.hero__actions { margin-top: 32px; display: grid; gap: 12px; }

/* Entrada del hero (un único momento orquestado) */
.js .hero__title { animation: rise .9s var(--ease) both; }
.js .hero__lead { animation: rise .9s var(--ease) .12s both; }
.js .hero__actions { animation: rise .9s var(--ease) .22s both; }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Ventana que se construye */
.build {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #121212, #0b0b0b);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.build__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.build__dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; }
.build__url {
  margin-left: 10px; padding: 3px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05); color: var(--muted); font-size: .75rem;
}
.build__page { padding: 22px 20px 26px; display: grid; gap: 12px; }
.b { border-radius: 6px; background: rgba(255,255,255,.08); transform-origin: left center; }
.b--nav { display: flex; gap: 8px; background: none; margin-bottom: 8px; }
.b--nav i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); flex: 0 0 34px; }
.b--nav i:first-child { flex-basis: 52px; background: rgba(255,255,255,.3); margin-right: auto; }
.b--h1 { height: 18px; width: 86%; background: rgba(255,255,255,.55); }
.b--short { width: 58%; }
.b--p { height: 8px; width: 76%; margin-top: 6px; }
.b--shorter { width: 52%; margin-top: 0; }
.b--btns { display: flex; gap: 8px; background: none; margin-top: 8px; }
.b--btns i { height: 26px; width: 96px; border-radius: 999px; border: 1px solid var(--line-strong); }
.b--btns i.is-accent { background: var(--lime); border-color: var(--lime); }
.b--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; margin-top: 14px; }
.b--cards i { height: 62px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.build__status {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(5,5,5,.8); border: 1px solid var(--line-strong);
  font-size: .75rem; color: var(--white);
}
.build__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(182,243,74,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(182,243,74,0); } 100% { box-shadow: 0 0 0 0 rgba(182,243,74,0); } }

.js .build .b { animation: grow .7s var(--ease) both; }
.js .build .b:nth-child(1) { animation-delay: .35s; }
.js .build .b:nth-child(2) { animation-delay: .5s; }
.js .build .b:nth-child(3) { animation-delay: .6s; }
.js .build .b:nth-child(4) { animation-delay: .72s; }
.js .build .b:nth-child(5) { animation-delay: .8s; }
.js .build .b:nth-child(6) { animation-delay: .92s; }
.js .build .b:nth-child(7) { animation-delay: 1.05s; }
.js .build__status { animation: rise .7s var(--ease) 1.3s both; }
@keyframes grow { from { opacity: 0; transform: scaleX(.35); } to { opacity: 1; transform: none; } }

/* ---------- Barra de confianza ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust__list {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  padding-block: 24px;
}
.trust__list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: #e4e4e7; }
.trust__list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */
.section { padding-block: 88px; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section__head { max-width: 44rem; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.9rem, 6.4vw, 3rem); }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section__head p a { color: var(--white); text-underline-offset: 3px; }
.section__head--row { display: grid; gap: 20px; max-width: none; }
.section__head--row > div { max-width: 44rem; }

/* Aparición al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 14px; }
.service {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .3s, transform .4s var(--ease), background-color .3s;
}
.service:hover { border-color: var(--line-strong); }
.service__icon { width: 30px; height: 30px; fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.service h3 { font-size: 1.3rem; }
.service p { color: var(--muted); }
.service__benefit { font-size: .95rem; padding-top: 12px; border-top: 1px solid var(--line); }
.service__benefit strong { color: var(--white); font-weight: 600; }
.service__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--lime); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) left 75% / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.service__link:hover { background-size: 100% 1px; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 30px; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after { background: var(--lime); transform-origin: top; transition: transform 1.4s var(--ease); }
.js .steps::after { transform: scaleY(0); }
.js .steps.is-visible::after { transform: none; }
.step { position: relative; padding-left: 64px; }
.step__num {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-num); font-weight: 700;
  background: var(--black); border: 2px solid var(--line-strong); color: var(--muted);
  transition: border-color .4s, color .4s, background-color .4s;
}
.steps.is-visible .step__num, html:not(.js) .step__num { border-color: var(--lime); color: var(--lime); }
.steps.is-visible .step:nth-child(2) .step__num { transition-delay: .35s; }
.steps.is-visible .step:nth-child(3) .step__num { transition-delay: .7s; }
.steps.is-visible .step:nth-child(4) .step__num { transition-delay: 1.05s; }
.step h3 { font-size: 1.25rem; padding-top: 8px; }
.step p { margin-top: 6px; color: var(--muted); }

/* ---------- Por qué elegirnos ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature {
  position: relative;
  padding: 26px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.feature__icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 18px;
  border-radius: 12px; border: 1px solid rgba(182,243,74,.25); background: rgba(182,243,74,.06);
  fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 8px; color: var(--muted); }
@media (hover: hover) {
  .feature:hover {
    transform: translateY(-4px);
    border-color: rgba(182,243,74,.3);
    box-shadow: 0 18px 40px -24px rgba(182,243,74,.35);
  }
}

/* ---------- Precios ---------- */
.plans { display: grid; gap: 16px; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.plan--featured {
  border-color: rgba(182, 243, 74, 0.6);
  background: linear-gradient(180deg, rgba(182,243,74,.08), rgba(182,243,74,0) 40%), var(--surface);
  box-shadow: 0 30px 60px -40px rgba(182,243,74,.45);
}
.plan--elite { background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%), var(--surface); border-color: var(--line-strong); }
.plan__badge {
  position: absolute; top: 0; left: 22px; transform: translateY(-50%); margin: 0;
  padding: 5px 12px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.plan__name { font-size: 1.4rem; }
.plan__desc { color: var(--muted); }
.plan__price {
  margin-top: 6px;
  font-family: var(--font-num); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 10vw, 3rem); line-height: 1;
}
.plan__time { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.plan__includes { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.plan__list li { position: relative; padding-left: 26px; color: #d4d4d8; }
.plan__list li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 11px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}
.plan__foot { margin-top: 10px; color: var(--muted); font-size: .82rem; }

.compare { margin-top: 48px; }
.compare__title { font-size: 1.5rem; margin-bottom: 8px; }
.compare__hint { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.compare__wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.compare__table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: .86rem; line-height: 1.35; table-layout: fixed; }
.compare__table th, .compare__table td { padding: 12px 10px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table thead th { font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding-top: 16px; padding-bottom: 16px; }
.compare__table th[scope="row"] { text-align: left; font-weight: 500; color: var(--white); padding-left: 14px; }
.compare__table th[scope="row"], .compare__table thead th:first-child {
  width: 150px; position: sticky; left: 0; z-index: 1; background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}
.compare__table td { color: #d4d4d8; }
.compare__table .is-featured { background: rgba(182,243,74,.06); }
.compare__table thead .is-featured { color: var(--lime); }
.compare__table tbody tr:first-child td { font-family: var(--font-num); font-weight: 700; font-size: 1rem; color: var(--white); }
.ck, .dash { display: inline-block; vertical-align: middle; }
.ck { width: 12px; height: 7px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg) translate(1px, -1px); }
.dash { width: 12px; height: 2px; border-radius: 2px; background: #52525b; }

.pricing-foot { margin-top: 20px; display: grid; gap: 16px; align-items: start; }
.terms { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.terms summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
}
.terms summary::-webkit-details-marker { display: none; }
.terms[open] summary .acc__icon { background: var(--lime); border-color: var(--lime); }
.terms[open] summary .acc__icon::before, .terms[open] summary .acc__icon::after { background: var(--lime-ink); }
.terms[open] summary .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.terms ul { margin: 0; padding: 0 20px 20px 40px; display: grid; gap: 8px; color: var(--muted); font-size: .93rem; }
.custom-quote { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 12px; justify-items: start; }
.custom-quote h3 { font-size: 1.15rem; }
.custom-quote p { color: var(--muted); }

/* ---------- Por qué MAVLY ---------- */
.why { display: grid; gap: 40px; }
.why__head h2 { font-size: clamp(1.9rem, 6.4vw, 3rem); }
.why__head p { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 38rem; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; }
.why__list li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 12px; }
.why__list h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); flex: none; }
.why__list p { color: var(--muted); padding-left: 20px; }

/* ---------- Reseñas ---------- */
.reviews { display: grid; gap: 16px; }
.reviews__empty {
  padding: 32px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  text-align: center; display: grid; gap: 6px; color: var(--muted);
}
.reviews__empty strong { color: var(--white); font-weight: 600; }
.review {
  padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { display: flex; gap: 3px; }
.review__stars svg { width: 16px; height: 16px; fill: var(--lime); }
.review__stars svg.is-off { fill: #333; }
.review blockquote { margin: 0; color: #e4e4e7; }
.review footer { margin-top: auto; }
.review cite { font-style: normal; font-weight: 600; display: block; }
.review footer span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc h3 { font-size: inherit; font-family: inherit; letter-spacing: normal; line-height: inherit; }
.acc__btn {
  width: 100%; min-height: 64px; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35;
}
.acc__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--white);
  transform: translate(-50%, -50%); transition: transform .35s var(--ease);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--lime); border-color: var(--lime); }
.acc__btn[aria-expanded="true"] .acc__icon::before,
.acc__btn[aria-expanded="true"] .acc__icon::after { background: var(--lime-ink); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
.js .acc__panel { grid-template-rows: 0fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--muted); padding: 0 44px 22px 0; }
.acc__panel a { color: var(--white); text-underline-offset: 3px; }
.js .acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- CTA final ---------- */
.cta { padding-block: 24px 88px; }
.cta__box {
  position: relative; overflow: hidden;
  padding: 48px 24px;
  border-radius: var(--r-lg); border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(182,243,74,.18), transparent 55%),
    var(--surface);
}
.cta__box h2 { font-size: clamp(2rem, 7.5vw, 3.6rem); letter-spacing: -0.04em; max-width: 14ch; }
.cta__box p { margin-top: 16px; color: #d4d4d8; font-size: 1.08rem; max-width: 34rem; }
.cta__actions { margin-top: 30px; display: grid; gap: 12px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 40px; }
.contact__intro h2 { font-size: clamp(1.9rem, 6.4vw, 3rem); }
.contact__intro > p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.contact__channels { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.contact__channels a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: var(--r-sm); border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; overflow-wrap: anywhere;
  transition: border-color .25s, background-color .25s;
}
.contact__channels a:hover { border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.contact__channels span { color: var(--muted); font-size: .82rem; font-weight: 400; }

.form {
  display: grid; gap: 18px;
  padding: 24px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .92rem; font-weight: 500; padding: 0; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font-size: 16px; /* evita zoom automático en iOS */
  background: var(--black); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(182,243,74,.18);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field__hint { color: var(--muted); font-size: .85rem; }
.field__error { color: var(--error); font-size: .88rem; min-height: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lime); }
.field--check label { font-weight: 400; color: #d4d4d8; }
.field--check label a { color: var(--white); text-underline-offset: 3px; }
.field--check .field__error { grid-column: 1 / -1; }
.form__submit { margin-top: 4px; }
.form__status { font-size: .95rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--lime); }
.form__status.is-error { color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Estrellas */
.stars__group { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars__group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars__group label {
  width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; border-radius: 10px;
}
.stars__group label::before {
  content: ""; width: 30px; height: 30px; background: #3a3a3a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 6.1 6.7.7-5 4.5 1.4 6.6L12 17.3l-5.9 3.4 1.4-6.6-5-4.5 6.7-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 6.1 6.7.7-5 4.5 1.4 6.6L12 17.3l-5.9 3.4 1.4-6.6-5-4.5 6.7-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color .15s, transform .2s var(--ease);
}
.stars__group label:hover::before,
.stars__group label:hover ~ label::before,
.stars__group input:checked ~ label::before { background: var(--lime); }
.stars__group label:active::before { transform: scale(.85); }
.stars__group input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 2px; }
.stars.is-invalid .stars__group label::before { background: #5a2a26; }

/* ---------- Modal ---------- */
.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface); color: var(--white);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__inner { padding: 22px 20px 24px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal__head h2 { font-size: 1.5rem; }
.modal__close {
  width: 44px; height: 44px; margin-right: -8px; border-radius: 50%;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,.06); }
.modal__close svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; }
.modal__note { color: var(--muted); font-size: .92rem; margin: 8px 0 18px; }
.form--modal { padding: 0; background: none; border: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); background: var(--surface-2);
  padding: 56px 0 calc(96px + env(safe-area-inset-bottom)); /* espacio para el botón flotante */
}
.footer__grid { display: grid; gap: 36px; }
.footer__brand p { margin-top: 14px; color: var(--muted); max-width: 26rem; }
.footer__col { display: grid; gap: 4px; align-content: start; }
.footer__col h2 { font-size: .95rem; letter-spacing: 0; margin-bottom: 6px; font-weight: 600; }
.footer__col a {
  color: var(--muted); text-decoration: none; padding: 7px 0; overflow-wrap: anywhere;
  transition: color .2s;
}
.footer__col a:hover { color: var(--white); }
.footer__legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; gap: 14px; color: var(--muted); font-size: .88rem;
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a, .footer__legal .link-btn { color: var(--muted); padding: 6px 0; }
.footer__legal a:hover, .footer__legal .link-btn:hover { color: var(--white); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.2);
  transition: transform .35s var(--ease), opacity .3s;
}
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; visibility: hidden; transition: transform .35s var(--ease), opacity .3s, visibility 0s .35s; }

/* ---------- Aviso de cookies (solo aparece si activas Google Analytics) ---------- */
.cookie {
  position: fixed; z-index: 120; left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 520px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.cookie p { color: #d4d4d8; font-size: .92rem; }
.cookie a { color: var(--white); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ---------- Páginas interiores (legal, proyectos, 404, gracias) ---------- */
.page { padding: calc(var(--nav-h) + env(safe-area-inset-top) + 48px) 0 88px; }
.page__head { max-width: 46rem; margin-bottom: 40px; }
.page__head h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); letter-spacing: -0.04em; }
.page__head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose li { color: #d4d4d8; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.prose a { color: var(--lime); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .pending { color: var(--lime); font-weight: 600; }
.prose .note {
  padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid rgba(182,243,74,.35);
  background: rgba(182,243,74,.06); color: #e4e4e7; margin: 20px 0;
}
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { color: var(--white); font-weight: 600; }
.table-wrap td { color: #d4d4d8; }
.center-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.center-page h1 { font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -0.04em; }
.center-page p { color: var(--muted); margin: 16px auto 28px; max-width: 30rem; }
.center-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* =========================================================
   TABLET (≥ 640px)
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions, .cta__actions { display: flex; flex-wrap: wrap; }
  .trust__list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .compare__table { font-size: .92rem; }
  .compare__table thead th { font-size: .95rem; }
  .compare__table th, .compare__table td { padding: 14px 12px; }
  .compare__table { min-width: 0; }
  .compare__table th[scope="row"], .compare__table thead th:first-child { width: 28%; position: static; box-shadow: none; }
  .compare__hint { display: none; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }
  .modal__inner { padding: 28px 30px 30px; }
  .cta__box { padding: 64px 48px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__legal { grid-template-columns: 1fr auto; align-items: center; }
  .contact__channels { grid-template-columns: repeat(3, 1fr); }
  .contact__channels a { height: 100%; }
}

/* =========================================================
   ESCRITORIO PEQUEÑO (≥ 900px)
   ========================================================= */
@media (min-width: 900px) {
  :root { --nav-h: 72px; }
  .section { padding-block: 120px; }

  .hero { padding-bottom: 96px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .build { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }

  .services { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .service { grid-column: span 2; padding: 30px 26px; }
  .service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
  .service:hover { transform: translateY(-4px); }


  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before, .steps::after { left: 22px; right: calc((100% - 84px) / 4 - 22px); top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; }
  .js .steps::after { transform: scaleX(0); }
  .js .steps.is-visible::after { transform: none; }
  .step { padding-left: 0; padding-top: 68px; }
  .step h3 { padding-top: 0; }

  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .plan { padding: 34px 28px; }
  .plan--featured { transform: translateY(-12px); }
  .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .plan__desc { min-height: 4.8em; }
  .feature { padding: 30px 26px; }
  .pricing-foot { grid-template-columns: 1.5fr 1fr; }
  .compare__table th[scope="row"] { padding-left: 22px; }

  .why { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
  .why__head { position: sticky; top: calc(var(--nav-h) + 40px); }

  .reviews { grid-template-columns: repeat(3, 1fr); }
  .reviews__empty { grid-column: 1 / -1; }
  .section__head--row { grid-template-columns: 1fr auto; align-items: end; }

  .faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
  .faq .section__head { position: sticky; top: calc(var(--nav-h) + 40px); }

  .cta__box { padding: 88px 72px; }

  .contact { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .contact__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
  .contact__channels { grid-template-columns: 1fr; }

  .footer { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }

}

/* =========================================================
   ESCRITORIO (≥ 1100px): navegación completa
   ========================================================= */
@media (min-width: 1100px) {
  .burger, .mobile-menu { display: none !important; }
  .nav__links { display: flex; gap: 4px; }
  .nav__links a {
    padding: 8px 12px; border-radius: 999px;
    color: #d4d4d8; text-decoration: none; font-size: .92rem; font-weight: 500;
    transition: color .2s, background-color .2s;
  }
  .nav__links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
  .nav__links a.is-active { color: var(--white); }
  .nav__cta { display: inline-flex; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
}
