/* ===== Temporada (Navidad / Año Nuevo) · catalogo.hosted.cl ===== */
:root { --tp-gold: #d9b45a; }

/* Gorro sobre la marca del encabezado */
.top .brand { position: relative; }
.top .tp-gorro { position: absolute; width: 30px; left: -13px; top: -17px; transform: rotate(-24deg); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.tp-anio .top .tp-gorro { width: 26px; left: -10px; top: -20px; transform: rotate(-20deg); }

/* Hero: saludo, adorno colgante, esquina y nieve / fuegos */
.hero .tp-saludo { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 0 0 18px; padding: 8px 20px 8px 10px; border-radius: 999px;
  background: rgba(8, 12, 6, .5); border: 1px solid rgba(217, 180, 90, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .tp-saludo img { width: 30px; transform: rotate(-14deg); }
.hero .tp-saludo span { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.08rem; color: #fff; }
.hero .tp-saludo b { font-style: normal; color: var(--tp-gold); }
.hero .tp-colgante { position: absolute; z-index: 3; right: 7vw; top: 56px; width: min(15vw, 180px); pointer-events: none; transform-origin: top center;
  animation: tp-vaiven 6s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); }
.hero .tp-esq { position: absolute; z-index: 3; right: -12px; bottom: -14px; width: min(24vw, 290px); pointer-events: none; transform: rotate(180deg); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
.tp-anio .hero .tp-esq { transform: none; right: 3vw; bottom: 0; width: min(15vw, 190px); }
.hero .tp-cielo { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
@keyframes tp-vaiven { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* Tarjetas de producto: ramita (o estrellas) en la esquina de la foto */
.card .im::after { content: ''; position: absolute; top: -2px; right: -2px; width: 62px; height: 62px; pointer-events: none;
  background: url(esquina.webp) no-repeat right top / contain; transform: scaleX(-1); opacity: .95; }
.tp-anio .card .im::after { background-image: url(esquina-dorada.webp); transform: none; width: 58px; height: 58px; }

/* Cinta flotante */
.tp-cinta { position: fixed; left: 16px; bottom: 86px; z-index: 95; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 9px; border-radius: 14px;
  background: linear-gradient(135deg, #8e0f19, #c8202d); color: #fff; box-shadow: 0 10px 28px rgba(140, 15, 25, .35); font-size: .78rem; font-weight: 800; transition: opacity .5s, transform .5s; }
.tp-anio .tp-cinta { background: linear-gradient(135deg, #1a1d22, #3a3326); border: 1px solid rgba(217, 180, 90, .6); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.tp-cinta img { width: 28px; }
.tp-cinta small { display: block; font-weight: 600; opacity: .85; font-size: .68rem; }
.tp-cinta button { margin-left: 4px; background: none; border: 0; color: #fff; opacity: .7; font-size: 1rem; }
.tp-cinta.fuera { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* Selector de muestra (solo en la vista previa) */
.tp-muestra { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 96; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(8, 12, 16, .85); font-size: .74rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.tp-muestra a { color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.tp-muestra a.on { background: #b3121f; }

@media (max-width: 760px) {
  .top .tp-gorro { width: 24px; left: -10px; top: -14px; }
  .hero .tp-colgante { display: none; }
  .hero .tp-esq { width: 36vw; }
  .tp-anio .hero .tp-esq { width: 24vw; }
  .hero .tp-saludo span { font-size: .95rem; }
  .card .im::after { width: 46px; height: 46px; }
  .tp-muestra { bottom: auto; top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .hero .tp-colgante { animation: none; } .hero .tp-cielo { display: none; } }

/* Ficha de producto: adornos colgando del borde del cuadro de la foto (fuera del recorte de .main) */
.pgal { position: relative; --tp-alto: min(520px, 60vh); }
.pgal::before, .pgal::after { content: ''; position: absolute; pointer-events: none; z-index: 3; background-repeat: no-repeat; background-size: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.pgal::after { top: -34px; right: -34px; width: 170px; height: 170px; background-image: url(esquina.webp); background-position: right top; transform: scaleX(-1); }
.pgal::before { top: calc(var(--tp-alto) - 96px); left: -16px; width: 124px; height: 124px; background-image: url(esquina.webp); background-position: left bottom; transform: scaleY(-1); }
.tp-anio .pgal::after { background-image: url(esquina-dorada.webp); transform: none; top: -30px; right: -26px; width: 160px; height: 160px; }
.tp-anio .pgal::before { background-image: url(copas.webp); transform: none; width: 96px; height: 140px; top: calc(var(--tp-alto) - 118px); left: -14px; }
.pinfo .tp-etq { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: linear-gradient(135deg, #8e0f19, #c8202d); color: #fff; font-size: .74rem; font-weight: 800; }
.pinfo .tp-etq img { width: 24px; transform: rotate(-12deg); }
.tp-anio .pinfo .tp-etq { background: linear-gradient(135deg, #1a1d22, #3a3326); border: 1px solid rgba(217, 180, 90, .6); color: #f3e2b5; }
@media (max-width: 760px) {
}
@media (max-width: 640px) {
  .pgal { --tp-alto: min(380px, 46vh); }
  .pgal::after { width: 104px; height: 104px; top: -18px; right: -12px; }
  .pgal::before { width: 78px; height: 78px; top: calc(var(--tp-alto) - 60px); left: -12px; }
  .tp-anio .pgal::after { width: 96px; height: 96px; top: -18px; right: -10px; }
  .tp-anio .pgal::before { width: 60px; height: 88px; top: calc(var(--tp-alto) - 74px); left: -14px; }
}
/* En celulares chicos el catálogo oculta «HOSTED MERCH»: el gorro pasa al logo */
.top .tp-gorro-logo { display: none; }
@media (max-width: 430px) {
  .top { position: fixed; }
  .top .tp-gorro-logo { display: block; position: absolute; width: 22px; left: 10px; top: 4px; transform: rotate(-24deg); pointer-events: none; z-index: 2; }
}
