/* Tía Vicenta v5303 | Postcard premium — sólo corrige el saludo final y
   las luminarias. Conserva el zoom nativo, el menú, el administrador y la guirnalda. */

/* Árbol: intensidad orgánica y bulbillos diminutos sobre la fotografía real. */
#tv-xmas-intro-v516 .tv5303-led-light,
#tv-v524-finale .tv5303-led-light {
  opacity: .65;
  animation-duration: var(--period, 7.4s);
  animation-delay: var(--phase, 0s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
#tv-xmas-intro-v516 .tv5303-led-soft .tv5303-led-light,
#tv-v524-finale .tv5303-led-soft .tv5303-led-light { animation-name: tv5303-led-a; }
#tv-xmas-intro-v516 .tv5303-led-slow .tv5303-led-light,
#tv-v524-finale .tv5303-led-slow .tv5303-led-light { animation-name: tv5303-led-b; }
#tv-xmas-intro-v516 .tv5303-led-rare .tv5303-led-light,
#tv-v524-finale .tv5303-led-rare .tv5303-led-light { animation-name: tv5303-led-c; }
@keyframes tv5303-led-a {
  0%, 100% { opacity: .28; }
  19% { opacity: .51; }
  37% { opacity: .83; }
  56% { opacity: .31; }
  79% { opacity: .64; }
}
@keyframes tv5303-led-b {
  0%, 100% { opacity: .51; }
  28% { opacity: .23; }
  43% { opacity: .75; }
  65% { opacity: .42; }
  88% { opacity: .69; }
}
@keyframes tv5303-led-c {
  0%, 15%, 100% { opacity: .07; }
  26% { opacity: .42; }
  42%, 52% { opacity: .85; }
  70% { opacity: .13; }
  87% { opacity: .43; }
}
#tv-xmas-intro-v516 .tv5303-star-aura,
#tv-v524-finale .tv5303-star-aura {
  transform-origin: 509px 205px;
  animation: tv5303-star-breathe 7.8s ease-in-out -2.3s infinite;
}
#tv-xmas-intro-v516 .tv5303-star-small,
#tv-v524-finale .tv5303-star-small {
  transform-origin: 509px 205px;
  animation: tv5303-star-core 6.4s ease-in-out -1.2s infinite;
}
@keyframes tv5303-star-breathe {
  0%,100% { opacity:.55; transform: scale(.96); }
  46% { opacity:.90; transform: scale(1.045); }
  76% { opacity:.65; transform: scale(1.015); }
}
@keyframes tv5303-star-core {
  0%,100% {opacity:.42;transform:scale(.98)}
  48% {opacity:.78;transform:scale(1.035)}
}

/* Luces de arriba: el foco no se infla; sólo varía el brillo en tiempos
   independientes. El vídeo PC y el WebP móvil siguen moviendo los adornos. */
html body header.topbar .tv-v5293-garland .tv-v5293-light.tv5302-top-light,
html body header.topbar .tv5299-mobile-banner .tv5299-bulb.tv5302-mobile-light {
  width: clamp(4px,.67vw,8px) !important;
  height: clamp(4px,.67vw,8px) !important;
  background: radial-gradient(circle at 45% 37%, #fff9e9 0 12%,
       var(--tv5302-color, #ffe1a7) 42%, transparent 74%) !important;
  box-shadow: 0 0 3px rgba(255,235,186,.50),
              0 0 8px color-mix(in srgb, var(--tv5302-color,#ffe0a6) 39%, transparent),
              0 0 15px color-mix(in srgb, var(--tv5302-color,#ffe0a6) 14%, transparent) !important;
  animation-timing-function: ease-in-out !important;
}
html body header.topbar .tv5299-mobile-banner .tv5299-bulb.tv5302-mobile-light {
  width: clamp(4px, 1.1vw, 7px) !important;
  height: clamp(4px, 1.1vw, 7px) !important;
}
html body header.topbar .tv5302-top-light.tv5302-pattern-1,
html body header.topbar .tv5302-mobile-light.tv5302-pattern-1 {animation-name:tv5303-top-warm-a !important}
html body header.topbar .tv5302-top-light.tv5302-pattern-2,
html body header.topbar .tv5302-mobile-light.tv5302-pattern-2 {animation-name:tv5303-top-warm-b !important}
html body header.topbar .tv5302-top-light.tv5302-pattern-3,
html body header.topbar .tv5302-mobile-light.tv5302-pattern-3 {animation-name:tv5303-top-warm-c !important}
@keyframes tv5303-top-warm-a {
  0%, 100%{opacity:.32;transform:translate(-50%,-50%) scale(.9)}
  34%{opacity:.78;transform:translate(-50%,-50%) scale(1.02)}
  70%{opacity:.43;transform:translate(-50%,-50%) scale(.98)}
}
@keyframes tv5303-top-warm-b {
  0%, 100%{opacity:.61;transform:translate(-50%,-50%) scale(1)}
  28%{opacity:.31;transform:translate(-50%,-50%) scale(.93)}
  64%{opacity:.83;transform:translate(-50%,-50%) scale(1.05)}
}
@keyframes tv5303-top-warm-c {
  0%, 100%{opacity:.22;transform:translate(-50%,-50%) scale(.96)}
  24%{opacity:.58;transform:translate(-50%,-50%) scale(1.01)}
  55%{opacity:.81;transform:translate(-50%,-50%) scale(1.045)}
  76%{opacity:.25;transform:translate(-50%,-50%) scale(.96)}
}
html body header.topbar .tv5302-top-star {
  opacity: .55;
  background:radial-gradient(circle,rgba(255,247,218,.40) 0%,rgba(252,209,131,.16) 33%,transparent 73%) !important;
  animation-duration:7.9s !important;
}
html body header.topbar .tv5302-top-star::after { opacity: .55; }

/* Final: el árbol centrado y sin el logo a un costado. */
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: min(95%, 960px) !important;
  max-width: 960px !important;
  box-sizing: border-box !important;
  padding: clamp(12px,2.1vh,22px) 12px clamp(12px,2.1vh,22px) !important;
}
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-eyebrow {
  margin: 0 0 clamp(6px,1.3vh,12px) !important;
  text-align: center;
  letter-spacing:.26em;
}
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-scene {
  width: min(96%,680px) !important;
  height: min(calc(var(--tv-screen, 100svh) * .392), 328px) !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
}
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-tree {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: min(58%, calc(var(--tv-screen,100svh) * .315), 270px) !important;
  max-width: none !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  filter: drop-shadow(0 17px 22px rgba(0,0,0,.24)) !important;
}
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-rule {
  margin: clamp(4px, .85vh, 9px) auto clamp(4px,.75vh,8px) !important;
  width: min(164px,46vw) !important;
  flex: 0 0 auto;
}
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting {
  margin: 0 !important;
  font-size: clamp(46px, min(7.8vw,9vh), 76px) !important;
  line-height: .97 !important;
  text-align:center !important;
}
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting em { display:block !important; }
html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-message {
  max-width: min(95%, 525px) !important;
  margin: clamp(8px,1.4vh,16px) 0 0 !important;
  font-size:clamp(11px,1.12vw,14px) !important;
  line-height:1.45 !important;
  color: rgba(255,248,228,.88) !important;
  text-align:center !important;
}

/* Pie de la postal: marca original, dos líneas doradas finas y respiro. */
html body #tv-v524-finale .tv-v5303-logo-bottom {
  position: relative;
  z-index: 3;
  display:flex !important;
  flex: 0 0 auto !important;
  align-items:center;
  justify-content:center;
  gap: clamp(7px,1.5vw,17px);
  width:min(420px,84vw);
  margin:clamp(10px,1.9vh,21px) auto 0 !important;
}
html body #tv-v524-finale .tv-v5303-brand-line {
  position: relative;
  display: flex;
  align-items:center;
  justify-content:center;
  flex: 1 1 0;
  min-width: 0;
  font: 10px/1 Georgia,serif;
  color:#e6c58e;
  opacity:.8;
  gap:7px;
}
html body #tv-v524-finale .tv-v5303-brand-line::before,
html body #tv-v524-finale .tv-v5303-brand-line::after {
  content:"";
  display:block;
  height:1px;
  flex:1;
  background:linear-gradient(90deg,transparent,rgba(222,177,105,.6));
}
html body #tv-v524-finale .tv-v5303-brand-line::after { transform:rotate(180deg); }
html body #tv-v524-finale .tv-tree-signature {
  position: relative !important;
  display: block !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:auto !important;
  margin:0 !important;
  opacity:1 !important;
  transform:none !important;
}
html body #tv-v524-finale .tv-v5303-logo-bottom .tv-v524-final-logo-frame {
  position:relative !important;
  width: clamp(86px,9vw,104px) !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  transform: none !important;
  animation: none !important;
  filter:drop-shadow(0 6px 11px rgba(0,0,0,.26)) !important;
}
/* Sin anillos digitales ni halos circulares encima del logo real. */
html body #tv-v524-finale .tv-v5303-logo-bottom .tv-v524-final-logo-frame::before,
html body #tv-v524-finale .tv-v5303-logo-bottom .tv-v524-final-logo-frame::after {
  display:none !important;
}
html body #tv-v524-finale .tv-v5303-logo-bottom img {object-fit:contain !important;}

/* Smartphone vertical: conservar el sello visible sin cortar la estrella. */
@media (max-width:650px) and (orientation:portrait) {
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-content {
    padding: max(14px,env(safe-area-inset-top)) 8px max(19px,env(safe-area-inset-bottom)) !important;
    width: 98% !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-eyebrow {
    font-size: 8px !important;
    letter-spacing:.22em !important;
    margin-bottom: 3px !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-scene {
    height: min(calc(var(--tv-screen,100svh) * .465),385px) !important;
    width:100% !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-tree {
    left: 50% !important;
    width:min(69%, calc(var(--tv-screen,100svh) * .335), 280px) !important;
    --tv-far-x:0%;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-rule {
    margin: 2px auto 4px !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting {
    font-size:clamp(43px,min(11vw,7.5vh),64px) !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting em {
    display:block !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-message {
    font-size: clamp(11px,2.85vw,13px) !important;
    max-width: 88% !important;
    line-height:1.45 !important;
  }
  html body #tv-v524-finale .tv-v5303-logo-bottom {
    margin-top:clamp(9px,1.5vh,15px) !important;
    gap: 7px;
  }
  html body #tv-v524-finale .tv-v5303-logo-bottom .tv-v524-final-logo-frame {
    width:clamp(84px,22vw,110px) !important;
  }
}
/* Teléfonos bajitos y orientación apaisada: no esconder el logo. */
@media (max-height:680px) {
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-scene {
    height:min(calc(var(--tv-screen,100svh) * .42),276px) !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-tree {
    width:min(48%,calc(var(--tv-screen,100svh) * .325),235px) !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting {
    font-size:clamp(38px, min(8vw,8vh),60px) !important;
  }
  html body #tv-v524-finale .tv-v5303-logo-bottom {
    margin-top:6px !important;
  }
  html body #tv-v524-finale .tv-v5303-logo-bottom .tv-v524-final-logo-frame {
    width:min(15vh,96px) !important;
  }
}
@media (max-height:480px) and (orientation:landscape) {
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-scene {
    height:32vh !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-tree {
    width:min(30%, 23vh, 140px) !important;
  }
  html body #tv-v524-finale .tv-v5303-logo-bottom .tv-v524-final-logo-frame {
    width:55px !important;
  }
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting {font-size:34px !important}
  html body #tv-v524-finale.tv-tree-presentation .tv-v524-final-greeting em {display:inline !important}
}
@media (prefers-reduced-motion:reduce) {
  #tv-xmas-intro-v516 .tv5303-led-light,
  #tv-v524-finale .tv5303-led-light,
  #tv-xmas-intro-v516 .tv5303-tree-star *,
  #tv-v524-finale .tv5303-tree-star *,
  html body header.topbar .tv5302-top-light,
  html body header.topbar .tv5302-mobile-light {animation:none !important;opacity:.54 !important}
}
