/*
 * Base de las invitaciones digitales (boda, XV, aniversario, cumpleaños).
 * Cada plantilla define su paleta y tipografías en :root y añade su decoración.
 * Relacionado: plantillas/comun/evento/evento.js y plantillas/comun/movimiento.{css,js}
 */
:root {
  --ev-fondo: #faf7f2;
  --ev-fondo2: #f2ece2;
  --ev-tinta: #2b2620;
  --ev-tenue: #6f665b;
  --ev-acento: #b08d57;
  --ev-acento2: #7d8b6a;
  --ev-linea: rgba(43, 38, 32, .14);
  --ev-tarjeta: #ffffff;
  --ev-sobre: #efe6d6;
  --ev-sobre-tapa: #e6dac4;
  --ev-sobre-fondo: #f6f1e8;
  --ev-carta: #fffdf8;
  --ev-sello: #9c7a45;
  --ev-sello-texto: #fff6e6;
  --ev-boton-texto: #ffffff;
  --ev-f-titulo: Georgia, serif;
  --ev-f-guion: cursive;
  --ev-f-texto: system-ui, sans-serif;
  --ev-radio: 22px;
  --ev-sombra: 0 30px 60px -36px rgba(30, 20, 10, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ev-tinta);
  background: var(--ev-fondo);
  font-family: var(--ev-f-texto);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color .9s ease;
}
body.ev-bloqueo { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; }
p { margin: 0; }
::selection { color: var(--ev-fondo); background: var(--ev-acento); }
:focus-visible { outline: 2px solid var(--ev-acento); outline-offset: 3px; }

/* ---------- Barra de demo ---------- */
.demo-barra {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 8px 16px;
  color: #f5f5f5;
  background: #111;
  font: 500 13px/1.4 system-ui, sans-serif;
  text-align: center;
}
.demo-barra a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.demo-barra a:hover { border-color: #fff; }

/* ---------- Sobre de entrada ---------- */
.ev-sobre {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  padding: 24px;
  background: var(--ev-sobre-fondo);
  transition: opacity 1s ease, visibility 0s linear 1s, scale 1.2s cubic-bezier(.16, 1, .3, 1);
}
.ev-sobre[hidden] { display: none; }
.ev-abierta .ev-sobre { opacity: 0; visibility: hidden; scale: 1.12; pointer-events: none; }
.ev-sobre-para { color: var(--ev-tenue); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-align: center; text-transform: uppercase; }
.ev-sobre-para strong { display: block; margin-top: 4px; color: var(--ev-tinta); font-family: var(--ev-f-titulo); font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ev-sobre-escena { position: relative; width: min(84vw, 420px); aspect-ratio: 1.42; perspective: 1400px; animation: evFlota 5s ease-in-out infinite; }
.ev-sobre-atras, .ev-sobre-frente, .ev-sobre-tapa { position: absolute; left: 0; right: 0; }
.ev-sobre-atras { inset: 0; background: var(--ev-sobre-tapa); border-radius: 8px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .45); }
.ev-sobre-carta {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 7%;
  bottom: 6%;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 16px;
  color: var(--ev-tinta);
  background: var(--ev-carta);
  border-radius: 4px;
  text-align: center;
  transition: translate 1.1s cubic-bezier(.16, 1, .3, 1) .55s;
}
.ev-sobre-carta small { color: var(--ev-tenue); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.ev-sobre-carta b { font-family: var(--ev-f-guion); font-size: clamp(30px, 8vw, 42px); font-weight: 400; line-height: 1.1; color: var(--ev-acento); }
.ev-sobre-frente {
  inset: 0;
  z-index: 3;
  background: var(--ev-sobre);
  border-radius: 8px;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -30px 50px -40px rgba(0, 0, 0, .25);
}
.ev-sobre-tapa {
  top: 0;
  z-index: 4;
  height: 58%;
  background: var(--ev-sobre-tapa);
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.6, 0, .3, 1), z-index 0s linear .45s;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .12));
}
.ev-sello {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  padding: 0;
  color: var(--ev-sello-texto);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ev-sello) 70%, #fff), var(--ev-sello) 55%, color-mix(in srgb, var(--ev-sello) 70%, #000));
  border: 0;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .5), inset 0 0 0 5px rgba(255, 255, 255, .12);
  font-family: var(--ev-f-guion);
  font-size: 28px;
  cursor: pointer;
  transition: scale .35s cubic-bezier(.16, 1, .3, 1), opacity .4s, rotate .5s;
}
.ev-sello::after { content: ""; position: absolute; inset: -8px; border: 1.5px solid var(--ev-sello); border-radius: 50%; opacity: .6; animation: evLatido 2.2s ease-out infinite; }
.ev-sello:hover { scale: 1.08; }
.ev-abrir {
  padding: 13px 30px;
  color: var(--ev-boton-texto);
  background: var(--ev-acento);
  border: 0;
  border-radius: 999px;
  font: 700 14px/1 var(--ev-f-texto);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px var(--ev-acento);
  transition: translate .3s, box-shadow .3s;
}
.ev-abrir:hover { translate: 0 -2px; box-shadow: 0 22px 34px -16px var(--ev-acento); }
.ev-abriendo .ev-sobre-escena { animation: none; }
.ev-abriendo .ev-sello { scale: 0; rotate: -40deg; opacity: 0; }
.ev-abriendo .ev-sobre-tapa { transform: rotateX(180deg); z-index: 1; }
.ev-abriendo .ev-sobre-carta { translate: 0 -62%; }
.ev-abriendo .ev-abrir, .ev-abriendo .ev-sobre-para { opacity: 0; transition: opacity .4s; }

/* ---------- Aparición del héroe al abrir ---------- */
[data-ev-in] { opacity: 0; translate: 0 34px; filter: blur(10px); }
.ev-abierta [data-ev-in] { animation: evEntra 1.4s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.25s + var(--i, 0) * .14s); }

/* ---------- Estructura ---------- */
.ev-contenedor { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ev-seccion { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.ev-encabezado { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.ev-etiqueta { margin-bottom: 14px; color: var(--ev-acento); font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.ev-titulo { font-family: var(--ev-f-titulo); font-size: clamp(38px, 6.4vw, 68px); }
.ev-titulo em { font-family: var(--ev-f-guion); font-style: normal; color: var(--ev-acento); }
.ev-encabezado p:not(.ev-etiqueta) { margin-top: 16px; color: var(--ev-tenue); }

.ev-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  color: var(--ev-boton-texto);
  background: var(--ev-acento);
  border: 2px solid var(--ev-acento);
  border-radius: 999px;
  font: 700 15px/1.1 var(--ev-f-texto);
  text-decoration: none;
  cursor: pointer;
}
.ev-boton:hover { filter: brightness(1.08); }
.ev-boton--borde { color: var(--ev-tinta); background: transparent; border-color: var(--ev-linea); }
.ev-boton--borde:hover { border-color: var(--ev-acento); filter: none; }

/* ---------- Héroe ---------- */
.ev-hero { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 90px 20px 110px; overflow: hidden; text-align: center; isolation: isolate; }
.ev-hero-interior { position: relative; z-index: 3; max-width: 900px; }
.ev-hero-sup { color: var(--ev-tenue); font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.ev-nombres { margin: 18px 0; font-family: var(--ev-f-guion); font-size: clamp(64px, 15vw, 168px); line-height: .95; color: var(--ev-tinta); }
.ev-nombres span { display: block; }
.ev-nombres i { display: block; margin: 4px 0; font-family: var(--ev-f-titulo); font-size: .34em; font-style: italic; color: var(--ev-acento); }
.ev-fecha-hero { display: inline-flex; align-items: center; gap: 18px; font-family: var(--ev-f-titulo); font-size: clamp(18px, 2.6vw, 24px); letter-spacing: .14em; text-transform: uppercase; }
.ev-fecha-hero b { font-size: 2.2em; font-weight: 400; letter-spacing: 0; color: var(--ev-acento); }
.ev-fecha-hero span { padding: 6px 0; border-block: 1px solid var(--ev-linea); }
.ev-bajar { position: absolute; left: 50%; bottom: 30px; z-index: 3; display: grid; justify-items: center; gap: 8px; color: var(--ev-tenue); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-decoration: none; text-transform: uppercase; translate: -50% 0; }
.ev-bajar i { width: 1px; height: 46px; background: linear-gradient(var(--ev-acento), transparent); animation: evGota 2s ease-in-out infinite; transform-origin: top; }

/* ---------- Frase ---------- */
.ev-frase { padding: clamp(80px, 12vw, 150px) 20px; text-align: center; }
.ev-frase p { max-width: 900px; margin: 0 auto; font-family: var(--ev-f-titulo); font-size: clamp(28px, 4.4vw, 50px); line-height: 1.25; }
.ev-frase em { font-family: var(--ev-f-guion); font-style: normal; color: var(--ev-acento); }
.ev-frase cite { display: block; margin-top: 24px; color: var(--ev-tenue); font-size: 14px; font-style: normal; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Cuenta regresiva ---------- */
.ev-cuenta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); max-width: 760px; margin: 0 auto; }
.ev-cuenta > div { position: relative; padding: clamp(18px, 3vw, 30px) 8px; background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: var(--ev-radio); box-shadow: var(--ev-sombra); text-align: center; overflow: hidden; }
.ev-cuenta b { display: block; font-family: var(--ev-f-titulo); font-size: clamp(38px, 7vw, 72px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-cuenta b.cambia { animation: evCambia .6s cubic-bezier(.16, 1, .3, 1); }
.ev-cuenta span { display: block; margin-top: 8px; color: var(--ev-tenue); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ev-cuenta-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Personas (padres, padrinos) ---------- */
.ev-personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.ev-personas article { padding: 34px 26px; background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: var(--ev-radio); text-align: center; box-shadow: var(--ev-sombra); }
.ev-personas h3 { margin-bottom: 14px; color: var(--ev-acento); font-size: 13px; font-family: var(--ev-f-texto); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.ev-personas p { font-family: var(--ev-f-titulo); font-size: 22px; line-height: 1.45; }

/* ---------- Itinerario con línea que se dibuja ---------- */
.ev-ruta { position: relative; max-width: 820px; margin: 0 auto; padding: 10px 0; }
.ev-ruta::before, .ev-ruta::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ev-linea); }
.ev-ruta::after { background: var(--ev-acento); transform-origin: top; scale: 1 var(--ev-p, 0); }
.ev-paso { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 26px 0; }
.ev-paso-punto { position: absolute; left: 50%; top: 34px; z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; margin-left: -27px; color: var(--ev-acento); background: var(--ev-fondo); border: 2px solid var(--ev-linea); border-radius: 50%; transition: background-color .5s, color .5s, border-color .5s, scale .5s cubic-bezier(.16, 1, .3, 1); }
.ev-paso-punto svg { width: 24px; height: 24px; }
.ev-paso.activo .ev-paso-punto { color: var(--ev-boton-texto); background: var(--ev-acento); border-color: var(--ev-acento); scale: 1.12; }
.ev-paso-hora { align-self: start; padding-top: 30px; font-family: var(--ev-f-titulo); font-size: clamp(30px, 4vw, 44px); text-align: right; }
.ev-paso-info { padding-top: 22px; }
.ev-paso-info h3 { font-family: var(--ev-f-titulo); font-size: 28px; }
.ev-paso-info p { margin-top: 6px; color: var(--ev-tenue); }
.ev-paso:nth-child(even) .ev-paso-hora { order: 2; text-align: left; }
.ev-paso:nth-child(even) .ev-paso-info { text-align: right; }

/* ---------- Lugares ---------- */
.ev-lugares { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.ev-lugar { display: flex; flex-direction: column; overflow: hidden; background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: var(--ev-radio); box-shadow: var(--ev-sombra); }
.ev-lugar-arte { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ev-fondo2); }
.ev-lugar-arte svg { width: 100%; height: 100%; }
.ev-lugar-cuerpo { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 26px; }
.ev-lugar-cuerpo small { color: var(--ev-acento); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.ev-lugar-cuerpo h3 { font-family: var(--ev-f-titulo); font-size: 30px; }
.ev-lugar-cuerpo p { color: var(--ev-tenue); }
.ev-lugar-cuerpo .ev-boton { align-self: flex-start; margin-top: auto; padding: 11px 20px; font-size: 14px; }
.ev-lugar-cuerpo p + .ev-boton { margin-top: 18px; }

/* ---------- Código de vestimenta ---------- */
.ev-vestimenta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.ev-vestimenta h3 { font-family: var(--ev-f-titulo); font-size: clamp(34px, 5vw, 54px); }
.ev-vestimenta p { margin-top: 12px; color: var(--ev-tenue); }
.ev-paleta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ev-paleta span { display: grid; justify-items: center; gap: 8px; color: var(--ev-tenue); font-size: 12px; font-weight: 600; }
.ev-paleta span::before { content: ""; width: 54px; height: 54px; background: var(--c); border: 3px solid var(--ev-tarjeta); border-radius: 50%; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); transition: scale .35s cubic-bezier(.16, 1, .3, 1); }
.ev-paleta span:hover::before { scale: 1.15; }
.ev-vestimenta-arte { display: grid; place-items: center; aspect-ratio: 1; background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: 50%; box-shadow: var(--ev-sombra); }
.ev-vestimenta-arte svg { width: 70%; }

/* ---------- Regalos ---------- */
.ev-regalos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.ev-regalos article { display: flex; flex-direction: column; gap: 8px; padding: 32px 26px; background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: var(--ev-radio); text-align: center; box-shadow: var(--ev-sombra); }
.ev-regalos svg { width: 46px; height: 46px; margin: 0 auto 8px; color: var(--ev-acento); }
.ev-regalos h3 { font-family: var(--ev-f-titulo); font-size: 26px; }
.ev-regalos p { color: var(--ev-tenue); font-size: 15.5px; }
.ev-regalos code { display: block; margin-top: 4px; color: var(--ev-tinta); font: 600 15px/1.4 ui-monospace, monospace; letter-spacing: .04em; }
.ev-regalos .ev-boton { align-self: center; margin-top: auto; padding: 10px 20px; font-size: 14px; }
.ev-regalos p + .ev-boton, .ev-regalos code + .ev-boton { margin-top: 14px; }

/* ---------- Historia ---------- */
.ev-historia { position: relative; display: grid; gap: 26px; max-width: 900px; margin: 0 auto; }
.ev-hito { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: start; padding: 28px 30px; background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: var(--ev-radio); box-shadow: var(--ev-sombra); }
.ev-hito b { font-family: var(--ev-f-titulo); font-size: 48px; font-weight: 400; line-height: 1; color: var(--ev-acento); }
.ev-hito h3 { font-family: var(--ev-f-titulo); font-size: 26px; }
.ev-hito p { margin-top: 6px; color: var(--ev-tenue); }

/* ---------- Confirmación ---------- */
.ev-rsvp { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; padding: clamp(30px, 5vw, 60px); background: var(--ev-tarjeta); border: 1px solid var(--ev-linea); border-radius: calc(var(--ev-radio) + 10px); box-shadow: var(--ev-sombra); }
.ev-rsvp-texto p { margin-top: 14px; color: var(--ev-tenue); }
.ev-rsvp-pases { display: inline-block; margin-top: 22px; padding: 10px 18px; background: var(--ev-fondo2); border-radius: 18px; font-weight: 700; }
.ev-rsvp-pases::before { content: "✦"; margin-right: 8px; color: var(--ev-acento); }
.ev-form { display: grid; gap: 16px; }
.ev-form label { display: grid; gap: 6px; color: var(--ev-tenue); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ev-form input, .ev-form select, .ev-form textarea { width: 100%; padding: 13px 15px; color: var(--ev-tinta); background: var(--ev-fondo); border: 1.5px solid var(--ev-linea); border-radius: 12px; font: 400 16px/1.4 var(--ev-f-texto); letter-spacing: 0; text-transform: none; transition: border-color .2s; }
.ev-form input:focus, .ev-form select:focus, .ev-form textarea:focus { border-color: var(--ev-acento); outline: none; }
.ev-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.ev-opciones legend { margin-bottom: 6px; padding: 0; color: var(--ev-tenue); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ev-opciones label { position: relative; display: block; padding: 13px; color: var(--ev-tinta); background: var(--ev-fondo); border: 1.5px solid var(--ev-linea); border-radius: 12px; font-size: 15px; letter-spacing: 0; text-align: center; text-transform: none; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ev-opciones input { position: absolute; opacity: 0; pointer-events: none; }
.ev-opciones label:has(input:checked) { color: var(--ev-boton-texto); background: var(--ev-acento); border-color: var(--ev-acento); }
.ev-opciones label:has(input:focus-visible) { outline: 2px solid var(--ev-acento); outline-offset: 2px; }
.ev-form-error { color: #c0392b; font-size: 14px; font-weight: 600; }
.ev-rsvp-ok { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; animation: evEntra 1s cubic-bezier(.16, 1, .3, 1) both; }
.ev-rsvp-ok b { font-family: var(--ev-f-guion); font-size: 54px; font-weight: 400; line-height: 1; color: var(--ev-acento); }
.ev-rsvp-ok p { color: var(--ev-tenue); }

/* ---------- Pie ---------- */
.ev-pie { padding: clamp(70px, 10vw, 120px) 20px 34px; text-align: center; }
.ev-pie-gigante { margin: 0 0 30px; overflow: hidden; font-family: var(--ev-f-guion); font-size: clamp(64px, 15vw, 200px); line-height: 1.1; color: var(--ev-acento); white-space: nowrap; }
.ev-pie-hashtag { font-weight: 700; letter-spacing: .14em; }
.ev-pie-legal { max-width: 720px; margin: 34px auto 0; color: var(--ev-tenue); font-size: 13px; line-height: 1.6; }
.ev-pie-legal a { font-weight: 700; }
.ev-pie-cta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Flotantes, música y avisos ---------- */
.ev-musica { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; color: var(--ev-boton-texto); background: var(--ev-acento); border: 0; border-radius: 50%; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .5); cursor: pointer; opacity: 0; scale: .6; transition: opacity .5s, scale .5s cubic-bezier(.16, 1, .3, 1); }
.ev-abierta .ev-musica { opacity: 1; scale: 1; }
.ev-musica span { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.ev-musica i { width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
.ev-musica.sonando i { animation: evBarra .9s ease-in-out infinite alternate; }
.ev-musica.sonando i:nth-child(2) { animation-delay: -.3s; }
.ev-musica.sonando i:nth-child(3) { animation-delay: -.6s; }
.ev-musica.sonando i:nth-child(4) { animation-delay: -.15s; }
.ev-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 40; padding: 14px 22px; color: var(--ev-boton-texto); background: var(--ev-acento); border-radius: 999px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); font-weight: 700; font-size: 15px; text-decoration: none; opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .4s, translate .5s cubic-bezier(.16, 1, .3, 1); }
.ev-flotante.visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.ev-aviso { position: fixed; left: 50%; bottom: 86px; z-index: 120; padding: 12px 20px; color: #fff; background: rgba(17, 17, 17, .92); border-radius: 999px; font-size: 14px; font-weight: 600; translate: -50% 20px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s cubic-bezier(.16, 1, .3, 1); }
.ev-aviso.visible { opacity: 1; translate: -50% 0; }
.ev-particulas { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }
.ev-sobre ~ .ev-particulas { z-index: 20; }
.ev-bloqueo .ev-particulas { z-index: 101; }

/* ---------- Animaciones ---------- */
@keyframes evFlota { 50% { translate: 0 -10px; rotate: -1deg; } }
@keyframes evLatido { 0% { scale: .9; opacity: .7; } 100% { scale: 1.5; opacity: 0; } }
@keyframes evEntra { from { opacity: 0; translate: 0 34px; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes evGota { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 0; transform-origin: bottom; } }
@keyframes evCambia { from { opacity: 0; translate: 0 -40%; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes evBarra { from { height: 20%; } to { height: 100%; } }
@keyframes evGira { to { rotate: 360deg; } }
@keyframes evMece { 50% { rotate: var(--mece, 3deg); } }
@keyframes evBrilla { 0%, 100% { opacity: .25; scale: .7; } 50% { opacity: 1; scale: 1; } }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .ev-cuenta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-ruta::before, .ev-ruta::after { left: 27px; }
  .ev-paso { grid-template-columns: 1fr; gap: 0; padding: 18px 0 18px 78px; }
  .ev-paso-punto { left: 0; top: 22px; margin-left: 0; }
  .ev-paso-hora, .ev-paso:nth-child(even) .ev-paso-hora { order: 0; padding-top: 0; text-align: left; font-size: 30px; }
  .ev-paso-info, .ev-paso:nth-child(even) .ev-paso-info { padding-top: 2px; text-align: left; }
  .ev-vestimenta, .ev-rsvp { grid-template-columns: 1fr; }
  .ev-vestimenta-arte { width: min(320px, 80%); margin: 0 auto; }
  .ev-hito { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .ev-lugares { grid-template-columns: 1fr; }
  .ev-flotante { right: 12px; bottom: 14px; padding: 12px 18px; font-size: 14px; }
  .ev-musica { left: 12px; bottom: 14px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-ev-in] { opacity: 1; translate: none; filter: none; }
}
