/* Layout: one long scrolling page, a deep-violet hero with an empty niche (the image still to be carved), then calm stone-colored sections in a single readable column. */
:root {
  --bg: #f6f4f8;          /* limestone with a violet bias */
  --surface: #ffffff;
  --fg: #231c2b;
  --muted: #5f566b;
  --line: #ddd6e4;
  --violet: #4b2a6b;      /* San Lázaro's purple */
  --violet-soft: #ece4f3;
  --gold: #a87a1e;        /* gilded estofado */
  --on-violet: #f7f1fb;
  --font-display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17121c; --surface: #211a28; --fg: #eee8f3; --muted: #b3a8bf; --line: #3a3044;
    --violet: #3a1f55; --violet-soft: #2c2138; --gold: #d9ad55; --on-violet: #f7f1fb;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17121c; --surface: #211a28; --fg: #eee8f3; --muted: #b3a8bf; --line: #3a3044;
  --violet: #3a1f55; --violet-soft: #2c2138; --gold: #d9ad55; --on-violet: #f7f1fb;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
.wrap { max-width: 68rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--violet); }
:root:not([data-theme="light"]) h2 { }
p { margin: 0; max-width: 65ch; }
a { color: inherit; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
/* Selector de idioma, arriba a la derecha */
.langbar { background: var(--violet); color: var(--on-violet); padding-top: env(safe-area-inset-top, 0px); }
.langbar .wrap { display: flex; justify-content: flex-end; padding-block: .6rem 0; }
.langbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.langbar a { display: block; padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; color: #e3d8ec; border: 1px solid #ffffff40; }
.langbar a:hover { border-color: #e6c27a; color: #fff; }
.langbar a[aria-current="page"] { background: #e6c27a; border-color: #e6c27a; color: #24152f; }
.langbar a:focus-visible { outline: 3px solid #e6c27a; outline-offset: 2px; }

/* Hero */
.hero { background: var(--violet); color: var(--on-violet); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; padding-block: 4rem 4.5rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 500; color: #e6c27a; }
.hero .lead { font-size: 1.2rem; margin-top: 1.25rem; color: #e3d8ec; }
.hero .date { margin-top: 1.5rem; display: inline-flex; gap: .6rem; align-items: baseline; border-top: 1px solid #ffffff40; padding-top: .9rem; color: #e3d8ec; }
.hero .date strong { font-family: var(--font-display); font-size: 1.6rem; color: #e6c27a; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-block; font: 600 1rem var(--font-body); padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: #e6c27a; color: #24152f; }
.btn-ghost { border-color: #ffffff70; color: var(--on-violet); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* The empty niche: the image does not exist yet */
.niche { justify-self: center; width: min(100%, 300px); aspect-ratio: 3 / 4.6; border: 2px dashed #e6c27a99; border-radius: 150px 150px 10px 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 2rem 1.5rem; text-align: center; background: radial-gradient(ellipse at 50% 35%, #ffffff1f, transparent 65%); }
.niche .flame { width: 14px; height: 26px; background: #f2c76b; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; box-shadow: 0 0 22px 8px #f2c76b55; margin-bottom: .4rem; }
.niche .candle { width: 18px; height: 60px; background: #efe6f5; border-radius: 3px; margin-bottom: 1.5rem; }
.niche p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.niche a { display: inline-block; margin-top: .6rem; font-size: .95rem; color: #e6c27a; }
@media (prefers-reduced-motion: no-preference) {
  .niche .flame { animation: flicker 3.2s ease-in-out infinite; }
  @keyframes flicker { 0%,100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.06, .95) rotate(2deg); } }
}

/* Sections */
section.block { padding-block: 4.5rem; border-bottom: 1px solid var(--line); }
.block .head { display: grid; gap: .6rem; margin-bottom: 2rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.two > * { min-width: 0; }
.stack { display: grid; gap: 1rem; }
.pending { background: var(--violet-soft); border-radius: 4px; padding: 0 .3em; font-size: .92em; color: var(--muted); }

.needs { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.needs li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; }
.needs li::before { content: "✛"; color: var(--gold); font-weight: 700; }

.saint-facts { display: grid; gap: 1.25rem; }
.fact { border-left: 3px solid var(--gold); padding-left: 1rem; }
.fact h3 { font-size: 1.45rem; margin-bottom: .25rem; }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; display: grid; gap: .4rem; align-content: start; }
.way h3 { font-size: 1.5rem; }
.way p { color: var(--muted); font-size: .98rem; }
.note { margin-top: 1.5rem; background: var(--violet-soft); border-radius: 10px; padding: 1.1rem 1.3rem; }

.spec { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.spec th { width: 9rem; font-weight: 700; color: var(--violet); }
:root[data-theme="dark"] .spec th { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spec th { color: var(--gold); } }
:root[data-theme="dark"] h2 { color: var(--fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h2 { color: var(--fg); } }
.table-scroll { overflow-x: auto; }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.offer > div { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; background: var(--surface); }
.offer h3 { font-size: 1.35rem; margin-bottom: .3rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.timeline time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); }
.timeline .upcoming { color: var(--muted); }
.timeline h3 { font-size: 1.35rem; margin-bottom: .2rem; }

/* Form */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tab { font: 600 .98rem var(--font-body); padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--violet); color: var(--on-violet); border-color: var(--violet); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; display: grid; gap: 1.1rem; max-width: 46rem; }
form[hidden], [hidden] { display: none !important; }
.field { display: grid; gap: .35rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row > * { min-width: 0; }
label, legend { font-weight: 600; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea { font: inherit; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
textarea { min-height: 5.5rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.checks label, .consent label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.consent { display: grid; gap: .5rem; font-size: .92rem; color: var(--muted); }
.consent input, .checks input { margin-top: .3rem; accent-color: var(--violet); }
.small { font-size: .88rem; color: var(--muted); }
.form-msg { padding: .8rem 1rem; border-radius: 8px; background: var(--violet-soft); font-weight: 600; }
.req { color: var(--gold); }
.form-msg.error { background: #fbe9e7; color: #7a1d12; font-weight: 400; }
:root[data-theme="dark"] .form-msg.error { background: #3d1d1a; color: #f5c6bf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-msg.error { background: #3d1d1a; color: #f5c6bf; } }
.form-msg ul { margin: .3rem 0 0; padding-left: 1.2rem; }
[aria-invalid="true"] { border-color: #b3261e !important; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[type="submit"]:disabled { opacity: .6; cursor: wait; }

.counter { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.counter .num { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.counter .lbl { font-weight: 600; }
.hero .counter { margin-top: .6rem; color: #e3d8ec; }
.hero .counter .num { color: #e6c27a; font-size: 2.2rem; }
.stories { display: grid; gap: 1.25rem; }
.story { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.75rem; display: grid; gap: .9rem; }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; font-style: italic; }
.story figcaption { font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.pager { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pager button { font: 600 .95rem var(--font-body); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.pager button:disabled { opacity: .45; cursor: default; }
.pager .info { color: var(--muted); font-variant-numeric: tabular-nums; }
footer { padding-block: 3rem; font-size: .95rem; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
footer .name { font-family: var(--font-display); font-size: 1.8rem; color: var(--fg); }
.copy { user-select: all; font-weight: 600; color: var(--fg); }

@media (max-width: 760px) {
  .hero .wrap, .two, .offer, .row, footer .wrap { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 2.5rem 3rem; gap: 2rem; }
  .niche { width: min(100%, 230px); }
  .timeline li { grid-template-columns: 1fr; gap: .3rem; }
  section.block { padding-block: 3rem; }
  .spec th { width: 6.5rem; }
}
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
