:root {
  --bg: #0a100b;
  --bg-soft: #101a12;
  --olive: #263725;
  --gold: #d3a451;
  --gold-2: #f0ca7b;
  --ivory: #f7eedb;
  --muted: #c3b9a5;
  --line: rgba(240, 202, 123, .2);
  --green: #2f6a44;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100svh; background: var(--bg); color: var(--ivory); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell { min-height: 100svh; overflow: clip; background: radial-gradient(circle at 50% 16%, #182419, var(--bg) 38%); }
.topbar { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 10px; background: linear-gradient(180deg, rgba(7,12,8,.92), rgba(7,12,8,.56), transparent); backdrop-filter: blur(8px); }
.brand-lockup { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; color: var(--ivory); background: transparent; text-align: left; cursor: pointer; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(240,202,123,.45); border-radius: 50%; color: var(--gold-2); }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-family: Georgia, "Times New Roman", serif; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-lockup small { margin-top: 1px; color: #c9c0ae; font-size: .62rem; letter-spacing: .08em; }
.top-cta { min-height: 38px; padding: 0 14px; border: 1px solid rgba(240,202,123,.5); border-radius: 999px; color: #211809; background: var(--gold-2); font-size: .76rem; font-weight: 800; cursor: pointer; }

.hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; filter: saturate(.86) contrast(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,9,6,.18) 0%, rgba(5,9,6,.34) 36%, rgba(5,9,6,.93) 88%, var(--bg) 100%), radial-gradient(circle at 50% 36%, rgba(238,189,102,.1), transparent 32%); }
.hero-content { position: relative; z-index: 2; width: min(100% - 34px, 680px); margin: 0 auto; padding: 150px 0 70px; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.location-chip { display: inline-flex; margin-bottom: 15px; padding: 7px 12px; border: 1px solid rgba(240,202,123,.34); border-radius: 999px; color: #eadab9; background: rgba(10,16,11,.54); backdrop-filter: blur(8px); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 8px; color: var(--gold-2); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; }
h1 { max-width: 620px; margin: 0 auto 14px; font-size: clamp(2.7rem, 11vw, 5.6rem); letter-spacing: -.045em; }
.hero-copy { max-width: 530px; margin: 0 auto 22px; color: #ede3d1; font-size: clamp(.98rem, 3.7vw, 1.15rem); line-height: 1.6; }
.microcopy { margin: 10px 0 0; color: #bbb5a8; font-size: .72rem; }

.primary-button, .secondary-button, .whatsapp-primary, .gold-outline-button { display: inline-flex; min-height: 54px; border-radius: 999px; align-items: center; justify-content: center; gap: 9px; border: 0; font-weight: 850; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.primary-button { width: 100%; color: #241a0d; background: linear-gradient(135deg, #f2d18b, #c99338); box-shadow: 0 14px 36px rgba(211,164,81,.2); }
.hero-button { width: min(100%, 420px); }
.secondary-button { width: 100%; color: var(--ivory); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.whatsapp-primary { width: 100%; color: #07150d; background: linear-gradient(135deg, #b7e4bd, #79c98b); box-shadow: 0 14px 34px rgba(68,152,92,.18); }
.gold-outline-button { width: 100%; color: var(--gold-2); background: transparent; border: 1px solid rgba(240,202,123,.46); }
.primary-button:active, .secondary-button:active, .whatsapp-primary:active, .top-cta:active { transform: scale(.985); }
.flame-icon { color: #8e5b1d; transform: rotate(45deg); }

.lights-section, .experience-section, .physical-section { width: min(100% - 28px, 1080px); margin: 0 auto; padding: 72px 0; }
.section-heading { max-width: 620px; margin: 0 auto 28px; text-align: center; }
.section-heading h2, .physical-copy h2 { margin: 0 0 12px; font-size: clamp(2.1rem, 8vw, 3.6rem); letter-spacing: -.035em; }
.section-heading p:last-child { margin: 0 auto; color: var(--muted); line-height: 1.65; }
.compact-heading { margin-bottom: 24px; }

.candle-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 880px; margin: 0 auto 24px; padding: 22px 16px 16px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(224,164,70,.13), transparent 42%), rgba(14,22,15,.72); box-shadow: var(--shadow); }
.mini-candle { display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.mini-wax { width: 34px; height: 64px; margin-top: -2px; border-radius: 8px 8px 6px 6px; background: linear-gradient(90deg, #eadfca, #fff5df 46%, #cdbfa7); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.mini-flame { width: 13px; height: 23px; border-radius: 65% 35% 62% 38% / 70% 45% 55% 30%; background: radial-gradient(circle at 50% 65%, #fff7cf 0 18%, #ffb13d 45%, #ef6d16 72%, transparent 74%); filter: drop-shadow(0 0 8px #f0a135); animation: flicker 1.35s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.mini-candle:nth-child(2) .mini-flame { animation-delay: -.35s; }
.mini-candle:nth-child(3) .mini-flame { animation-delay: -.7s; }
.mini-candle:nth-child(4) .mini-flame { animation-delay: -.15s; }
.mini-candle:nth-child(5) .mini-flame { animation-delay: -.55s; }
.mini-candle strong { max-width: 100%; margin-top: 10px; overflow: hidden; color: #f6ead3; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-candle span { margin-top: 3px; color: #aaa496; font-size: .65rem; }
.center-button { width: min(100%, 360px); margin: 0 auto; display: flex; }

.experience-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; align-items: stretch; }
.candle-stage { position: relative; min-height: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.candle-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(.82); }
.candle-stage::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,8,.1), rgba(8,12,8,.16) 50%, rgba(8,12,8,.78)); content: ""; }
.stage-glow { position: absolute; z-index: 2; left: 50%; bottom: 15%; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,91,.3), transparent 65%); transform: translateX(-50%); filter: blur(14px); }
.stage-copy { position: absolute; z-index: 3; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.stage-copy span { color: #d1c7b4; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.stage-copy strong { font-family: Georgia, "Times New Roman", serif; color: var(--gold-2); font-size: 1.6rem; }
.flow-panel { display: flex; min-height: 640px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(160deg, rgba(25,37,25,.94), rgba(11,18,12,.97)); box-shadow: var(--shadow); }
.flow-view { width: 100%; margin: auto; padding: 30px; }
.devotion-card h3, .lit-view h3 { margin: 0 0 7px; font-size: clamp(2rem, 7vw, 3.2rem); }
.form-intro { margin: 0 0 24px; color: var(--muted); }
.field + .field { margin-top: 16px; }
.field label { display: block; margin-bottom: 8px; color: #fff5e2; font-size: .92rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(247,238,219,.2); border-radius: 15px; outline: none; color: #fff9ee; background: rgba(4,8,5,.52); transition: border-color .16s ease, box-shadow .16s ease; }
.field input { min-height: 52px; padding: 0 15px; }
.field textarea { min-height: 126px; padding: 14px 15px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211,164,81,.14); }
.field [aria-invalid="true"] { border-color: #ff9f96; }
.field-meta { display: flex; min-height: 22px; justify-content: space-between; gap: 12px; padding-top: 4px; color: #99978e; font-size: .73rem; }
.field-error { margin: 0; color: #ffaaa0; }
.devotion-card .primary-button { margin-top: 18px; }
.free-note { margin: 12px 0 0; color: #aaa69c; text-align: center; font-size: .72rem; }

.lighting-view { position: relative; display: grid; min-height: 560px; place-items: center; align-content: center; text-align: center; }
.animated-candle { position: relative; width: 130px; height: 230px; margin-bottom: 26px; }
.animated-candle .wax { position: absolute; left: 50%; bottom: 0; width: 86px; height: 138px; border-radius: 20px 20px 10px 10px; background: linear-gradient(90deg, #dbcdb2, #fff4da 45%, #cab99b); transform: translateX(-50%); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.animated-candle .wick { position: absolute; z-index: 3; left: 50%; bottom: 134px; width: 4px; height: 20px; background: #2a2017; transform: translateX(-50%); }
.animated-candle .flame { position: absolute; z-index: 4; left: 50%; bottom: 148px; width: 27px; height: 56px; border-radius: 68% 32% 63% 37% / 72% 45% 55% 28%; background: radial-gradient(circle at 50% 66%, #fff9d3 0 16%, #ffbd48 42%, #ed6816 74%, transparent 76%); filter: drop-shadow(0 0 22px #ffac3d); transform: translateX(-50%); animation: flicker 1.1s ease-in-out infinite alternate; }
.animated-candle .halo { position: absolute; left: 50%; bottom: 112px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,78,.38), transparent 66%); transform: translateX(-50%); filter: blur(13px); animation: breathe 1.8s ease-in-out infinite; }
.lighting-step { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.lighting-view > span { color: var(--muted); font-size: .78rem; letter-spacing: .08em; }

.back-button { margin: -4px 0 20px; padding: 8px 0; border: 0; color: #d3c7af; background: transparent; cursor: pointer; }
.success-badge { display: inline-flex; margin-bottom: 12px; padding: 7px 10px; border: 1px solid rgba(240,202,123,.3); border-radius: 999px; color: var(--gold-2); background: rgba(211,164,81,.08); font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.intention-card { position: relative; margin-top: 20px; padding: 24px 20px 20px; overflow: hidden; border: 1px solid rgba(240,202,123,.2); border-radius: 24px; background: radial-gradient(circle at 50% 0%, rgba(235,177,76,.16), transparent 48%), rgba(10,16,11,.7); text-align: center; }
.lit-candle-visual { position: relative; width: 74px; height: 114px; margin: 0 auto 8px; }
.lit-wax { position: absolute; left: 50%; bottom: 0; width: 52px; height: 76px; border-radius: 12px 12px 7px 7px; background: linear-gradient(90deg,#d9c9ac,#fff2d4 48%,#cab89a); transform: translateX(-50%); }
.lit-flame { position: absolute; z-index: 2; left: 50%; bottom: 69px; width: 20px; height: 39px; border-radius: 70% 30% 62% 38% / 72% 44% 56% 28%; background: radial-gradient(circle at 50% 65%, #fff8d0 0 17%, #ffb23f 45%, #e96513 74%, transparent 76%); filter: drop-shadow(0 0 12px #ffac3d); transform: translateX(-50%); animation: flicker 1.25s ease-in-out infinite alternate; }
.lit-halo { position: absolute; left: 50%; bottom: 48px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,184,70,.26), transparent 68%); transform: translateX(-50%); filter: blur(8px); }
.intention-card h4 { margin: 4px 0 9px; color: var(--gold-2); font-size: 1.65rem; }
.intention-card blockquote { margin: 0 auto; color: #fff4e1; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-style: italic; line-height: 1.55; overflow-wrap: anywhere; }
.timer-wrap { display: flex; margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); align-items: center; justify-content: space-between; gap: 14px; }
.timer-wrap span { color: #a9a399; font-size: .73rem; }
.timer-wrap strong { font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.prayer-card { margin-top: 14px; padding: 18px; border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.035); }
.prayer-card span { color: var(--gold-2); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.prayer-card p { margin: 7px 0 5px; color: #dfd4c1; font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.prayer-card strong { color: #f0e6d3; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.after-actions { margin-top: 18px; }
.after-actions p { margin: 9px 0 10px; color: #9e9b93; text-align: center; font-size: .7rem; }

.physical-section { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: center; }
.physical-media { position: relative; min-height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.physical-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.physical-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(5,9,6,.78)); content: ""; }
.photo-label { position: absolute; z-index: 2; right: 16px; bottom: 16px; left: 16px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #eee2cc; background: rgba(7,12,8,.64); backdrop-filter: blur(8px); text-align: center; font-size: .72rem; }
.physical-copy { padding: 10px 8px; }
.physical-copy > p:not(.eyebrow):not(.trust-note) { color: var(--muted); line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.trust-row span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; color: #d7cebd; background: rgba(255,255,255,.035); font-size: .72rem; }
.text-button { width: 100%; margin-top: 8px; padding: 11px 8px; border: 0; color: #d8c8aa; background: transparent; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.trust-note { margin: 8px 0 0; color: #8e918a; font-size: .68rem; line-height: 1.5; text-align: center; }

.bottom-nav { position: fixed; z-index: 40; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px; border: 1px solid rgba(240,202,123,.18); border-radius: 20px; background: rgba(8,13,9,.88); box-shadow: 0 16px 50px rgba(0,0,0,.45); backdrop-filter: blur(14px); }
.bottom-nav button { display: grid; min-height: 50px; padding: 5px 4px; border: 0; border-radius: 14px; place-items: center; color: #d7cdbb; background: transparent; font-size: .64rem; cursor: pointer; }
.bottom-nav button span { display: block; font-size: 1.12rem; line-height: 1; }

footer { display: flex; width: min(100% - 28px, 1080px); margin: 0 auto; padding: 28px 0 100px; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.07); color: #8f918a; font-size: .72rem; }
.footer-links { display: flex; align-items: center; gap: 7px; }
.footer-links button { padding: 5px; border: 0; color: #aaa89f; background: transparent; cursor: pointer; }

.sheet-dialog { width: min(100% - 20px, 560px); max-height: min(88vh, 780px); margin: auto auto 10px; padding: 0; overflow: hidden; border: 1px solid rgba(240,202,123,.22); border-radius: 28px; color: var(--ivory); background: #111a12; box-shadow: 0 30px 100px rgba(0,0,0,.68); }
.sheet-dialog::backdrop { background: rgba(2,5,3,.76); backdrop-filter: blur(5px); }
.sheet-content { position: relative; max-height: min(88vh, 780px); padding: 28px 18px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
.sheet-content h2 { margin: 0 40px 10px 0; font-size: 2rem; }
.sheet-intro, .support-copy, .compact-dialog p, .compact-dialog li { color: #c7bead; }
.close-button { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; place-items: center; color: var(--ivory); background: rgba(255,255,255,.06); font-size: 1.4rem; cursor: pointer; }
.offer-list { display: grid; gap: 10px; }
.offer-option { display: flex; width: 100%; min-height: 76px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; align-items: center; justify-content: space-between; gap: 14px; color: var(--ivory); background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.offer-option.selected { border-color: var(--gold-2); background: rgba(211,164,81,.12); }
.offer-option span, .offer-option strong, .offer-option small, .offer-option em { display: block; }
.offer-option strong { font-size: .92rem; }
.offer-option small { margin-top: 2px; color: #aaa69c; font-size: .73rem; }
.offer-option em { margin-bottom: 3px; color: var(--gold-2); font-size: .62rem; font-style: normal; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.offer-option b { color: var(--gold-2); white-space: nowrap; }
.support-copy { text-align: center; font-size: .74rem; }
.whatsapp-primary:disabled { color: #858982; background: #2b312c; cursor: not-allowed; box-shadow: none; }
.compact-dialog { margin: auto; }
.compact-dialog ol { padding-left: 22px; }
.compact-dialog li + li { margin-top: 8px; }
.toast { position: fixed; z-index: 60; right: 16px; bottom: max(84px, env(safe-area-inset-bottom)); left: 16px; width: min(100% - 32px, 430px); margin: 0 auto; padding: 13px 16px; border: 1px solid rgba(240,202,123,.2); border-radius: 15px; color: #fff5e4; background: #172019; box-shadow: var(--shadow); text-align: center; font-size: .84rem; }

@keyframes flicker { 0% { transform: translateX(-50%) rotate(-2deg) scale(.96); opacity: .9; } 100% { transform: translateX(-50%) rotate(2deg) scale(1.04); opacity: 1; } }
.mini-flame { animation-name: miniFlicker; }
@keyframes miniFlicker { 0% { transform: rotate(-2deg) scale(.95); } 100% { transform: rotate(2deg) scale(1.05); } }
@keyframes breathe { 0%,100% { opacity: .6; transform: translateX(-50%) scale(.92); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }

@media (max-width: 820px) {
  .experience-grid, .physical-section { grid-template-columns: 1fr; }
  .candle-stage { min-height: 480px; }
  .flow-panel { min-height: 0; }
  .physical-media { min-height: 520px; }
  .candle-wall { grid-template-columns: repeat(5, 112px); overflow-x: auto; justify-content: start; scroll-snap-type: x proximity; }
  .mini-candle { scroll-snap-align: center; }
}

@media (max-width: 640px) {
  .topbar { padding-inline: 12px; }
  .top-cta { font-size: .7rem; }
  .hero { min-height: 88svh; }
  .hero-bg { object-position: 50% 40%; }
  .hero-content { width: min(100% - 28px, 680px); padding-bottom: 54px; }
  .lights-section, .experience-section, .physical-section { width: min(100% - 20px, 1080px); padding: 54px 0; }
  .candle-stage { min-height: 430px; border-radius: 24px; }
  .flow-panel { border-radius: 24px; }
  .flow-view { padding: 22px 16px; }
  .lighting-view { min-height: 500px; }
  .physical-section { gap: 20px; }
  .physical-media { min-height: 480px; border-radius: 24px; }
  .bottom-nav { display: grid; }
  footer { flex-direction: column; padding-bottom: 96px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   ESTADO CON VELADORA ENCENDIDA
   Evita repetir la veladora grande de la izquierda y deja
   que la intención del visitante sea la protagonista.
   ========================================================= */
body.has-lit-candle .experience-grid {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

body.has-lit-candle .candle-stage {
  display: none;
}

body.has-lit-candle .flow-panel {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

body.has-lit-candle .lit-view {
  padding-top: 20px;
}

body.has-lit-candle .lit-view > .back-button {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}

body.has-lit-candle .lit-view > .success-badge {
  margin-left: 8px;
}

body.has-lit-candle .intention-card {
  max-width: 560px;
  margin-inline: auto;
}

body.has-lit-candle .prayer-card,
body.has-lit-candle .after-actions {
  max-width: 560px;
  margin-inline: auto;
}

.whatsapp-help {
  margin: 11px 0 0;
  color: #aaa69c;
  text-align: center;
  font-size: .74rem;
  line-height: 1.5;
}

/* Ya no hay menú de precios: todo se atiende por WhatsApp. */
.offer-list,
.support-copy,
.text-button {
  display: none !important;
}

@media (max-width: 640px) {
  body.has-lit-candle .experience-section {
    padding-top: 24px;
  }

  body.has-lit-candle .section-heading {
    display: none;
  }

  body.has-lit-candle .flow-panel {
    border-radius: 24px;
  }

  body.has-lit-candle .lit-view {
    padding: 18px 16px 24px;
  }
}
