/* Tía Vicenta 5304 — Bienvenida breve, portal orgánico, contraste y carrito sólido. */

/* Bienvenida real: logo + dos palabras, sin árbol ni mensajes accesorios.
   El desenfoque es sutil y ocurre en capas grandes, nunca en celdas/píxeles. */
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet {
  background: radial-gradient(ellipse 50% 56% at 50% 40%,#24443a 0%,#102820 46%,#071b1b 100%)!important;
  transition: opacity .56s cubic-bezier(.2,.6,.3,1),visibility .56s!important;
  cursor:pointer;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet::before {
  inset:18px!important;
  border-radius:24px!important;
  border:1px solid rgba(227,198,139,.16)!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet::after { display:none!important; }
#tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-v5304-mist {
  position:absolute;
  inset:-20%;
  pointer-events:none;
  background:radial-gradient(ellipse 28% 26% at 50% 48%,rgba(241,193,115,.12),transparent 74%);
  filter:blur(25px);
  opacity:.65;
  animation:tv-v5304-ambient 3.7s ease-in-out infinite alternate;
}
@keyframes tv-v5304-ambient {to{opacity:.9;transform:scale(1.09)}}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-scroll {
  position:relative!important;inset:auto!important;
  width:100%!important;height:100%!important;overflow:hidden!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-track {
  height:100%!important;min-height:0!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-stage {
  height:100%!important;min-height:0!important;position:relative!important;
  display:grid!important;place-items:center!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-intro-content {
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;grid-template-columns:none!important;
  grid-template-rows:none!important;min-height:0!important;
  height:auto!important;width:min(92%,620px)!important;
  margin:0 auto!important;padding:20px 12px!important;gap:0!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-brand {
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:clamp(10px,2vh,19px)!important;
  margin:0!important;text-align:center!important;
  opacity:0;transform:translate3d(0,13px,0) scale(.985);
  transition:opacity .78s ease,transform 1.04s cubic-bezier(.16,.8,.24,1)!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet.tv-in-running .tv-in-brand {
  opacity:1!important;transform:translate3d(0,0,0) scale(1)!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-logo-frame {
  grid-area:auto!important;
  width:clamp(126px,17vw,178px)!important;
  height:auto!important;aspect-ratio:1!important;
  animation:none!important;filter:drop-shadow(0 12px 25px rgba(0,0,0,.32))!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-logo-shut {display:none!important}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-title {
  grid-area:auto!important;text-align:center!important;
  font:400 clamp(45px,6.6vw,77px)/1.04 Georgia,'Times New Roman',serif!important;
  letter-spacing:-.04em!important;color:#fff9ed!important;
  text-shadow:0 4px 28px rgba(0,0,0,.25)!important;
}
html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-title em {
  display:block!important;font-style:italic!important;color:#f6d6a0!important;
}
@media(max-width:650px){
  html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-logo-frame {
    width:clamp(122px,32vw,162px)!important;
  }
  html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-title {
    font-size:clamp(45px,12vw,66px)!important;
  }
}
@media(max-height:480px) and (orientation:landscape) {
  html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-brand {
    flex-direction:row!important;gap:clamp(16px,4vw,32px)!important;
  }
  html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-logo-frame {width:clamp(84px,23vh,130px)!important}
  html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-title {font-size:clamp(34px,6vw,54px)!important}
}

/* Eliminar por completo el antiguo efecto pixel art del cierre.
   Transición suave tipo aurora difusa, sin bloques cuadrados. */
html body #tv-v524-finale .tv-v5288-pixel-veil {display:none!important}
html body #tv-v524-finale .tv-v524-final-scene::before {
  content:"";
  position:absolute;z-index:0;
  width:min(70%,440px);aspect-ratio:1.4;
  left:50%;top:50%;transform:translate(-50%,-50%);
  border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse,rgba(242,198,123,.13),rgba(205,172,109,.07) 33%,transparent 70%);
  filter:blur(17px);animation:tv-v5304-tree-aura 9s ease-in-out infinite alternate;
}
@keyframes tv-v5304-tree-aura {to{opacity:.75;filter:blur(24px);transform:translate(-50%,-49%) scale(1.08)}}
html body #tv-v524-finale .tv-v524-final-tree {z-index:1!important}

/* Letras realmente contrastadas en los dos temas.
   El día usa verde bosque, la noche marfil iluminado. */
html[data-theme="light"] body #tv-v524-finale .tv-v524-final-message,
html[data-theme="light"] body #tv-v524-finale.tv-tree-presentation .tv-v524-final-message {
  color:#365044!important;
  -webkit-text-fill-color:#365044!important;
  text-shadow:none!important;
  opacity:1;
  font-weight:600!important;
}
html[data-theme="dark"] body #tv-v524-finale .tv-v524-final-message,
html[data-theme="dark"] body #tv-v524-finale.tv-tree-presentation .tv-v524-final-message {
  color:#f7e9cf!important;
  -webkit-text-fill-color:#f7e9cf!important;
  text-shadow:0 1px 7px rgba(0,0,0,.16)!important;
  font-weight:500!important;
}
html body #tv-v524-finale .tv-v524-final-message {
  font-size:clamp(13px,1.15vw,16px)!important;
  line-height:1.5!important;
  letter-spacing:.006em!important;
  max-width:90%!important;
  text-wrap:balance;
}
@media(max-width:650px){
  html body #tv-v524-finale .tv-v524-final-message {font-size:clamp(12px,3vw,14px)!important}
}

/* Carrito desktop: una sola columna de resumen y CTA, sin celdas superpuestas.
   Los productos permanecen en el área desplazable (no debajo del footer). */
html body #cartDrawer.drawer {
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
}
html body #cartDrawer .drawer-body {
  min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;
}
html body #cartDrawer .drawer-foot {
  position:relative!important;
  flex:0 0 auto!important;z-index:4!important;
  display:flex!important;flex-direction:column!important;
  gap:8px!important;
  min-width:0!important;max-height:min(36dvh,264px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom))!important;
  background:var(--surface,#fffaf3)!important;
  border-top:1px solid var(--line,rgba(0,0,0,.12))!important;
  box-shadow:0 -8px 22px rgba(42,27,15,.08)!important;
}
html body #cartDrawer .drawer-foot > .shipping-box {
  display:block!important;order:1!important;width:100%!important;
  min-height:36px!important;max-width:100%!important;
  padding:10px 12px!important;
  white-space:normal!important;overflow-wrap:break-word!important;
  text-align:left!important;
}
html body #cartDrawer .drawer-foot > .total-row:not(.total) {display:none!important}
html body #cartDrawer .drawer-foot > .tv482-total-submit-row {
  flex:0 0 auto!important;order:2!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;min-width:0!important;
  min-height:58px!important;
  padding:9px 12px!important;margin:0!important;
  background:var(--card,#fffdfa)!important;
  border-radius:15px!important;
}
html body #cartDrawer .drawer-foot .tv482-total-block {min-width:0!important;max-width:100%!important}
html body #cartDrawer .drawer-foot .tv482-total-block #cartTotal {
  font-size:clamp(21px,2.3vw,25px)!important;
  max-width:100%!important;
}
html body #cartDrawer .drawer-foot > #continueBtn {
  position:relative!important;inset:auto!important;
  flex:0 0 auto!important;order:3!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:56px!important;margin:0!important;
  padding:10px 17px!important;
  border-radius:15px!important;
  box-shadow:0 5px 17px rgba(208,109,10,.2)!important;
}
html body #cartDrawer .drawer-foot > #continueBtn > span {
  font-size:clamp(17px,2vw,19px)!important;
  line-height:1.1!important;
}
html body #cartDrawer .drawer-foot > #whatsappOrderStatusV477 {order:4!important;width:100%!important}
html body #cartDrawer .drawer-foot #whatsappOrderSubmitV477.is-visible {max-width:60%!important;min-width:0!important}
@media(max-width:760px) {
  html body #cartDrawer .drawer-foot {max-height:37dvh!important;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important}
  html body #cartDrawer .drawer-foot > .shipping-box {display:none!important}
  html body #cartDrawer .drawer-foot > .tv482-total-submit-row {min-height:53px!important}
  html body #cartDrawer .drawer-foot > #continueBtn {min-height:52px!important}
}
@media(max-height:570px) {
  html body #cartDrawer .drawer-foot {max-height:46dvh!important;gap:5px!important;padding-top:7px!important;padding-bottom:7px!important}
  html body #cartDrawer .drawer-foot > .shipping-box {display:none!important}
}
@media(prefers-reduced-motion:reduce) {
  #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-v5304-mist,
  html body #tv-v524-finale .tv-v524-final-scene::before {animation:none!important}
  html body #tv-xmas-intro-v516.tv-v5304-intro-quiet .tv-in-brand {opacity:1!important;transform:none!important;transition:none!important}
}


/* 5305 — sin recortes en PC, luces visibles y Android más fluido */
html body header.topbar,
html body header.topbar .topbar-inner,
html body .app,
html body main {
  overflow: visible !important;
}
html body header.topbar .topbar-inner {
  isolation: isolate !important;
}
@media (min-width:761px) {
  html body header.topbar .topbar-inner {
    padding: 12px 16px 16px !important;
    gap: 10px clamp(14px, 2vw, 24px) !important;
  }
  html body header.topbar .tv-v5293-garland {
    width: min(100%, 1280px) !important;
    max-width: calc(100% - 8px) !important;
    min-height: clamp(160px, 18vw, 250px) !important;
    aspect-ratio: 4.35 / 1 !important;
    margin: -2px auto -8px !important;
    filter: drop-shadow(0 10px 18px rgba(43, 20, 8, .08));
  }
  html body header.topbar .tv-v5293-garland video,
  html body header.topbar .tv-v5293-garland .tv5293-poster {
    object-fit: contain !important;
    object-position: center top !important;
    margin: 0 !important;
  }
}
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 {
  opacity: .22;
  background: radial-gradient(circle at 45% 37%, #fffdf3 0 14%, var(--tv5302-color, #ffe1a7) 42%, transparent 77%) !important;
  box-shadow:
    0 0 4px 1px rgba(255, 249, 233, .95),
    0 0 14px 4px color-mix(in srgb, var(--tv5302-color,#ffe0a6) 78%, transparent),
    0 0 30px 10px color-mix(in srgb, var(--tv5302-color,#ffe0a6) 34%, transparent) !important;
}
html body header.topbar .tv5302-top-star {
  opacity: .86;
  filter: drop-shadow(0 0 10px rgba(255, 228, 152, .55)) drop-shadow(0 0 22px rgba(245, 188, 95, .34));
}
html body header.topbar .tv5302-top-star::after {
  opacity: .95;
  filter: drop-shadow(0 0 4px #fff2c3) drop-shadow(0 0 11px rgba(255, 236, 184, .7));
}
html body #tv-v524-finale .tv5303-led-light {
  opacity: .9 !important;
  filter: drop-shadow(0 0 3px rgba(255, 248, 230, .82)) drop-shadow(0 0 12px rgba(252, 198, 108, .35));
}
html body #tv-v524-finale .tv5303-tree-star {
  filter: drop-shadow(0 0 12px rgba(255, 238, 188, .72)) drop-shadow(0 0 28px rgba(244, 187, 95, .40));
}
html body #tv-v524-finale .tv5303-star-aura {
  opacity: .92 !important;
}
html body #tv-v524-finale .tv5303-star-small {
  opacity: .88 !important;
}
@media (max-width:760px) {
  html body header.topbar .tv5299-mobile-banner,
  html body header.topbar .tv5299-mobile-banner * {
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
  html body header.topbar .tv5299-mobile-banner picture,
  html body header.topbar .tv5299-mobile-banner picture > img {
    transform: translateZ(0) !important;
    will-change: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
  }
  html body header.topbar .tv5299-mobile-banner .tv5299-bulb.tv5302-mobile-light {
    width: clamp(4px, 1.25vw, 7px) !important;
    height: clamp(4px, 1.25vw, 7px) !important;
    animation-name: tv5305-mobile-glow !important;
    animation-duration: var(--tv5302-time, 4.8s) !important;
    animation-timing-function: ease-in-out !important;
    will-change: opacity !important;
  }
  html body header.topbar .tv5299-mobile-banner.tv5305-android .tv5299-bulb.tv5302-mobile-light {
    box-shadow:
      0 0 3px 1px rgba(255, 249, 233, .9),
      0 0 10px 3px color-mix(in srgb, var(--tv5302-color,#ffe0a6) 68%, transparent),
      0 0 20px 7px color-mix(in srgb, var(--tv5302-color,#ffe0a6) 24%, transparent) !important;
  }
  html body header.topbar .tv5299-mobile-banner .tv5302-top-star,
  html body header.topbar .tv5299-mobile-banner .tv5302-top-star::after {
    animation-duration: 7.2s !important;
    will-change: opacity, transform !important;
  }
}
@keyframes tv5305-mobile-glow {
  0%, 12%, 100% { opacity: .14; }
  24%, 36% { opacity: 1; }
  46%, 58% { opacity: .22; }
  70%, 84% { opacity: .78; }
}
