:root {
  --bg: #f4f1ea;
  --surface: #faf8f3;
  --raised: #fbfaf6;
  --ink: #1f3d33;
  --text: #3a4843;
  --muted: #74807a;
  --green: #2e5e4e;
  --green-deep: #1c4337;
  --green-soft: #e3ece6;
  --gold: #a47a2e;
  --gold-soft: #f3e8cf;
  --line: #e7e1d4;
  --sky: linear-gradient(180deg, #fdf6e6 0%, #f4efe4 55%, #eef1ec 100%);
  --hi: rgba(255,255,255,.95);
  --lo: rgba(166,152,124,.34);
  --neu: 6px 6px 14px var(--lo), -6px -6px 14px var(--hi);
  --neu-sm: 3px 3px 8px var(--lo), -3px -3px 8px var(--hi);
  --neu-in: inset 3px 3px 7px var(--lo), inset -3px -3px 7px var(--hi);
  --fs: 16px;
  --nav-h: 74px;
}
[data-theme="dark"] {
  --bg: #141b18;
  --surface: #1a2320;
  --raised: #1d2724;
  --ink: #f1ead9;
  --text: #dcd6c8;
  --muted: #9ea8a2;
  --green: #4f8f78;
  --green-deep: #3b7561;
  --green-soft: #22342d;
  --gold: #e0b964;
  --gold-soft: #33301f;
  --line: #2c3834;
  --sky: linear-gradient(180deg, #1c2622 0%, #141b18 100%);
  --hi: rgba(255,255,255,.04);
  --lo: rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { font-size: var(--fs); background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink); font-weight: 600; }
h1 { margin: 6px 0 10px; font-size: 2.35rem; line-height: 1.02; letter-spacing: -.01em; }
h2 { margin: 4px 0 8px; font-size: 1.95rem; line-height: 1.05; }
h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
p { line-height: 1.6; }

/* Shell: siempre del ancho de un celular */
.shell { position: relative; width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); }
@media (min-width: 560px) {
  body { background: radial-gradient(ellipse at top, #fff8e4, transparent 60%), #e9e4d8; }
  [data-theme="dark"] body { background: #0d1210; }
  .shell { box-shadow: 0 0 60px rgba(90,75,45,.18); }
}
#app { padding: 12px 18px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); }
.no-nav #app { padding-bottom: 40px; }
.has-mini #app { padding-bottom: calc(var(--nav-h) + 110px + env(safe-area-inset-bottom)); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 18px 10px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar[hidden] { display: none; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--neu-sm); }
.brand strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.12rem; line-height: 1.05; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Botones en relieve */
.neu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 14px; color: var(--ink); background: var(--raised); box-shadow: var(--neu); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.neu:hover { transform: translateY(-1px); }
.neu:active, .neu.pressed { transform: translateY(1px); box-shadow: var(--neu-in); }
.neu.round { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; }
.neu.small { min-height: 38px; padding: 6px 12px; border-radius: 11px; font-size: .9rem; }
.neu svg, .menu-item svg, .bottom-nav svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 14px; padding: 14px 22px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 10px 22px rgba(28,67,55,.28), inset 0 1px 0 rgba(255,255,255,.18); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(28,67,55,.3), inset 0 2px 6px rgba(0,0,0,.25); }
.btn.ghost { color: var(--green-deep); background: var(--raised); box-shadow: var(--neu); }
[data-theme="dark"] .btn.ghost { color: var(--ink); }
.btn.gold { background: linear-gradient(180deg, #b98b35, #8d6520); box-shadow: 0 10px 22px rgba(141,101,32,.3), inset 0 1px 0 rgba(255,255,255,.2); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.gold[disabled] { opacity: .9; }
.btn svg { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }

/* Tipografía auxiliar */
.eyebrow { color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.grey { color: var(--muted); }
.lead { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px auto; max-width: 260px; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 30px 2px 12px; }
.section-title h2 { font-size: 1.6rem; margin: 2px 0 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 14px; padding: 8px 14px 8px 10px; min-height: 40px; border-radius: 999px; color: var(--green-deep); background: var(--raised); box-shadow: var(--neu-sm); font-weight: 700; font-size: .88rem; text-decoration: none; }
[data-theme="dark"] .back { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* Tarjetas */
.card { position: relative; border-radius: 22px; background: var(--raised); box-shadow: var(--neu); overflow: hidden; }
.card-pad { padding: 20px; }
.hero { margin-top: 6px; }
.hero-img { height: 210px; background-size: cover; background-position: center 30%; position: relative; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,250,235,0) 50%, var(--raised) 100%); }
.hero-img .pill { position: absolute; left: 14px; top: 14px; z-index: 1; }
.hero-body { padding: 4px 20px 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,253,247,.92); color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
[data-theme="dark"] .pill { background: rgba(26,35,32,.9); }
.word-badge { display: inline-block; margin: 10px 0 6px; padding: 7px 16px; border-radius: 999px; color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); font-weight: 800; letter-spacing: .14em; font-size: .85rem; }

.list { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 18px; background: var(--raised); box-shadow: var(--neu); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; border: 0; width: 100%; text-align: left; cursor: pointer; }
.row:hover { transform: translateY(-1px); }
.row:active { transform: translateY(1px); box-shadow: var(--neu-in); }
.row b { display: block; color: var(--ink); font-weight: 700; }
.row small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; font-size: .85rem; }
.row .chev { margin-left: auto; color: var(--gold); font-size: 1.4rem; }
.ico { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 15px; background: var(--bg); box-shadow: var(--neu-in); font-size: 1.35rem; }
.row.thumb .ico { background-size: cover; background-position: center 25%; box-shadow: none; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 16px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.tile:active { box-shadow: var(--neu-in); transform: translateY(1px); }
.tile b { color: var(--ink); font-family: "Cormorant Garamond", serif; font-size: 1.25rem; line-height: 1.1; }
.tile small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.tile.img { justify-content: flex-end; color: #fff; background-size: cover; background-position: center 25%; position: relative; }
.tile.img::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(20,30,26,0) 30%, rgba(20,30,26,.78)); }
.tile.img > * { position: relative; }
.tile.img b, .tile.img small { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { padding: 14px 8px; border-radius: 18px; background: var(--raised); box-shadow: var(--neu); text-align: center; }
.stat b { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.stat small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }

.quote { margin: 26px 0 0; padding: 20px 22px; border-radius: 20px; background: var(--sky); box-shadow: var(--neu); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.3rem; line-height: 1.35; color: var(--ink); text-align: center; }
.greet { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; margin: 2px 2px 14px; }

/* Progreso */
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--bg); box-shadow: var(--neu-in); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #6fa38f); transition: width .6s; }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: .85rem; }
.progress-head b { color: var(--ink); }

/* Jornada */
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.day { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); text-decoration: none; color: var(--ink); transition: transform .15s; }
.day strong { font-family: "Cormorant Garamond", serif; font-size: 2rem; line-height: 1; }
.day span { color: var(--gold); font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
.day.done { color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 8px 18px rgba(28,67,55,.28); }
.day.done span { color: #d8eadf; }
.day.done::after { content: "✓"; position: absolute; top: 8px; right: 10px; font-size: .75rem; color: #d8eadf; }
.day.current { outline: 2px solid var(--gold); outline-offset: 3px; }
.day.locked { opacity: .5; box-shadow: var(--neu-in); }

/* Flujo del día */
.stepper { display: flex; gap: 6px; margin: 4px 0 18px; }
.stepper i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); transition: background .3s; }
.stepper i.on { background: var(--green); }
.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.step { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step-nav { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 18px; }
.step-nav .btn { margin-top: 0; }
.prayer-text { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.32rem; line-height: 1.62; color: var(--ink); white-space: pre-line; margin: 0; }
.verse { margin: 18px 0 0; padding: 18px 20px; border-left: 3px solid var(--gold); border-radius: 0 16px 16px 0; background: var(--gold-soft); }
.verse p { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.25rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.verse cite { display: block; margin-top: 8px; color: var(--gold); font-size: .78rem; font-weight: 800; font-style: normal; letter-spacing: .06em; }
details.explain { margin-top: 16px; border-radius: 16px; background: var(--bg); box-shadow: var(--neu-in); }
details.explain summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--green); font-weight: 700; cursor: pointer; }
details.explain summary::-webkit-details-marker { display: none; }
details.explain summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; }
details.explain[open] summary::after { content: "−"; }
details.explain p { margin: 0; padding: 0 16px 16px; color: var(--text); }
.mission { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--green-soft); }
.mission .eyebrow { color: var(--green); }
.mission p { margin: 6px 0 0; color: var(--ink); }

/* Respiración */
.breath { display: grid; place-items: center; margin: 20px auto 8px; width: 210px; height: 210px; }
.breath-ring { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fffaf0 0%, #f6ecd4 55%, #ecdcb4 100%); box-shadow: 0 0 0 10px rgba(164,122,46,.08), 0 0 60px rgba(236,205,140,.6); animation: breathe 10s ease-in-out infinite; }
[data-theme="dark"] .breath-ring { background: radial-gradient(circle, #3b3a2a, #262a20); }
.breath-ring span { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--ink); }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 40%, 50% { transform: scale(1); } }

/* Nudo */
.knot-stage { position: relative; display: grid; place-items: center; height: 220px; margin: 8px 0; }
.knot-stage svg { width: 100%; max-width: 360px; height: 200px; overflow: visible; }
.knot-glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,226,150,.9), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.hold { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold .fill { position: absolute; inset: 0; width: 0; background: rgba(255,255,255,.22); }
.hold span { position: relative; }
.sparks { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.sparks i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff6d6, #e2b654); animation: spark 1.8s ease-out forwards; }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }

/* Emociones */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 2px; border: 0; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); cursor: pointer; font-size: 1.6rem; }
.mood small { font-size: .6rem; font-weight: 700; color: var(--muted); }
.mood.on { box-shadow: var(--neu-in); background: var(--green-soft); }
.mood.on small { color: var(--green); }
textarea, .input { width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--bg); box-shadow: var(--neu-in); color: var(--ink); line-height: 1.5; resize: vertical; outline: none; }
textarea { min-height: 110px; }
textarea:focus, .input:focus { box-shadow: var(--neu-in), 0 0 0 2px var(--green); }
.name-input { text-align: center; font-family: "Cormorant Garamond", serif; font-size: 1.7rem; padding: 14px; }

/* Onboarding */
.onb { display: flex; flex-direction: column; min-height: calc(100dvh - 40px); padding-top: env(safe-area-inset-top); }
.onb-img { height: 38vh; min-height: 250px; margin: 0 -18px; background-size: cover; background-position: center 22%; position: relative; }
.onb-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,241,234,0) 45%, var(--bg)); }
.onb-body { flex: 1; display: flex; flex-direction: column; text-align: center; margin-top: -30px; position: relative; }
.onb-body .lead { white-space: pre-line; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 22px 0 6px; }
.dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line); transition: width .3s; }
.dots i.on { width: 22px; background: var(--green); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 6px; }
.chip { padding: 10px 14px; border: 0; border-radius: 999px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; }
.chip.on { color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 6px 14px rgba(28,67,55,.25); }
.skip { margin-top: 10px; background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; padding: 10px; }

/* Vela */
.altar { padding: 26px 20px 22px; text-align: center; background: var(--sky); }
.candle { position: relative; width: 70px; height: 190px; margin: 10px auto 0; }
.candle .wax { position: absolute; bottom: 0; left: 8px; width: 54px; height: 120px; border-radius: 10px 10px 6px 6px; background: linear-gradient(90deg, #efe6d3, #fffdf6 45%, #e6dbc3); box-shadow: 0 10px 20px rgba(120,95,50,.2); }
.candle .wax::before { content: ""; position: absolute; top: -4px; left: 0; right: 0; height: 12px; border-radius: 50%; background: #f7f0e1; }
.candle .wick { position: absolute; bottom: 118px; left: 34px; width: 2px; height: 12px; background: #3b2f22; border-radius: 2px; }
.candle .flame { position: absolute; bottom: 126px; left: 22px; width: 26px; height: 50px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 72%, #fff 0 18%, #ffe79a 34%, #ffb938 62%, rgba(255,140,30,0) 76%); transform-origin: 50% 90%; animation: flicker 2.4s ease-in-out infinite; opacity: 0; transition: opacity .8s; }
.candle .halo { position: absolute; bottom: 100px; left: -65px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.5), transparent 65%); opacity: 0; transition: opacity 1s; }
.candle.lit .flame, .candle.lit .halo { opacity: 1; }
@keyframes flicker { 0%, 100% { transform: rotate(-2deg) scale(1); } 25% { transform: rotate(2deg) scale(1.04, .97); } 50% { transform: rotate(-1deg) scale(.97, 1.03); } 75% { transform: rotate(1.5deg) scale(1.02); } }
.mini-candles { display: flex; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.mini-candles i { width: 14px; height: 30px; border-radius: 4px 4px 3px 3px; background: #e8dfcb; position: relative; font-style: normal; }
.mini-candles i.on::before { content: ""; position: absolute; left: 3px; top: -13px; width: 8px; height: 13px; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 70%, #fff 0 20%, #ffd76a 45%, #ff9c2a 75%); animation: flicker 2s infinite; }
.intentions { display: grid; gap: 10px; margin-top: 12px; }
.intention { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); }
.intention p { margin: 0; flex: 1; color: var(--ink); line-height: 1.45; }
.intention small { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.intention .actions { display: flex; gap: 6px; }
.intention button { border: 0; background: none; cursor: pointer; font-size: 1.1rem; padding: 4px; }
.intention.answered { background: var(--gold-soft); }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.add-row .btn { margin: 0; width: auto; min-height: 50px; padding: 0 18px; }
.add-row .input { min-height: 50px; }

/* Audios */
.filters { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px 16px; padding: 6px 18px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: 0 0 auto; }
.audio-card { padding: 18px; border-radius: 22px; background: var(--raised); box-shadow: var(--neu); }
.audio-card.featured { background: linear-gradient(160deg, var(--gold-soft), var(--raised) 60%); }
.audio-top { display: flex; gap: 14px; align-items: flex-start; }
.audio-top h3 { font-size: 1.28rem; }
.audio-top p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.audio-meta { display: flex; gap: 8px; margin: 12px 0 10px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.player { display: flex; align-items: center; gap: 12px; }
.play { width: 52px; height: 52px; flex: 0 0 52px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 8px 18px rgba(28,67,55,.3); display: grid; place-items: center; cursor: pointer; }
.play svg { width: 20px; height: 20px; }
.track { flex: 1; min-width: 0; }
.bar { position: relative; height: 8px; border-radius: 9px; background: var(--bg); box-shadow: var(--neu-in); cursor: pointer; touch-action: none; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), #6fa38f); }
.times { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.audio-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.audio-foot small { color: var(--muted); font-size: .76rem; }
.fav { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); font-weight: 700; font-size: .85rem; cursor: pointer; }
.fav.on { color: #fff; background: #a3475c; box-shadow: 0 6px 14px rgba(163,71,92,.3); }
.mini-player { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 25; width: min(calc(100% - 24px), 456px); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--raised); box-shadow: 0 12px 30px rgba(60,50,30,.22); }
.mini-player[hidden] { display: none; }
.mini-player .play { width: 42px; height: 42px; flex-basis: 42px; }
.mini-player b { display: block; font-size: .82rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player small { color: var(--muted); font-size: .72rem; }
.mini-player .x { border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 6px; }

/* Decena */
.beads { position: relative; width: 250px; height: 250px; margin: 10px auto; }
.bead { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--raised); box-shadow: var(--neu-sm); transition: background .3s, transform .3s; }
.bead.big { width: 30px; height: 30px; margin: -15px; }
.bead.on { background: radial-gradient(circle at 35% 35%, #9fd0bb, var(--green-deep)); transform: scale(1.1); }
.bead.now { box-shadow: 0 0 0 4px rgba(164,122,46,.35), var(--neu-sm); }
.beads-center { position: absolute; inset: 60px; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--sky); box-shadow: var(--neu-in); }
.beads-center b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; color: var(--ink); line-height: 1; }
.beads-center small { color: var(--muted); font-size: .72rem; font-weight: 700; }

/* Diario */
.timeline { display: grid; gap: 12px; }
.entry { padding: 16px; border-radius: 18px; background: var(--raised); box-shadow: var(--neu-sm); }
.entry-head { display: flex; align-items: center; gap: 10px; }
.entry-head .emo { font-size: 1.6rem; }
.entry-head b { color: var(--ink); font-size: .92rem; }
.entry-head small { display: block; color: var(--muted); font-size: .74rem; }
.entry p { margin: 10px 0 0; color: var(--text); white-space: pre-line; }
.mood-strip { display: flex; justify-content: space-between; gap: 4px; padding: 16px; border-radius: 18px; background: var(--raised); box-shadow: var(--neu); }
.mood-strip div { text-align: center; flex: 1; }
.mood-strip span { display: block; font-size: 1.3rem; min-height: 1.6rem; }
.mood-strip small { color: var(--muted); font-size: .66rem; font-weight: 700; }

/* Vacío */
.empty { padding: 30px 20px; border-radius: 22px; background: var(--raised); box-shadow: var(--neu-in); text-align: center; }
.empty .big { font-size: 2.2rem; }
.empty p { color: var(--muted); }

/* Navegación inferior */
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30; width: 100%; max-width: 480px; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px 10px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.bottom-nav[hidden] { display: none; }
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 16px; background: none; color: var(--muted); font-size: .66rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.bottom-nav .active { color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 6px 14px rgba(28,67,55,.28); }

/* Menú (hoja) */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20,28,24,.35); animation: fade .25s; }
.sheet-panel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--bg); animation: up .3s ease; }
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }
.sheet-handle { width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 9px; background: var(--line); }
.sheet-label { margin: 10px 4px 12px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.menu-list { display: grid; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 16px; border-radius: 14px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-item.active { color: #fff; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 6px 14px rgba(28,67,55,.28); }
.prefs { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font-weight: 600; }
.pref-buttons { display: flex; gap: 8px; }
.toggle { width: 54px; height: 30px; padding: 3px; border: 0; border-radius: 99px; background: var(--bg); box-shadow: var(--neu-in); cursor: pointer; }
.toggle i { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--raised); box-shadow: var(--neu-sm); transition: transform .25s, background .25s; }
.toggle[aria-checked="true"] i { transform: translateX(24px); background: var(--green); }
.sheet-quote { margin: 20px 6px 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.15rem; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); width: min(calc(100% - 32px), 440px); padding: 14px 18px; border-radius: 16px; color: #fff; background: var(--green-deep); box-shadow: 0 12px 30px rgba(0,0,0,.2); text-align: center; font-weight: 600; animation: rise .3s; }
.toast[hidden] { display: none; }

/* Final */
.celebrate { text-align: center; }
.celebrate .seal { width: 110px; height: 110px; margin: 10px auto; border-radius: 50%; display: grid; place-items: center; font-size: 3rem; background: radial-gradient(circle, #fffaf0, #f3e3bb); box-shadow: 0 0 0 8px rgba(164,122,46,.1), 0 0 50px rgba(236,205,140,.7); animation: rise .6s; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Modo sencillo */
body.simple .bottom-nav { display: none !important; }
body.simple #app { padding-bottom: 40px; }
.simple-home, .simple-day { text-align: center; }
.simple-home h1 { font-size: 2.2rem; margin: 18px 0 6px; }
.simple-hello { margin: 4px 0 14px; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.simple-day h1 { margin: 2px 0 12px; font-size: 2.3rem; letter-spacing: .04em; }
.simple-day .back { float: left; }
.simple-day .eyebrow { clear: both; }
.btn.big { min-height: 70px; font-size: 1.25rem; }
.btn.big svg { width: 22px; height: 22px; }
.simple-tip { margin: 24px 0 8px; text-align: left; font-weight: 700; color: var(--ink); }
.simple-cross { margin: 0; text-align: left; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; font-style: italic; color: var(--ink); }
.simple-prayer { box-shadow: var(--neu-in); background: var(--bg); text-align: left; }
.simple-prayer .prayer-text { font-size: 1.2rem; line-height: 1.75; }
.simple-day .audio-card { text-align: left; }
.simple-exit { margin-top: 34px; padding: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.simple-invite { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--gold-soft); border-radius: 18px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.simple-invite > span:first-child { font-size: 1.5rem; }
.simple-invite b { display: block; }
.simple-invite small { color: var(--muted); }
.simple-invite .chev { margin-left: auto; font-size: 1.4rem; color: var(--muted); }
.simple-home .mini-candles { margin-top: 26px; }
.simple-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 4px; }
.simple-days a { display: grid; place-items: center; min-height: 56px; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--green-deep); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.simple-days a.done { background: var(--green); color: #fff; }
.print-btn { margin-top: 18px; }
.print-note { display: block; margin-top: 8px; text-align: center; }

/* Instalar en el celular */
.install-card { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 14px; padding: 14px 16px; border: 0; border-radius: 18px; background: linear-gradient(180deg, var(--green), var(--green-deep)); box-shadow: 0 10px 22px rgba(28,67,55,.25); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.install-card img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.25); flex: none; }
.install-card b { display: block; }
.install-card small { display: block; opacity: .85; line-height: 1.35; margin-top: 2px; }
.install-go { margin-left: auto; flex: none; padding: 8px 12px; border-radius: 99px; background: var(--gold); color: #fff; font-weight: 800; font-size: .85rem; }
.celebrate .install-card { margin-top: 20px; }
.install-panel { text-align: left; }
.install-head { text-align: center; }
.install-head h2 { margin: 10px 0 6px; }
.install-icon { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.install-icon img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.install-icon small { font-size: .78rem; color: var(--ink); font-weight: 600; }
.install-steps { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; gap: 12px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); line-height: 1.5; }
.install-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.ios-ico { width: 22px; height: 22px; vertical-align: -5px; color: #0a7aff; }

/* ---------- Mis 4 contenidos (Novena, Manto, Cántico y Círculo en un solo app) ---------- */
.see-all { color: var(--green); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.pnum { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; font-family: Inter, sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: 0; }
.products-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.product-mini { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); text-decoration: none; color: var(--ink); }
.product-mini:active { box-shadow: var(--neu-in); transform: translateY(1px); }
.product-mini .pic { display: block; height: 92px; border-radius: 14px; background-size: cover; }
.product-mini .pnum { position: absolute; left: 16px; top: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.product-mini b { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; line-height: 1.15; padding: 0 4px; }
.product-card { margin-top: 18px; }
.product-card .hero-img { height: 170px; }
.product-card .pill { font-size: .8rem; }
.product-card h2 { font-size: 1.65rem; margin: 6px 0 10px; }
.product-card p { margin: 0 0 10px; line-height: 1.6; }
.product-btn { justify-content: flex-start; gap: 14px; text-align: left; font-size: 1.12rem; }
.routine { margin-top: 22px; }
.routine .install-n { background: var(--gold-soft); font-size: 1.1rem; }
.help-todo { text-decoration: none; color: var(--text); border: 2px solid var(--gold-soft); }

/* ---------- Entrada: los 4 contenidos en botones grandes ---------- */
.portal-hello { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.portal h1 { font-size: 2.4rem; margin: 6px 0 6px; }
.portal .lead { font-size: 1.08rem; }
.portal-list { display: grid; gap: 14px; margin: 20px 0 6px; }
.portal-item { display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--raised); box-shadow: var(--neu); text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.portal-item:active { box-shadow: var(--neu-in); transform: translateY(1px); border-color: var(--gold-soft); }
.portal-item .pic { position: relative; flex: none; width: 92px; height: 92px; border-radius: 16px; background-size: cover; }
.portal-item .pnum { position: absolute; left: -6px; top: -6px; width: 32px; height: 32px; font-size: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.portal-item .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.portal-item b { font-family: "Cormorant Garamond", serif; font-size: 1.42rem; line-height: 1.08; }
.portal-item small { color: var(--muted); font-size: .95rem; line-height: 1.35; }
.portal-item .go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.6rem; line-height: 1; padding-bottom: 3px; }
.portal-help { display: block; margin: 14px 0 18px; padding: 16px; border-radius: 18px; border: 2px dashed var(--gold-soft); text-align: center; color: var(--text); text-decoration: none; font-size: 1.02rem; }
.portal-help b { color: var(--green); }
.onb { position: relative; }
.onb-home { position: absolute; left: 14px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 5; padding: 10px 16px; border-radius: 999px; background: rgba(255,253,247,.92); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.15); }

/* Entrada en cuadrícula: los 4 caben en la pantalla sin deslizar, incluso en celulares pequeños */
.portal h1 { font-size: 2.1rem; margin: 0 0 2px; }
.portal .lead { margin-bottom: 14px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 8px 10px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); text-decoration: none; color: var(--ink); text-align: center; border: 2px solid var(--gold-soft); }
.portal-tile:active { box-shadow: var(--neu-in); transform: translateY(1px); }
.portal-tile .pic { position: relative; display: block; width: 100%; height: min(104px, 15vh); border-radius: 14px; background-size: cover; }
.portal-tile .pnum { position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; font-size: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.portal-tile b { font-family: "Cormorant Garamond", serif; font-size: 1.32rem; line-height: 1.05; min-height: 2.1em; display: flex; align-items: center; }
.portal-tile .open { display: block; width: 100%; padding: 7px 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: .95rem; }
.others { display: flex; gap: 8px; margin: 0 0 14px; }
.others a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; }
.others .pic { width: 42px; height: 42px; border-radius: 50%; background-size: cover; }
.others .others-home { justify-content: center; background: var(--green); color: #fff; font-size: 1rem; flex: .9; }

/* Bienvenida del app y mensaje del día en la entrada */
.welcome h1 { font-size: 2.3rem; margin: 6px 0 12px; }
.welcome .lead { font-size: 1.08rem; color: var(--text); }
.welcome .verse { margin: 18px 0 4px; }
.portal-hello { margin: 0 0 2px; font-size: 1rem; font-weight: 600; color: var(--gold); }
.portal-msg { margin: 18px 0 0; padding: 18px 20px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); text-align: center; }
.portal-msg p { margin: 8px 0 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.portal-tile .pic { height: min(98px, 14vh); }
.welcome .onb-img { height: 27vh; min-height: 170px; }
.welcome #welcomeGo { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); z-index: 3; box-shadow: 0 10px 28px rgba(28,67,55,.45); }

/* ---------- Paso a paso para instalar (con dibujos de la pantalla) ---------- */
.top-install { flex: none; margin-left: auto; margin-right: 8px; padding: 9px 12px; border: 0; border-radius: 999px; background: var(--gold); color: #fff; font: 700 .88rem Inter, sans-serif; box-shadow: 0 4px 10px rgba(141,101,32,.35); cursor: pointer; }
.top-install[hidden] { display: none; }
.install-page h1 { font-size: 2rem; margin: 10px 0 8px; }
.g-q { margin: 22px 0 10px; font-weight: 700; color: var(--ink); text-align: center; font-size: 1.05rem; }
.g-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-tabs button { min-height: 64px; border: 2px solid var(--line); border-radius: 16px; background: var(--raised); color: var(--ink); font: 700 1.1rem Inter, sans-serif; box-shadow: var(--neu-sm); cursor: pointer; }
.g-tabs button small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.g-tabs button.on { border-color: var(--green); background: var(--green); color: #fff; }
.g-tabs button.on small { color: #dfe9e4; }
.guide { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.guide li { padding: 16px; border-radius: 18px; background: var(--raised); box-shadow: var(--neu-sm); }
.g-head { display: flex; align-items: center; gap: 12px; }
.g-head b { font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.guide li p { margin: 10px 0 0; line-height: 1.55; font-size: 1.02rem; }
.guide .btn { margin-top: 12px; }
.g-fast { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--green-soft); text-align: center; }
.g-fast small { display: block; margin-top: 8px; color: var(--muted); }
.g-or { text-align: center; color: var(--muted); margin: 14px 0 0; }
.g-ok, .g-warn { margin-top: 16px; padding: 16px; border-radius: 16px; line-height: 1.5; }
.g-ok { background: var(--green-soft); }
.g-warn { background: #fbe9d0; color: #4a3410; }
/* Dibujos de la pantalla */
.mk { margin: 14px auto 0; max-width: 270px; border-radius: 22px; border: 6px solid #1d1d1f; background: #f2f2f4; overflow: hidden; color: #1d1d1f; font-family: -apple-system, Inter, sans-serif; }
.mk-screen { height: 70px; background: linear-gradient(#fff, #eef0f2); padding: 10px; }
.mk-url { background: #e4e5e8; border-radius: 9px; padding: 7px 10px; font-size: .72rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bar, .mk-top { display: flex; align-items: center; justify-content: space-around; gap: 8px; padding: 10px; background: #fafafa; font-size: 1.1rem; color: #0a64d8; }
.mk-top .mk-url { flex: 1; }
.mk-bar .ios-ico { width: 20px; height: 20px; vertical-align: middle; }
.mk-menu { background: #fff; padding: 6px 0; }
.mk-menu > div, .mk-menu > .mk-hi { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: .88rem; border-bottom: 1px solid #eee; }
.mk-menu .ios-ico { width: 18px; height: 18px; }
.mk-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; font-size: .78rem; color: #0a64d8; }
.mk-head b { color: #1d1d1f; }
.mk-app { display: flex; align-items: center; gap: 12px; padding: 14px; }
.mk-app img, .mk-dialog img { width: 46px; height: 46px; border-radius: 11px; }
.mk-dialog { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px; padding: 16px; border-radius: 16px; background: #fff; font-size: .9rem; }
.mk-dialog small { color: #666; }
.mk-btns { display: flex; gap: 18px; margin-top: 10px; color: #0a64d8; font-weight: 700; }
.mk-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 12px; background: linear-gradient(160deg, #6b8fd6, #c49ad8); }
.mk-ico { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.85); font-size: 1.2rem; }
.mk-ours { position: relative; background: none; outline: 3px solid #ffd54a; outline-offset: 2px; animation: mkPulse 1.6s infinite; }
.mk-ours img { width: 100%; border-radius: 12px; }
.mk-ours small { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: .55rem; color: #fff; font-weight: 700; white-space: nowrap; }
.mk-hi { position: relative; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; background: #fff3c4; outline: 3px solid #f0b400; outline-offset: 1px; padding: 3px 8px; font-weight: 700; color: #1d1d1f; animation: mkPulse 1.6s infinite; }
.mk-menu > .mk-hi { margin: 4px 8px; border-radius: 10px; }
@keyframes mkPulse { 50% { outline-color: rgba(240,180,0,.25); } }
.topbar .brand { min-width: 0; flex: 1; }
.topbar .brand > span { min-width: 0; }
.topbar .brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .top-install { margin-left: 8px; }
.b-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; vertical-align: middle; font-size: 1.1rem; }
.b-compass { background: #e8f1ff; }
.b-chrome { border-radius: 50%; background: radial-gradient(circle, #4285f4 0 30%, #fff 31% 40%, transparent 41%), conic-gradient(#ea4335 0 120deg, #fbbc05 120deg 240deg, #34a853 240deg 360deg); }

/* ---------- Rezar por una intención ---------- */
.portal-intent { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(180deg, #b98b35, #8d6520); color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(141,101,32,.3); }
.portal-intent > span:first-child { font-size: 1.7rem; }
.portal-intent b { display: block; font-size: 1.08rem; }
.portal-intent small { display: block; opacity: .9; font-size: .85rem; }
.portal-intent .go { margin-left: auto; font-size: 1.6rem; }
.portal-tile .pic { height: min(78px, 11vh); }
.intent-steps { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.intent-steps i { width: 34px; height: 6px; border-radius: 6px; background: var(--line); }
.intent-steps i.on { background: var(--gold); }
.intent-steps span { margin-left: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.intent h1 { font-size: 2rem; margin: 6px 0 6px; }
.intent-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.intent-topics button { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border: 2px solid transparent; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); font: 700 1.02rem Inter, sans-serif; text-align: left; cursor: pointer; }
.intent-topics button span { font-size: 1.5rem; }
.intent-topics button:active { border-color: var(--gold); box-shadow: var(--neu-in); }
.intent-topics .other { grid-column: 1 / -1; justify-content: center; }
.intent-label { display: block; margin: 16px 0 6px; font-weight: 700; color: var(--ink); }
.intent-label small { font-weight: 500; color: var(--muted); }
.intent-candle { display: flex; justify-content: center; margin: 4px 0 -6px; transform: scale(.8); transform-origin: top center; height: 160px; }
.intent-box { margin: 10px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--gold-soft); text-align: center; }
.intent-box p { margin: 6px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-style: italic; color: var(--ink); white-space: pre-line; }
.step-title { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; font-size: 1.25rem; }
.step-title > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-family: Inter, sans-serif; font-size: 1rem; font-weight: 800; }
.intent-card { position: relative; margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); }
.intent-card.answered { background: var(--gold-soft); }
.intent-card-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 48px; }
.intent-card-head > span { font-size: 1.6rem; }
.intent-card-head p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
.intent-card-head small { color: var(--muted); }
.intent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.intent-actions .btn { min-height: 52px; padding: 10px; font-size: .95rem; margin-top: 12px; }
.intent-del { position: absolute; right: 12px; top: 12px; border: 0; background: none; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; }

/* Aviso "Sobre su compra" */
.billing { margin: 16px 0 6px; padding: 16px 18px; border-radius: 18px; background: #fff7e3; border: 2px solid #e2c27a; color: #3d3423; line-height: 1.55; }
.billing-title { font-weight: 800; font-size: 1.1rem; color: #5b4312; }
.billing p { margin: 8px 0 0; }
.billing ol { margin: 10px 0 0; padding-left: 22px; font-weight: 600; }
.billing ol li { margin-bottom: 4px; }
.billing ol small { font-weight: 500; color: #7a6a4a; }
.billing a { color: #1c4337; font-weight: 700; word-break: break-all; }
.billing-support { padding-top: 8px; border-top: 1px dashed #e2c27a; }
.billing-short { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff7e3; border: 1.5px solid #e2c27a; color: #3d3423; font-size: .95rem; line-height: 1.5; text-align: left; }
.billing-short a { color: #1c4337; font-weight: 700; }
[data-theme="dark"] .billing, [data-theme="dark"] .billing-short { background: #33301f; color: #f1ead9; border-color: #7a6a3a; }
[data-theme="dark"] .billing-title { color: #e0b964; }
[data-theme="dark"] .billing a, [data-theme="dark"] .billing-short a { color: #8fd3b8; }

/* ---------- La Biblia con María ---------- */
.vcard { margin-top: 12px; padding: 18px 18px 14px; border-radius: 20px; background: var(--raised); box-shadow: var(--neu); }
.vcard p { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.vcard cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: .82rem; letter-spacing: .06em; color: var(--gold); }
.vcard.big { background: var(--gold-soft); text-align: center; }
.vcard.big p { font-size: 1.6rem; font-style: italic; }
.vcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vbtn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; border-radius: 999px; background: var(--bg); box-shadow: var(--neu-sm); color: var(--green-deep); font: 700 .95rem Inter, sans-serif; text-decoration: none; cursor: pointer; }
.vbtn svg { width: 16px; height: 16px; }
.vbtn.on { background: var(--green); color: #fff; }
.bible-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bible-topics a { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: var(--raised); box-shadow: var(--neu-sm); color: var(--ink); font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; }
.bible-topics a span { font-size: 1.4rem; }
.bible-story { margin: 0; white-space: pre-line; font-size: 1.06rem; line-height: 1.7; color: var(--text); }
.bible-note { font-size: .85rem; margin-top: 18px; }
.bible-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.portal-msg { display: block; text-decoration: none; }
.portal-msg cite { display: block; margin-top: 6px; font-style: normal; font-weight: 800; font-size: .8rem; color: var(--gold); }
.portal-msg-go { display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: .92rem; }
.portal-tile .pic { height: min(70px, 10vh); }
