/* Lámpara — web
   Concepto: la noche y una sola luz, con páginas de papel para leer.
   Secciones de noche (#15121F) y de papel (#FBF6EE). La brasa es el único acento.
   Todo el contenido se ve sin JavaScript; app.js solo suma las demostraciones.
   Con "Reducir movimiento" la página queda quieta. */

:root {
  --noche: #15121F;
  --noche-alta: #221D33;
  --noche-media: #1B1728;
  --borde: #332C47;
  --brasa: #F4A340;
  --brasa-clara: #FFE2B0;
  --brasa-honda: #9A4D0A;
  --papel: #FBF6EE;
  --papel-alto: #FFFFFF;
  --papel-hondo: #F3EADB;
  --borde-papel: #E6DACA;
  --tinta: #221C2B;
  --tinta-suave: #5E5566;
  --lila: #B9B0C6;
  --lila-clara: #D9D2E3;

  --titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 72rem;
  --medida: 38rem;
  --margen: 1rem;
  --radio: 1.25rem;
  color-scheme: dark light;
}
@media (min-width: 40rem) { :root { --margen: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--noche);
  color: var(--lila-clara);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--titulos);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.55em;
  text-wrap: balance;
  color: var(--papel);
}
h1 { font-size: clamp(2.6rem, 9.5vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.28; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

a { color: var(--brasa); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brasa-clara); }
strong { font-weight: 600; color: var(--papel); }

:focus-visible { outline: 2px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }

.envoltura { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--margen); }
.solo-lector { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Papel: secciones claras ---------- */
.papel { background: var(--papel); color: var(--tinta-suave); color-scheme: light; }
.papel h1, .papel h2, .papel h3, .papel strong { color: var(--tinta); }
.papel a { color: var(--brasa-honda); }
.papel a:hover { color: #6E3606; }
.papel :focus-visible { outline-color: var(--brasa-honda); }

/* ---------- Saltar ---------- */
.saltar {
  position: absolute; left: var(--margen); top: -4rem; z-index: 50;
  background: var(--brasa); color: var(--noche); padding: 0.6rem 1rem;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 0.75rem; color: var(--noche); }

/* ---------- Encabezado ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: rgba(21, 18, 31, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.cabecera.con-borde { border-bottom-color: var(--borde); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.marca {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--papel); text-decoration: none;
  font-family: var(--titulos); font-size: 1.3rem; font-weight: 500;
}
.marca svg { width: 2rem; height: 2rem; }
.marca:hover { color: var(--papel); }

.menu ul { display: flex; align-items: center; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--lila-clara); text-decoration: none; font-size: 0.975rem; display: inline-block; padding: 0.55rem 0; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--papel); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brasa); text-underline-offset: 0.45em; }
.menu .ancla { display: none; }
.menu .pildora-menu {
  display: none; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid var(--borde); color: var(--brasa-clara);
}
@media (min-width: 52rem) {
  .menu .ancla { display: list-item; }
  .menu .pildora-menu { display: inline-block; }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 0.55rem; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px;
  background: var(--brasa); color: var(--noche); font-weight: 600; text-decoration: none;
  border: 0; cursor: pointer;
}
.boton:hover { background: var(--brasa-clara); color: var(--noche); }
.pronto {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  background: var(--papel); color: var(--noche); font-weight: 600;
}
.pronto svg { width: 1.1rem; height: 1.1rem; }
.papel .pronto { background: var(--noche); color: var(--papel); }
.enlace-suave { color: var(--lila-clara); font-weight: 500; }
.papel .enlace-suave { color: var(--tinta); }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6.5rem); }
.portada::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%;
  background: radial-gradient(closest-side, rgba(244, 163, 64, 0.16), rgba(244, 163, 64, 0));
  pointer-events: none;
}
.portada .envoltura { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .portada .envoltura { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }

.chip-marca {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem; border-radius: 999px;
  border: 1px solid var(--borde); background: var(--noche-media);
  font-size: 0.9rem; color: var(--lila-clara);
}
.chip-marca svg { width: 1.4rem; height: 1.4rem; }
.portada .entrada { font-size: clamp(1.1rem, 3.6vw, 1.3rem); max-width: 33rem; color: var(--lila-clara); margin-bottom: 2rem; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.sellos { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--lila); }
.sellos li { display: inline-flex; align-items: center; gap: 0.45rem; }
.sellos li::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brasa); }

/* ---------- Teléfono ---------- */
.telefono-zona { position: relative; display: grid; place-items: center; }
.telefono-zona::before {
  content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 163, 64, 0.26), rgba(244, 163, 64, 0.06) 60%, rgba(244, 163, 64, 0));
  pointer-events: none;
}
.telefono {
  position: relative; width: min(17.5rem, 78vw); aspect-ratio: 9 / 19.2;
  border-radius: 2.6rem; padding: 0.6rem;
  background: linear-gradient(160deg, #3a3350, #17131F 40%, #2b2540);
  box-shadow: 0 0 0 1px #4a4262 inset, 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.pantalla {
  position: relative; height: 100%; border-radius: 2.1rem; overflow: hidden;
  background: #0F0D16; color: #F3EDE3; font-size: 0.8rem; line-height: 1.35;
  display: flex; flex-direction: column;
}
.isla { position: absolute; top: 0.55rem; left: 50%; translate: -50% 0; width: 5.6rem; height: 1.45rem; border-radius: 1rem; background: #000; z-index: 3; }
.barra-estado { display: flex; justify-content: space-between; padding: 0.7rem 1.4rem 0; font-size: 0.72rem; font-weight: 600; color: #F3EDE3; }
.barra-estado span:last-child { letter-spacing: 0.1em; }
.app-cuerpo { flex: 1; padding: 1.4rem 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.75rem; }
.app-saludo { font-size: 0.7rem; color: var(--lila); }
.app-titulo { font-family: var(--titulos); font-size: 1.35rem; color: #F3EDE3; line-height: 1.1; }
/* Barra de la app como en iOS: cuatro pestañas en una cápsula y Buscar aparte */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tabbar { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.6rem 0.85rem; }
.tabbar .tabs {
  flex: 1; display: flex; justify-content: space-between; padding: 0.22rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid #2E2842;
}
.tabbar .tabs span {
  flex: 1; display: grid; justify-items: center; gap: 0.08rem; padding: 0.28rem 0.1rem 0.22rem;
  border-radius: 999px; font-size: 0.52rem; font-weight: 600; color: var(--lila);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tabbar svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar svg .badge { fill: #0F0D16; }
.tabbar .tabs .activo { color: var(--brasa); background: rgba(244, 163, 64, 0.15); }
.tabbar .buscar-tab {
  flex: none; width: 2.35rem; height: 2.35rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid #2E2842; color: var(--lila);
}
.tabbar .buscar-tab svg { width: 1.1rem; height: 1.1rem; }

/* Anillo con la llama (hero y demo) */
.anillo { position: relative; width: 9.5rem; aspect-ratio: 1; margin: 0.3rem auto 0; }
.anillo > svg:first-child { width: 100%; height: 100%; }
.anillo .pista { stroke: #2E2842; }
.anillo .avance { stroke: var(--brasa); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.anillo .llama-centro { position: absolute; left: 32%; top: 24%; width: 36%; height: 50%; }
.minutos { text-align: center; font-weight: 700; font-size: 0.95rem; }
.minutos small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--lila); }

.apps-pausa { background: #1B1727; border: 1px solid #2E2842; border-radius: 1rem; padding: 0.65rem 0.7rem; }
.apps-pausa p { margin: 0 0 0.5rem; font-size: 0.68rem; color: var(--lila); }
.iconos-apps { display: flex; gap: 0.45rem; }
.icono-app {
  position: relative; width: 2.05rem; height: 2.05rem; border-radius: 0.6rem;
  background: linear-gradient(135deg, #3B3454, #2A2440);
}
.icono-app:nth-child(2) { background: linear-gradient(135deg, #4A3550, #2E2440); }
.icono-app:nth-child(3) { background: linear-gradient(135deg, #34405A, #262A44); }
.icono-app:nth-child(4) { background: linear-gradient(135deg, #3E4A44, #26302C); }
.icono-app::after {
  content: ""; position: absolute; right: -0.2rem; bottom: -0.2rem; width: 0.85rem; height: 0.85rem;
  border-radius: 50%; background: var(--brasa) no-repeat center / 0.5rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath fill='%2315121F' d='M2 5V3.5a3 3 0 0 1 6 0V5h.5A1.5 1.5 0 0 1 10 6.5v4A1.5 1.5 0 0 1 8.5 12h-7A1.5 1.5 0 0 1 0 10.5v-4A1.5 1.5 0 0 1 1.5 5H2Zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0V5Z'/%3E%3C/svg%3E");
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.libre .icono-app::after { transform: scale(0); opacity: 0; }
.boton-app {
  display: block; text-align: center; background: var(--brasa); color: var(--noche);
  border-radius: 999px; padding: 0.55rem; font-weight: 700; font-size: 0.75rem;
}
.aviso-app { text-align: center; font-size: 0.72rem; color: var(--brasa-clara); min-height: 1.1rem; margin: 0; }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(4rem, 11vw, 7rem); position: relative; }
.encabezado-seccion { max-width: 40rem; margin-bottom: clamp(2.25rem, 6vw, 3.5rem); }
.encabezado-seccion p { font-size: 1.12rem; }
.antetitulo { display: inline-block; font-weight: 600; font-size: 0.95rem; color: var(--brasa); margin-bottom: 0.8rem; }
.papel .antetitulo { color: var(--brasa-honda); }

/* ---------- Cómo funciona ---------- */
.como { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) { .como { grid-template-columns: 1fr 0.85fr; gap: 4rem; } }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 0.9rem; }
.paso {
  counter-increment: paso; position: relative;
  border: 1px solid var(--borde-papel); border-radius: var(--radio);
  background: var(--papel-alto); padding: 1.25rem 1.25rem 1.25rem 4.4rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.paso::before {
  content: counter(paso); position: absolute; left: 1.2rem; top: 1.15rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulos); font-size: 1.15rem; color: var(--brasa-honda);
  border: 1.5px solid var(--borde-papel); background: var(--papel);
}
.paso h3 { margin-bottom: 0.3em; font-size: 1.2rem; }
.paso p { margin: 0; }
.paso.activo { border-color: var(--brasa); background: #FFF8EE; }
.paso.activo::before { background: var(--brasa); border-color: var(--brasa); color: var(--noche); }
.paso button.ver-paso {
  all: unset; cursor: pointer; position: absolute; inset: 0; border-radius: var(--radio);
}
.paso button.ver-paso:focus-visible { outline: 2px solid var(--brasa-honda); outline-offset: 3px; }
.paso .mini { margin-top: 1rem; }
@media (min-width: 60rem) { .paso .mini { display: none; } }

.como-telefono { display: none; }
@media (min-width: 60rem) {
  .como-telefono { display: grid; place-items: center; position: sticky; top: 6rem; }
  .como-telefono::before { background: radial-gradient(closest-side, rgba(244, 163, 64, 0.2), rgba(244, 163, 64, 0)); }
}
.escena { display: none; flex: 1; flex-direction: column; gap: 0.7rem; padding: 1.4rem 1rem 0.8rem; }
.escena.activa { display: flex; }
.sin-js .escena:first-of-type { display: flex; }

/* Mini ilustraciones (móvil, dentro de cada paso) */
.mini { border-radius: 1rem; background: var(--noche); color: #F3EDE3; padding: 0.9rem; font-size: 0.82rem; }
.cuadricula-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.cuadricula-apps span { display: grid; justify-items: center; gap: 0.25rem; font-size: 0.6rem; color: var(--lila); }
.cuadricula-apps i { position: relative; width: 2.2rem; height: 2.2rem; border-radius: 0.65rem; background: linear-gradient(135deg, #3B3454, #2A2440); }
.cuadricula-apps i.elegida { box-shadow: 0 0 0 2px var(--brasa); }
.cuadricula-apps i.elegida::after {
  content: "✓"; position: absolute; right: -0.3rem; top: -0.3rem; width: 0.95rem; height: 0.95rem;
  border-radius: 50%; background: var(--brasa); color: var(--noche); font-size: 0.6rem; font-style: normal;
  display: grid; place-items: center; font-weight: 800;
}
.fila-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fila-chips span { padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid #2E2842; font-size: 0.7rem; }
.fila-chips span.si { background: var(--brasa); border-color: var(--brasa); color: var(--noche); font-weight: 700; }
.mini .texto-biblico { margin-bottom: 0.7rem; }
@media (max-width: 59.99rem) { .portada .telefono { width: min(15.5rem, 72vw); } }
.etiqueta-mini { font-size: 0.66rem; color: var(--lila); margin-bottom: 0.3rem; display: block; }
.meta-grande { font-family: var(--titulos); font-size: 1.9rem; line-height: 1; color: #F3EDE3; }
.texto-biblico { font-family: var(--titulos); font-size: 0.86rem; line-height: 1.55; color: #F3EDE3; }
.texto-biblico sup { color: var(--brasa); font-family: var(--texto); font-size: 0.6rem; margin-right: 0.15rem; }
.barra-lectura { height: 0.4rem; border-radius: 999px; background: #2E2842; overflow: hidden; }
.barra-lectura span { display: block; height: 100%; width: 70%; background: var(--brasa); border-radius: inherit; }
.llamitas { display: flex; gap: 0.4rem; align-items: center; }
.llamitas svg { width: 1.1rem; height: 1.4rem; }

/* ---------- Prueba la llama ---------- */
.prueba { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .prueba { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.mando {
  border: 1px solid var(--borde); border-radius: 1.5rem; background: var(--noche-media);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.mando label { display: block; font-weight: 600; color: var(--papel); margin-bottom: 0.25rem; }
.mando .valor { font-family: var(--titulos); font-size: 2.6rem; color: var(--brasa); line-height: 1.1; }
.mando .valor small { font-family: var(--texto); font-size: 1rem; color: var(--lila); }
.deslizador { width: 100%; margin: 1.1rem 0 0.4rem; accent-color: var(--brasa); height: 2rem; }
.marcas { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--lila); }
.estado-prueba { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--borde); min-height: 3.4rem; color: var(--lila-clara); }
.estado-prueba strong { color: var(--brasa-clara); }
.escenario {
  position: relative; display: grid; place-items: center; gap: 1.5rem;
  min-height: 22rem; border-radius: 1.75rem; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 38%, rgba(244, 163, 64, 0.16), rgba(244, 163, 64, 0) 70%), var(--noche-media);
  border: 1px solid var(--borde); padding: 2rem 1.25rem;
}
.llama-grande { width: 9rem; height: 11rem; }
.llama-grande .relleno { transition: transform 0.5s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.escenario .iconos-apps { justify-content: center; gap: 0.75rem; }
.escenario .icono-app { width: 2.9rem; height: 2.9rem; border-radius: 0.85rem; }
.escenario .icono-app::after { width: 1.15rem; height: 1.15rem; background-size: 0.62rem; }
.etiqueta-escenario { font-size: 0.9rem; color: var(--lila); text-align: center; margin: 0; }

/* ---------- Lo que trae (rejilla variada) ---------- */
.rejilla { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .rejilla { grid-template-columns: repeat(6, 1fr); } }
.pieza {
  border-radius: 1.5rem; padding: clamp(1.25rem, 3.5vw, 1.75rem);
  border: 1px solid var(--borde-papel); background: var(--papel-alto);
  display: flex; flex-direction: column; gap: 0.9rem; min-width: 0;
}
.pieza h3 { margin: 0; }
.pieza p { margin: 0; }
.pieza .nota { font-size: 0.92rem; }
.pieza.oscura { background: var(--noche); border-color: var(--noche); color: var(--lila-clara); color-scheme: dark; }
.pieza.oscura h3, .pieza.oscura strong { color: var(--papel); }
.pieza.oscura a { color: var(--brasa); }
.pieza.calida { background: var(--papel-hondo); border-color: var(--papel-hondo); }
@media (min-width: 48rem) {
  .p-planes { grid-column: span 4; }
  .p-medida { grid-column: span 2; }
  .p-pregunta { grid-column: span 3; }
  .p-semana { grid-column: span 3; }
  .p-casa, .p-notas, .p-escuchar { grid-column: span 2; }
}

/* Planes: etapas */
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.etapas button {
  width: 100%; display: grid; justify-items: center; gap: 0.35rem; padding: 0.7rem 0.3rem;
  border-radius: 1rem; border: 1px solid var(--borde-papel); background: var(--papel); cursor: pointer;
  color: var(--tinta); font-weight: 600; font-size: 0.92rem;
}
.etapas button span {
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--brasa-honda); color: var(--brasa-honda); font-family: var(--titulos);
}
.etapas button[aria-pressed="true"] { border-color: var(--brasa); background: #FFF4E4; }
.etapas button[aria-pressed="true"] span { background: var(--brasa); border-color: var(--brasa); color: var(--noche); }
.explica-etapa { min-height: 3.2rem; padding: 0.85rem 1rem; border-radius: 1rem; background: var(--papel); border: 1px dashed var(--borde-papel); }
.secciones-planes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.secciones-planes li { padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--papel-hondo); color: var(--tinta); font-size: 0.88rem; }

/* Plan a tu medida */
.duraciones { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.duraciones button {
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--borde); background: transparent;
  color: var(--lila-clara); cursor: pointer; font-size: 0.88rem;
}
.duraciones button[aria-pressed="true"] { background: var(--brasa); border-color: var(--brasa); color: var(--noche); font-weight: 700; }
.dias-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.dias-plan li { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; padding: 0.6rem 0.75rem; border-radius: 0.85rem; background: var(--noche-alta); font-size: 0.88rem; }
.dias-plan b { grid-row: span 2; align-self: center; width: 2rem; height: 2rem; border-radius: 0.6rem; display: grid; place-items: center; background: var(--borde); color: var(--brasa-clara); font-family: var(--titulos); font-weight: 500; }
.dias-plan small { color: var(--lila); }
.desde-foto { display: flex; gap: 0.6rem; align-items: center; font-size: 0.88rem; color: var(--lila); }
.desde-foto svg { flex: none; width: 1.6rem; height: 1.6rem; }

/* Pregúntale a la Biblia */
.chat { display: grid; gap: 0.6rem; }
.burbuja { max-width: 92%; padding: 0.7rem 0.95rem; border-radius: 1.1rem; font-size: 0.95rem; }
.burbuja.yo { justify-self: end; background: var(--brasa); color: var(--noche); border-bottom-right-radius: 0.35rem; font-weight: 500; }
.burbuja.ella { background: var(--papel); border: 1px solid var(--borde-papel); color: var(--tinta); border-bottom-left-radius: 0.35rem; }
.citas { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.citas button {
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--brasa-honda); background: transparent;
  color: var(--brasa-honda); font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.citas button[aria-pressed="true"] { background: var(--brasa-honda); color: var(--papel); }
.versiculo-abierto { margin: 0; padding: 0.9rem 1rem; border-left: 3px solid var(--brasa); background: #FFF8EE; border-radius: 0 0.85rem 0.85rem 0; }
.versiculo-abierto p { font-family: var(--titulos); color: var(--tinta); font-size: 1.02rem; margin: 0 0 0.35rem; }
.versiculo-abierto cite { font-style: normal; font-size: 0.82rem; }

/* Tu semana */
.actividad {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0.9rem; border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--borde);
}
.actividad svg { width: 1.8rem; height: 2.2rem; flex: none; }
.actividad div { flex: 1; font-size: 0.88rem; }
.actividad b { color: var(--papel); }
.actividad .reloj { font-variant-numeric: tabular-nums; color: var(--brasa-clara); font-weight: 700; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; align-items: end; height: 7rem; }
.semana span { display: grid; gap: 0.3rem; justify-items: center; font-size: 0.75rem; color: var(--lila); }
.semana i { display: block; width: 100%; max-width: 1.8rem; border-radius: 0.45rem 0.45rem 0.25rem 0.25rem; background: var(--borde); }
.semana i.si { background: var(--brasa); }
.alto-1 { height: 1.4rem; } .alto-2 { height: 2.6rem; } .alto-3 { height: 3.6rem; } .alto-4 { height: 4.6rem; } .alto-5 { height: 5.4rem; }

/* Los de casa */
.casa { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.persona { display: grid; justify-items: center; gap: 0.3rem; font-size: 0.8rem; }
.persona b {
  position: relative; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulos); font-weight: 500; font-size: 1.1rem; color: var(--tinta);
  background: var(--papel); border: 2px solid var(--borde-papel);
}
.persona.leyo b { border-color: var(--brasa); }
.persona b::after {
  content: ""; position: absolute; right: -0.25rem; bottom: -0.15rem; width: 1rem; height: 1.2rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='17 4 14 20'%3E%3Cpath fill='%23C9BFB0' d='M24 4C28.6 9.9 30.8 13.6 30.8 17.3C30.8 21.3 27.8 24 24 24C20.2 24 17.2 21.3 17.2 17.3C17.2 13.6 19.4 9.9 24 4Z'/%3E%3C/svg%3E");
}
.persona.leyo b::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='17 4 14 20'%3E%3Cpath fill='%23F4A340' d='M24 4C28.6 9.9 30.8 13.6 30.8 17.3C30.8 21.3 27.8 24 24 24C20.2 24 17.2 21.3 17.2 17.3C17.2 13.6 19.4 9.9 24 4Z'/%3E%3C/svg%3E"); }
.boton-animar {
  align-self: flex-start; padding: 0.55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brasa); color: var(--noche); font-weight: 700; font-size: 0.9rem;
}
.boton-animar[disabled] { background: var(--papel-hondo); color: var(--tinta-suave); cursor: default; }

/* Notas y resaltados */
.verso-resaltable { font-family: var(--titulos); font-size: 1.12rem; line-height: 1.7; color: var(--tinta); margin: 0; }
.verso-resaltable mark { color: inherit; padding: 0.05em 0.1em; border-radius: 0.2em; background: var(--resaltado, #FFE2B0); }
.colores { display: flex; gap: 0.45rem; }
.colores button {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--papel-alto); cursor: pointer;
  box-shadow: 0 0 0 1px var(--borde-papel);
}
.colores button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--tinta); }
.c1 { background: #FFE2B0; } .c2 { background: #CDE8D2; } .c3 { background: #D6E2F7; } .c4 { background: #F6D3DF; } .c5 { background: #E6DBF5; }

/* Escuchar */
.reproductor { display: flex; align-items: center; gap: 0.9rem; }
.reproductor button {
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--brasa); color: var(--noche); display: grid; place-items: center;
}
.reproductor button svg { width: 1.1rem; height: 1.1rem; }
.ondas { display: flex; align-items: center; gap: 3px; height: 2.4rem; flex: 1; }
.ondas i { flex: 1; max-width: 4px; border-radius: 2px; background: var(--borde-papel); height: 30%; }
.ondas i:nth-child(3n) { height: 70%; } .ondas i:nth-child(4n+1) { height: 50%; } .ondas i:nth-child(5n+2) { height: 90%; }
.sonando .ondas i { background: var(--brasa); }
@media (prefers-reduced-motion: no-preference) {
  .sonando .ondas i { animation: onda 0.9s ease-in-out infinite alternate; }
  .sonando .ondas i:nth-child(2n) { animation-delay: -0.3s; }
  .sonando .ondas i:nth-child(3n) { animation-delay: -0.6s; }
}
@keyframes onda { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.idiomas { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.idiomas li { padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--borde-papel); font-size: 0.82rem; color: var(--tinta); }

/* ---------- Versículo ---------- */
.versiculo { position: relative; overflow: hidden; text-align: center; padding-block: clamp(5rem, 15vw, 9rem); }
.versiculo::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 60rem; height: 30rem; translate: -50% -30%;
  background: radial-gradient(closest-side, rgba(244, 163, 64, 0.18), rgba(244, 163, 64, 0)); pointer-events: none;
}
.versiculo .envoltura { position: relative; }
.versiculo svg.llama-sola { width: 3rem; height: 3.6rem; margin: 0 auto 2rem; }
.versiculo blockquote { margin: 0 auto; max-width: 48rem; }
.versiculo blockquote p { font-family: var(--titulos); font-size: clamp(1.9rem, 6.4vw, 3.4rem); line-height: 1.2; color: var(--papel); font-weight: 400; margin-bottom: 1.2rem; text-wrap: balance; }
.versiculo cite { font-style: normal; color: var(--lila); }
.brasas { position: absolute; inset: 0; pointer-events: none; }
.brasas i { position: absolute; bottom: -1rem; width: 4px; height: 4px; border-radius: 50%; background: var(--brasa); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .brasas i { animation: brasa 9s linear infinite; }
}
.brasas i:nth-child(1) { left: 12%; animation-delay: 0s; }
.brasas i:nth-child(2) { left: 24%; animation-delay: 3.2s; animation-duration: 11s; }
.brasas i:nth-child(3) { left: 38%; animation-delay: 6.1s; }
.brasas i:nth-child(4) { left: 61%; animation-delay: 1.4s; animation-duration: 12s; }
.brasas i:nth-child(5) { left: 74%; animation-delay: 4.8s; }
.brasas i:nth-child(6) { left: 88%; animation-delay: 7.5s; animation-duration: 10s; }
@keyframes brasa {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 0.35; }
  100% { transform: translate(-1.5rem, -32rem); opacity: 0; }
}

/* ---------- Lo tuyo es tuyo ---------- */
.tuyo { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .tuyo { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tuyo { grid-template-columns: repeat(3, 1fr); } }
.tuyo li { display: flex; gap: 0.9rem; padding: 1.25rem; border-radius: var(--radio); background: var(--papel-alto); border: 1px solid var(--borde-papel); }
.tuyo li svg { flex: none; width: 2.6rem; height: 2.6rem; padding: 0.6rem; border-radius: 0.8rem; background: #FFF1DC; color: var(--brasa-honda); }
.tuyo h3 { font-size: 1.1rem; margin: 0.1rem 0 0.25rem; font-family: var(--texto); font-weight: 600; letter-spacing: 0; }
.tuyo p { margin: 0; font-size: 0.98rem; }
.tuyo li.enlace-tuyo { background: var(--noche); border-color: var(--noche); align-items: center; }
.tuyo li.enlace-tuyo a { color: var(--brasa); font-weight: 600; }

/* ---------- Gratis y preguntas ---------- */
.gratis { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .gratis { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.icono-app-real { width: 5rem; height: 5rem; border-radius: 1.2rem; margin-bottom: 1.5rem; box-shadow: 0 12px 40px -10px rgba(244, 163, 64, 0.45); }
.aportes { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.aportes li { display: grid; justify-items: center; gap: 0.15rem; text-align: center; padding: 1.1rem 0.5rem 1rem; border-radius: 1rem; border: 1px solid var(--borde); background: var(--noche-media); font-size: 0.9rem; }
.aportes svg { width: 2.2rem; height: 2.75rem; margin: 0 auto 0.45rem; }
.aportes b { color: var(--papel); font-weight: 600; }
.aportes .precio { color: var(--brasa-clara); font-weight: 700; font-variant-numeric: tabular-nums; }
.aportes small { color: var(--lila); font-size: 0.8rem; line-height: 1.35; }
.nota-aportes { font-size: 0.92rem; color: var(--lila); margin-top: -0.75rem; }
.nota-versiculo { margin: 1.4rem 0 0; color: var(--lila); font-size: 0.95rem; }

/* Versículo del día: tarjeta con ilustración de papel recortado */
.p-versiculo { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) {
  .p-versiculo { grid-column: span 6; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.versiculo-texto { display: grid; gap: 0.8rem; }
.tarjeta-dia {
  margin: 0; border-radius: 1.25rem; overflow: hidden; background: var(--papel-alto); border: 1px solid var(--borde-papel);
  --f: #FBE9CF; --s: #FFF6E6; --c1: #F4C27A; --c2: #E39A4A; --c3: #B86A2B;
}
.recorte { width: 100%; height: auto; }
.recorte rect, .recorte circle, .recorte path { transition: fill 0.6s ease; }
.c-fondo { fill: var(--f); } .c-sol { fill: var(--s); }
.c-capa1 { fill: var(--c1); } .c-capa2 { fill: var(--c2); } .c-capa3 { fill: var(--c3); }
.c-capa { filter: drop-shadow(0 -2px 2px rgba(34, 28, 43, 0.18)); }
.tarjeta-dia blockquote { margin: 0; padding: 1.1rem 1.25rem 0.4rem; }
.tarjeta-dia blockquote p { font-family: var(--titulos); color: var(--tinta); font-size: 1.15rem; line-height: 1.45; margin: 0 0 0.4rem; }
.tarjeta-dia cite { font-style: normal; font-size: 0.85rem; }
.acciones-dia { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 1.25rem 0; }
.acciones-dia span { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--papel-hondo); color: var(--tinta); font-size: 0.82rem; font-weight: 600; }
.pie-dia { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.25rem 1.1rem; font-size: 0.82rem; }
.otro-dia { border: 1px solid var(--brasa-honda); background: transparent; color: var(--brasa-honda); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.otro-dia:hover { background: var(--brasa-honda); color: var(--papel); }
.preguntas { border-top: 1px solid var(--borde); }
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  color: var(--papel); font-weight: 600;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.65rem; height: 0.65rem;
  border-right: 2px solid var(--brasa); border-bottom: 2px solid var(--brasa);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s ease;
}
.preguntas details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.preguntas details > div { padding: 0 0 1.1rem; }
.preguntas details > div > :last-child { margin-bottom: 0; }
.papel .preguntas { border-color: var(--borde-papel); }
.papel .preguntas details { border-color: var(--borde-papel); }
.papel .preguntas summary { color: var(--tinta); }
.papel .preguntas summary::after { border-color: var(--brasa-honda); }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--borde); padding-block: 2.75rem 3rem; font-size: 0.95rem; color: var(--lila); }
.pie .envoltura { display: grid; gap: 1.25rem; }
.pie nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.pie nav a { color: var(--lila-clara); text-decoration: none; display: inline-block; padding: 0.35rem 0; }
.pie nav a:hover { color: var(--papel); text-decoration: underline; }
.pie nav a[aria-current="page"] { color: var(--papel); }
.pie p { margin: 0; }
.pie .legal { font-size: 0.85rem; }
@media (min-width: 48rem) {
  .pie .envoltura { grid-template-columns: auto 1fr; align-items: center; column-gap: 3rem; }
  .pie nav { justify-self: end; }
  .pie .creditos { grid-column: 1 / -1; }
}

/* ---------- Páginas de texto (papel) ---------- */
.documento { padding-block: clamp(2.5rem, 8vw, 4.5rem) clamp(4rem, 10vw, 6rem); }
.documento .envoltura { max-width: calc(46rem + 2 * var(--margen)); }
.documento h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); }
.documento h2 { font-size: clamp(1.45rem, 4.6vw, 1.9rem); margin-top: 2.6rem; }
.documento h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.documento ul, .documento ol { padding-left: 1.25rem; margin: 0 0 1em; }
.documento li { margin-bottom: 0.45em; }
.documento li::marker { color: var(--brasa-honda); }
.fecha { font-size: 0.975rem; }
.resumen { background: var(--papel-alto); border: 1px solid var(--borde-papel); border-radius: var(--radio); padding: 1.25rem 1.25rem 0.5rem; margin: 1.5rem 0 0; }
.documento .resumen h2 { margin-top: 0; }
.indice { margin: 1.75rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--borde-papel); }
.indice p { margin-bottom: 0.4rem; font-size: 0.95rem; }
.indice ul { columns: 2 12rem; column-gap: 2rem; padding-left: 1.1rem; font-size: 0.975rem; }
.contacto { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radio); background: var(--noche); color: var(--lila-clara); }
.contacto p:last-child { margin-bottom: 0; }
.buscador { margin: 1.5rem 0 0.5rem; }
.buscador label { display: block; font-weight: 600; color: var(--tinta); margin-bottom: 0.4rem; }
.buscador input {
  width: 100%; min-height: 3rem; padding: 0.7rem 1rem; border-radius: 999px; font: inherit;
  border: 1px solid var(--borde-papel); background: var(--papel-alto); color: var(--tinta);
}
.buscador input:focus-visible { outline: 2px solid var(--brasa-honda); outline-offset: 2px; }
.sin-resultados { padding: 1rem 0; }
.temas { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.temas a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--papel-hondo); color: var(--tinta); text-decoration: none; font-size: 0.92rem; }
.temas a:hover { background: #EADCC6; color: var(--tinta); }
.perdido { text-align: center; padding-block: clamp(4rem, 14vw, 8rem); }

/* ---------- Aparición suave (solo con JS y sin "Reducir movimiento") ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .aparece { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .aparece.visto { opacity: 1; transform: none; }
}

/* Llama del logo: se enciende al abrir */
.llama, .nucleo { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .encender .llama { animation: encender 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .encender .nucleo { animation: encender 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; }
}
@keyframes encender {
  0% { opacity: 0; transform: scale(0.35); }
  55% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
