/* =========================================================================
   Vilababel · diARI — Sistema de marca v2 (línea editorial Inter)
   Negro profundo + oro + un detalle verde ARI. Compartido por vilababel.com
   (matriz) y di-ari.com (producto): home, páginas de contenido, landings de
   dolor, legales, 404. Tipografía única: Inter.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0a0a;
  --bg2: #0c0c0c;
  --fg: #f4f4f2;
  --muted: #a2a2a0;
  --dim: #6a6a68;
  --gold: #e0a400;
  --gold-soft: #d9a300;
  --green: #79df00;
  --line: #1f1f1f;
  --line2: #262624;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(224, 164, 0, 0.28); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 15px clamp(20px, 5vw, 64px);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .torre, .brand .torre-mini { width: 30px; height: auto; }
.brand .wordmark, .brand .wordmark-img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav a.link, .topbar nav > a:not(.btn-pill):not(.nav-diari) {
  font-size: 14.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.2px;
  transition: color 0.15s ease; white-space: nowrap;
}
.nav a.link:hover, .topbar nav > a:hover { color: var(--fg); }
.nav a.active { color: var(--fg); }
.btn-pill, .nav-diari {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(224, 164, 0, 0.55);
  color: var(--fg); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-pill:hover, .nav-diari:hover { background: rgba(224, 164, 0, 0.1); border-color: var(--gold); }

/* ---------- Layout base ---------- */
.section { padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--muted); margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }

/* ---------- Botones ---------- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 12px;
  background: var(--gold); color: #141007; font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 30px rgba(224, 164, 0, 0.14); cursor: pointer; border: none;
}
.btn-gold:hover { background: #f0b40c; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(224, 164, 0, 0.22); }
.link-under {
  font-size: 15.5px; font-weight: 600; color: var(--fg);
  border-bottom: 1px solid rgba(244, 244, 242, 0.35); padding-bottom: 3px;
  transition: border-color 0.15s ease;
}
.link-under:hover { border-color: var(--gold); }
.inline { color: var(--gold); border-bottom: 1px solid rgba(224, 163, 0, 0.4); white-space: nowrap; }

/* ---------- Hero editorial ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 {
  margin: 0 0 24px; font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02;
}
.hero h1 .gold { color: var(--gold); }
.hero .lead { margin: 0 0 34px; max-width: 30em; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); line-height: 1.65; }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .micro { margin: 0; font-size: 13.5px; color: var(--dim); }

/* Radar graphic */
.radar { display: grid; place-items: center; }
.radar figure { margin: 0; text-align: center; }
.radar-rings { position: relative; display: inline-block; line-height: 0; }
.radar-rings svg { width: min(360px, 78vw); height: auto; display: block; }
.radar-torre { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30%; height: auto; }
.radar figcaption { margin-top: 18px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); font-weight: 600; line-height: 1.4; }

/* Meta strip */
.meta {
  max-width: var(--maxw); margin: clamp(40px, 7vw, 90px) auto 0; padding-top: 26px;
  border-top: 1px solid var(--line2); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.meta strong { color: var(--fg); font-weight: 600; }
.meta .right { color: var(--dim); }

/* ---------- Lista numerada (relación) ---------- */
.relacion { background: var(--bg2); border-top: 1px solid var(--line); }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rel-left h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; }
.rel-left h2 .muted { color: var(--dim); }
.rel-left .note { margin-top: 24px; color: var(--muted); font-size: 16px; max-width: 24em; }
.rel-list { display: flex; flex-direction: column; }
.rel-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line2); }
.rel-item:first-child { border-top: none; padding-top: 4px; }
.rel-item .num { color: var(--gold); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.rel-item h3 { margin: 0 0 8px; font-size: clamp(18px, 2vw, 23px); font-weight: 600; letter-spacing: -0.01em; }
.rel-item p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Tarjeta diARI ---------- */
.diari { border-top: 1px solid var(--line); }
.diari-card {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(22px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--line2); border-radius: 20px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(224, 164, 0, 0.06), transparent 60%);
}
.diari-card .raiz { width: 76px; height: auto; }
.diari-card .t .k { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 0 0 8px; }
.diari-card .t h3 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.diari-card .t h3 .name { color: var(--green); }
.diari-card .t p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 42em; }

/* ---------- Prosa (contenido editorial dentro del shell) ---------- */
.prose { max-width: 720px; }
.prose.wide { max-width: var(--maxw); }
.prose h1 { margin: 0 0 20px; font-weight: 800; letter-spacing: -0.025em; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; }
.prose h1 .gold { color: var(--gold); }
.prose h2 { margin: 48px 0 14px; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(22px, 2.8vw, 30px); }
.prose h3 { margin: 30px 0 10px; font-weight: 600; font-size: clamp(18px, 2vw, 22px); }
.prose p { margin: 0 0 18px; font-size: 17px; color: #d4d4d2; line-height: 1.7; }
.prose p.lead { font-size: clamp(18px, 2vw, 22px); color: var(--fg); font-weight: 500; margin-bottom: 26px; }
.prose a:not(.btn-gold):not(.link-under) { color: var(--gold); border-bottom: 1px solid rgba(224, 163, 0, 0.4); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #d4d4d2; }
.prose li { margin: 0 0 10px; font-size: 16.5px; line-height: 1.6; }
.prose .g { color: var(--gold); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--line2); margin: 40px 0; }
.prose .muted { color: var(--muted); }

/* Lista tipo "para marcas" en tarjetas */
.pm-list { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 12px; }
.pm-list li { border: 1px solid var(--line2); border-radius: 12px; padding: 16px 20px; color: #cbc8bf; font-size: 16px; line-height: 1.6; }
.pm-list .k { color: var(--gold); font-weight: 700; margin-right: 6px; }

/* ---------- Landing de dolor / home producto (centrado) ---------- */
body.page-landing {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(40px, 8vw, 80px) 22px; text-align: center; min-height: 100dvh;
}
body.page-producto {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(32px, 6vw, 56px) 22px; text-align: center;
}
.page-landing .wrap, .page-producto .wrap { max-width: 640px; width: 100%; margin: 0 auto; }
.page-producto .wrap { min-height: calc(100dvh - 112px); display: flex; flex-direction: column; justify-content: center; }
.marca { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 0 0 18px; }
.raiz { width: 92px; height: auto; margin: 0 auto 14px; }
.diari-name { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.seed { width: 40px; height: 3px; border-radius: 2px; background: var(--green); margin: 16px auto 30px; }
.page-landing h1, .page-producto h1 {
  margin: 0 0 16px; font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(30px, 5.4vw, 48px); line-height: 1.08;
}
.lede { font-size: clamp(16px, 2vw, 20px); color: var(--muted); margin: 0 auto 10px; max-width: 30em; line-height: 1.55; }
.lede.tight { margin-top: 0; }
.bridge { font-size: 15.5px; color: #cfcfcd; margin: 26px auto; max-width: 34em; line-height: 1.7; }
.bridge .g, .g { color: var(--gold); font-weight: 600; }

/* Cuenta atrás */
.count { display: flex; justify-content: center; gap: clamp(18px, 5vw, 40px); margin: 30px auto 34px; }
.count > div { display: flex; flex-direction: column; align-items: center; }
.count b { font-size: clamp(30px, 7vw, 46px); font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.count span { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-top: 6px; font-weight: 600; }

/* Formulario Alístate */
#form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; text-align: left; }
#form input[type="text"], #form input[type="email"], #form input[type="tel"] {
  width: 100%; padding: 15px 18px; border-radius: 12px;
  background: #141414; border: 1px solid var(--line2); color: var(--fg); font: inherit; font-size: 16px;
  transition: border-color 0.15s ease;
}
#form input::placeholder { color: var(--dim); }
#form input:focus { outline: none; border-color: rgba(224, 164, 0, 0.6); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.consent a { color: var(--gold); }
#submit {
  margin-top: 6px; padding: 15px 22px; border-radius: 12px; border: none;
  background: var(--gold); color: #141007; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
#submit:hover { background: #f0b40c; transform: translateY(-1px); }
#submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.msg { font-size: 13.5px; color: var(--muted); min-height: 18px; text-align: center; }
.msg.error { color: #ff8a8a; }
.msg.ok { color: var(--green); }
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.done { max-width: 420px; margin: 10px auto 0; }
.done #doneHi { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.done b { display: block; font-size: 40px; font-weight: 800; color: var(--gold); margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.done p { color: var(--muted); font-size: 15px; margin: 0; }

/* Secciones extra bajo la home producto */
.di-more { width: 100%; max-width: 640px; margin: 10px auto 0; text-align: left; border-top: 1px solid var(--line); }
.di-more > section { padding: 30px 2px; border-bottom: 1px solid var(--line2); }
.di-more h2 { margin: 0 0 10px; font-weight: 700; letter-spacing: -0.015em; font-size: clamp(19px, 3vw, 24px); color: var(--fg); }
.di-more p { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--muted); }
.di-more strong { color: var(--fg); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site, .di-foot {
  border-top: 1px solid var(--line); padding: 40px clamp(20px, 5vw, 64px);
  display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim); max-width: var(--maxw); margin: 0 auto; width: 100%;
}
footer.site a, .di-foot a { color: var(--dim); }
footer.site a:hover, .di-foot a:hover { color: var(--muted); }
.foot-social { display: inline-block; }
.foot-social a { margin-left: 6px; }
.page-landing footer, .page-producto > footer:not(.di-foot) { margin-top: 36px; font-size: 13px; color: var(--dim); }
.page-landing footer a, .page-producto > footer:not(.di-foot) a { color: var(--dim); }
.page-landing footer a:hover { color: var(--muted); }

/* ---------- Documento legal ---------- */
body.page-doc { display: flex; flex-direction: column; min-height: 100dvh; }
.page-doc .doc, .doc-shell { flex: 1 0 auto; max-width: 760px; width: 100%; margin: 0 auto; padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 32px); text-align: left; }
.doc h1 { margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(28px, 4vw, 40px); }
.doc .updated { color: var(--dim); font-size: 13px; margin: 0 0 32px; }
.doc h2 { margin: 36px 0 12px; font-weight: 700; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -0.01em; }
.doc h3 { margin: 24px 0 8px; font-weight: 600; font-size: 17px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.7; color: #cfcfcd; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--gold); border-bottom: 1px solid rgba(224, 163, 0, 0.4); }
.doc strong { color: var(--fg); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line2); padding: 10px 12px; text-align: left; color: #cfcfcd; }
.doc th { color: var(--fg); font-weight: 600; }

/* ---------- 404 ---------- */
body.page-404 { display: flex; min-height: 100dvh; align-items: center; justify-content: center; text-align: center; padding: 40px 22px; }
.page-404 .code { font-size: clamp(60px, 14vw, 120px); font-weight: 900; letter-spacing: -0.04em; color: var(--gold); line-height: 1; margin: 0 0 10px; }
.page-404 h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; margin: 0 0 14px; }
.page-404 p { color: var(--muted); margin: 0 0 26px; }

/* ---------- noscript ---------- */
.noscript-aviso { margin: 0; padding: 14px 18px; background: #1a1407; color: var(--fg); border-bottom: 1px solid var(--gold); font-size: 15px; text-align: center; }
.noscript-aviso a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .radar { order: -1; }
  .rel-grid { grid-template-columns: 1fr; gap: 36px; }
  .diari-card { grid-template-columns: 1fr; text-align: left; }
  .topbar nav > a.nav-hide { display: none; }
}
@media (max-width: 520px) {
  .cta-row { gap: 16px; }
  .cta-row .btn-gold { width: 100%; justify-content: center; }
  .meta { flex-direction: column; gap: 6px; }
}
