/* Gap-the-Code · /discover/discover.css · v2
   Estilos compartidos: portada (feed) + fichas de descubrimiento.
   Corrige el contraste: claim y demos siempre legibles. */

/* ============ FICHA DE DESCUBRIMIENTO ============ */
.dsc{ max-width: 760px; margin: 0 auto; padding: 0 16px; }
.dsc-hero{ text-align: center; padding: 24px 0 22px; }
.dsc-hero .eyebrow{ color: #BA2C69; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .76rem; }
.dsc-hero h1{ color: #442854; font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 8px 0 14px; line-height: 1.15; }
.dsc-claim{ color: #2b1a35; font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.5; font-weight: 600;
  max-width: 620px; margin: 0 auto; }

.dsc-block{ padding: 24px 0; }
.dsc-h2{ color: #2b1a35; font-size: 1.3rem; margin: 0 0 14px; }
.dsc-p{ color: #4a3d55; line-height: 1.7; margin: 0 0 14px; }

/* Demos vivas (fondo oscuro, texto claro = alto contraste) */
.dsc-demo{ background: linear-gradient(135deg, #2b1a35, #442854); border-radius: 18px; padding: 22px 20px;
  color: #fff; box-shadow: 0 14px 40px rgba(43,26,53,.26); }
.dsc-demo__out{ background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 12px; padding: 18px; min-height: 110px; font-size: 1.02rem; line-height: 1.65; color: #fff; }
.dsc-demo__out strong{ color: #FFC65C; font-weight: 800; }
.dsc-demo__out .opt{ display:block; padding:7px 12px; margin:5px 0; background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16); border-radius:8px; cursor:pointer; transition:background .15s; }
.dsc-demo__out .opt:hover{ background:rgba(255,255,255,.16); }
.dsc-demo__out .opt.ok{ background:rgba(31,157,117,.35); border-color:#1f9d75; }
.dsc-demo__out .opt.no{ background:rgba(217,43,43,.30); border-color:#d92b2b; }
.dsc-demo__row{ display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-top: 14px; }
.dsc-demo__btn{ background: #F5A623; color: #2b1a35; border: none; cursor: pointer; font-weight: 800;
  font-size: .96rem; padding: 13px 22px; border-radius: 999px; min-height: 44px;
  box-shadow: 0 6px 18px rgba(245,166,35,.35); transition: transform .12s ease; }
.dsc-demo__btn:hover{ transform: translateY(-1px); }
.dsc-demo__btn .dado{ display:inline-block; }
.dsc-demo__btn.is-roll .dado{ animation: dsc-roll .5s ease; }
@keyframes dsc-roll{ 50%{ transform: rotate(180deg) scale(1.25);} 100%{ transform: rotate(360deg);} }
.dsc-demo__count{ font-size: .82rem; color: rgba(255,255,255,.85); }
.dsc-demo__hint{ font-size: .8rem; color: rgba(255,255,255,.72); margin: 10px 0 0; }
.dsc-demo--static{ text-align: center; }
.dsc-demo--static .dsc-demo__ico{ font-size: 2rem; display: block; margin-bottom: 8px; }
.dsc-demo--static p{ margin: 0; color: rgba(255,255,255,.92); line-height: 1.6; max-width: 460px; margin-inline: auto; }

/* Fundamentos */
.dsc-fund{ display: grid; gap: 12px; }
.dsc-fund__item{ display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid rgba(68,40,84,.10); border-radius: 12px; padding: 15px 16px; font-size: .94rem;
  color: #4a3d55; line-height: 1.6; box-shadow: 0 2px 8px rgba(68,40,84,.05); }
.dsc-fund__item b{ color: #442854; }
.dsc-fund__n{ flex: none; width: 26px; height: 26px; border-radius: 50%; background: #442854; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; }

/* Prompt */
.dsc-prompt{ position: relative; background: #1e1226; color: #efe6f5; border-radius: 12px;
  padding: 18px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem;
  line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.dsc-copy{ position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.14); color: #fff;
  border: none; border-radius: 8px; padding: 6px 12px; font-size: .76rem; cursor: pointer; }
.dsc-pitfall{ margin-top: 16px; background: #fdf3e3; border-left: 4px solid #d9a94a; border-radius: 0 10px 10px 0;
  padding: 14px 16px; font-size: .9rem; color: #7a5a12; line-height: 1.55; }

/* Puerta + compartir */
.dsc-door{ background: #f7f4fa; border-radius: 18px; padding: 30px 22px; text-align: center; margin: 26px 0 20px; }
.dsc-door h2{ color: #442854; font-size: 1.3rem; margin: 0 0 10px; }
.dsc-door p{ color: #6f6379; line-height: 1.65; margin: 0 auto 20px; max-width: 540px; }
.dsc-door .btn{ max-width: 100%; white-space: normal; line-height: 1.3; }
@media (max-width: 560px){ .dsc-door .btn{ display: flex; width: 100%; justify-content: center; box-sizing: border-box; } }
.dsc-share{ margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(68,40,84,.12);
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dsc-share span{ font-size: .9rem; color: #6f6379; }
.dsc-share__wa{ display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff;
  text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; font-size: .9rem; }

.dsc-nav{ display: grid; gap: 10px; margin: 8px 0 64px; }
.dsc-next{ display: block; text-align: center; padding: 16px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(68,40,84,.12); color: #442854; font-weight: 700;
  text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dsc-next:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(68,40,84,.12); }
.dsc-back{ display: block; text-align: center; padding: 14px; border-radius: 14px;
  border: 1px dashed rgba(68,40,84,.28); color: #6f6379; font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: color .15s, border-color .15s; }
.dsc-back:hover{ color: #BA2C69; border-color: #BA2C69; }

/* ============ PORTADA (FEED) ============ */
.dv{ position: relative; overflow: hidden; }
.dv-aurora{ position: absolute; border-radius: 50%; filter: blur(70px); opacity: .14; pointer-events: none; z-index: 0; }
.dv-aurora--1{ width: 460px; height: 460px; background: #782167; top: -140px; left: -140px; }
.dv-aurora--2{ width: 380px; height: 380px; background: #F5A623; top: 420px; right: -160px; }
.dv > *:not(.dv-aurora){ position: relative; z-index: 1; }
.dv-aurora{ position: absolute !important; }

.dv-hero{ text-align: center; padding: 26px 16px 26px; max-width: 860px; margin: 0 auto; }
.dv-hero .eyebrow{ color: #BA2C69; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; font-size: .78rem; }
.dv-hero h1{ color: #442854; font-size: clamp(1.9rem, 6vw, 3.2rem); line-height: 1.12; margin: 12px 0 10px; min-height: 2.2em; }
.dv-hero h1 .dv-rota{ background: linear-gradient(90deg, #782167, #BA2C69); -webkit-background-clip: text;
  background-clip: text; color: transparent; opacity: 1; transition: opacity .4s ease; }
.dv-hero h1 .dv-rota.is-out{ opacity: 0; }
.dv-hero p{ color: #6f6379; font-size: clamp(.98rem, 2.3vw, 1.12rem); line-height: 1.6; max-width: 620px; margin: 0 auto; }

.dv-feed{ max-width: 720px; margin: 0 auto; padding: 8px 16px 0; display: grid; gap: 16px; }
.dv-item{ display: block; text-decoration: none; background: #fff; border: 1px solid rgba(68,40,84,.10);
  border-radius: 18px; padding: 22px; box-shadow: 0 2px 12px rgba(68,40,84,.06);
  transition: transform .22s ease, box-shadow .22s ease; opacity: 0; transform: translateY(20px); }
.dv-item.in{ opacity: 1; transform: translateY(0); }
.dv-item:hover{ transform: translateY(-4px); box-shadow: 0 14px 34px rgba(68,40,84,.15); }
.dv-item__top{ display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dv-item__num{ font-size: 1.5rem; font-weight: 800; color: #BA2C69; line-height: 1; }
.dv-item__tag{ font-size: .68rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: #782167; background: #f3e9f2; border-radius: 999px; padding: 4px 10px; }
.dv-item__whatif{ color: #442854; font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin: 0 0 6px; }
.dv-item__claim{ color: #5b4f66; font-size: .92rem; line-height: 1.55; margin: 0 0 12px; }
.dv-item__go{ color: #BA2C69; font-weight: 700; font-size: .88rem; }

.dv-loader{ text-align: center; padding: 20px; color: #8a7f92; font-size: .9rem; }
.dv-spinner{ width: 26px; height: 26px; border: 3px solid #e3d9ec; border-top-color: #BA2C69;
  border-radius: 50%; animation: dv-spin .8s linear infinite; margin: 0 auto 8px; }
@keyframes dv-spin{ to{ transform: rotate(360deg); } }

.dv-door{ max-width: 720px; margin: 34px auto 0; padding: 0 16px 72px; text-align: center; }
.dv-door__box{ background: rgba(247,244,250,.92); border: 1px solid rgba(68,40,84,.10);
  border-radius: 22px; padding: 32px 22px; }
.dv-door h2{ color: #442854; font-size: clamp(1.2rem, 3vw, 1.5rem); margin: 0 0 10px; }
.dv-door p{ color: #6f6379; line-height: 1.65; max-width: 540px; margin: 0 auto 20px; }
.dv-door .btn{ max-width: 100%; white-space: normal; line-height: 1.3; }
@media (max-width: 560px){ .dv-door .btn{ display: flex; width: 100%; justify-content: center; box-sizing: border-box; } }

@media (prefers-reduced-motion: reduce){
  .dv-item{ opacity: 1; transform: none; transition: none; }
  .dv-hero h1 .dv-rota{ transition: none; }
  .dsc-demo__btn.is-roll .dado{ animation: none; }
  .dv-spinner{ animation: none; }
}
