/* producto.ar — landing público */

:root {
  /* Marca */
  --brand: #4f46e5;
  --brand-deep: #3730a3;
  --brand-soft: #eef2ff;
  --accent: #0891b2;
  --grad: linear-gradient(135deg, var(--brand), var(--accent));

  /* Neutros */
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e4e8ef;
  --bg: #fff;
  --bg-soft: #f7f8fc;

  /* Estados */
  --ok: #059669;  --ok-bg: #d1fae5;
  --warn: #b45309; --warn-bg: #fef3c7;
  --bad: #dc2626;  --bad-bg: #fee2e2;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(11 18 32 / .06), 0 2px 8px -4px rgb(11 18 32 / .12);
  --shadow: 0 4px 12px -6px rgb(11 18 32 / .18), 0 18px 40px -28px rgb(11 18 32 / .45);
  --shadow-lg: 0 32px 70px -30px rgb(11 18 32 / .55);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16.5px; line-height: 1.62; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.14rem; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
.icon { width: 1.2em; height: 1.2em; vertical-align: -.2em; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.06rem, 1.9vw, 1.26rem); color: #475569; }
.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Logotipo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.logo__word { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.035em; }
.logo__word i { font-style: normal; color: var(--accent); }
.logo--light .logo__word { color: #fff; }
.logo--light .logo__word i { color: #67e8f9; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 600; font-size: .96rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px var(--brand); }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / .28); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); }
.btn--sm { min-height: 40px; padding: 0 15px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgb(255 255 255 / .82);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.site-nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; color: #475569; font-size: .95rem; }
.site-nav a { position: relative; padding: 4px 0; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; border-radius: 2px; }
.site-nav a:hover { color: var(--brand); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: inline-flex; margin-left: auto; }
/* En celular el encabezado deja solo el logo y el menú:
   los botones viven dentro del desplegable. */
@media (max-width: 919px) { .site-header .actions { display: none; } }
@media (min-width: 920px) {
  .site-nav { display: flex; }
  .site-header .actions { margin-left: 0; }
  .nav-toggle { display: none; }
}
/* Menú desplegable en celular */
.mobile-nav { display: grid; gap: 4px; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 8px; border-radius: 10px; font-weight: 600; }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav .btn { margin-top: 8px; }
@media (min-width: 920px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 72px 0 84px; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 12% -12%, rgb(79 70 229 / .45), transparent 62%),
    radial-gradient(760px 420px at 92% 2%, rgb(8 145 178 / .38), transparent 58%),
    linear-gradient(170deg, #0b1220 0%, #151e38 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 500px at 30% 0%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { color: #fff; }
.hero h1 .hl { background: linear-gradient(120deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #c7d2e5; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .2);
  font-size: .84rem; font-weight: 600; color: #e2e8f0; margin-bottom: 20px;
}
.badge-pill .icon { color: #67e8f9; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .fine { margin-top: 18px; font-size: .87rem; color: #94a3b8; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .92rem; color: #cbd5e1; }
.hero__points span { display: inline-flex; align-items: center; gap: 7px; }
.hero__points .icon { color: #34d399; }

/* Maquetas del producto */
.shots { position: relative; }
.mock {
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: perspective(1500px) rotateY(-8deg) rotateX(3deg);
}
@media (max-width: 999px) { .mock { transform: none; } }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.mock__url { margin-left: 10px; font-size: .76rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 12px; }
.mock__body { padding: 16px; display: grid; gap: 12px; }
.mock__row { display: flex; align-items: center; gap: 12px; }
.mock__num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.mock__num--done { background: var(--ok); }
.mock__line { height: 9px; border-radius: 5px; background: #e6eaf2; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock__kpi strong { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; }
.mock__kpi span { font-size: .68rem; color: var(--muted); }
.mock__chip { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.mock__chip--warn { background: var(--warn-bg); color: var(--warn); }
.mock__chip--info { background: var(--brand-soft); color: var(--brand-deep); }
/* Teléfono superpuesto */
.phone {
  position: absolute; right: -6px; bottom: -46px; width: 168px; border-radius: 22px; padding: 7px;
  background: #0b1220; box-shadow: var(--shadow-lg); display: none;
}
@media (min-width: 1140px) { .phone { display: block; } }
.phone__screen { background: #fff; border-radius: 16px; overflow: hidden; }
.phone__top { background: var(--grad); color: #fff; padding: 10px; font-size: .68rem; font-weight: 700; }
.phone__body { padding: 10px; display: grid; gap: 8px; }
.phone__stop { display: flex; gap: 8px; align-items: center; font-size: .62rem; }
.phone__pin { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 700; flex: none; }
.phone__cta { background: var(--ok); color: #fff; border-radius: 8px; padding: 7px; text-align: center; font-size: .62rem; font-weight: 700; }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--brand); margin-bottom: 12px; font-family: var(--font); }
.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .95rem; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card__icon .icon { width: 24px; height: 24px; }

/* Paso a paso con línea de recorrido */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); counter-reset: step; position: relative; }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Precios ---------- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; transition: .2s; }
.plan:hover { box-shadow: var(--shadow); }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan--featured::after {
  content: "Más elegido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .71rem; font-weight: 700; padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
.plan__price { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
.plan__price span { display: block; font-family: var(--font); font-size: .84rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--ok); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; transition: .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-top: 12px; font-size: .95rem; }

/* ---------- Cierre y pie ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--grad); color: #fff;
  border-radius: 26px; padding: 56px 32px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgb(255 255 255 / .22), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e0e7ff; margin: 14px auto 28px; max-width: 540px; }
.site-footer { background: var(--ink); color: #94a3b8; padding: 52px 0 36px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer a:hover { color: #fff; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer .legal { border-top: 1px solid rgb(255 255 255 / .1); padding-top: 20px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
@media (min-width: 760px) { .site-footer .wrap > .top { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; } }

/* ---------- Diálogos ---------- */
dialog { border: 0; border-radius: 22px; padding: 0; width: min(100%, 560px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgb(11 18 32 / .65); backdrop-filter: blur(4px); }
dialog[open] { animation: dialog-in .22s cubic-bezier(.22,1,.36,1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog__head { padding: 26px 26px 0; display: flex; gap: 16px; align-items: flex-start; }
.dialog__head h2 { font-size: 1.4rem; }
.dialog__head p { color: var(--muted); font-size: .92rem; margin-top: 7px; }
.dialog__close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 9px; }
.dialog__close:hover { background: var(--bg-soft); color: var(--ink); }
.dialog__body { padding: 22px 26px 26px; display: grid; gap: 15px; max-height: min(66vh, 620px); overflow-y: auto; }
.dialog__foot { padding: 16px 26px 26px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.dialog__foot .fine { font-size: .8rem; color: var(--muted); text-align: center; }

.field { display: grid; gap: 7px; }
.field > label { font-size: .86rem; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); transition: .15s;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); border-color: var(--brand); }
.field .error { color: var(--bad); font-size: .83rem; font-weight: 500; }
.grid-2 { display: grid; gap: 15px; }
@media (min-width: 520px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.subdomain { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.subdomain:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); border-color: var(--brand); }
.subdomain input { border: 0; border-radius: 0; font-weight: 600; }
.subdomain input:focus { outline: none; }
.subdomain__suffix { display: flex; align-items: center; padding: 0 14px; background: var(--bg-soft); border-left: 1px solid var(--line); color: var(--muted); font-size: .9rem; white-space: nowrap; font-weight: 600; }
.availability { font-size: .84rem; font-weight: 600; display: flex; align-items: center; gap: 7px; min-height: 21px; }
.availability--ok { color: var(--ok); }
.availability--bad { color: var(--bad); }
.availability--checking { color: var(--muted); font-weight: 500; }
.form-errors { background: var(--bad-bg); color: #991b1b; border-radius: var(--radius-sm); padding: 12px 15px; font-size: .9rem; }

.success { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 10px 0 6px; }
.success__mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); animation: pop .35s cubic-bezier(.22,1,.36,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.success__mark .icon { width: 36px; height: 36px; }
.success code { background: var(--brand-soft); color: var(--brand-deep); padding: 5px 11px; border-radius: 9px; font-weight: 700; font-family: var(--display); }
.success ol { text-align: left; margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }

/* ---------- Estado de la solicitud ---------- */
.status-page { max-width: 700px; margin: 0 auto; padding: 52px 20px 80px; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; }
.status-domain { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; word-break: break-all; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.timeline__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); border: 2px solid var(--line); font-size: .8rem; font-weight: 700; }
.timeline li.done .timeline__dot { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.timeline__body { padding-bottom: 24px; border-left: 2px solid var(--line); margin-left: -33px; padding-left: 33px; }
.timeline li:last-child .timeline__body { border-left-color: transparent; padding-bottom: 0; }
.timeline h3 { font-size: 1rem; }
.timeline p { font-size: .9rem; color: var(--muted); }
.notice { border-radius: var(--radius-sm); padding: 15px 17px; display: flex; gap: 11px; font-size: .93rem; }
.notice--ok { background: var(--ok-bg); color: #065f46; }
.notice--warn { background: var(--warn-bg); color: #78350f; }
.notice--bad { background: var(--bad-bg); color: #991b1b; }
