@font-face {
  font-family: Newsreader;
  src: url('newsreader.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --papel: #f6f2e7;
  --hoja: #fffcf5;
  --tinta: #201a17;
  --tinta-media: #5e534c;
  --guinda: #59132f;
  --guinda-claro: #772449;
  --guinda-oscuro: #361020;
  --dorado: #e2bd73;
  --dorado-oscuro: #835c24;
  --linea: #d9d0c0;
  --serif: Newsreader, Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1rem/1.6 var(--sans);
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: var(--guinda); text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #986523; outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.icono {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.salto {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  padding: .6rem 1rem;
  background: var(--hoja);
  transform: translateY(-150%);
}

.salto:focus { transform: translateY(0); }
.contenedor { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.encabezado { border-bottom: 1px solid #ded6c6; }
.barra { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.marca {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: inherit;
  font: 700 1.36rem/1.1 var(--serif);
  letter-spacing: -.015em;
  text-decoration: none;
}

.marca img { flex: none; }
.lema { color: var(--tinta-media); font-size: .85rem; }
.lema strong { color: var(--tinta); }
nav { display: flex; align-items: center; gap: clamp(.7rem, 1.7vw, 1.6rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinta); font-size: .84rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:first-child { color: var(--guinda); }
nav a:hover { text-decoration: underline; }

.portada {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.8rem);
  padding-block: 2.9rem 1.6rem;
}

.etiqueta-precio {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .33rem .74rem;
  border-radius: 999px;
  background: var(--dorado);
  color: #362310;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.portada h1 {
  margin-top: 1.1rem;
  font: 700 clamp(2.7rem, 4vw, 3.65rem)/.98 var(--serif);
  letter-spacing: -.044em;
  text-wrap: initial;
}

.bajada { max-width: 27rem; margin-top: .85rem; color: var(--tinta-media); font-size: 1.025rem; line-height: 1.52; }
.portada-texto .boton { min-width: 255px; min-height: 55px; margin-top: 1.55rem; }
.nota-portada { margin-top: .72rem; color: var(--tinta-media); font-size: .76rem; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.principal { background: var(--guinda); color: #fffaf4; }
.principal:hover { background: var(--guinda-claro); }
.secundario { border-color: #a47c8b; background: var(--hoja); color: var(--guinda); }
.secundario:hover { border-color: var(--guinda); background: #f6ecee; }
.dorado { background: var(--dorado); color: var(--guinda-oscuro); }
.dorado:hover { background: #f1d49d; }

.escena { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 435px; }

.expediente {
  position: absolute;
  z-index: -1;
  width: 63%;
  height: auto;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(8px 14px 14px #35231c45);
  pointer-events: none;
}

.diagnostico {
  width: clamp(240px, 53%, 294px);
  padding: 1.12rem;
  border: 1px solid var(--linea);
  border-radius: 13px;
  background: #fffcf5f2;
  box-shadow: 0 15px 28px #39271e26, 0 2px 5px #39271e13;
  backdrop-filter: blur(8px);
}

.sobrelinea { color: var(--dorado-oscuro); font-size: .72rem; line-height: 1.4; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.diagnostico .sobrelinea { color: var(--guinda); font-size: .66rem; }
.diagnostico h2 { margin-top: .28rem; font: 800 1.1rem/1.25 var(--sans); text-wrap: initial; }
.quiz-pregunta { margin-top: .22rem; font-size: .94rem; line-height: 1.35; }
.opciones { display: grid; gap: .43rem; margin-top: .8rem; }

.opciones button {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .52rem .65rem;
  border: 1px solid #cfc3b5;
  border-radius: 8px;
  background: #fffdf8b8;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.opciones button span { color: var(--dorado-oscuro); }
.opciones button:hover { border-color: #9d6b81; background: #f7eaf0; }
.quiz-nota { margin-top: .64rem; color: var(--tinta-media); font-size: .72rem; }
.ruta-texto { margin-block: .6rem; font-size: .85rem; }
.enlace-fuente { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .82rem; font-weight: 750; }
.boton-quiz { width: 100%; margin-top: .3rem; font-size: .8rem; }
.boton-texto { min-height: 44px; padding: 0 .2rem; border: 0; background: none; color: var(--guinda); font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.contenido-pack { display: grid; grid-template-columns: 1fr 117px; align-items: center; gap: 1.2rem; padding-bottom: 3rem; }
.fichas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.ficha { min-height: 125px; padding: 1rem 1.1rem .8rem; border: 1px solid var(--linea); border-radius: 12px; background: #fffcf580; }
.ficha div { display: flex; align-items: start; justify-content: space-between; gap: .4rem; color: var(--dorado-oscuro); }
.ficha span { font: 700 2.05rem/.95 var(--serif); font-variant-numeric: lining-nums; }
.ficha .icono { width: 1.5rem; height: 1.5rem; }
.ficha h2 { margin-top: .35rem; font: 700 clamp(1.12rem, 1.65vw, 1.45rem)/1.03 var(--serif); text-wrap: initial; }

.medallon {
  display: grid;
  place-items: center;
  width: 106px;
  aspect-ratio: 1;
  margin-inline: auto;
  border: 3px double #a57935;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 24%, #f8e1a4 8%, #e7be72 72%, #ce9d49);
  color: #513313;
  box-shadow: 0 3px 7px #51331332;
  transform: rotate(-10deg);
}

.medallon div { display: grid; place-content: center; width: 86%; height: 86%; border: 1px dashed #946127; border-radius: 50%; text-align: center; }
.medallon span { font-size: .62rem; font-weight: 800; letter-spacing: .09em; }
.medallon strong { margin-top: .18rem; font: 700 1.7rem/.92 var(--serif); }

.seccion { padding-block: clamp(3rem, 6vw, 5.4rem); }
.seccion h2 { margin-top: .52rem; font: 650 clamp(2.3rem, 4.1vw, 3.5rem)/1.01 var(--serif); letter-spacing: -.034em; }
.seccion h2 + p { margin-top: .65rem; color: var(--tinta-media); }
.muestra { background: #ede6d8; border-block: 1px solid var(--linea); }
.muestra-grilla, .preguntas-grilla { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(1.4rem, 6vw, 5.6rem); }
.muestra h2, .preguntas h2 { text-wrap: initial; }
.enlace { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; margin-top: .6rem; font-size: .89rem; font-weight: 750; }
.hoja { padding: clamp(1.1rem, 3.5vw, 2rem); border: 1px solid var(--linea); border-top: 3px solid var(--dorado-oscuro); border-radius: 8px; background: var(--hoja); box-shadow: 0 9px 24px #39271e0d; }
.hoja .sobrelinea { display: flex; align-items: center; gap: .5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--linea); }
.lista-muestra { display: grid; gap: .7rem; padding: .85rem 0 0; list-style: none; }
.lista-muestra li { display: flex; align-items: start; gap: .6rem; font-size: .93rem; }
.lista-muestra .icono { margin-top: .12rem; color: var(--dorado-oscuro); }

.intro-seccion { max-width: 42rem; margin-bottom: 1.8rem; }
.intro-seccion h2 { text-wrap: initial; }
.catalogo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.producto { display: flex; flex-direction: column; align-items: start; padding: 1.22rem; border: 1px solid var(--linea); border-radius: 10px; background: var(--hoja); }
.destacado { border-color: #a27236; }
.producto h3 { margin-top: .5rem; font: 700 1.55rem/1.05 var(--serif); text-wrap: initial; }
.producto .precio { margin-top: .9rem; font: 700 2.4rem/1 var(--serif); font-variant-numeric: lining-nums; }
.precio small { font: 800 .67rem/1 var(--sans); letter-spacing: .06em; }
.producto ul { width: 100%; margin-top: .55rem; margin-bottom: 1.2rem; padding: .78rem 0 0 1rem; border-top: 1px solid var(--linea); font-size: .86rem; }
.producto li + li { margin-top: .3rem; }
.producto .boton { width: 100%; margin-top: auto; font-size: .8rem; }
.combo { border-color: var(--guinda); background: var(--guinda); color: #fffaf4; }
.combo .sobrelinea, .combo .precio { color: #f2d49b; }
.combo ul { border-color: #ffffff40; }
.combo :focus-visible { outline-color: #ffdfa4; }
.nota-catalogo { margin-top: 1rem; color: var(--tinta-media); font-size: .85rem; }

.seleccion { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; margin-top: 1.25rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--linea); border-radius: 9px; background: #ede6d8; }
.seleccion h3 { margin-top: .35rem; font: 700 1.75rem/1.12 var(--serif); text-wrap: initial; }
.importe-seleccion { margin-top: .25rem; color: var(--guinda); font-weight: 800; }
.importe-seleccion + p { margin-top: .35rem; font-size: .9rem; }
.seleccion .boton { flex: none; }

.preguntas { border-top: 1px solid var(--linea); background: #f0eadf; }
.preguntas-grilla { align-items: start; }
.acordeon { border-top: 1px solid var(--linea); }
details { border-bottom: 1px solid var(--linea); }
summary { position: relative; display: block; padding: .85rem 2rem .85rem 0; font-weight: 750; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: .25rem; top: .68rem; color: var(--guinda); font-size: 1.3rem; line-height: 1.5; }
details[open] summary::after { content: '−'; }
details p { padding-bottom: 1rem; color: var(--tinta-media); font-size: .91rem; }

.pie { padding-block: 2rem; background: var(--guinda-oscuro); color: #fcf2e8; }
.pie-grilla { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pie p { margin-top: .4rem; color: #efdbd5; font-size: .82rem; }
.pie-grilla > a { color: #f2d49b; font-size: .85rem; font-weight: 700; }
.pie :focus-visible { outline-color: #ffdfa4; }

@media (max-width: 1050px) {
  .lema { display: none; }
  .catalogo { grid-template-columns: repeat(2, 1fr); }
  .portada h1 { font-size: clamp(2.45rem, 4.5vw, 3.15rem); }
  .escena { min-height: 375px; }
  .diagnostico { padding: .9rem; }
}

@media (max-width: 850px) {
  .contenedor { width: calc(100% - 48px); }
  .portada { grid-template-columns: 1fr; gap: .8rem; max-width: 610px; padding-block: 2.3rem 1.35rem; }
  .portada h1 { font-size: clamp(2.9rem, 7.8vw, 4rem); }
  .bajada { max-width: 33rem; }
  .escena { min-height: clamp(365px, 56vw, 415px); }
  .expediente { width: min(61%, 330px); right: 0; }
  .diagnostico { width: min(60%, 310px); padding: 1rem; }
  .contenido-pack { grid-template-columns: 1fr; gap: 0; }
  .medallon { display: none; }
  .ficha { min-height: 107px; padding: .85rem .78rem; }
  .muestra-grilla, .preguntas-grilla { gap: 1.7rem; }
}

@media (max-width: 570px) {
  .contenedor { width: calc(100% - 36px); }
  .barra { flex-wrap: wrap; gap: .05rem; padding-top: .75rem; }
  nav { justify-content: space-between; width: 100%; gap: .45rem; }
  nav a { font-size: .79rem; }
  .portada { gap: .75rem; padding-top: 1.9rem; }
  .portada h1 { font-size: clamp(2.55rem, 9.85vw, 3.4rem); }
  .bajada { font-size: .96rem; }
  .portada-texto .boton { margin-top: 1.1rem; }
  .escena { min-height: 340px; }
  .expediente { width: 58%; right: -1%; }
  .diagnostico { width: min(75%, 290px); padding: .86rem; }
  .contenido-pack { padding-bottom: 2.2rem; }
  .fichas { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .ficha h2 { font-size: 1.25rem; }
  .muestra-grilla, .preguntas-grilla, .catalogo { grid-template-columns: 1fr; }
  .seleccion { align-items: start; flex-direction: column; gap: .75rem; }
}

@media (max-width: 355px) {
  .etiqueta-precio { font-size: .63rem; letter-spacing: .02em; }
  .portada h1 { font-size: 2.25rem; }
  .diagnostico { width: 81%; }
}

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