/* Guide72 · web. Colores y tipos de DESIGN.md (los mismos que el ebook). */
:root {
  --noche: #1B2433;
  --noche-2: #253047;
  --ambar: #F2A33A;
  --ambar-osc: #9A5A0A;
  --ambar-suave: #FBE7C6;
  --crema: #F7F1E6;
  --crema-atenuado: #CFC7B8;
  --pizarra: #5B6472;
  --linea: #DDD4C3;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --ancho: 68rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--crema); color: var(--noche); font: 400 1.125rem/1.6 var(--serif); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ambar-osc); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ambar); color: var(--noche); }
h1, h2, h3 { font-family: var(--sans); line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.envoltura { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }
.estrecha { max-width: 40rem; }
.seccion { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.seccion + .seccion { border-top: 1px solid var(--linea); }
.entradilla { font-size: 1.25rem; color: #2E3747; max-width: 38rem; }

/* Botón principal: la luz */
.boton { display: inline-flex; align-items: center; gap: .6rem; font: 600 1.05rem/1 var(--sans); padding: 1.05rem 1.5rem; border-radius: 999px; text-decoration: none; background: var(--ambar); color: var(--noche); box-shadow: 0 6px 18px -6px rgba(242,163,58,.55); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(242,163,58,.7); }
.boton:active { transform: translateY(0); }
.boton[aria-disabled="true"] { background: #3A4459; color: var(--crema-atenuado); box-shadow: none; cursor: default; transform: none; }
.boton .precio { padding-left: .6rem; border-left: 1px solid rgba(27,36,51,.3); }
.boton[aria-disabled="true"] .precio { border-color: rgba(207,199,184,.3); }

/* Cabecera */
.cabecera { background: var(--noche); color: var(--crema); }
.cabecera .envoltura { display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem; gap: 1rem; }
.marca { font: 700 .82rem var(--sans); letter-spacing: .26em; color: var(--ambar); text-decoration: none; }
.cabecera nav a { color: var(--crema); font: 500 .95rem var(--sans); text-decoration: none; }
.cabecera nav a:hover { color: var(--ambar); }

/* Héroe */
.heroe { background: var(--noche); color: var(--crema); padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3.5rem, 2rem + 5vw, 6rem); overflow: hidden; }
.heroe .envoltura { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.heroe h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); margin: 0 0 1.2rem; letter-spacing: -.025em; color: #FFF8EC; }
.heroe .entradilla { color: #E6DECF; }
.heroe .detalle { margin-top: 1.1rem; font: 500 .95rem var(--sans); color: var(--crema-atenuado); }
.libro { position: relative; justify-self: center; width: min(100%, 23rem); }
.libro::before { content: ""; position: absolute; inset: 18% -20% -10%; background: radial-gradient(closest-side, rgba(242,163,58,.38), rgba(242,163,58,0)); filter: blur(10px); z-index: 0; }
.libro img { position: relative; z-index: 1; border-radius: 3px 6px 6px 3px; box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -12px rgba(0,0,0,.6); }
@media (prefers-reduced-motion: no-preference) {
  .libro::before { animation: encender 2.4s cubic-bezier(.16,1,.3,1) .3s both; }
  @keyframes encender { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
}

/* El día que se fue la luz */
.cifra-linea { font-family: var(--sans); font-weight: 700; color: var(--ambar-osc); }
.fuente { display: block; font: 500 .82rem var(--sans); color: var(--pizarra); margin-top: .4rem; }

/* Los 7 días */
.dias { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; counter-reset: dia; border-top: 1px solid var(--linea); }
.dias li { display: grid; grid-template-columns: 3rem 2.6rem 1fr; gap: 1rem; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid var(--linea); }
.dias .n { font: 700 .85rem/2.4rem var(--sans); color: var(--pizarra); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dias svg { width: 2.6rem; height: 2.6rem; }
.dias p { margin: .15rem 0 0; color: #3A4352; font-size: 1.02rem; }

/* Páginas de muestra */
.muestras { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2rem; }
.muestras figure { margin: 0; }
.muestras img { background: #fff; box-shadow: 0 1px 2px rgba(27,36,51,.12), 0 14px 30px -14px rgba(27,36,51,.35); border-radius: 2px; }
.muestras figcaption { font: 500 .92rem/1.4 var(--sans); color: var(--pizarra); margin-top: .8rem; }

/* Dos columnas de texto */
.columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.lista { padding-left: 1.2rem; margin: 0; }
.lista li { margin-bottom: .55rem; }

/* Preguntas */
.preguntas details { border-bottom: 1px solid var(--linea); padding: 1.1rem 0; }
.preguntas details:first-of-type { border-top: 1px solid var(--linea); }
.preguntas summary { font: 600 1.08rem var(--sans); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.preguntas summary::after { content: "+"; color: var(--ambar-osc); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { margin: .7rem 0 0; color: #3A4352; }

/* Cierre */
.cierre { background: var(--noche); color: var(--crema); text-align: center; }
.cierre h2 { color: #FFF8EC; }
.cierre p { color: #E6DECF; margin-inline: auto; max-width: 34rem; }

/* Página del kit */
.aviso { background: var(--ambar-suave); padding: 1rem 1.2rem; font-size: 1rem; border-radius: 4px; }
.nivel { margin-top: 3rem; }
.nivel h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.nivel h2 small { font: 600 1rem var(--sans); color: var(--ambar-osc); }
.productos { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--linea); }
.productos li { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.productos svg { width: 2.4rem; height: 2.4rem; }
.productos p { margin: .1rem 0 0; font-size: 1rem; color: #3A4352; }
.productos a { font: 600 .95rem var(--sans); white-space: nowrap; }
.productos .sin-enlace { font: 500 .9rem var(--sans); color: var(--pizarra); }

/* Pie */
.pie { background: #141B27; color: var(--crema-atenuado); font: 400 .92rem/1.6 var(--sans); padding-block: 2.5rem; }
.pie a { color: var(--crema); }
.pie .envoltura { display: grid; gap: 1rem; }
.pie nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

@media (max-width: 52rem) {
  .heroe .envoltura, .columnas { grid-template-columns: 1fr; }
  .libro { width: min(62%, 15rem); }
  .heroe h1 { margin-top: .5rem; }
  .muestras { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; }
  .muestras figure { scroll-snap-align: start; }
  .dias li { grid-template-columns: 2.6rem 1fr; }
  .dias .n { display: none; }
  .productos li { grid-template-columns: 2.4rem 1fr; }
  .productos a, .productos .sin-enlace { grid-column: 2; }
}

/* Selector de edición (sin JavaScript: un <details> con enlaces) */
.cabecera nav { display: flex; align-items: center; gap: 1.2rem; }
.selector { position: relative; font: 500 .92rem var(--sans); }
.selector summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid rgba(247,241,230,.28); border-radius: 999px; color: var(--crema); }
.selector summary::-webkit-details-marker { display: none; }
.selector summary::after { content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.selector[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.selector summary:hover { border-color: var(--ambar); }
.selector ul { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; list-style: none; margin: 0; padding: .4rem; min-width: 13rem; background: var(--crema); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.2), 0 18px 40px -12px rgba(0,0,0,.45); }
.selector li a { display: block; padding: .6rem .8rem; border-radius: 5px; color: var(--noche); text-decoration: none; }
.selector li a:hover, .selector li a:focus-visible { background: var(--ambar-suave); }
.selector li a[aria-current="true"] { font-weight: 700; }
.selector li a[aria-current="true"]::after { content: " ·"; color: var(--ambar-osc); }
@media (max-width: 30rem) { .cabecera nav > a { display: none; } }
