/* =========================================================================
   DePleno — landing del smoke test
   Hoja de estilos única. Mobile-first, sin frameworks.

   Estructura:
   1. Tokens de diseño (custom properties)  — cambia aquí colores/espaciado
   2. Reset y base
   3. Utilidades y layout
   4. Cabecera + hero (demo viva)
   5. Ventana de app (demo) + tarjetas de producto
   6. Chips
   7. Secciones (duelo, cómo funciona, para qué sirve, transparencia, FAQ)
   8. Formulario de waitlist
   9. Modal fake-door
   10. Footer
   11. Páginas legales
   12. Media queries (escritorio)

   Paleta tomada del diseño aprobado (design/, v2/v6/v7). Acento verde #0E9F6E.
   ========================================================================= */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Marca */
  --green:        #0E9F6E;   /* acento principal: CTAs, etiquetas, enlaces */
  --green-dark:   #0C8A5F;   /* hover de botones */
  --green-deep:   #0C3B2E;   /* verde profundo del hero */
  --green-deep-2: #082a20;   /* base del degradado del hero */
  --green-tint:   #E7F6EF;   /* fondo suave para badges/etiquetas verdes */

  /* Tienda Etsy (etiqueta naranja) */
  --etsy:      #C4503A;
  --etsy-tint: #F9E6E0;

  /* Neutros */
  --ink:    #1A1A18;   /* texto principal */
  --ink-2:  #57534E;   /* texto secundario */
  --ink-3:  #8A8069;   /* texto tenue / hints */
  --line:   #E7E6E1;   /* bordes suaves */
  --paper:  #FAFAF9;   /* fondo de página (claro casi blanco) */
  --paper-2:#F3F2EE;   /* fondo de tarjetas/ventana */
  --paper-3:#EDECE7;   /* fondo alterno / placeholder */
  --white:  #ffffff;

  /* Placeholder de imagen de producto (rayado, igual que el diseño) */
  --placeholder: repeating-linear-gradient(135deg,
                  #F3F2EE, #F3F2EE 11px, #EDECE7 11px, #EDECE7 22px);

  /* Tipografía: pila del sistema (cero dependencias externas).
     Cada dispositivo usa su fuente nativa: San Francisco (Apple),
     Segoe UI (Windows), Roboto (Android). Sin llamadas a Google Fonts. */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Radios y sombras */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(8,42,32,.06), 0 1px 1px rgba(8,42,32,.04);
  --shadow-md: 0 8px 24px rgba(8,42,32,.10);
  --shadow-lg: 0 24px 60px rgba(5,20,15,.35);

  /* Layout */
  --maxw: 1180px;
  --gap:  clamp(16px, 4vw, 28px);
}

/* 2. RESET Y BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* 3. UTILIDADES Y LAYOUT --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(36px, 5.5vw, 60px); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); margin: 0 0 .6em;
}
.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;
}
.accent { color: var(--green); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 14px 22px; transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); text-decoration: none; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn--ghost:hover { background: var(--green-tint); text-decoration: none; }
.btn--block { width: 100%; }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1eb257; text-decoration: none; }

/* 4. CABECERA + HERO ------------------------------------------------------- */
.hero {
  position: relative;
  color: #eafaf3;
  background: radial-gradient(120% 80% at 80% 0%, var(--green-deep) 0%, var(--green-deep-2) 60%);
  overflow: hidden;
  padding-block: clamp(20px, 4vw, 32px) clamp(32px, 5vw, 56px);
}
/* radar decorativo (guiño a la diana), oculto a lectores */
.hero__radar {
  position: absolute; top: -80px; right: -80px; width: 420px; height: 420px;
  pointer-events: none; opacity: .5;
}
.hero__radar span {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(61,220,151,.18);
}
.hero__radar span:nth-child(1){ width: 420px; height: 420px; }
.hero__radar span:nth-child(2){ width: 300px; height: 300px; }
.hero__radar span:nth-child(3){ width: 180px; height: 180px; }
.hero__radar span:nth-child(4){
  width: 12px; height: 12px; background: var(--green); border: 0;
  box-shadow: 0 0 20px 4px rgba(61,220,151,.6);
}

.brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__dot { font-size: 1.1em; }
.brand img { height: 40px; width: auto; display: block; }
.hero .brand img { height: clamp(44px, 5.5vw, 60px); }

.hero__head { position: relative; z-index: 2; padding-top: 18px; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; margin-top: .5em; }
.hero h1 .accent { color: var(--green); }
.hero__sub { color: #bfe6d5; max-width: 34ch; font-size: clamp(1rem, 2.4vw, 1.15rem); }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(61,220,151,.14); color: #eafaf3;
  border: 1px solid rgba(61,220,151,.5);
  border-radius: var(--r-pill); padding: 9px 16px; font-size: .95rem; font-weight: 700;
  white-space: nowrap; flex: 0 0 auto;
}

/* 5. VENTANA DE APP (DEMO) ------------------------------------------------- */
.app-window {
  position: relative; z-index: 2; margin-top: clamp(22px, 4vw, 34px);
  background: var(--paper-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  color: var(--ink); /* panel claro: texto oscuro por defecto (no heredar el claro del hero) */
}
.app-window__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #E7E6E1; color: var(--ink-3);
  font-size: .8rem; border-bottom: 1px solid var(--line);
}
.app-window__dots { display: flex; gap: 6px; }
.app-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c6bf; display: block; }
.app-window__url { font-family: ui-monospace, monospace; }

.app-window__body { display: block; padding: clamp(14px, 3vw, 22px); }

/* Panel de conversación */
.convo { margin-bottom: 18px; }
.convo__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.bubble { border-radius: var(--r-md); padding: 12px 14px; font-size: .95rem; margin-bottom: 10px; max-width: 90%; }
.bubble--user { background: var(--green); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble--bot { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble--bot .bubble__ava { color: var(--green); font-weight: 700; }

/* Resultados */
.results__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.results__head h2 { font-size: 1.15rem; margin: 0; font-weight: 800; }
/* Etiqueta del diferenciador: cada tarjeta lleva su "Por qué" y su "La pega".
   Badge verde en vez de texto tenue — es un argumento de venta, no metadato. */
.results__meta {
  flex: none;
  font-size: .78rem; font-weight: 600; line-height: 1.2;
  color: var(--green-deep); background: var(--green-tint);
  padding: .35em .75em; border-radius: 999px;
}
.results__note {
  font-size: .78rem; color: var(--ink-3); margin: 6px 0 16px;
  display: inline-flex; align-items: center; gap: .4em;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* Segundo paso (accesorios tras elegir) — subordinado a las tarjetas: sin fondo
   de tarjeta, borde punteado y sangría, para que se lea como "y luego..." */
.nextstep {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  background: var(--green-tint);
}
.nextstep__label {
  margin: 0 0 6px; font-size: .82rem; font-weight: 700; color: var(--green-deep);
}
.nextstep__list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: .82rem; color: var(--ink-2);
}
.nextstep__list li { white-space: nowrap; }

/* Tarjeta de producto */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; transition: box-shadow .15s ease, transform .1s ease;
  display: flex; flex-direction: column;
  color: var(--ink); /* fija texto oscuro: si no, en el hero hereda el claro y el título se pierde */
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--pick { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.card__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35em;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px;
}
.card__img {
  aspect-ratio: 16 / 10; border-radius: var(--r-sm); background: var(--placeholder);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-family: ui-monospace, monospace; font-size: .78rem;
  margin-bottom: 12px;
}
.card__img--illus { background: #FAF6EE; font-size: 1.6rem; }
.card__name { font-size: .98rem; font-weight: 700; margin: 0 0 8px; }
.card__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.card__price b { font-size: 1.15rem; }
.card__price--var { color: var(--ink-3); font-size: .9rem; background: var(--paper-3); padding: 3px 9px; border-radius: var(--r-pill); }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.tag--leroy { background: var(--green-tint); color: var(--green-dark); }
.tag--etsy  { background: var(--etsy-tint); color: var(--etsy); }
.tag--eci   { background: #eef1ff; color: #2B21C4; }
.tag--decathlon { background: #e6f3fb; color: #005e94; }
.card__why  { font-size: .86rem; color: var(--ink-2); margin: 0 0 6px; }
.card__why b { color: var(--green-dark); }
.card__con  { font-size: .86rem; color: var(--ink-2); margin: 0 0 12px; }
.card__con b { color: var(--etsy); }
.card__cta { margin-top: auto; }
.card__cta .btn { padding: 11px 16px; font-size: .92rem; }

/* 6. CHIPS ----------------------------------------------------------------- */
.chips {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  background: rgba(255,255,255,.08); color: #eafaf3;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-pill);
  padding: 10px 16px; font-size: .9rem; font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.chip:hover { background: rgba(255,255,255,.16); }
.chip[aria-pressed="true"] { background: rgba(61,220,151,.18); border-color: var(--green); color: #fff; }
.chips__label { color: #bfe6d5; font-size: .9rem; font-weight: 600; margin: 20px 0 0; }

/* Sección CTA propia del fake-door "Tu consulta" (banda verde, muy visible) */
.try { background: var(--green-tint); border-top: 1px solid #cdeadd; border-bottom: 1px solid #cdeadd; }
.try__inner {
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  padding-block: clamp(24px, 4vw, 36px);
}
.try__text h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 8px; }
.try__text p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.btn--lg { font-size: 1.1rem; padding: 17px 30px; }
@media (min-width: 760px) {
  .try__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .btn--lg { flex: 0 0 auto; }
}

/* 7. SECCIONES ------------------------------------------------------------- */
.section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.section__lead { color: var(--ink-2); max-width: 52ch; font-size: 1.05rem; }

/* Duelo compacto */
.duel { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
.duel__col { border-radius: var(--r-md); padding: 20px; }
.duel__col--bad  { background: var(--paper-2); border: 1px dashed #cfccc4; color: var(--ink-3); }
.duel__col--good { background: var(--white); border: 1px solid var(--green); box-shadow: var(--shadow-sm); }
.duel__col h3 { font-size: 1rem; margin-bottom: 12px; }
.duel__item { font-size: .92rem; margin-bottom: 8px; }
.duel__col--bad .duel__item::before  { content: "✕ "; color: #c0392b; }
.duel__col--good .duel__item::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
/* número + título en la misma línea (en móvil no se separan) */
.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step__head h3 { margin: 0; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 2px 8px rgba(14,159,110,.35);
}
.step h3 { font-size: 1.06rem; }
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Para qué sirve */
.uses { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
.use {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.use h3 { font-size: 1.15rem; }
.use p { color: var(--ink-2); margin: 0; }
.use__ico { font-size: 1.6rem; margin-bottom: 8px; }

/* Guías (teaser en la home) — se acerca a la caja "De qué vive" de arriba */
.section--to-guides { padding-bottom: clamp(20px, 3vw, 28px); }
.section--guides { padding-top: clamp(20px, 3vw, 28px); }
.guides-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.guide-link {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .1s ease;
}
.guide-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.guide-link__ico { font-size: 1.7rem; line-height: 1; flex: 0 0 auto; }
.guide-link h3 { font-size: 1.02rem; margin: 0 0 4px; color: var(--ink); }
.guide-link p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.guides-all { margin-top: 20px; font-weight: 600; }

/* Transparencia */
.transp {
  background: var(--green-deep); color: #eafaf3; border-radius: var(--r-lg);
  padding: clamp(24px, 5vw, 44px); margin-top: 8px;
}
.transp h2 { color: #fff; }
.transp p { color: #bfe6d5; max-width: 60ch; margin: 0; font-size: 1.05rem; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 14px; }

/* 8. FORMULARIO WAITLIST --------------------------------------------------- */
.signup {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: clamp(22px, 4vw, 36px); max-width: 560px;
}
.signup h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.signup p.lead { color: var(--ink-2); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="email"], .field textarea {
  width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--paper); color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field textarea { resize: vertical; min-height: 90px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 4px 0 16px; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--green); }
.microcopy { font-size: .82rem; color: var(--ink-3); margin: 12px 0 0; }
.form-status { font-size: .9rem; margin-top: 12px; }
.form-status[data-state="ok"]  { color: var(--green-dark); }
.form-status[data-state="err"] { color: #c0392b; }

/* 9. MODAL FAKE-DOOR ------------------------------------------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(8,42,32,.55); backdrop-filter: blur(3px);
}
.modal__card {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; padding: 26px;
  position: relative;
}
.modal__close {
  position: absolute; top: 14px; right: 14px; background: var(--paper-2);
  border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; color: var(--ink-2);
}
.modal__close:hover { background: var(--paper-3); }
.modal__step[hidden] { display: none; }
.modal h3 { font-size: 1.4rem; margin-top: 6px; }
.modal p { color: var(--ink-2); font-size: .95rem; }
.modal .brand { color: var(--green-dark); font-size: 1rem; margin-bottom: 14px; }
.hit { text-align: center; padding: 8px 0; }
.hit__target {
  width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%;
  border: 6px solid var(--green-tint);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  animation: pop .4s ease;
}
@keyframes pop { 0%{transform:scale(.6);opacity:0} 60%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }
.share-box { background: var(--paper); border-radius: var(--r-md); padding: 16px; margin-top: 16px; }

/* 10. FOOTER --------------------------------------------------------------- */
.site-footer {
  background: var(--green-deep); color: #bfe6d5; margin-top: 24px;
  padding-block: 32px; font-size: .9rem;
}
.site-footer a { color: #eafaf3; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; align-items: center; }
.site-footer__aff { font-size: .8rem; color: #7fb8a1; max-width: 70ch; }

/* 11. PÁGINAS LEGALES ------------------------------------------------------ */
.legal-page { max-width: 760px; }
.legal-page .brand { color: var(--green-dark); }
.legal-page h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-top: 24px; }
.legal-page h2 { font-size: 1.2rem; margin-top: 32px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page .placeholder-note {
  background: #FFF7E6; border: 1px solid #F2C14E; border-radius: var(--r-md);
  padding: 12px 16px; font-size: .88rem; color: #8a6d1f; margin: 16px 0;
}
.legal-back { display: inline-block; margin-top: 32px; }

/* 12. MEDIA QUERIES (ESCRITORIO) ------------------------------------------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .duel  { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .uses  { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); max-width: 18ch; }
  .hero__badge { font-size: 1.15rem; padding: 12px 22px; gap: .55em; }
  .brand { font-size: 1.4rem; }

  /* La ventana de app coloca conversación (izq) + resultados (der) */
  .app-window__body { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
  .convo { margin-bottom: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* Respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
