/* =========================================================================
   Vilababel · diARI — Sistema de marca CIEGA (hasta 15-D) — PROTOTIPO preview
   Negro profundo + oro escaso + un solo detalle en verde ARI. Sereno.
   NO revela el producto. Compartido por / (matriz), /diARI y /diARI/<dolor>.
   ========================================================================= */
:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #a8a8a8;
  --dim: #5f5f5f;
  --gold: #d9a300;
  --green: #79df00; /* el ÚNICO detalle vivo, muy escaso */
  --line: #222;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  line-height: 1.6;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Raíz + detalle verde */
.raiz {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 6px;
  filter: drop-shadow(0 0 34px rgba(217, 163, 0, 0.26));
}
.seed {
  width: 34px;
  height: 2px;
  background: var(--green);
  margin: 0 auto 26px;
  border-radius: 2px;
  opacity: 0.9;
}

/* === Matriz Vilababel (empresa): torre + wordmark pixel + manifiesto === */
.torre {
  width: 150px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 42px rgba(217, 163, 0, 0.3));
}
/* Cabecera de marca arriba-izquierda (torre + wordmark) */
.site-head {
  position: absolute;
  top: 22px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.torre-mini {
  width: 42px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(217, 163, 0, 0.4));
}
.wordmark-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* La matriz lleva la MISMA barra superior que las páginas internas:
   topbar arriba (en flujo) + hero centrado en el espacio restante. */
body.page-matriz {
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
}
.page-matriz .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 22px 44px;
}

/* Botón grande y pulsable de diARI (verde ARI) — foco de la matriz */
.btn-diari {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin: 0;
}
/* Círculo sencillo: botón redondo blanco limpio */
.btn-circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.14s ease,
    box-shadow 0.18s ease;
}
.btn-diari:hover .btn-circle {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.btn-diari:active .btn-circle {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn-circle .btn-raiz {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.btn-cap {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--fg);
}
.btn-cap .name {
  color: var(--green);
  font-weight: 800;
}
/* Separar bastante el manifiesto del bloque inferior (primer paso + botón + pie) */
.page-matriz .bridge {
  margin-top: 17vh;
  margin-bottom: 30px;
}
@media (prefers-reduced-motion: reduce) {
  .btn-diari {
    animation: none;
  }
}
/* Manifiesto en tipografía de libro antiguo (IM Fell English), 1 frase por línea */
.manifiesto {
  font-family: 'Segoe Script', 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 500;
  font-size: clamp(16px, 2.4vw, 31px);
  line-height: 1.45;
  color: #ece5d4;
  margin: 0 0 2px;
  max-width: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.manifiesto em {
  color: var(--gold);
  font-style: italic;
}
@media (max-width: 620px) {
  /* En móvil dejamos que respire aunque parta, para que no se vuelva ilegible */
  .manifiesto {
    white-space: normal;
    font-size: 17px;
  }
}

.marca {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
  margin: 0 0 26px;
}
.marca .prod {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 1px;
}

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.32;
  margin: 0 0 18px;
  letter-spacing: 0.2px;
}
.lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 8px;
}
.lede.tight {
  margin-bottom: 22px;
}
.bridge {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg);
  margin: 26px 0 30px;
}
.bridge .g {
  color: var(--gold);
}

/* Cuenta atrás */
.count {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 34px;
}
.count div {
  min-width: 46px;
}
.count b {
  display: block;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  font-weight: 600;
}
.count span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

/* Formulario Alístate (idéntico en comportamiento al de la web viva) */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
input[type='text'],
input[type='email'],
input[type='tel'] {
  width: 100%;
  padding: 14px 16px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus {
  border-color: var(--gold);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 2px 6px;
}
.consent input {
  margin-top: 2px;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.consent a {
  color: var(--muted);
  text-decoration: underline;
}
button {
  padding: 15px 16px;
  background: var(--gold);
  color: #1a1400;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.msg {
  min-height: 18px;
  font-size: 13px;
  margin-top: 12px;
  color: #ff8f8f;
}
.done b {
  display: block;
  font-size: 54px;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 6px 0 18px;
}
.done p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Enlace-CTA (matriz → producto) */
.cta-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 163, 0, 0.4);
  padding-bottom: 3px;
}
.cta-link:hover {
  border-color: var(--gold);
}

.home-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 0;
}
.home-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.home-nav a:hover {
  color: var(--fg);
}
footer {
  margin-top: 46px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 1px;
}
footer a {
  color: var(--dim);
  text-decoration: underline;
}
.badge-proto {
  position: fixed;
  bottom: 14px;
  right: 14px;
  background: var(--gold);
  color: #1a1400;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
}
[hidden] {
  display: none !important;
}

/* =========================================================================
   Páginas de contenido (Quiénes somos · Productos · Contacto)
   Layout de documento normal (no el hero centrado de la matriz).
   ========================================================================= */
body.page-doc {
  display: block;
  min-height: 100dvh;
  justify-content: initial;
  align-items: stretch;
  text-align: left;
  padding: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(18px, 4vw, 44px);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.topbar .brand .torre-mini {
  width: 32px;
}
.topbar .brand .wordmark-img {
  height: 22px;
}
.topbar nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  align-items: center;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.topbar nav a:hover {
  color: var(--fg);
}
.topbar nav a.active {
  color: var(--fg);
  font-weight: 600;
}
.topbar nav a.nav-diari {
  color: var(--green);
  font-weight: 700;
}
@media (max-width: 620px) {
  .topbar {
    padding: 12px 16px;
  }
  .topbar nav {
    gap: 14px;
  }
  .topbar nav a {
    font-size: 12.5px;
  }
  .topbar .brand .wordmark-img {
    display: none;
  }
}

.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(52px, 9vw, 104px) clamp(20px, 5vw, 44px) 72px;
}
.doc .hero-script {
  font-family: 'Segoe Script', 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 500;
  font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.12;
  color: #ece5d4;
  margin: 0 0 30px;
}
.doc p {
  font-size: 17px;
  line-height: 1.75;
  color: #cbc8bf;
  margin: 0 0 18px;
  max-width: 62ch;
}
.doc p.lead {
  font-size: 20px;
  color: #e3ded1;
}
.doc p .g {
  color: var(--gold);
}
.doc h2 {
  font-size: clamp(20px, 3vw, 27px);
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

/* Grid de productos */
.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
}
.prod-card {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  background: #0f0f0f;
}
.prod-card .raiz-ico {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}
.prod-card .pc-body {
  flex: 1;
  min-width: 0;
}
.prod-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}
.prod-card h3 .di {
  color: var(--green);
}
.prod-card .pc-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: none;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #14180d;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: transform 0.14s ease;
}
.btn-pill:hover {
  transform: translateY(-2px);
}
.btn-pill .name {
  color: #4e9e00;
  font-weight: 800;
}
.prod-soon {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  color: var(--dim);
  text-align: center;
  font-size: 15px;
}
@media (max-width: 560px) {
  .prod-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Contacto */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
.contact-list .k {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.contact-list a {
  color: var(--gold);
  text-decoration: none;
  font-size: 17px;
}
.contact-list a:hover {
  text-decoration: underline;
}

/* Pie de las páginas de contenido */
.doc-foot {
  border-top: 1px solid var(--line);
  padding: 26px clamp(20px, 5vw, 44px);
  margin-top: 0;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.6px;
}
.doc-foot a {
  color: var(--dim);
  text-decoration: underline;
}
