/* ============================================================================
   Mis Bestias — landing de UNA sola página (index.html), dirección "Cuero"
   ----------------------------------------------------------------------------
   Va sobre marca.css (tokens y componentes) y precios.css (toggle Mensual/Anual,
   tarjetas de plan, tabla y preguntas). Solo tokens: nada de números sueltos.

   Sin JavaScript (CSP script-src 'none'):
   - Cada opción del menú es un ancla (#seccion) y el desplazamiento suave lo
     hace scroll-behavior en CSS.
   - El menú del celular se abre con :target (enlace a #menu) y se cierra solo
     al tocar una sección, porque el ancla cambia.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Cada sección deja ver su título debajo de la cabecera fija */
.landing section[id] {
  scroll-margin-top: var(--header-h);
}

/* --- Cabecera fija con menú --- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink-header);
}

.lp-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: var(--header-h);
  position: relative;
}

.lp-header .wordmark {
  color: var(--on-ink);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--min-touch);
  height: var(--min-touch);
  border-radius: var(--radius-md);
  border: 1px dashed var(--stitch);
  color: var(--on-ink);
}

.lp-nav {
  display: none;
}

/* El ancla #menu es un punto fijo y vacío: al abrir el menú la página no salta
   (con el id en el propio menú, el navegador desplazaba hasta la cabecera). */
.menu-anchor {
  position: fixed;
  top: 0;
  left: 0;
}

.menu-anchor:target ~ .lp-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: var(--sp-sm) var(--sp-lg) var(--sp-lg);
  background: var(--ink-deep);
  border-bottom: 1px dashed var(--stitch);
  box-shadow: var(--shadow-phone);
}

.lp-nav a {
  display: flex;
  align-items: center;
  min-height: var(--min-touch);
  padding: 0 var(--sp-sm);
  border-radius: var(--radius-sm);
  color: var(--on-ink-muted);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.lp-nav a:hover {
  color: var(--on-ink);
  text-decoration: underline;
}

.lp-nav .btn {
  justify-content: center;
  margin-top: var(--sp-sm);
}

.lp-nav .menu-close {
  justify-content: center;
  margin-top: var(--sp-xs);
  font-weight: var(--fw-medium);
}

@media (min-width: 860px) {
  .menu-btn,
  .lp-nav .menu-close {
    display: none;
  }

  .lp-nav,
  .menu-anchor:target ~ .lp-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-xxs);
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .lp-nav .btn {
    margin: 0 0 0 var(--sp-sm);
  }
}

/* --- Botones sobre fondo oscuro (cuero vivo, texto espresso) --- */
.on-ink .btn--primary,
.lp-nav .btn--primary {
  background: var(--accent-on-ink);
  color: var(--ink-deep);
}

.on-ink .btn--secondary {
  background: transparent;
  color: var(--on-ink);
  border: 1px dashed var(--stitch);
}

.on-ink a:focus-visible,
.lp-header a:focus-visible {
  outline-color: var(--accent-on-ink);
}

/* --- Bandas (secciones) --- */
.band {
  padding: var(--sp-mega) 0;
}

.band h2 {
  font-size: var(--fs-section);
  max-width: 24ch;
}

.band .sub {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-top: var(--sp-md);
  max-width: 52ch;
}

.kicker {
  display: block;
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-brand);
  text-transform: uppercase;
  color: var(--accent);
}

.on-ink {
  background: var(--ink-deep);
  color: var(--on-ink-muted);
}

.on-ink h1,
.on-ink h2,
.on-ink h3 {
  color: var(--on-ink);
}

.on-ink .kicker {
  color: var(--accent-on-ink);
}

.on-ink .sub {
  color: var(--on-ink-muted);
}

.on-ink a {
  color: var(--on-ink);
}

/* --- Portada --- */
.hero {
  padding: var(--sp-huge) 0 var(--sp-mega);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: var(--sp-huge);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: var(--sp-xxs) var(--sp-md);
  border: 1px dashed var(--stitch);
  border-radius: var(--radius-lg); /* no píldora: en el teléfono ocupa dos líneas */
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-brand);
  text-transform: uppercase;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-top: var(--sp-lg);
  max-width: 12ch;
}

.hero h1 em {
  color: var(--accent-on-ink);
}

.hero .lead {
  font-size: var(--fs-lg);
  margin-top: var(--sp-lg);
  max-width: 40ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-xxl);
}

.hero .note {
  margin-top: var(--sp-md);
  font-size: var(--fs-md);
}

.phone {
  width: var(--phone-w);
  margin: 0 auto;
  border-radius: var(--radius-phone);
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  outline: 1px dashed var(--stitch);
  outline-offset: var(--sp-sm);
  transform: rotate(var(--tilt));
}

.phone img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone {
    transform: none;
  }
}

/* --- Qué es: 3 pasos numerados --- */
.steps {
  display: grid;
  gap: var(--sp-lg);
  margin: var(--sp-xxxl) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.step {
  padding: var(--sp-xxl);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px dashed var(--stitch-light);
}

.step::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-sm);
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  color: var(--accent);
}

.step h3 {
  font-size: var(--fs-title);
  margin-bottom: var(--sp-xs);
}

.step p {
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Funciones: tarjetas de distinto tamaño --- */
.bento {
  display: grid;
  gap: var(--sp-lg);
  margin-top: var(--sp-xxxl);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-xxl);
  border-radius: var(--radius-xxl);
  background: var(--ink-soft);
  border: 1px dashed var(--stitch);
  overflow: hidden;
}

.tile h3 {
  font-size: var(--fs-xl);
}

.tile__icon {
  display: grid;
  place-items: center;
  width: var(--sp-jumbo);
  height: var(--sp-jumbo);
  margin-bottom: var(--sp-sm);
  border-radius: var(--radius-lg);
  background: var(--accent-on-ink);
  color: var(--ink-deep);
}

/* Captura dentro de la tarjeta: solo la parte de arriba de la pantalla */
.shot {
  width: 100%;
  max-width: var(--shot-w);
  margin: auto auto calc(-1 * var(--sp-xxl));
  padding-top: var(--sp-lg);
}

.shot img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Gestación: se ve la tarjeta con la ventana de parto, no el buscador */
.shot--cria img {
  object-position: center 60%;
}

@media (min-width: 860px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin: var(--sp-xxl) 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-xs) var(--sp-md);
  border: 1px dashed var(--stitch);
  border-radius: var(--radius-round);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}

/* --- Precios dentro del landing (sobre precios.css) --- */
.landing .pricing-intro {
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

.landing .toggle {
  justify-content: flex-start;
}

.plan .plan__name {
  font-size: var(--fs-xl);
}

.plan {
  border: 1px dashed var(--stitch-light);
}

/* Plus, el más popular, en cuero oscuro */
.plan.plan--popular {
  background: var(--ink-deep);
  border: 1px dashed var(--stitch);
  color: var(--on-ink-muted);
}

.plan--popular .plan__name,
.plan--popular .plan__amount {
  color: var(--on-ink);
}

.plan--popular .plan__list,
.plan--popular .plan__period,
.plan--popular .plan__renew,
.plan--popular .muted {
  color: var(--on-ink-muted);
}

.plan--popular .plan__list .ico {
  color: var(--accent-on-ink);
}

.plan--popular .plan__badge {
  background: var(--accent-on-ink);
  color: var(--ink-deep);
}

.plan--popular .btn--primary {
  background: var(--accent-on-ink);
  color: var(--ink-deep);
}

.billing-note {
  text-align: left;
  margin-left: 0;
}

/* Tabla y preguntas: plegadas para que la sección no sea eterna */
.more {
  margin-top: var(--sp-xxl);
}

.more > summary,
.faq-title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-title);
  color: var(--brand-ink);
}

.more > summary {
  display: flex;
  align-items: center;
  min-height: var(--min-touch);
  cursor: pointer;
}

.more .table-card {
  margin-top: var(--sp-md);
}

.faq-title {
  margin: var(--sp-xxxl) 0 var(--sp-md);
}

/* --- Descargar --- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin: var(--sp-xxl) 0 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: var(--sp-md) var(--sp-xl);
  border: 1px dashed var(--stitch);
  border-radius: var(--radius-lg);
  color: var(--on-ink);
}

.store small {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-brand);
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.store strong {
  font-size: var(--fs-lg);
}

.download-cta {
  margin-top: var(--sp-xxl);
}

/* --- Soporte --- */
.help {
  display: grid;
  gap: var(--sp-lg);
  margin-top: var(--sp-xxl);
}

.help .card {
  border-style: dashed;
  border-color: var(--stitch-light);
}

.help h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-xxs);
}

.help p {
  color: var(--text-muted);
}

.help ul {
  margin: var(--sp-sm) 0 0;
  padding: 0;
  list-style: none;
}

.help li a {
  display: inline-flex;
  align-items: center;
  min-height: var(--min-touch);
}

@media (min-width: 760px) {
  .help {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Pie oscuro --- */
.landing .site-footer {
  margin-top: 0;
  border-top: 0;
  background: var(--ink-deep);
  color: var(--on-ink-muted);
}

.landing .site-footer a,
.landing .site-footer .wordmark {
  color: var(--on-ink-muted);
}
