/* Premios que venden · app de compradoras
   Paleta de la landing: verde bosque, crema, terracota y dorado. Letras grandes, botones grandes. */

@font-face {
  font-family: "Nunito";
  src: url("/fuentes/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fuentes/fraunces.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --verde: #2F4A33;
  --verde-osc: #1F3424;
  --verde-suave: #E7EEE4;
  --crema: #FAF7F2;
  --crema-clara: #FFFDF9;
  --terracota: #B4573C;
  --terracota-osc: #9A4630;
  --dorado: #E0A526;
  --dorado-fuerte: #E8B100;
  --borde: #E6DED1;
  --texto: #1F3424;
  --texto-suave: #55635A;
  --rosa: #FFE3EC;
  --amarillo: #FFF1C9;
  --menta: #DFF5E6;
  --lila: #E6E4FF;
  --celeste: #DDF1FF;
  --sombra: 0 1px 2px rgba(31, 52, 36, .05), 0 8px 24px rgba(31, 52, 36, .07);
  --radio: 20px;
  --alto-pestanas: 72px;
  --abajo: env(safe-area-inset-bottom, 0px);
  --arriba: env(safe-area-inset-top, 0px);
  --titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --cuerpo: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font: 500 18px/1.5 var(--cuerpo);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
h1, h2, h3 { font-family: var(--titulos); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 20px; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--terracota-osc); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--dorado-fuerte); outline-offset: 3px; border-radius: 8px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--verde); color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 100; }
.saltar:focus { left: 8px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Estructura ---------- */
#vista { min-height: 100vh; min-height: 100dvh; outline: none; }
.pantalla {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(20px + var(--arriba)) 20px calc(var(--alto-pestanas) + var(--abajo) + 28px);
  animation: entrar .26s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.marca { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.marca img { width: 44px; height: 44px; border-radius: 12px; }
.marca span { font: 700 17px/1.1 var(--titulos); color: var(--verde); }

.saludo { margin-bottom: 20px; }
.saludo p { color: var(--texto-suave); font-size: 19px; margin-top: 6px; }
.titulo-seccion { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.titulo-seccion p { color: var(--texto-suave); font-size: 16px; }
.bajada { color: var(--texto-suave); margin-top: 6px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 24px; width: 100%;
  border: 0; border-radius: 16px;
  background: var(--terracota); color: #fff;
  font-weight: 800; font-size: 19px; line-height: 1.2; text-decoration: none; text-align: center;
  box-shadow: 0 2px 0 var(--terracota-osc), 0 8px 18px rgba(180, 87, 60, .22);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.boton:active { transform: translateY(2px) scale(.99); box-shadow: 0 0 0 var(--terracota-osc), 0 4px 10px rgba(180, 87, 60, .2); }
.boton[disabled] { opacity: .6; pointer-events: none; }
.boton.verde { background: var(--verde); box-shadow: 0 2px 0 var(--verde-osc), 0 8px 18px rgba(47, 74, 51, .2); }
.boton.claro { background: var(--crema-clara); color: var(--verde); border: 2px solid var(--borde); box-shadow: none; }
.boton.whatsapp { background: #128C4B; box-shadow: 0 2px 0 #0d6e3a, 0 8px 18px rgba(18, 140, 75, .22); }
.boton.chico { min-height: 48px; padding: 10px 18px; font-size: 17px; width: auto; }
.boton svg { width: 24px; height: 24px; flex: none; }
.enlace { background: none; border: 0; padding: 12px 8px; color: var(--terracota-osc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 48px; }

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--crema-clara);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 18px;
}
button.tarjeta, a.tarjeta { display: block; width: 100%; text-align: left; text-decoration: none; color: inherit; transition: transform .14s ease; }
button.tarjeta:active, a.tarjeta:active { transform: scale(.985); }

.etiqueta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--terracota-osc); background: #FBEDE7; padding: 5px 11px; border-radius: 999px;
}
.etiqueta.verde { color: var(--verde); background: var(--verde-suave); }
.etiqueta.dorada { color: #6B4A00; background: #FCECC0; }

/* Seguí donde dejaste */
.tarjeta.seguir { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; padding: 16px; }
.seguir .mini { display: block; width: 104px; aspect-ratio: 1 / 1.3; border-radius: 12px; overflow: hidden; background: var(--verde-suave); border: 1px solid var(--borde); }
.seguir .mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.h3 { display: block; font: 700 20px/1.15 var(--titulos); letter-spacing: -.01em; }
.seguir .h3 { margin: 8px 0 4px; }
.seguir .donde { display: block; color: var(--texto-suave); font-size: 16px; }
.seguir .accion { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--terracota-osc); font-size: 18px; }

.barra { height: 10px; background: #EFE8DC; border-radius: 999px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dorado), var(--dorado-fuerte)); border-radius: 999px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }

.progreso { display: grid; gap: 12px; }
.progreso .numeros { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.progreso .numeros b { font: 700 22px/1 var(--titulos); color: var(--verde); }
.progreso .numeros span { color: var(--texto-suave); font-size: 16px; }
.progreso .extras { display: flex; gap: 10px; flex-wrap: wrap; }
.pastilla { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--crema); border: 1px solid var(--borde); font-weight: 700; font-size: 16px; color: var(--verde); text-decoration: none; }

/* Receta del día */
.tarjeta.del-dia { display: block; padding: 0; overflow: hidden; }
.del-dia .foto { display: block; aspect-ratio: 16 / 10; background: var(--verde-suave); overflow: hidden; position: relative; }
.del-dia .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); }
.del-dia .foto.portada img { object-position: 50% 42%; }
.del-dia .foto .etiqueta { position: absolute; left: 14px; top: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.del-dia .texto { padding: 16px 18px 18px; }
.del-dia .h3 { font-size: 22px; margin-bottom: 6px; }
.del-dia .donde { display: block; color: var(--texto-suave); font-size: 16px; }
.del-dia .accion { margin-top: 12px; font-weight: 800; color: var(--terracota-osc); }

/* Carrusel de regalos en Inicio */
.fila { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 14px; margin: 0 -20px; scroll-snap-type: x proximity; scroll-padding: 0 20px; scrollbar-width: none; }
.fila::-webkit-scrollbar { display: none; }
.fila > * { scroll-snap-align: start; flex: none; }
.tapa { width: 138px; background: none; border: 0; padding: 0; text-align: left; text-decoration: none; color: inherit; }
.tapa .img { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--crema-clara); border: 1px solid var(--borde); box-shadow: var(--sombra); display: grid; place-items: center; }
.tapa .img img { width: 100%; height: 100%; object-fit: cover; }
.tapa b { display: block; margin-top: 8px; font-size: 16px; line-height: 1.25; }

/* Instalar */
.instalar { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; background: var(--verde); color: #fff; border: 0; }
.instalar img { width: 52px; height: 52px; border-radius: 14px; }
.instalar h3 { color: #fff; font-size: 19px; }
.instalar p { color: #DCE8DD; font-size: 16px; margin-top: 2px; }
.instalar .acciones { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.instalar .boton { background: var(--dorado-fuerte); color: #2B2000; box-shadow: 0 2px 0 #B58900; }
.instalar .enlace { color: #DCE8DD; }

/* ---------- Recetario (lista) ---------- */
.portada-recetario { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.portada-recetario .img { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--borde); }
.portada-recetario p { color: var(--texto-suave); font-size: 16px; margin: 6px 0 12px; }

.buscador { position: relative; margin: 22px 0 14px; }
.buscador input {
  width: 100%; min-height: 58px; padding: 12px 52px 12px 52px;
  border: 2px solid var(--borde); border-radius: 16px; background: var(--crema-clara);
  font-size: 18px; font-weight: 600; appearance: none;
}
.buscador input::placeholder { color: #7C877F; font-weight: 500; }
.buscador input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(47, 74, 51, .12); }
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador .lupa { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--texto-suave); pointer-events: none; }
.buscador .borrar { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--texto-suave); }
.buscador .borrar svg { width: 22px; height: 22px; }

.filtros { display: flex; gap: 10px; overflow-x: auto; padding: 4px 20px 12px; margin: 0 -20px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; min-height: 46px; padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--borde); background: var(--crema-clara); font-weight: 700; font-size: 16px; color: var(--verde);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filtro[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }

.lista-recetas { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.receta { display: grid; grid-template-columns: 1fr 56px; align-items: stretch; background: var(--crema-clara); border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(31, 52, 36, .04); content-visibility: auto; contain-intrinsic-size: auto 98px; }
.receta .abrir { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 10px 4px 10px 10px; background: none; border: 0; text-align: left; min-height: 96px; }
.receta .abrir:active { background: #F6F0E6; }
.receta .foto { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--verde-suave); }
.receta .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transform: scale(1.3); }
.receta .foto.portada img { object-position: 50% 48%; }
.receta .num { display: block; font-size: 14px; font-weight: 800; color: var(--terracota-osc); letter-spacing: .04em; }
.receta .nombre { display: block; font-weight: 800; font-size: 18px; line-height: 1.25; }
.receta .extra { display: block; font-size: 14.5px; color: #6B4A00; font-weight: 700; margin-top: 3px; }
.corazon { border: 0; background: none; display: grid; place-items: center; color: #B9B1A3; border-left: 1px solid var(--borde); }
.corazon svg { width: 28px; height: 28px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.corazon[aria-pressed="true"] { color: var(--terracota); }
.corazon[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.12); }
.vacio { text-align: center; padding: 34px 16px; color: var(--texto-suave); }
.vacio .emoji { font-size: 44px; display: block; margin-bottom: 8px; }
.cabecera-cap { margin: 22px 2px 4px; display: flex; align-items: center; gap: 10px; }
.cabecera-cap .letra { width: 34px; height: 34px; border-radius: 10px; background: var(--verde-suave); color: var(--verde); font: 700 19px/34px var(--titulos); text-align: center; flex: none; }
.cabecera-cap h3 { font-size: 19px; }

/* ---------- Bonos ---------- */
.grilla-regalos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.regalo { padding: 0; overflow: hidden; display: flex !important; flex-direction: column; }
.regalo .img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--crema); }
.regalo .img img { width: 100%; height: 100%; object-fit: cover; }
.regalo .texto { display: block; padding: 12px 14px 14px; }
.regalo b { display: block; font-size: 17px; line-height: 1.25; }
.regalo small { display: block; color: var(--texto-suave); font-size: 15px; margin-top: 4px; }

.lista-bonos { display: grid; gap: 12px; }
.bono { display: grid !important; grid-template-columns: 60px 1fr 22px; gap: 14px; align-items: center; padding: 14px; border: 0; box-shadow: none; }
.bono .icono { width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; font-size: 30px; }
.bono b { display: block; font-size: 18px; line-height: 1.25; }
.bono small { display: block; font-size: 15.5px; color: #3D4A41; margin-top: 3px; line-height: 1.35; }
.bono .flecha { width: 22px; height: 22px; color: var(--verde); opacity: .7; }
.color-rosa { background: var(--rosa); }
.color-amarillo { background: var(--amarillo); }
.color-menta { background: var(--menta); }
.color-lila { background: var(--lila); }
.color-celeste { background: var(--celeste); }
.color-crema { background: var(--crema-clara); }

/* ---------- Para vos ---------- */
.extra-tarjeta { padding: 0; overflow: hidden; margin-bottom: 18px; }
.extra-tarjeta .cima { position: relative; aspect-ratio: 16 / 9.5; display: grid; place-items: center; overflow: hidden; }
.extra-tarjeta .cima > img, .extra-tarjeta .cima > .tapa-dibujada { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); height: 86%; width: auto; max-width: 80%; border-radius: 10px; box-shadow: 0 10px 26px rgba(31, 52, 36, .22); }
.extra-tarjeta .cima > .tapa-dibujada { aspect-ratio: 3 / 4; }
.tapa-dibujada {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  background: linear-gradient(160deg, #FBF4E6, #F1E4CC); border-radius: 10px; padding: 9% 8%; text-align: center;
  box-shadow: inset 0 0 0 5px #FBF4E6, inset 0 0 0 6.5px #C9A45C; container-type: inline-size;
}
.tapa-dibujada .adorno { font-size: 34px; font-size: 30cqw; line-height: 1; }
.tapa-dibujada .nombre { font: 700 15px/1.12 var(--titulos); font-size: 12.5cqw; color: #6B3F1D; text-transform: uppercase; letter-spacing: .02em; }
.tapa-dibujada .sub { font: 600 10px/1.25 var(--cuerpo); font-size: 7cqw; color: #7A5B3A; }
.extra-tarjeta .candado { position: absolute; right: 14px; top: 14px; background: rgba(255, 253, 249, .95); color: var(--verde); font-weight: 800; font-size: 14.5px; padding: 7px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.extra-tarjeta .candado svg { width: 16px; height: 16px; }
.extra-tarjeta .cuerpo { padding: 18px; }
.extra-tarjeta h3 { font-size: 23px; }
.extra-tarjeta .sub { color: var(--terracota-osc); font-weight: 700; margin-top: 4px; }
.extra-tarjeta .gancho { font: 700 19px/1.25 var(--titulos); color: var(--verde); margin-top: 14px; }
.extra-tarjeta .desc { color: var(--texto-suave); margin-top: 6px; }
.extra-tarjeta ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.extra-tarjeta li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; font-weight: 600; }
.extra-tarjeta li svg { width: 24px; height: 24px; color: #2E8B57; margin-top: 2px; }
.extra-tarjeta .nota { text-align: center; color: var(--texto-suave); font-size: 15px; margin-top: 10px; }

/* ---------- Ayuda ---------- */
.preguntas { display: grid; gap: 10px; }
.preguntas details { background: var(--crema-clara); border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; }
.preguntas summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; font-size: 18px; line-height: 1.3; position: relative; min-height: 58px; display: flex; align-items: center; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 11px; height: 11px; border-right: 3px solid var(--verde); border-bottom: 3px solid var(--verde); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.preguntas details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.preguntas .respuesta { padding: 0 18px 18px; color: #3D4A41; display: grid; gap: 10px; }
.preguntas ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.cuenta { display: grid; gap: 6px; }
.cuenta small { color: var(--texto-suave); font-size: 15px; }
.cuenta b { word-break: break-all; }
.pie { text-align: center; color: var(--texto-suave); font-size: 14.5px; margin-top: 26px; }

/* ---------- Entrar ---------- */
.entrar { min-height: 100dvh; display: grid; align-content: center; gap: 22px; padding-bottom: 40px; }
.entrar .logo { width: 128px; height: 128px; margin: 0 auto; border-radius: 30px; }
.entrar h1 { text-align: center; font-size: 31px; }
.entrar .bajada { text-align: center; font-size: 19px; }
.campo { display: grid; gap: 8px; }
.campo label { font-weight: 800; font-size: 18px; }
.campo input {
  width: 100%; min-height: 62px; padding: 14px 18px; border-radius: 16px; border: 2px solid var(--borde);
  background: var(--crema-clara); font-size: 20px; font-weight: 600; appearance: none;
}
.campo input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(47, 74, 51, .12); }
.campo input.codigo { text-align: center; font-size: 34px; letter-spacing: .32em; font-weight: 800; padding-left: calc(18px + .32em); font-variant-numeric: tabular-nums; }
.campo .pista { color: var(--texto-suave); font-size: 16px; }
.error { background: #FDECE7; color: #8A2E17; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 17px; }
.codigo-demo { background: var(--amarillo); border: 2px dashed var(--dorado); border-radius: 16px; padding: 14px 16px; text-align: center; }
.codigo-demo b { display: block; font-size: 34px; letter-spacing: .2em; font-variant-numeric: tabular-nums; color: var(--verde-osc); }
.codigo-demo small { font-size: 15px; color: #6B4A00; font-weight: 700; }
.centrado { text-align: center; }
.formulario { display: grid; gap: 16px; }

/* ---------- Pestañas ---------- */
.pestanas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 249, .97);
  border-top: 1px solid var(--borde);
  padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + var(--abajo)) max(6px, env(safe-area-inset-right));
  box-shadow: 0 -6px 20px rgba(31, 52, 36, .06);
}
.pestana { display: grid; justify-items: center; gap: 2px; min-height: 60px; padding: 5px 2px 3px; background: none; border: 0; border-radius: 14px; color: #5F6B62; font-size: 13.5px; font-weight: 700; text-decoration: none; line-height: 1.1; }
.pestana .icono { width: 54px; height: 32px; border-radius: 999px; display: grid; place-items: center; transition: background-color .2s ease, transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.pestana svg { width: 25px; height: 25px; }
.pestana[aria-current="page"] { color: var(--verde-osc); font-weight: 800; }
.pestana[aria-current="page"] .icono { background: var(--verde); color: #fff; transform: translateY(-1px); }

/* ---------- Aviso de navegador interno (Instagram / Facebook) ---------- */
#aviso-navegador { position: sticky; top: 0; z-index: 30; background: var(--amarillo); border-bottom: 1px solid #EBD58F; padding: calc(10px + var(--arriba)) 14px 10px; }
.aviso-nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.aviso-nav p { font-size: 16px; line-height: 1.35; font-weight: 600; color: #4A3600; }
.aviso-nav .cerrar { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: #4A3600; }
.aviso-nav .cerrar svg { width: 20px; height: 20px; }
.aviso-nav .acciones { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.aviso-nav .boton { min-height: 46px; padding: 8px 16px; font-size: 16.5px; width: auto; box-shadow: none; }

/* ---------- Hoja (modal desde abajo) ---------- */
.fondo-hoja { position: fixed; inset: 0; z-index: 60; background: rgba(31, 52, 36, .5); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s ease both; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.hoja:focus { outline: none; }
.hoja {
  width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--crema); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  animation: subir .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes subir { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.hoja-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 12px 10px 22px; flex: none; }
.hoja-cabeza h2 { font-size: 22px; }
.hoja-cerrar { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #EFE8DC; display: grid; place-items: center; color: var(--verde-osc); flex: none; }
.hoja-cerrar svg { width: 22px; height: 22px; }
.hoja-cuerpo { overflow-y: auto; padding: 6px 20px calc(24px + var(--abajo)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: paso; }
.pasos li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--crema-clara); border: 1px solid var(--borde); border-radius: 18px; padding: 14px; counter-increment: paso; }
.pasos li::before { content: counter(paso); width: 44px; height: 44px; border-radius: 50%; background: var(--verde); color: #fff; font: 700 21px/44px var(--titulos); text-align: center; }
.pasos .dibujo { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; background: #F1F1F3; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 16px; color: #1c1c1e; font-family: -apple-system, system-ui, sans-serif; }
.pasos .dibujo svg { width: 24px; height: 24px; color: #0A84FF; }
.pasos .dibujo.android svg { color: #3c4043; }

.lista-indice { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.lista-indice button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-align: left; min-height: 56px; padding: 12px 16px; border: 1px solid var(--borde); border-radius: 14px; background: var(--crema-clara); font-weight: 700; font-size: 17.5px; }
.lista-indice button[aria-current="true"] { border-color: var(--verde); background: var(--verde-suave); }
.lista-indice small { color: var(--texto-suave); font-weight: 700; font-size: 15px; white-space: nowrap; }
.grilla-paginas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grilla-paginas button { padding: 0; border: 2px solid var(--borde); border-radius: 10px; overflow: hidden; background: var(--crema-clara); position: relative; }
.grilla-paginas button[aria-current="true"] { border-color: var(--terracota); }
.grilla-paginas img { width: 100%; height: auto; }
.grilla-paginas span { position: absolute; right: 4px; bottom: 4px; background: rgba(31, 52, 36, .82); color: #fff; font-size: 13px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.opciones { display: grid; gap: 12px; }
.opcion { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; text-decoration: none; color: inherit; background: var(--crema-clara); border: 1px solid var(--borde); border-radius: 16px; padding: 14px; min-height: 72px; }
.opcion .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--verde-suave); color: var(--verde); display: grid; place-items: center; }
.opcion .ic svg { width: 26px; height: 26px; }
.opcion b { display: block; font-size: 18px; }
.opcion small { display: block; color: var(--texto-suave); font-size: 15.5px; line-height: 1.3; }

/* ---------- Avisos cortos ---------- */
.avisos { position: fixed; left: 0; right: 0; bottom: calc(var(--alto-pestanas) + var(--abajo) + 16px); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.aviso { background: var(--verde-osc); color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 17px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: entrar .22s ease both; max-width: 100%; text-align: center; }
.aviso.sale { opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
body.leyendo .avisos { bottom: calc(96px + var(--abajo)); }

/* ---------- Lector ---------- */
body.leyendo { overflow: hidden; background: #EDE6DA; }
.lector { position: fixed; inset: 0; display: flex; flex-direction: column; background: #EDE6DA; animation: aparecer .2s ease both; }
.lector-barra {
  flex: none; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 6px;
  padding: calc(6px + var(--arriba)) 12px 6px 6px; background: var(--verde); color: #fff; position: relative; z-index: 3;
}
.lector-barra button { width: 52px; height: 52px; border: 0; background: none; color: #fff; border-radius: 50%; display: grid; place-items: center; }
.lector-barra button:active { background: rgba(255, 255, 255, .14); }
.lector-barra svg { width: 28px; height: 28px; }
.lector-barra .titulo { font: 700 18px/1.2 var(--titulos); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lector-barra .subtitulo { font-size: 14.5px; color: #CFE0D1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lector-barra .contador { font-weight: 800; font-size: 16px; background: rgba(255, 255, 255, .16); padding: 7px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lector-avance { height: 4px; background: var(--verde-osc); flex: none; position: relative; z-index: 3; }
.lector-avance i { display: block; height: 100%; width: 0; background: var(--dorado-fuerte); transition: width .2s linear; }

.lector-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y; position: relative; }
.lector-paginas { width: 100%; margin: 0 auto; padding: 0 0 calc(110px + var(--abajo)); transform-origin: 0 0; }
.lector-paginas.ancha { max-width: 760px; }
.pag { position: relative; width: 100%; background: var(--crema-clara); margin-bottom: 8px; box-shadow: 0 1px 4px rgba(31, 52, 36, .12); overflow: hidden; }
.pag img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pag img.lista { opacity: 1; }
.pag .espera { position: absolute; inset: 0; display: grid; place-items: center; color: #B9B1A3; font: 700 40px/1 var(--titulos); }
.pag.fallo .espera { font: 700 17px/1.4 var(--cuerpo); color: var(--texto-suave); text-align: center; padding: 20px; }
.pag a.zona { position: absolute; border-radius: 10px; z-index: 2; }
.pag a.zona:active, .pag a.zona:focus-visible { background: rgba(232, 177, 0, .28); outline: 3px solid var(--dorado-fuerte); }

.lector-herramientas {
  position: absolute; left: 50%; bottom: calc(16px + var(--abajo)); transform: translateX(-50%); z-index: 4;
  display: flex; gap: 4px; padding: 6px; border-radius: 22px;
  background: rgba(255, 253, 249, .97); border: 1px solid var(--borde); box-shadow: 0 10px 30px rgba(31, 52, 36, .24);
  transition: transform .25s ease, opacity .25s ease;
}
.lector-herramientas.escondida { transform: translateX(-50%) translateY(120%); opacity: 0; pointer-events: none; }
.herramienta { display: grid; justify-items: center; gap: 1px; min-width: 76px; min-height: 60px; padding: 7px 8px 5px; border: 0; background: none; border-radius: 16px; color: var(--verde-osc); font-size: 13.5px; font-weight: 800; }
.herramienta:active { background: var(--verde-suave); }
.herramienta svg { width: 26px; height: 26px; }
.herramienta[aria-pressed="true"] { color: var(--terracota); }
.herramienta[aria-pressed="true"] svg { fill: currentColor; }
.guardado-barra { margin-top: 12px; }

/* ---------- Arranque ---------- */
.arranque { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 22px; }
.arranque img { border-radius: 30px; }
.arranque-puntos { display: flex; gap: 8px; }
.arranque-puntos i { width: 10px; height: 10px; border-radius: 50%; background: var(--verde); opacity: .25; animation: punto 1s ease-in-out infinite; }
.arranque-puntos i:nth-child(2) { animation-delay: .15s; }
.arranque-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 40% { opacity: 1; transform: translateY(-4px); } }

.esqueleto { background: linear-gradient(100deg, #EFE8DC 30%, #F7F2EA 50%, #EFE8DC 70%); background-size: 300% 100%; animation: brillo 1.4s linear infinite; border-radius: 12px; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (min-width: 700px) {
  .pantalla { padding-top: 34px; }
  .grilla-regalos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 350px) {
  body { font-size: 17px; }
  .pestana { font-size: 12.5px; }
  .herramienta { min-width: 66px; }
  .seguir { grid-template-columns: 84px 1fr; }
  .seguir .mini { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
