/* ==========================================================================
   ALCALDÍA MUNICIPAL DE NOCAIMA - SOBRE 3D E INVITACIÓN INTERACTIVA JAC
   Estilos Modernos, Llamativos, Mobile-First y Reglas de Impresión
   ========================================================================== */

:root {
  /* Paleta Institucional */
  --emerald-950: #032617;
  --emerald-900: #063b25;
  --emerald-800: #084b2f;
  --emerald-700: #0b5d3b;
  --emerald-600: #117a4f;
  --emerald-500: #189663;
  --emerald-100: #e5f5ed;
  --emerald-50: #f2fbf6;

  --gold-700: #8f6d0d;
  --gold-600: #b58d19;
  --gold-500: #d4af37;
  --gold-400: #e6c65d;
  --gold-300: #f4df8f;
  --gold-100: #fcf5dc;
  --gold-50: #fefcf3;

  /* Neutros Cálidos y Superficies Marfil */
  --bg-page: #f5f1e6;
  --surface: #fffdf9;
  --surface-warm: #faf5e8;
  --surface-muted: #f4efe2;
  --border: #e6dfd0;
  --border-gold: rgba(212, 175, 55, 0.36);
  --border-strong: #cfc5b0;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Semánticos */
  --danger-600: #dc2626;
  --danger-50: #fef2f2;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --whatsapp: #16a34a;
  --whatsapp-hover: #15803d;

  /* Tipografía */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Sombras y Radios */
  --shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px -12px rgba(6, 59, 37, 0.16);
  --shadow-lg: 0 24px 54px -16px rgba(3, 38, 23, 0.28);
  --shadow-gold: 0 10px 28px -8px rgba(212, 175, 55, 0.45);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-main);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(11, 93, 59, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 92% 12%, rgba(212, 175, 55, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(11, 93, 59, 0.06) 0%, transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.22;
  color: var(--text-main);
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

.admin-shell .container {
  max-width: 1140px;
}

/* Confeti */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
}

/* ==========================================================================
   VENTANA PRINCIPAL: SOBRE 3D REALISTA INTERACTIVO
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  min-height: 100dvh;
  background-color: #042818;
  background-image: url("fondo.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.envelope-screen.is-fading-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.envelope-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.envelope-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(6, 59, 37, 0.12) 0%,
    rgba(2, 24, 14, 0.52) 68%,
    rgba(1, 14, 8, 0.8) 100%
  );
}

.envelope-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d6 0%, var(--gold-400) 55%, transparent 100%);
  box-shadow: 0 0 10px rgba(244, 223, 143, 0.75);
  opacity: 0;
  animation: sparkleFloat 7s ease-in-out infinite;
}

.s1 { width: 5px; height: 5px; left: 10%; top: 20%; animation-delay: 0s; animation-duration: 6.4s; }
.s2 { width: 7px; height: 7px; left: 24%; top: 76%; animation-delay: 1.1s; animation-duration: 7.5s; }
.s3 { width: 4px; height: 4px; left: 38%; top: 14%; animation-delay: 2.3s; animation-duration: 5.8s; }
.s4 { width: 6px; height: 6px; left: 66%; top: 18%; animation-delay: 0.7s; animation-duration: 6.9s; }
.s5 { width: 5px; height: 5px; left: 82%; top: 28%; animation-delay: 1.9s; animation-duration: 7.2s; }
.s6 { width: 8px; height: 8px; left: 90%; top: 68%; animation-delay: 2.8s; animation-duration: 8s; }
.s7 { width: 4px; height: 4px; left: 14%; top: 54%; animation-delay: 3.4s; animation-duration: 6.2s; }
.s8 { width: 6px; height: 6px; left: 50%; top: 88%; animation-delay: 0.4s; animation-duration: 7.6s; }
.s9 { width: 5px; height: 5px; left: 74%; top: 82%; animation-delay: 2.1s; animation-duration: 6.5s; }
.s10 { width: 4px; height: 4px; left: 30%; top: 42%; animation-delay: 4.1s; animation-duration: 6.8s; }
.s11 { width: 6px; height: 6px; left: 86%; top: 48%; animation-delay: 1.5s; animation-duration: 7.1s; }
.s12 { width: 5px; height: 5px; left: 6%; top: 80%; animation-delay: 3s; animation-duration: 7.4s; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.22;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: clamp(180px, 35vw, 280px);
  height: clamp(180px, 35vw, 280px);
  background: var(--gold-400);
  top: -70px;
  left: -60px;
}

.orb-2 {
  width: clamp(200px, 40vw, 320px);
  height: clamp(200px, 40vw, 320px);
  background: #1eb478;
  bottom: -90px;
  right: -70px;
  animation-delay: 1.8s;
}

.orb-3 {
  width: clamp(120px, 24vw, 190px);
  height: clamp(120px, 24vw, 190px);
  background: var(--gold-300);
  top: 40%;
  right: 8%;
  opacity: 0.24;
  animation-delay: 3.2s;
}

.envelope-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.8dvh, 24px);
  padding-top: clamp(8px, 3dvh, 26px);
}

.envelope-top-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.envelope-stage.is-opened .envelope-top-caption {
  opacity: 0.15;
  transform: translateY(-10px);
}

.envelope-official-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(3, 38, 23, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 198, 93, 0.55);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: clamp(10px, 2.5vw, 11.5px);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.envelope-official-pill svg {
  width: 13px;
  height: 13px;
  color: var(--gold-400);
}

.envelope-kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  background: linear-gradient(180deg, #fffdf4 0%, #f5df94 55%, #d9b23c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(2, 20, 12, 0.85));
  line-height: 1.15;
}

.envelope-caption-ornament {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(56vw, 190px);
  height: 8px;
}

.envelope-caption-ornament::before {
  content: "";
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(244, 223, 143, 0.85) 50%, transparent);
}

.envelope-caption-ornament span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-300);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(244, 223, 143, 0.8);
}

/* Contenedor 3D del Sobre (grande y 100% adaptable a cualquier pantalla u orientación) */
.envelope-3d {
  position: relative;
  width: min(94vw, 610px, 72dvh);
  aspect-ratio: 1.14 / 1;
  height: auto;
  perspective: 1300px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease);
  filter: drop-shadow(0 30px 48px rgba(2, 22, 13, 0.65));
  animation: envelopeFloat 4.6s ease-in-out infinite;
}

.envelope-3d:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.01);
}

.envelope-stage.is-opened .envelope-3d {
  animation: none;
}

.envelope-3d:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 6px;
  border-radius: 18px;
}

/* Forro interior verde esmeralda del sobre (se ve al abrir la solapa) */
.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: clamp(12px, 3.5vw, 18px);
  background:
    repeating-linear-gradient(135deg,
      rgba(212, 175, 55, 0.06) 0px,
      rgba(212, 175, 55, 0.06) 2px,
      transparent 2px,
      transparent 14px),
    linear-gradient(165deg, #0b5d3b 0%, #053521 100%);
  border: 2px solid rgba(230, 198, 93, 0.72);
  box-shadow: inset 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Tarjeta interna con la IMAGEN DE LA JAC que sale del sobre */
.envelope-inner-card {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
  bottom: 5%;
  height: 88%;
  z-index: 3;
  border-radius: clamp(10px, 3vw, 15px);
  background: #ffffff;
  padding: clamp(4px, 1.4%, 7px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--gold-500);
  transform: translateY(10%) scale(0.92);
  opacity: 0;
  transition:
    transform 0.95s cubic-bezier(0.22, 1.05, 0.36, 1),
    opacity 0.4s ease;
}

.envelope-stage.is-card-rising .envelope-inner-card {
  transform: translateY(-48%) scale(0.99);
  opacity: 1;
}

.envelope-stage.is-card-forward .envelope-inner-card {
  z-index: 8;
  transform: translateY(-4%) scale(1.04);
  opacity: 1;
  box-shadow: 0 28px 58px rgba(2, 22, 13, 0.56);
}

.inner-card-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(7px, 2.2vw, 11px);
  overflow: hidden;
  background: var(--emerald-900);
}

.inner-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--emerald-950);
}

.inner-card-overlay {
  position: absolute;
  left: clamp(8px, 2.6%, 14px);
  right: clamp(8px, 2.6%, 14px);
  bottom: clamp(8px, 2.6%, 14px);
  inset-block-start: auto;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(3, 38, 23, 0.88) 0%, rgba(8, 75, 47, 0.84) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 198, 93, 0.55);
  box-shadow: 0 10px 24px rgba(2, 22, 13, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(7px, 2.2%, 11px) clamp(10px, 3%, 14px);
  color: #ffffff;
}

.inner-card-tag {
  font-size: clamp(9px, 2.2vw, 10.5px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
}

.inner-card-title {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.inner-card-members {
  font-size: clamp(10px, 2.3vw, 12px);
  color: var(--gold-100);
  margin-top: 4px;
  line-height: 1.35;
}

/* Bolsillo frontal Marfil Perlado / Crema Dorado con textura de papel y pliegues con profundidad */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: clamp(12px, 3.5vw, 18px);
  overflow: hidden;
  pointer-events: none;
  background: #f6efdd;
}

.pocket-fold {
  position: absolute;
  inset: 0;
}

.pocket-left {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
    linear-gradient(135deg, #fbf7ec 0%, #e6d8b8 100%);
  clip-path: polygon(0 0, 52% 43%, 0 100%);
  filter: drop-shadow(3px 0 6px rgba(6, 59, 37, 0.12));
}

.pocket-right {
  background:
    linear-gradient(225deg, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    linear-gradient(225deg, #f7f1e0 0%, #dfd0ad 100%);
  clip-path: polygon(100% 0, 48% 43%, 100% 100%);
  filter: drop-shadow(-3px 0 6px rgba(6, 59, 37, 0.12));
}

.pocket-bottom {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, transparent 25%),
    linear-gradient(180deg, #fffdf7 0%, #efe4ca 100%);
  clip-path: polygon(0 100%, 50% 35%, 100% 100%);
  filter: drop-shadow(0 -4px 10px rgba(85, 65, 14, 0.18));
}

.pocket-paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(0deg, rgba(139, 108, 20, 0.03) 0px, rgba(139, 108, 20, 0.03) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(6, 59, 37, 0.025) 0px, rgba(6, 59, 37, 0.025) 1px, transparent 1px, transparent 4px);
}

.pocket-trim {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(212, 175, 55, 0.82);
  border-radius: clamp(12px, 3.5vw, 18px);
  box-shadow:
    inset 0 0 0 4px rgba(212, 175, 55, 0.12),
    inset 0 0 0 9px transparent,
    inset 0 0 0 10px rgba(201, 162, 39, 0.34);
}

.pocket-corner-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 68px;
  overflow: hidden;
  opacity: 0.9;
}

.pocket-corner-ribbon::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -24px;
  width: 96px;
  height: 7px;
  background: linear-gradient(180deg, var(--emerald-800) 0 55%, var(--gold-500) 55% 100%);
  transform: rotate(-45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Sello / timbre postal conmemorativo compacto y centrado en la parte alta de la solapa */
.envelope-stamp {
  position: absolute;
  top: 13%;
  left: 50%;
  right: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: clamp(92px, 23%, 134px);
  padding: clamp(4px, 1.1vw, 7px) clamp(12px, 2.6vw, 18px);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.96);
  border: 1.5px dashed rgba(11, 93, 59, 0.45);
  box-shadow:
    0 0 0 2.5px rgba(255, 253, 247, 0.92),
    0 4px 12px rgba(6, 59, 37, 0.14);
  transform: translateX(-50%);
  line-height: 1.05;
  text-align: center;
}

.stamp-top {
  font-size: clamp(7px, 1.7vw, 9.5px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--emerald-800);
}

.stamp-year {
  font-family: var(--font-serif);
  font-size: clamp(13px, 3.4vw, 18px);
  font-weight: 800;
  color: var(--gold-700);
  margin: 0;
}

.stamp-sub {
  font-size: clamp(6.5px, 1.5vw, 8.5px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
}

/* Destello satinado automático (visible también en móviles) y al pasar cursor */
.pocket-sheen {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.46) 50%, transparent 70%);
  transform: translateX(-125%);
  animation: autoSheen 5.8s var(--ease) infinite;
}

.envelope-3d:hover .pocket-sheen {
  animation: none;
  transition: transform 0.85s var(--ease);
  transform: translateX(125%);
}

/* Zona protagonista del sobre enmarcada en tarjetón pergamino */
.pocket-address {
  position: absolute;
  top: 43.5%;
  left: 5%;
  right: 5%;
  bottom: 4.5%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(5px, 1.4%, 10px);
  padding: clamp(8px, 2%, 14px) clamp(8px, 2.2%, 14px);
  border-radius: clamp(10px, 2.6vw, 14px);
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.88) 0%, rgba(251, 246, 232, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.52);
  box-shadow:
    0 8px 22px rgba(6, 59, 37, 0.09),
    inset 0 0 0 3px rgba(255, 255, 255, 0.72);
  text-align: center;
}

.pocket-hero-jac {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
}

.pocket-address-to {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.65);
  font-size: clamp(8.5px, 2vw, 10px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  box-shadow: 0 2px 6px rgba(139, 108, 20, 0.1);
}

.pocket-address-jac {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.42rem, 5.4vw, 2.38rem);
  font-weight: 800;
  color: var(--emerald-950);
  line-height: 1.08;
  margin-top: clamp(5px, 1.4%, 10px);
  letter-spacing: -0.015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.pocket-address-jac.is-long-title {
  font-size: clamp(1.2rem, 4.4vw, 1.92rem);
  line-height: 1.1;
}

.pocket-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(58%, 210px);
  height: 10px;
  margin-top: clamp(3px, 1%, 6px);
}

.pocket-divider::before {
  content: "";
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #c9a227 50%, transparent);
}

.pocket-divider span {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  border: 1.5px solid #fffdf5;
  transform: rotate(45deg);
}

.pocket-person-meta {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.4%, 8px);
  padding: clamp(8px, 2.2%, 12px) clamp(12px, 3%, 18px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow:
    0 5px 16px rgba(6, 59, 37, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.92);
  text-align: center;
}

.pocket-person-junta {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(10.5px, 2.6vw, 13.5px);
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: 0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.env-member-role {
  display: inline-block;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-100), #f8e8b0);
  border: 1px solid rgba(181, 141, 25, 0.4);
  color: var(--emerald-800);
  font-size: clamp(8.5px, 2vw, 10.5px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

/* Solapa superior triangular 3D con contraste satinado y forro interno esmeralda */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 39%;
  z-index: 6;
  border-top-left-radius: clamp(12px, 3.5vw, 18px);
  border-top-right-radius: clamp(12px, 3.5vw, 18px);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.32, 0.08, 0.24, 1) 0.22s;
  pointer-events: none;
}

.flap-shape {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 98%);
  border-top-left-radius: clamp(12px, 3.5vw, 18px);
  border-top-right-radius: clamp(12px, 3.5vw, 18px);
  backface-visibility: hidden;
}

.flap-front {
  background:
    repeating-linear-gradient(0deg, rgba(139, 108, 20, 0.025) 0px, rgba(139, 108, 20, 0.025) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, #fffdf5 0%, #ecdfc0 100%);
  filter: drop-shadow(0 10px 16px rgba(3, 38, 23, 0.24));
}

.flap-back {
  transform: rotateX(180deg);
  background:
    url("fondo.png") center / cover no-repeat,
    linear-gradient(180deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.55);
}

.flap-gold-edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #b58d19, #f7e49c, #b58d19);
  clip-path: polygon(0 0, 2.4% 0, 50% 95%, 97.6% 0, 100% 0, 50% 99.5%);
  backface-visibility: hidden;
}

.envelope-stage.is-opened .envelope-flap {
  transform: rotateX(176deg);
}

.envelope-stage.is-flap-behind .envelope-flap {
  z-index: 2;
}

/* Sello Dorado Tridimensional + Cintas + Escudo Municipal */
.wax-seal {
  position: absolute;
  left: 50%;
  top: 36%;
  transform: translate(-50%, -50%);
  z-index: 7;
  width: clamp(54px, 15.5%, 72px);
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--ease), opacity 0.42s ease;
}

.envelope-stage.is-opened .wax-seal {
  transform: translate(-50%, -50%) scale(1.22);
  opacity: 0;
  pointer-events: none;
}

.wax-seal-halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.78) 0%, transparent 72%);
  animation: pulseGlow 2s ease-in-out infinite;
}

.wax-seal-ribbons {
  position: absolute;
  bottom: -16%;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 36%;
  pointer-events: none;
}

.wax-seal-ribbons::before,
.wax-seal-ribbons::after {
  content: "";
  position: absolute;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(180deg, var(--emerald-800) 0%, var(--emerald-950) 100%);
  border: 1px solid rgba(212, 175, 55, 0.75);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 0 4px 8px rgba(3, 38, 23, 0.28);
}

.wax-seal-ribbons::before {
  left: 14%;
  transform: rotate(14deg);
}

.wax-seal-ribbons::after {
  right: 14%;
  transform: rotate(-14deg);
}

.wax-seal-disc {
  position: relative;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background:
    conic-gradient(from 35deg, #d4af37, #fff1b8, #b58d19, #f7df8d, #9a7410, #fff1b8, #d4af37);
  border: 2px solid #fff9dc;
  box-shadow:
    0 12px 26px rgba(3, 38, 23, 0.42),
    0 0 0 3px rgba(154, 116, 16, 0.28),
    inset 0 2px 5px rgba(255, 255, 255, 0.85),
    inset 0 -3px 6px rgba(107, 79, 8, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal-logo {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 4%;
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  box-shadow: inset 0 1px 4px rgba(6, 59, 37, 0.18);
}

/* Botón inferior debajo del sobre */
.open-cta-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: clamp(11px, 2.2dvh, 14px) clamp(22px, 5.5vw, 30px);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 248, 214, 0.92);
  background: linear-gradient(135deg, #faea9f 0%, #d4af37 52%, #b58d19 100%);
  color: var(--emerald-950);
  font-family: var(--font-display);
  font-size: clamp(13.5px, 3.6vw, 15.5px);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.38),
    0 0 0 0 rgba(230, 198, 93, 0.55);
  transition: transform 0.2s var(--ease), opacity 0.3s ease, box-shadow 0.2s var(--ease);
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.open-cta-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  animation: shineSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.open-cta-pill:hover {
  transform: translateY(-2px) scale(1.02);
}

.open-cta-pill svg {
  width: 18px;
  height: 18px;
}

.open-cta-sparkle {
  width: 15px !important;
  height: 15px !important;
  opacity: 0.85;
}

.envelope-stage.is-opened .open-cta-pill {
  opacity: 0;
  animation: none;
  pointer-events: none;
}

/* ==========================================================================
   BARRA SUPERIOR INSTITUCIONAL
   ========================================================================== */
.top-bar {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 60%, var(--emerald-900) 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--gold-500);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(3, 38, 23, 0.28);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.crest-medallion {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-400);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(212, 175, 55, 0.22);
}

.crest-medallion-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-overline {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-300);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 48%;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-100);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(230, 198, 93, 0.55);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-badge svg {
  width: 13px;
  height: 13px;
  color: var(--gold-300);
  flex-shrink: 0;
}

/* ==========================================================================
   CONTENIDO PRINCIPAL Y TARJETAS
   ========================================================================== */
.app-shell {
  position: relative;
  min-height: 100vh;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("fondo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: contrast(1.08) brightness(1.04);
  pointer-events: none;
  z-index: 0;
}

.main-content {
  position: relative;
  z-index: 1;
  padding-top: 20px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card,
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow:
    var(--shadow-md),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.card {
  padding: 24px 18px;
}

/* Encabezado conmemorativo arriba de la imagen */
.hero-top-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--emerald-950) 0%, var(--emerald-800) 55%, var(--emerald-900) 100%);
  border-bottom: 3px solid var(--gold-500);
  padding: clamp(18px, 3.8vw, 26px) 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-banner-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.06) 0px,
    rgba(212, 175, 55, 0.06) 1px,
    transparent 1px,
    transparent 16px
  );
  pointer-events: none;
}

.hero-top-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(230, 198, 93, 0.45);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-100);
}

.hero-top-kicker svg {
  width: 13px;
  height: 13px;
  color: var(--gold-400);
}

.hero-top-banner-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.72rem, 5.8vw, 2.55rem);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #fdf2c6 55%, #e5be48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.08;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.hero-banner-ornament {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(46%, 160px);
  height: 8px;
  margin: 2px 0;
}

.hero-banner-ornament::before {
  content: "";
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-400) 50%, transparent);
}

.hero-banner-ornament span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold-300);
  transform: rotate(45deg);
}

.hero-top-banner-slogan {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(0.84rem, 2.6vw, 1.04rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* Hero con Imagen de la JAC (proporción completa sin recortar rostros) */
.hero-media {
  position: relative;
  height: auto;
  min-height: 240px;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease);
}

.hero-card:hover .hero-img {
  transform: scale(1.015);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(3, 38, 23, 0.14) 0%,
      transparent 35%,
      transparent 72%,
      rgba(3, 38, 23, 0.45) 100%);
  pointer-events: none;
}

.hero-top-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  background: rgba(3, 38, 23, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.hero-chip svg {
  width: 14px;
  height: 14px;
  color: var(--gold-300);
}

.hero-chip-gold {
  border-color: rgba(230, 198, 93, 0.65);
  color: var(--gold-300);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 2;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-body {
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Placa de Honor Personalizada JAC */
.jac-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f3faf5 0%, #fffaf0 52%, #fcf2d2 100%);
  border: 1.5px solid var(--gold-500);
  box-shadow:
    0 10px 26px -12px rgba(181, 141, 25, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.jac-banner-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.jac-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--emerald-900), var(--emerald-700));
  border: 1.5px solid rgba(230, 198, 93, 0.75);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(6, 59, 37, 0.25);
}

.jac-banner-icon svg {
  width: 24px;
  height: 24px;
}

.jac-banner-content {
  min-width: 0;
  flex: 1;
}

.jac-banner-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold-700);
  margin-bottom: 2px;
}

.jac-honor-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 4.2vw, 1.48rem);
  font-weight: 800;
  color: var(--emerald-950);
  line-height: 1.18;
  word-break: break-word;
}

.jac-honor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.jac-honor-role,
.jac-honor-junta {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.jac-honor-role {
  background: linear-gradient(135deg, var(--gold-100), #f6e19b);
  border: 1px solid rgba(181, 141, 25, 0.45);
  color: var(--emerald-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jac-honor-junta {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 93, 59, 0.24);
  color: var(--emerald-800);
}

.hero-titles {
  text-align: center;
  padding: 2px 4px;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.68rem;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.01em;
}

.event-subtitle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 10px;
}

.event-subtitle-lead,
.event-subtitle-note {
  display: block;
}

.event-subtitle-jac {
  color: var(--emerald-800);
  font-weight: 700;
}

.event-subtitle-note {
  font-style: italic;
  color: var(--emerald-900);
}

/* Meta Grid */
.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--emerald-50);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 93, 59, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.meta-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 93, 59, 0.1);
}

.meta-icon-gold {
  color: var(--gold-600);
}

.meta-icon svg {
  width: 20px;
  height: 20px;
}

.meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald-900);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ==========================================================================
   CUENTA REGRESIVA LUXURY
   ========================================================================== */
.countdown-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(3, 38, 23, 0.94) 0%, rgba(8, 75, 47, 0.92) 100%),
    url("fondo.png") center / cover no-repeat;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-top: 3px solid var(--gold-400);
  color: #ffffff;
}

.countdown-bg-glow {
  position: absolute;
  top: -45px;
  right: -45px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 70%);
  pointer-events: none;
}

.countdown-bg-glow-left {
  top: auto;
  right: auto;
  bottom: -60px;
  left: -45px;
  background: radial-gradient(circle, rgba(24, 150, 99, 0.28), transparent 70%);
}

.section-header-center {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 18px;
}

.countdown-ornament {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 8px;
  margin: 8px auto 0;
}

.countdown-ornament::before {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 223, 143, 0.8) 50%, transparent);
}

.countdown-ornament span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold-300);
  transform: rotate(45deg);
}

.section-kicker-light {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  margin-bottom: 4px;
}

.section-title-light {
  font-family: var(--font-serif);
  font-size: 1.44rem;
  font-weight: 800;
  color: #ffffff;
}

.countdown-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.time-box-gold {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.3), rgba(181, 141, 25, 0.16));
  border-color: rgba(244, 223, 143, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 214, 0.35),
    0 8px 20px -10px rgba(212, 175, 55, 0.55);
}

.time-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  transition: transform 0.22s var(--ease);
}

.time-number.is-tick {
  animation: tickPop 0.35s var(--ease);
}

.time-box-gold .time-number {
  color: var(--gold-300);
}

.time-label {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.78);
}

.countdown-status {
  margin-top: 14px;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(230, 198, 93, 0.45);
  color: var(--gold-300);
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   PROPÓSITO Y DETALLES DEL ENCUENTRO
   ========================================================================== */
.info-tabs-card {
  padding: 20px 18px;
}

.tabs-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tab-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  color: var(--emerald-900);
  margin-bottom: 8px;
}

.tab-panel p {
  font-size: 14.2px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.motivo-pride-quote {
  margin: 14px 0 0;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-50) 0%, var(--emerald-50) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-left: 4px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 10px;
}

.motivo-pride-quote svg {
  width: 19px;
  height: 19px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.tab-panel .motivo-pride {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 800;
  font-style: italic;
  color: var(--emerald-900);
}

.details-stacked-section {
  padding-top: 20px;
  border-top: 1px dashed rgba(212, 175, 55, 0.45);
}

.heading-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-100), var(--gold-100));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--emerald-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heading-icon-pill svg {
  width: 19px;
  height: 19px;
  color: var(--emerald-800);
}

.details-celebrate-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif) !important;
  font-size: 1.18rem !important;
  font-weight: 800;
  color: var(--emerald-900);
  margin-bottom: 14px !important;
}

.details-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 6px 16px -10px rgba(6, 59, 37, 0.14);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.detail-highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  box-shadow: 0 12px 24px -12px rgba(181, 141, 25, 0.35);
}

.highlight-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--emerald-800), var(--emerald-600));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -6px rgba(11, 93, 59, 0.45);
}

.highlight-icon-gold {
  background: linear-gradient(145deg, var(--gold-500), var(--gold-700));
  color: #ffffff;
  box-shadow: 0 8px 16px -6px rgba(181, 141, 25, 0.5);
}

.highlight-icon-badge svg {
  width: 22px;
  height: 22px;
  color: currentColor;
  flex-shrink: 0;
}

.detail-highlight-card span:not(.highlight-icon-badge) {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.32;
}

/* Tarjeta: Información para nuestros invitados */
.guest-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.guest-info-heading {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--emerald-900);
  line-height: 1.22;
}

.guest-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.guest-info-item {
  padding: 15px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.guest-info-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.guest-info-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.guest-info-icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--emerald-100);
  color: var(--emerald-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guest-info-icon-gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

.guest-info-icon-pill svg {
  width: 17px;
  height: 17px;
}

.guest-info-item-head strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--emerald-950);
}

.guest-info-item p {
  padding-left: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.mini-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-timeline li {
  position: relative;
  padding-left: 18px;
  font-size: 13.8px;
  color: var(--text-secondary);
}

.mini-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-100);
}

.mini-timeline strong {
  color: var(--emerald-900);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  width: 100%;
  min-height: 54px;
  font-size: 15.5px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(11, 93, 59, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(11, 93, 59, 0.65);
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 3.8s ease-in-out infinite;
}

.btn-outline-emerald {
  background: #ffffff;
  color: var(--emerald-800);
  border-color: var(--emerald-700);
}

.btn-outline-emerald:hover {
  background: var(--emerald-50);
  transform: translateY(-1px);
}

.btn-soft-gold {
  background: linear-gradient(135deg, var(--gold-100), #f7e6ad);
  color: var(--emerald-950);
  border-color: var(--gold-500);
}

.btn-soft-gold:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--emerald-950);
}

.btn-gold:hover {
  background: var(--gold-400);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--border);
  color: var(--text-main);
}

.btn-danger {
  background: var(--danger-600);
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

/* ==========================================================================
   FORMULARIO DE CONFIRMACIÓN RÁPIDA (SÍ / NO)
   ========================================================================== */
.rsvp-card {
  border-top: 4px solid var(--gold-500);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.section-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-100), var(--gold-100));
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 3px;
}

.section-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.section-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
}

.required-mark {
  color: var(--danger-600);
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input-with-icon .form-control {
  padding-left: 40px;
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(11, 93, 59, 0.14);
}

.form-control.is-invalid {
  border-color: var(--danger-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-error {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger-600);
}

/* Junta predeterminada bloqueada dentro del formulario */
.jac-locked-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-50), var(--gold-50));
  border: 1.5px solid var(--gold-500);
}

.jac-locked-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emerald-800);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jac-locked-icon svg {
  width: 20px;
  height: 20px;
}

.jac-locked-meta {
  min-width: 0;
  flex: 1;
}

.jac-locked-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.jac-locked-name {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-900);
}

.jac-locked-members {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.jac-locked-members li {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-800);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 93, 59, 0.16);
  border-radius: 10px;
  padding: 4px 9px;
}

.locked-member-role {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-600);
}

.jac-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-800);
  white-space: nowrap;
}

.jac-locked-badge svg {
  width: 12px;
  height: 12px;
  color: var(--gold-600);
}

/* Tarjetas SÍ / NO */
.required-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.required-label-row .form-label {
  margin-bottom: 0;
}

.required-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-800);
  background: var(--gold-100);
  border: 1px solid var(--gold-400);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.rsvp-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rsvp-choice-grid.is-invalid {
  padding: 5px;
  border-radius: 18px;
  border: 2px dashed var(--danger-600);
  background: var(--danger-50);
  animation: shakeError 0.36s ease;
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-4px);
  }
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 14px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.choice-card:active {
  transform: scale(0.98);
}

.choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: transform 0.25s var(--ease);
}

.choice-icon svg {
  width: 24px;
  height: 24px;
}

.choice-yes {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  border-color: rgba(11, 93, 59, 0.24);
}

.choice-yes .choice-icon {
  background: linear-gradient(135deg, var(--emerald-100), var(--gold-100));
  color: var(--emerald-800);
}

.choice-no .choice-icon {
  background: var(--slate-100);
  color: var(--slate-700);
}

.choice-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: var(--gold-400);
  color: var(--emerald-950);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.choice-no.is-selected::after {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.choice-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.choice-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.choice-yes.is-selected {
  background: linear-gradient(145deg, var(--emerald-700), var(--emerald-900));
  border-color: var(--gold-500);
  box-shadow: 0 14px 28px -10px rgba(11, 93, 59, 0.55);
}

.choice-yes.is-selected .choice-icon {
  background: var(--gold-500);
  color: var(--emerald-950);
  transform: scale(1.08);
}

.choice-yes.is-selected .choice-title {
  color: #ffffff;
}

.choice-yes.is-selected .choice-sub {
  color: var(--gold-100);
}

.choice-no.is-selected {
  background: linear-gradient(145deg, #334155, #1e293b);
  border-color: #64748b;
  box-shadow: 0 12px 24px -10px rgba(30, 41, 59, 0.45);
}

.choice-no.is-selected .choice-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: scale(1.08);
}

.choice-no.is-selected .choice-title {
  color: #ffffff;
}

.choice-no.is-selected .choice-sub {
  color: #cbd5e1;
}

/* Stepper Opcional */
.extras-box {
  background: var(--emerald-50);
  border: 1px solid rgba(11, 93, 59, 0.18);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  animation: fadeUp 0.25s var(--ease) both;
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stepper-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald-900);
}

.stepper-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 4px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--emerald-100);
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--emerald-700);
  color: #ffffff;
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-btn:active {
  transform: scale(0.92);
}

.stepper-btn svg {
  width: 16px;
  height: 16px;
}

.stepper-value {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-900);
}

/* Confirmación individual personal */
.personal-confirm-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.personal-confirm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.personal-badge-role,
.personal-badge-junta {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
}

.personal-badge-role {
  background: var(--gold-100);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-700);
}

.personal-badge-junta {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--emerald-800);
}

.dignatarios-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dignatarios-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(11, 93, 59, 0.12);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dignatarios-header-icon svg {
  width: 18px;
  height: 18px;
}

.dignatarios-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dignatarios-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.dignatarios-desc {
  font-size: 14px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.dignatarios-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dignatario-check-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.dignatario-check-card:hover {
  border-color: var(--emerald-600);
}

.dignatario-check-card.is-checked {
  border-color: rgba(11, 93, 59, 0.45);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 59, 37, 0.07);
}

.dignatario-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.dignatario-check-circle svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dignatario-check-card.is-checked .dignatario-check-circle {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
}

.dignatario-check-card.is-checked .dignatario-check-circle svg {
  opacity: 1;
  transform: scale(1);
}

.dignatario-check-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dignatario-check-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.dignatario-check-role {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.dignatarios-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.form-submit-wrap {
  margin-top: 8px;
}

/* ==========================================================================
   PASE DIGITAL DE CONFIRMACIÓN
   ========================================================================== */
.pass-card {
  border-top: 4px solid var(--emerald-700);
  animation: fadeUp 0.35s var(--ease) both;
}

.pass-success-header {
  text-align: center;
  margin-bottom: 20px;
}

.success-checkmark {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
}

.success-checkmark svg {
  width: 100%;
  height: 100%;
}

.checkmark-circle {
  stroke: var(--emerald-700);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeDraw 0.6s var(--ease) forwards;
}

.checkmark-check {
  stroke: var(--gold-500);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeDraw 0.35s var(--ease) 0.45s forwards;
}

.pass-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-700);
  margin-bottom: 4px;
}

.pass-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--emerald-900);
  line-height: 1.25;
}

.pass-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.pass-pride-line {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--gold-700);
}

.pass-org-signoff {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-800);
}

.pass-ticket {
  position: relative;
  background: linear-gradient(180deg, #fffdf9 0%, #f5fbf7 100%);
  border: 2px solid var(--emerald-800);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 14px 32px -12px rgba(6, 59, 37, 0.24),
    0 0 0 3px rgba(212, 175, 55, 0.2);
}

.pass-ticket-watermark {
  position: absolute;
  right: -24px;
  bottom: 24px;
  width: 170px;
  height: 170px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.pass-ticket-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pass-ticket-top {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-700));
  color: #ffffff;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--gold-500);
}

.pass-ticket-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.pass-crest-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-400);
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pass-crest-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.pass-ticket-body {
  position: relative;
  z-index: 1;
}

.pass-ticket-perforation {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-dash-line {
  width: calc(100% - 34px);
  border-top: 2px dashed rgba(212, 175, 55, 0.65);
}

.ticket-notch {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--emerald-800);
  transform: translateY(-50%);
}

.ticket-notch-left {
  left: -13px;
}

.ticket-notch-right {
  right: -13px;
}

.ticket-meta-name {
  font-family: var(--font-serif);
  font-size: 1.08rem !important;
  color: var(--emerald-950) !important;
}

.pass-details-bottom {
  border-bottom: none;
}

.ticket-org {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  font-weight: 700;
}

.ticket-event {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
}

.ticket-code-box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: right;
}

.ticket-code-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold-100);
}

.ticket-code {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--gold-300);
}

.pass-ticket-meta,
.pass-details-grid {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-bottom: 1px dashed var(--border-strong);
}

.ticket-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.ticket-meta-value {
  font-size: 14.5px;
  color: var(--emerald-900);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 800;
}

.status-yes {
  background: var(--emerald-100);
  color: var(--emerald-800);
  border: 1px solid rgba(11, 93, 59, 0.25);
}

.status-no {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--border-strong);
}

.status-sent {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(3, 105, 161, 0.28);
}

.pass-note-box {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--border-strong);
}

.pass-note-text {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.pass-ticket-footer {
  padding: 10px 16px;
  background: rgba(11, 93, 59, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Aviso institucional de respuesta definitiva bloqueada */
.pass-locked-notice {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-50) 0%, #fff8dc 100%);
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 6px 18px -8px rgba(181, 141, 25, 0.28);
}

.pass-locked-notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--emerald-800);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pass-locked-notice-icon svg {
  width: 20px;
  height: 20px;
}

.pass-locked-notice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pass-locked-notice-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald-900);
  line-height: 1.3;
}

.pass-locked-notice-text {
  font-size: 13.2px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.pass-locked-notice-text strong {
  color: var(--emerald-900);
  font-weight: 800;
}

.pass-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--emerald-900);
}

.footer-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.footer-admin-link svg {
  width: 14px;
  height: 14px;
}

.footer-admin-link:hover {
  color: var(--emerald-700);
  border-color: var(--emerald-700);
  background: var(--emerald-50);
}

/* ==========================================================================
   MODALES Y PANEL ADMINISTRACIÓN
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 38, 23, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.modal-card-wide {
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
}

.editor-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.editor-members-head .form-label {
  margin-bottom: 0;
}

.editor-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-member-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.editor-member-row-actions {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 520px) {
  .editor-member-row {
    grid-template-columns: 0.9fr 1.35fr auto;
    align-items: center;
    padding: 6px;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-danger {
  background: var(--danger-50);
  color: var(--danger-600);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.icon-close-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
}

.icon-close-btn:hover {
  background: var(--surface-muted);
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.admin-shell {
  min-height: 100vh;
  background: var(--bg-page);
  padding-bottom: 48px;
}

.admin-topbar {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-700));
  color: #ffffff;
  border-bottom: 3px solid var(--gold-500);
  padding: 14px 0;
}

.admin-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold-500);
  color: var(--emerald-950);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.admin-title {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.storage-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold-100);
}

.admin-main {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-metrics-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-card-action {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--emerald-50), #ffffff);
  border-color: var(--emerald-600);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon svg {
  width: 24px;
  height: 24px;
}

.metric-icon-emerald {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.metric-icon-gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

.metric-icon-slate {
  background: var(--slate-100);
  color: var(--slate-700);
}

.metric-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--emerald-900);
  line-height: 1.1;
}

.metric-sub {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.metric-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.admin-section {
  padding: 20px 18px;
}

.admin-section-head {
  margin-bottom: 16px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald-900);
}

.admin-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--emerald-700);
}

.admin-section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.cards-toolbar {
  width: 100%;
  max-width: 300px;
}

.add-jac-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px dashed var(--border-strong);
}

.admin-jac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.jac-share-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfa 100%);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.jac-share-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.jac-share-card.is-sent {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.72);
  opacity: 0.92;
}

.jac-share-card.is-sent .jac-share-name {
  color: var(--slate-700);
}

.jac-sent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: #e0f2fe;
  border: 1px solid rgba(3, 105, 161, 0.22);
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 700;
}

.jac-sent-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.jac-sent-meta-label svg {
  width: 13px;
  height: 13px;
}

.btn-unmark-sent {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: underline;
  cursor: pointer;
}

.jac-share-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.jac-share-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--emerald-900);
  line-height: 1.3;
}

.jac-share-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jac-share-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jac-share-junta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  border: 1px solid rgba(11, 93, 59, 0.18);
  color: var(--emerald-800);
  font-size: 11.5px;
  font-weight: 700;
}

.status-pending {
  background: var(--gold-100);
  color: var(--gold-700);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.jac-share-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.jac-share-phone svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-700);
}

.jac-share-members {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.8px;
  color: var(--text-secondary);
  background: var(--emerald-50);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}

.jac-share-members li::before {
  content: "• ";
  color: var(--gold-600);
  font-weight: 800;
}

.share-member-role {
  font-weight: 800;
  color: var(--emerald-800);
}

.jac-share-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}

.jac-share-actions .btn {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.btn-icon-only {
  width: 38px;
  padding: 0 !important;
}

/* Control manual de asistencia en cada tarjeta del panel Admin */
.jac-manual-attendance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.jac-manual-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.jac-manual-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}

.btn-manual-status {
  padding: 5px 6px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-manual-yes:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-800);
  background: var(--emerald-50);
}

.btn-manual-yes.is-active {
  background: var(--emerald-700);
  border-color: var(--emerald-800);
  color: #ffffff;
}

.btn-manual-no:hover {
  border-color: var(--slate-700);
  color: var(--slate-700);
  background: var(--slate-100);
}

.btn-manual-no.is-active {
  background: var(--slate-700);
  border-color: var(--slate-700);
  color: #ffffff;
}

.btn-manual-pending:hover {
  border-color: var(--gold-600);
  color: var(--gold-700);
  background: var(--gold-50);
}

.btn-manual-pending.is-active {
  background: var(--gold-100);
  border-color: var(--gold-500);
  color: var(--gold-700);
}

.jac-share-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.btn-card-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-card-mini svg {
  width: 13px;
  height: 13px;
}

.btn-card-mini-edit:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-600);
  color: var(--emerald-800);
}

.btn-card-mini-delete:hover {
  background: var(--danger-50);
  border-color: var(--danger-600);
  color: var(--danger-600);
}

@media (min-width: 600px) {
  .add-jac-inline {
    flex-direction: row;
    align-items: center;
  }

  .add-jac-inline .form-control {
    flex: 1;
  }
}

.pagination-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-info {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.table-head-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.table-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13.5px;
}

.data-table th {
  background: var(--emerald-50);
  color: var(--emerald-900);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.text-center {
  text-align: center !important;
}

.table-code-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: var(--surface-muted);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.table-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(11, 93, 59, 0.28);
  background: var(--emerald-50);
  color: var(--emerald-800);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-toggle-row:hover {
  background: var(--emerald-100);
  border-color: var(--emerald-700);
}

.btn-toggle-row svg {
  width: 13px;
  height: 13px;
}

.btn-edit-row {
  background: #ffffff;
  color: var(--emerald-800);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-edit-row:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-600);
}

.btn-edit-row svg {
  width: 15px;
  height: 15px;
}

.btn-delete-row {
  background: var(--danger-50);
  color: var(--danger-600);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-delete-row:hover {
  background: #fee2e2;
}

.btn-delete-row svg {
  width: 15px;
  height: 15px;
}

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  opacity: 0.65;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 18px;
  right: 16px;
  left: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  max-width: 420px;
  width: 100%;
  background: var(--emerald-950);
  color: #ffffff;
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s var(--ease) forwards;
}

.toast-error {
  background: #7f1d1d;
  border-left-color: #f87171;
}

/* ==========================================================================
   ANIMACIONES Y COREOGRAFÍA DE APERTURA
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes strokeDraw {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes floatOrb {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(24px, -18px) scale(1.1);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@keyframes shineSweep {

  0%,
  60% {
    left: -120%;
  }

  100% {
    left: 160%;
  }
}

@keyframes envelopeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes autoSheen {

  0%,
  72% {
    transform: translateX(-125%);
  }

  100% {
    transform: translateX(125%);
  }
}

@keyframes sparkleFloat {

  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.5);
  }

  35% {
    opacity: 0.85;
  }

  70% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translateY(-34px) scale(1.1);
  }
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.38),
      0 0 0 0 rgba(244, 223, 143, 0.55);
  }

  50% {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.42),
      0 0 0 10px rgba(244, 223, 143, 0);
  }
}

@keyframes tickPop {

  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.3s var(--ease) both;
}

.reveal-step-1 {
  animation: fadeUp 0.55s var(--ease) 0.05s both;
}

.reveal-step-2 {
  animation: fadeUp 0.55s var(--ease) 0.16s both;
}

.reveal-step-3 {
  animation: fadeUp 0.55s var(--ease) 0.26s both;
}

.reveal-step-4 {
  animation: fadeUp 0.55s var(--ease) 0.36s both;
}

/* Scroll Reveal con IntersectionObserver */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .envelope-3d,
  .pocket-sheen,
  .open-cta-pill,
  .open-cta-pill::after,
  .sparkle,
  .jac-banner-shine {
    animation: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVE
   ========================================================================== */
@media (min-width: 600px) {
  .top-bar-inner {
    justify-content: space-between;
  }

  .pill-badge {
    display: inline-flex;
    max-width: none;
    font-size: 11.5px;
    padding: 6px 13px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .card {
    padding: 28px 26px;
  }

  .hero-body {
    padding: 20px 26px 28px;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .quick-action-primary {
    grid-column: span 2;
  }

  .guest-info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-title {
    font-size: 2.1rem;
  }

  .event-meta-grid,
  .rsvp-choice-grid,
  .pass-ticket-meta,
  .pass-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-number {
    font-size: 2.2rem;
  }

  .pass-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pass-actions .btn-ghost {
    grid-column: span 2;
  }

  .generated-link-row {
    flex-direction: row;
    align-items: center;
  }

  .generated-link-row .code-input {
    flex: 1;
  }

  .table-filters {
    flex-direction: row;
    align-items: center;
  }

  .filter-search {
    flex: 1;
  }

  .filter-select {
    width: 220px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .toast-container {
    left: auto;
    align-items: flex-end;
  }
}

@media (min-width: 860px) {
  .admin-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-generator-grid {
    grid-template-columns: 1fr 2fr;
    align-items: end;
  }

  .table-head-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1080px) {
  .admin-metrics-row {
    grid-template-columns: 1fr 1fr 1fr 1.35fr;
  }
}

/* Ajuste fino para pantallas muy bajas (móviles en horizontal) o muy estrechas */
@media (max-height: 540px) {
  .envelope-stage {
    gap: 10px;
    padding-top: 4px;
  }

  .envelope-3d {
    width: min(76vw, 410px, 56dvh);
  }

  .envelope-stage.is-card-rising .envelope-inner-card {
    transform: translateY(-36%) scale(0.98);
  }

  .envelope-stage.is-card-forward .envelope-inner-card {
    transform: translateY(-2%) scale(1);
  }
}

@media (max-width: 520px) {
  .envelope-3d {
    width: 95vw;
    aspect-ratio: 0.88 / 1;
  }

  .pocket-address {
    top: 43%;
    left: 3.8%;
    right: 3.8%;
    bottom: 3%;
    gap: 6px;
  }

  .pocket-person-meta {
    padding: 6px 10px;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .envelope-3d {
    width: 94vw;
  }

  .countdown-grid {
    gap: 6px;
  }

  .time-number {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   IMPRESIÓN
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
  }

  .app-shell::before,
  .envelope-screen,
  .confetti-canvas,
  .top-bar,
  .hero-card,
  .countdown-card,
  .info-tabs-card,
  .guest-info-card,
  .rsvp-card,
  .site-footer,
  .pass-actions,
  .toast-container,
  .modal-backdrop,
  #admin-view {
    display: none !important;
  }

  #guest-view,
  .main-content,
  #digital-pass-section {
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .pass-ticket {
    border: 2px solid #0b5d3b !important;
    break-inside: avoid;
  }
}