/* Ventana emergente de la página (tarjeta de temporada o imagen). Se edita en Administración → Publicaciones → Ventana emergente. */
.vt { --vt-verde: #63B11D; --vt-medio: #97C71B; --vt-lima: #C0D91B; --vt-amarillo: #FFF51E; --vt-noche: #1B3A08; --vt-texto: #3E7D10;
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px;
  background: rgba(12, 26, 5, .64); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: vt-in .35s ease both; }
.vt[hidden] { display: none; }
.vt.is-saliendo { animation: vt-out .22s ease both; }
.vt__card { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08);
  animation: vt-pop .5s cubic-bezier(.2,.9,.25,1.15) both; font-family: "Open Sans", system-ui, sans-serif; color: #2B3229; }
.vt.is-saliendo .vt__card { animation: vt-pop-out .22s ease both; }

/* Close button */
.vt__x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  transition: background .2s, transform .2s; }
.vt__x:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.vt__x:focus-visible { outline: 3px solid var(--vt-lima); outline-offset: 2px; }
.vt__x svg { width: 18px; height: 18px; }
.vt--imagen .vt__x { background: rgba(18,21,18,.55); }

/* Hero (night green) */
.vt__hero { position: relative; overflow: hidden; padding: 52px 28px 46px; text-align: center; color: #fff;
  background: radial-gradient(90% 70% at 50% 8%, rgba(192,217,27,.28), transparent 60%),
              radial-gradient(120% 100% at 50% 0%, #3E7D10 0%, #23420B 55%, var(--vt-noche) 100%); }
.vt__hero::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -1px; height: 34px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
/* soft snow */
.vt__nieve, .vt__nieve::before { position: absolute; inset: -60px 0 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.85) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90px 80px, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 150px 20px, rgba(255,255,255,.55) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 210px 110px, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(2px 2px at 60px 140px, rgba(255,245,30,.6) 50%, transparent 51%);
  background-size: 240px 160px; animation: vt-nieve 14s linear infinite; }
.vt__nieve::before { content: ""; inset: -60px 0 0; background-size: 170px 130px; opacity: .55; animation-duration: 22s; }
/* hanging ornaments = the Fund's flower */
.vt__adornos { position: absolute; top: 0; left: 0; right: 0; height: 120px; pointer-events: none; }
.vt__adorno { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: vt-mecer 4.5s ease-in-out infinite alternate; }
.vt__adorno::before { content: ""; width: 1.2px; height: var(--h, 40px); background: linear-gradient(rgba(255,255,255,.1), rgba(192,217,27,.8)); }
.vt__adorno img { width: var(--s, 30px); height: var(--s, 30px); filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
/* flowers frame the logo from the sides; the inner ones hang short so they never cross it */
.vt__adorno:nth-child(1) { left: 5%;  --h: 46px; --s: 26px; animation-delay: -1s; }
.vt__adorno:nth-child(2) { left: 15%; --h: 14px; --s: 20px; animation-delay: -2.5s; }
.vt__adorno:nth-child(3) { right: 24%; --h: 6px; --s: 20px; animation-delay: -.5s; }
.vt__adorno:nth-child(4) { right: 66px; --h: 12px; --s: 22px; animation-delay: -3s; } /* left of the X */
.vt__estrella { position: absolute; color: var(--vt-amarillo); font-size: 13px; opacity: .85; animation: vt-brillo 2.6s ease-in-out infinite; }
.vt__estrella:nth-of-type(1) { top: 92px; left: 13%; } .vt__estrella:nth-of-type(2) { top: 40px; left: 36%; font-size: 9px; animation-delay: -1s; }
.vt__estrella:nth-of-type(3) { top: 100px; right: 14%; font-size: 10px; animation-delay: -1.8s; } .vt__estrella:nth-of-type(4) { top: 30px; right: 36%; font-size: 8px; animation-delay: -.6s; }

.vt__logo { position: relative; z-index: 1; display: block; width: min(290px, 76%); height: auto; margin: 0 auto 4px; }
/* line-height + top padding: the script capitals rise above the line and background-clip:text would cut them */
.vt__titulo { position: relative; z-index: 1; margin: 0; font: 400 clamp(46px, 11vw, 62px)/1.3 "Great Vibes", "Segoe Script", cursive;
  background: linear-gradient(180deg, #FFFBA8 0%, var(--vt-amarillo) 35%, var(--vt-lima) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(192,217,27,.35)); padding: .12em 12px .08em; }
.vt__sub { position: relative; z-index: 1; margin: 0; font: 600 12.5px/1.5 "Montserrat", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.88); }

/* Body */
.vt__body { padding: 4px 34px 30px; text-align: center; }
.vt__orn { display: flex; align-items: center; gap: 12px; margin: 0 auto 16px; max-width: 220px; }
.vt__orn::before, .vt__orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--vt-medio)); }
.vt__orn::after { transform: scaleX(-1); }
.vt__orn img { width: 22px; height: 22px; }
.vt__msg p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.72; }
.vt__msg p:first-child { font-weight: 600; color: #1F2A1B; }
.vt__firma { margin: 18px 0 0; font: 700 14px/1.45 "Montserrat", sans-serif; color: var(--vt-texto); }
.vt__lema { display: block; margin-top: 2px; font: 400 25px/1.1 "Great Vibes", "Segoe Script", cursive; color: var(--vt-verde); }
.vt__acciones { margin-top: 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.vt__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #6EBD22, var(--vt-verde)); color: #fff; font: 700 14.5px "Montserrat", sans-serif; letter-spacing: .02em;
  box-shadow: 0 10px 22px -10px rgba(62,125,16,.7); transition: transform .15s, box-shadow .15s; }
.vt__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(62,125,16,.8); }
.vt__btn:focus-visible { outline: 3px solid var(--vt-lima); outline-offset: 3px; }
.vt__btn--ghost { background: #fff; color: var(--vt-texto); border: 1.5px solid #CFE3B4; box-shadow: none; }

/* Image mode (any uploaded card or poster) */
.vt--imagen .vt__card { width: auto; max-width: min(560px, 100%); background: transparent; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
.vt__img { display: block; max-width: 100%; max-height: calc(100dvh - 32px); width: auto; height: auto; border-radius: 22px; }
.vt__img-link { display: block; }

@media (max-width: 520px) {
  .vt__hero { padding: 48px 20px 40px; } .vt__body { padding: 2px 22px 24px; } .vt__msg p { font-size: 14.8px; }
  /* phones: flowers go to the edges and the inner ones hang short, so they never cross the logo */
  .vt__adorno:nth-child(1) { left: 3%; --h: 34px; --s: 24px; } .vt__adorno:nth-child(4) { right: 64px; --h: 6px; --s: 18px; }
  .vt__adorno:nth-child(2) { left: 16%; --h: 8px; --s: 17px; } .vt__adorno:nth-child(3) { right: 34%; --h: 2px; --s: 15px; }
}
/* Short screens (small phones, laptops with zoom): more compact so it fits without scrolling */
@media (max-height: 760px) {
  .vt__hero { padding-top: 44px; padding-bottom: 38px; } .vt__logo { width: min(230px, 66%); margin-bottom: 2px; }
  .vt__titulo { font-size: clamp(40px, 10vw, 52px); } .vt__sub { font-size: 11.5px; letter-spacing: .16em; }
  .vt__orn { margin-bottom: 10px; } .vt__msg p { font-size: 14px; line-height: 1.6; margin-bottom: 9px; }
  .vt__firma { margin-top: 12px; font-size: 13px; } .vt__lema { font-size: 22px; } .vt__acciones { margin-top: 14px; }
  .vt__adornos { height: 90px; }
}@media (max-height: 640px) and (max-width: 520px) {
  .vt { padding: 10px; } .vt__card { max-height: calc(100dvh - 20px); border-radius: 22px; }
  .vt__hero { padding: 40px 16px 32px; } .vt__body { padding: 0 18px 18px; } .vt__msg p { font-size: 13.5px; }
}
@keyframes vt-in { from { opacity: 0; } } @keyframes vt-out { to { opacity: 0; } }
@keyframes vt-pop { from { opacity: 0; transform: translateY(24px) scale(.94); } } @keyframes vt-pop-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes vt-nieve { to { transform: translateY(160px); } }
@keyframes vt-mecer { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes vt-brillo { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .vt, .vt__card, .vt__nieve, .vt__nieve::before, .vt__adorno, .vt__estrella { animation: none !important; } }
