/* v5270 · remate visual ligero: marca despejada y guirnalda fina. */

/* En escritorio, el logo conserva su tamaño y el estado queda fuera de su imagen. */
@media (min-width: 761px) {
  html body header.topbar .brand#brandTap {
    display: grid !important;
    grid-template-columns: 184px max-content !important;
    grid-template-rows: 184px !important;
    align-items: center !important;
    justify-items: start !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    width: max-content !important;
    max-width: 360px !important;
  }

  html body header.topbar .brand#brandTap .brand-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 184px !important;
    height: 184px !important;
    min-width: 184px !important;
    min-height: 184px !important;
  }

  html body header.topbar .brand#brandTap .brand-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: max-content !important;
    grid-template-rows: auto !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: start !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body header.topbar .brand#brandTap .brand-title,
  html body header.topbar .brand#brandTap .brand-tag {
    display: none !important;
  }

  html body header.topbar .brand#brandTap .brand-status-row {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: max-content !important;
    max-width: 132px !important;
    margin: 0 !important;
  }

  html body header.topbar .brand#brandTap #brandStatus.store-status {
    max-width: 132px !important;
    min-height: 22px !important;
    height: 22px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
  }
}

/* En portátiles medianos se libera espacio para el buscador sin achicar de más el logo. */
@media (min-width: 761px) and (max-width: 1080px) {
  html body header.topbar .brand#brandTap {
    grid-template-columns: 140px max-content !important;
    grid-template-rows: 140px !important;
  }
  html body header.topbar .brand#brandTap .brand-logo {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    min-height: 140px !important;
    flex-basis: 140px !important;
  }
}

/* Tablet: logo y estado forman un bloque compacto, sin títulos repetidos. */
@media (min-width: 651px) and (max-width: 760px) {
  html body header.topbar .brand#brandTap {
    display: grid !important;
    grid-template-columns: 156px max-content !important;
    grid-template-rows: 156px !important;
    align-items: center !important;
    column-gap: 8px !important;
    width: max-content !important;
    max-width: 100% !important;
    justify-self: center !important;
  }
  html body header.topbar .brand#brandTap .brand-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 156px !important;
    height: 156px !important;
    min-width: 156px !important;
    min-height: 156px !important;
  }
  html body header.topbar .brand#brandTap .brand-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: max-content !important;
    grid-template-rows: auto !important;
    align-items: center !important;
  }
  html body header.topbar .brand#brandTap .brand-title,
  html body header.topbar .brand#brandTap .brand-tag {
    display: none !important;
  }
  html body header.topbar .brand#brandTap .brand-status-row {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: max-content !important;
    max-width: 132px !important;
    margin: 0 !important;
  }
}

/* En teléfonos queda la marca centrada y el estado debajo, legible. */
@media (max-width: 650px) {
  html body header.topbar .brand#brandTap .brand-title,
  html body header.topbar .brand#brandTap .brand-tag {
    display: none !important;
  }
  html body header.topbar .brand#brandTap .brand-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html body header.topbar .brand#brandTap .brand-status-row {
    display: flex !important;
    justify-content: center !important;
    align-self: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 2px auto 0 !important;
  }
}

/* La guirnalda mantiene los colores navideños, con menos puntos y sin capas animadas. */
html body .category::before {
  height: 8px !important;
  opacity: .82 !important;
  background-image:
    radial-gradient(circle at 8px 4px, #fff8df 0 1px, rgba(174, 127, 60, .84) 1.5px 2.35px, transparent 3.25px),
    radial-gradient(circle at 34px 4px, #f3f8e8 0 1px, rgba(76, 132, 83, .82) 1.5px 2.35px, transparent 3.25px),
    radial-gradient(circle at 60px 4px, #fff1e8 0 1px, rgba(177, 76, 74, .78) 1.5px 2.35px, transparent 3.25px),
    linear-gradient(180deg, transparent 0 2.5px, color-mix(in srgb, var(--tv-v5264-evergreen) 42%, var(--tv-v5264-gold)) 2.5px 3.4px, transparent 3.4px);
  background-size: 78px 8px, 78px 8px, 78px 8px, 100% 8px !important;
  filter: none !important;
}

html[data-theme="dark"] body .category::before { opacity: .78 !important; }
html[data-theme="light"] body .category::before { opacity: .72 !important; }

/* El cierre empieza a revelarse al acercarse a la sección, no en el último instante. */
html body .tv-v524-final-logo,
html body .tv-v524-final-tree,
html body .tv-v524-final-greeting,
html body .tv-v524-final-message {
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html body header.topbar .brand#brandTap .brand-logo,
  html body .tv-v524-final-logo,
  html body .tv-v524-final-tree,
  html body .tv-v524-final-greeting,
  html body .tv-v524-final-message {
    animation: none !important;
    transition: none !important;
  }
}
