/* Mi Sagrado Corazón · web pública · «El camino de la luz».
   Sin unidades vh: deforman la portada y en móvil cambian al hacer scroll. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cabin-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cabin-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cabin-latin-600-normal.woff2") format("woff2");
}

:root {
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Cabin", system-ui, sans-serif;
  --light: #ffc56b;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-menu: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-letter: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --pad-x: clamp(20px, 4vw, 64px);
  --pad-y: 140px;
  --dot: 48px;
  --dot-x: var(--pad-x);
  --pad-l: calc(var(--pad-x) + 96px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #07080b;
  color: #fff4e2;
  font-family: var(--sans);
  font-size: 16px;
  overflow-x: clip;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}

.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;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff4e2;
  color: #07080b;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.5s var(--ease-reveal);
}
.btn--line {
  border: 1px solid currentColor;
  background: transparent;
  color: #fff4e2;
}
.btn--line[aria-pressed="true"] {
  background: #fff4e2;
  color: #0f0b08;
}
.btn--solid {
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  background: #2a1a0e;
  color: #f7f2ea;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
  .hero .btn--line:hover {
    background: #fff4e2;
    color: #07080b;
    transform: none;
  }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  background: #07080b url("/img/corazon_velas_apagado.webp") center / cover no-repeat;
  color: #fff4e2;
  touch-action: pan-y;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__inner {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(20px, 3vw, 40px) 32px;
  pointer-events: none;
}
.hero__inner a {
  pointer-events: auto;
}
.hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  animation: drop 1.25s var(--ease-menu) both;
}
.hero__brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__nav {
  display: flex;
  gap: 40px;
}
.hero__nav a,
.hero__date {
  color: #e2d9cc;
  text-decoration: none;
}
.hero__nav a:hover {
  color: #fff;
}
.hero__title {
  margin: 0;
  padding-top: 56px;
  max-width: 36vw;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero__line {
  display: block;
}
.js .hero__l {
  display: inline-block;
  opacity: 0;
  animation: rise 0.4s var(--ease-letter) forwards;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin: 0 calc(-1 * clamp(20px, 3vw, 40px)) -32px;
  padding: 72px clamp(20px, 3vw, 40px) 32px;
  background-image: linear-gradient(to top, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0));
}
.js .hero__foot {
  opacity: 0;
  animation: fade 1.25s var(--ease-menu) 1.6s forwards;
}
.hero__count {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.hero__num {
  font-family: var(--serif);
  font-size: 100px;
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.hero__numlabel {
  padding-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #e2d9cc;
}
.hero__lead {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.5;
  color: #ede6da;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.hero__cta .btn {
  min-height: 56px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.hero__langs {
  font-size: 14px;
  color: #e2d9cc;
}

@keyframes rise {
  from {
    transform: translateY(35px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes drop {
  from {
    transform: translateY(-110px);
  }
  to {
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- El camino ---------- */
.path {
  position: relative;
}
.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--dot-x) + var(--dot) / 2 - 1px);
  width: 2px;
  background: rgba(255, 214, 150, 0.14);
  pointer-events: none;
  z-index: 1;
}
.rail__beam {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform: scaleY(0);
  background-image: linear-gradient(to bottom, #ffd27a, #ffb347);
  box-shadow: 0 0 18px 2px rgba(255, 190, 90, 0.6);
}
.sec {
  position: relative;
  padding: var(--pad-y) var(--pad-x) var(--pad-y) var(--pad-l);
}
.sec--1 {
  background-image: linear-gradient(to bottom, #07080b, #0f0b08 40%);
  color: #fff4e2;
}
.sec--2 {
  background-image: linear-gradient(to bottom, #0f0b08, #1f150d 60%);
  color: #fff1e0;
}
.sec--3 {
  background-image: linear-gradient(to bottom, #1f150d, #3b2616 60%);
  color: #fff0dc;
}
.sec--4 {
  background-image: linear-gradient(to bottom, #3b2616, #6e4622 60%);
  color: #fff6ea;
}
.sec--5 {
  /* Marrón cálido mientras hay texto claro; al final pasa por caramelo a dorado claro, sin tono turbio. */
  background-image: linear-gradient(to top, #e8d2ae 0, #b9854f 70px, #74492a 160px, #6e4622 100%);
  padding-bottom: 180px;
  color: #2a1a0e;
}
.sec--6 {
  background-image: linear-gradient(to bottom, #e8d2ae, #faf8f4 40%);
  color: #2a1a0e;
  padding-bottom: 96px;
}

.dot {
  position: absolute;
  z-index: 2;
  left: var(--dot-x);
  top: var(--pad-y);
  width: var(--dot);
  height: var(--dot);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  transition:
    background-color 0.8s,
    box-shadow 0.8s,
    color 0.8s;
}
.sec--1 .dot {
  background: #1a1410;
}
.sec--2 .dot {
  background: #2a1e14;
}
.sec--3 .dot {
  background: #4a321f;
}
.sec--4 .dot {
  background: #7a522e;
}
.sec--5 .dot {
  background: #a57a4c;
  color: #1f120a;
}
.sec--6 .dot {
  background: #d9b98a;
}
.sec.is-in .dot {
  background: var(--light);
  box-shadow: 0 0 24px 6px rgba(255, 190, 90, 0.55);
  color: #2a1a0e;
}

.label {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sec--1 .label {
  color: #ddd4c7;
}
.sec--2 .label {
  color: #ddcdb8;
}
.sec--3 .label {
  color: #e6d3ba;
}
.sec--4 .label {
  color: #f2e2cc;
}
.sec--5 .label {
  color: #fff1df;
}
.sec--6 .label {
  color: #6b4a2e;
}
.display {
  margin: 16px 0 0;
  max-width: 1000px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.display--xl {
  font-size: clamp(52px, 7vw, 116px);
}
.sec--5 .display {
  color: #fff6ea;
}
.body {
  margin: 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.55;
}

.grid2,
.grid3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Aparición al entrar en pantalla: 1,25 s, escalonado 120 ms. Solo con JS. */
.js .rv {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.25s var(--ease-reveal),
    transform 1.25s var(--ease-reveal);
}
.js .is-in .rv {
  opacity: 1;
  transform: none;
}
.js .is-in .rv.d1 {
  transition-delay: 0.12s;
}
.js .is-in .rv.d2 {
  transition-delay: 0.24s;
}
.js .is-in .rv.d3 {
  transition-delay: 0.36s;
}

/* I · La vela */
.sec--1 .body {
  color: #ede6da;
}
.vela__intro {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.velas {
  margin-top: 56px;
}
.vela {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Cada vela tiene su pareja apagada/encendida alineada al píxel. La encendida se revela
   desde la llama (--fx, --fy) con una máscara radial que crece; las tres, una tras otra. */
@property --lit {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.vela__img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #0f0b08;
}
.vela__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vela__on {
  --lit: 0%;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 var(--lit), transparent calc(var(--lit) + 35%));
  mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 var(--lit), transparent calc(var(--lit) + 35%));
  transition:
    --lit 1.8s var(--ease-reveal),
    opacity 0.4s ease;
}
.velas.is-lit .vela__on {
  --lit: 150%;
  opacity: 1;
}
.velas.is-lit .vela:nth-child(2) .vela__on {
  transition-delay: 0.6s;
}
.velas.is-lit .vela:nth-child(3) .vela__on {
  transition-delay: 1.2s;
}
.vela__img--1 {
  --fx: 41%;
  --fy: 48%;
}
.vela__img--2 {
  --fx: 37%;
  --fy: 26%;
}
.vela__img--3 {
  --fx: 49%;
  --fy: 10%;
}
.vela__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.vela__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.vela__time {
  font-size: 16px;
  color: #ddd4c7;
}
.vela__price {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--light);
}

/* II · Tu día */
.dia {
  align-items: center;
}
.dia .display {
  font-size: clamp(48px, 6vw, 96px);
}
.dia__list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dia__item {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 20px;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 241, 224, 0.18);
  background: transparent;
  color: #fff1e0;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s;
}
.dia__item[aria-pressed="true"] {
  color: var(--light);
}
.dia__hour {
  flex: 0 0 64px;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.dia__name {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.02em;
}
.dia__text {
  margin-top: 24px;
  max-width: 460px;
  min-height: 56px;
  font-size: 17px;
  color: #eadcc9;
}
.dia__note {
  margin: 12px 0 0;
  font-size: 14px;
  color: #cbb9a2;
}
.dia__clock {
  display: flex;
  justify-content: center;
}
.dia__clock svg {
  width: min(440px, 80vw);
  height: auto;
}
.dia__hand {
  transform-origin: 200px 200px;
  transition: transform 1.25s var(--ease-menu);
}

/* III · La misa y IV · Las obras: columnas */
.cols {
  margin: 56px 0 0;
  padding: 32px 0 0;
  list-style: none;
  gap: 32px;
  border-top: 1px solid rgba(255, 240, 220, 0.25);
}
.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
}
.col__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.sec--3 .col__text {
  color: #ebdcc8;
}
.obras {
  margin-top: 16px;
  align-items: end;
}
.obras__big {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(120px, 17vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.obras__lead {
  margin: 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.5;
}
.sec--4 .cols {
  margin-top: 64px;
  border-top-color: rgba(255, 246, 234, 0.3);
}
.col__num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
}

/* IV · Votación de ejemplo */
.obras__how {
  margin-top: 64px;
  align-items: center;
}
.obras__steps {
  margin: 0;
  padding: 0;
  border-top: 0;
}
.vote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 8px;
  background: #fffaf2;
  color: #2a1a0e;
  box-shadow: 0 24px 60px rgba(20, 10, 4, 0.35);
}
.vote__tag {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b4a2e;
}
.vote__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
}
.vote__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vote__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
.vote__name {
  font-weight: 600;
}
.vote__pct {
  font-variant-numeric: tabular-nums;
}
.vote__bar {
  display: block;
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  background: #ece2d3;
  overflow: hidden;
}
.vote__fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: inherit;
  background: #b98a4e;
  transition: width 1.6s var(--ease-reveal);
}
.vote__item:first-child .vote__fill {
  background: #e39a2d;
}
.vote__note {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #4a3420;
}
.vote__fine {
  margin: 0;
  font-size: 14px;
  color: #6b4a2e;
}

/* Textos según el puntero: ratón o dedo */
.only-touch {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .only-touch {
    display: inline;
  }
  .only-mouse {
    display: none;
  }
}
.swipe-hint {
  display: none;
}

/* V · Rezamos contigo */
.sec--5 .body {
  margin-top: 24px;
  color: #fff1df;
}
.rc {
  margin-top: 48px;
  align-items: center;
}
.rc__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 8px;
  background: #fffaf2;
  color: #2a1a0e;
  box-shadow: 0 24px 60px rgba(20, 10, 4, 0.35);
}
.rc__tag {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b4a2e;
}
.rc__who {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.rc__text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
}
.rc__lights {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.rc__light {
  aspect-ratio: 1;
  border-radius: 999px;
  background: #e6dccd;
  transition:
    background-color 0.6s,
    box-shadow 0.6s,
    transform 0.6s var(--ease-reveal);
}
.rc__light.is-on {
  background: #f2a93b;
  box-shadow: 0 0 10px 2px rgba(255, 180, 80, 0.55);
}
.rc__light.is-you {
  background: #c7302a;
  box-shadow: 0 0 12px 3px rgba(199, 48, 42, 0.5);
  transform: scale(1.25);
}
.rc__count {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.rc__num {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.rc__numlabel {
  font-size: 16px;
  line-height: 1.35;
  color: #4a3420;
}
.rc__join {
  align-self: flex-start;
}
.rc__join[aria-pressed="true"] {
  background: #c7302a;
}
.rc__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rc__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  color: #fff1df;
}
.rc__steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--light);
}
.rc__step {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: #fff6ea;
}
.rc__stepText {
  font-size: 16px;
  line-height: 1.5;
}
.push {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.94);
  color: #2a1a0e;
  box-shadow: 0 16px 40px rgba(20, 10, 4, 0.3);
}
.push__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.push__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.push__app {
  font-size: 14px;
  color: #6b4a2e;
}
.push__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.wall__note {
  margin: 28px 0 0;
  font-size: 14px;
  color: #eadcc9;
}

/* VI · Cierre */
.cierre {
  gap: 48px;
  align-items: center;
}
.join {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 620px;
}
.join__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #3a2716;
}
.join__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b4a2e;
}
.cierre__heart {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 9 / 14;
  justify-self: center;
  background: url("/img/corazon_acuarela.webp") 50% 45% / cover no-repeat;
  /* El papel blanco de la acuarela se funde con el marfil del fondo. */
  mix-blend-mode: multiply;
}
.countdown {
  margin: 20px 0 0;
  font-size: 18px;
  color: #4a3420;
}
.countdown strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: #2a1a0e;
  vertical-align: -4px;
}
.foot {
  margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid rgba(42, 26, 14, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #4a3420;
}
.foot__brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot__legal {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #2a1a0e;
  text-underline-offset: 3px;
}

/* ---------- Páginas legales ---------- */
body.legal {
  background: #faf8f4;
  color: #2a1a0e;
}
.legal__bar,
.legal__main,
.legal__foot {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.legal__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(42, 26, 14, 0.15);
}
.legal__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-underline-offset: 3px;
}
.legal__main {
  padding-top: 56px;
  padding-bottom: 72px;
  font-size: 17px;
  line-height: 1.65;
}
.legal__label {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b4a2e;
}
.legal__title {
  margin: 12px 0 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.legal__main h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.legal__main h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.legal__main p,
.legal__main ul {
  margin: 0 0 14px;
}
.legal__main ul {
  padding-left: 22px;
}
.legal__main li {
  margin-bottom: 6px;
}
.legal__main a {
  color: #2a1a0e;
  font-weight: 600;
  text-underline-offset: 3px;
}
.legal__main mark {
  background: #ffe3b3;
  color: #2a1a0e;
  padding: 0 4px;
}
.legal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid rgba(42, 26, 14, 0.15);
  font-size: 14px;
}
.legal__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.legal__foot a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

.foot__ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-block: -12px;
  color: #2a1a0e;
  font-weight: 600;
  text-decoration: none;
}
.foot__ig:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Pantallas de la app ---------- */
.head {
  align-items: center;
}
.phones {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(280px, 70%);
  aspect-ratio: 585 / 1266;
  padding: 10px;
  border-radius: 44px;
  background: #1a1410;
  box-shadow:
    0 0 0 1px rgba(255, 214, 150, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(255, 180, 80, 0.12);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}
.phone--back {
  position: absolute;
  z-index: 0;
  top: 48px;
  left: 50%;
  width: min(240px, 60%);
  transform: translateX(-118%) rotate(-6deg);
  opacity: 0.85;
}
.phones__cap {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbb9a2;
}
.cols--stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Barra fija */
.bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(7, 8, 11, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 214, 150, 0.14);
  color: #fff4e2;
  transform: translateY(-110%);
  visibility: hidden;
  transition:
    transform 1.25s var(--ease-menu),
    visibility 0s linear 1.25s;
}
.bar.is-on {
  transform: none;
  visibility: visible;
  transition:
    transform 1.25s var(--ease-menu),
    visibility 0s;
}
.bar__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.bar__cta {
  min-height: 44px;
  padding: 0 18px;
}

/* ---------- Anchos ---------- */
@media (max-width: 1100px) {
  .hero__nav {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero {
    aspect-ratio: auto;
  }
  .hero__title {
    max-width: none;
    font-size: 12vw;
  }
  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero__cta {
    align-items: flex-start;
  }
}
@media (max-width: 900px) and (orientation: portrait) {
  /* En vertical el titular baja y deja el corazón a la vista. */
  .hero {
    min-height: 760px;
  }
  .hero__inner {
    justify-content: flex-start;
  }
  .hero__title {
    margin-top: auto;
  }
  .hero__foot {
    margin-top: 24px;
  }
}
@media (max-width: 820px) {
  :root {
    --pad-x: 20px;
    --pad-y: 96px;
    --dot: 36px;
    --dot-x: 12px;
    --pad-l: 64px;
  }
  .dot {
    font-size: 18px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .grid3 {
    gap: 24px;
  }
  .display,
  .display--xl,
  .dia .display {
    font-size: 13vw;
  }
  .obras__big {
    font-size: 30vw;
  }
  .cierre__heart {
    max-width: 360px;
  }
  /* Velas en carrusel horizontal: se deslizan con el dedo, sin mover la página. */
  .swipe-hint {
    display: block;
    margin: 40px 0 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ddd4c7;
  }
  .velas {
    margin-top: 16px;
    margin-right: calc(-1 * var(--pad-x));
    padding-right: var(--pad-x);
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .velas::-webkit-scrollbar {
    display: none;
  }
  .vela {
    scroll-snap-align: start;
  }
  .vote {
    padding: 24px;
  }
  .phones {
    padding-left: 15%;
  }
  .rc__card {
    padding: 24px;
  }
  .rc__lights {
    grid-template-columns: repeat(12, 1fr);
  }
}
@media (max-width: 520px) {
  .hero__date {
    display: none;
  }
  .hero__num {
    font-size: 80px;
  }
  .join .btn {
    width: 100%;
  }
  .bar__brand {
    display: none;
  }
  .bar {
    justify-content: center;
  }
}

/* Movimiento reducido: fuera desplazamientos, se quedan los fundidos. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__bar {
    animation: none;
  }
  .js .hero__l {
    animation-name: fade;
    animation-timing-function: ease;
  }
  .js .rv {
    transform: none;
    transition: opacity 1.25s ease;
  }
  .dia__hand {
    transition: none;
  }
  .vela__on {
    --lit: 150%;
    transition: opacity 1s ease;
  }
  .btn {
    transition:
      background-color 0.3s,
      color 0.3s;
  }
  .btn:hover {
    transform: none !important;
  }
  .bar,
  .bar.is-on {
    transition: none;
  }
  .rc__light {
    transition: none;
  }
}
