/* NAVIDAD20 (01/12/2026): regalo flotante y su ventana. Sólo se carga con la promoción vigente y activada. */
.gift-fab { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: flex-start; }
.gift-fab[hidden] { display: none; }
/* Botón: el medallón fotorrealista del regalo (72 px; 60 px en celular) y al lado la etiqueta «¡Abrí tu regalo!», que a los
   6 s se esconde (queda sólo el medallón, que tapa poco) y vuelve al pasar el mouse o con el teclado. */
.gift-open { position: relative; display: flex; align-items: center; gap: 0; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font: 700 14px/1 var(--font); }
.gift-open:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 999px; }
.gift-box { position: relative; z-index: 1; flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: url("/assets/img/temporada/v3/regalo-medallon-144.webp") no-repeat center / contain; filter: drop-shadow(0 8px 14px rgba(8, 15, 25, .45)); transition: transform .3s var(--ease); }
.gift-open:hover .gift-box { transform: scale(1.05); }
.gift-lid { display: none; }
/* resplandor dorado muy lento detrás del medallón (sólo opacidad) */
.gift-open::before { content: ""; position: absolute; left: -8px; top: -8px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 205, 110, .55), transparent); opacity: 0; }
.gift-txt { margin-left: -14px; padding: 9px 14px 9px 22px; border-radius: 0 999px 999px 0; white-space: nowrap; max-width: 12em; overflow: hidden;
  background: linear-gradient(180deg, #b3141d, #7a0b12); box-shadow: 0 10px 22px -10px rgba(122, 11, 18, .8), inset 0 0 0 1.5px rgba(229, 185, 85, .75);
  transition: max-width .35s var(--ease), opacity .25s ease, padding .35s var(--ease); }
.gift-fab.compact .gift-open:not(:hover):not(:focus-visible) .gift-txt { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
/* apertura: el medallón se inclina y crece apenas, con unas chispas doradas (≈0,45 s; después se abre la ventana) */
.gift-open::after { content: ""; position: absolute; left: 6px; top: -10px; width: 60px; height: 60px; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #ffe9a8 0 1.6px, transparent 2.2px) 0 0 / 11px 11px, radial-gradient(circle, #fff 0 1px, transparent 1.6px) 5px 6px / 13px 13px; border-radius: 50%; }
.gift-fab.opening .gift-box { transform: scale(1.12) rotate(-8deg); }
.gift-fab.opening .gift-open::after { animation: giftSpark .5s ease-out; }
@keyframes giftSpark { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) translateY(-6px); } }
.gift-hide { position: relative; z-index: 2; margin-left: -10px; margin-top: -4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: no-preference) {
  .gift-open::before { animation: giftGlow 5s ease-in-out infinite alternate; }
  .gift-open .gift-box { animation: giftNudge 9s ease-in-out 4s infinite; }
}
@keyframes giftGlow { to { opacity: 1; } }
@keyframes giftNudge { 0%, 92%, 100% { transform: none; } 94% { transform: rotate(-5deg); } 96.5% { transform: rotate(4deg); } 98.5% { transform: rotate(-2deg); } }
@media (max-width: 760px) { .gift-box { width: 60px; height: 60px; } .gift-open::before { width: 76px; height: 76px; } .gift-txt { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); } .gift-fab { left: 10px; bottom: 10px; } }

/* Ventana del regalo (compacta, 01/12/2026): todo visible sin desplazarse desde 1280 × 720; los tamaños se adaptan al alto
   de la pantalla (clamp con vh). En celulares chicos puede desplazarse, pero el cierre y los botones quedan siempre a la vista. */
.gift-modal { width: min(500px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); overflow: auto; overscroll-behavior: contain; padding: clamp(34px, 5.5vh, 46px) 24px 14px; border: 0; border-radius: 18px; text-align: center; color: #fff;
  background: radial-gradient(120% 60% at 50% 0%, rgba(0, 136, 238, .26), transparent 60%), linear-gradient(180deg, #13243a, #080f19);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(232, 193, 90, .35); }
.gift-modal::backdrop { background: rgba(8, 15, 25, .72); }
.gift-modal::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: clamp(34px, 5vh, 44px); background: url("/assets/img/temporada/v3/guirnalda-chica.webp") repeat-x 50% 0 / auto 100%; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .gift-modal[open] { animation: giftIn .42s cubic-bezier(.2, .85, .25, 1.05); }
  .gift-modal[open]::backdrop { animation: giftFade .3s ease-out; }
}
@keyframes giftIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes giftFade { from { opacity: 0; } }
.gift-x { position: absolute; top: clamp(30px, 5vh, 40px); right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.gift-x:hover { background: rgba(255, 255, 255, .24); }
.gift-brand { margin: 0 0 4px; text-align: left; } .gift-brand img { height: clamp(20px, 3vh, 26px); width: auto; }
.gift-modal h2 { margin: 0 0 2px; font: 800 clamp(19px, 2.9vh, 25px)/1.15 var(--display); }
.gift-amount { margin: 0; font: 800 clamp(34px, 6vh, 50px)/1 var(--display); color: #fff; text-shadow: 0 2px 18px rgba(0, 136, 238, .55); }
.gift-plus { display: inline-block; margin: clamp(4px, 1vh, 8px) 0; padding: 4px 14px; border-radius: 8px; background: linear-gradient(180deg, #d32f2f, #b71c1c); font-weight: 800; font-size: clamp(14px, 2.1vh, 18px); }
/* El mousepad Alienware (el beneficio real): completo, centrado, sin recortes, sobre el azul del modal */
.gift-pad { margin: 0 auto; } .gift-pad img { display: block; width: auto; max-width: 100%; height: auto; max-height: clamp(96px, 19vh, 176px); margin: 0 auto; object-fit: contain; }
.gift-cond { margin: clamp(2px, .6vh, 6px) 0 clamp(6px, 1.2vh, 10px); color: #dbe7f5; font-size: clamp(14px, 2vh, 16px); }
.gift-code { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto clamp(4px, 1vh, 8px); padding: clamp(6px, 1vh, 10px) 14px; border: 2px dashed #e8c15a; border-radius: 12px; max-width: 340px; transition: box-shadow .3s ease, border-color .3s ease; }
.gift-code span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #e8c15a; }
.gift-code strong { font: 800 clamp(21px, 3.3vh, 28px)/1 var(--display); letter-spacing: .04em; background: linear-gradient(180deg, #fff, #eef2f7); color: var(--ink); padding: 5px 12px; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(255, 210, 120, .6); }
.gift-code.flash { border-color: #ffd98a; box-shadow: 0 0 0 4px rgba(255, 217, 138, .18), 0 0 26px rgba(255, 196, 92, .35); }
.gift-dates { margin: 0 0 4px; font-size: 12.5px; line-height: 1.35; color: var(--mist); }
.gift-msg { min-height: 1.2em; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: #ffe39a; }
.gift-msg.ok::before { content: "✓ "; color: #7ee2a8; }
.gift-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.gift-actions .btn { min-height: 42px; }
.gift-actions [data-gift-copy].copied { color: #0b2716; background: #ffe39a; border-color: #ffe39a; }
.gift-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.gift-actions .btn-link { color: var(--sky); }
/* Celulares y pantallas bajas: si no entra, se desplaza el contenido; el cierre y los botones quedan fijos a la vista */
@media (max-width: 520px), (max-height: 640px) {
  .gift-modal { padding-left: 16px; padding-right: 16px; padding-bottom: 0; }
  .gift-x { position: sticky; top: 0; display: flex; align-items: center; justify-content: center; margin: -26px -6px -8px auto; }
  .gift-actions { position: sticky; bottom: 0; padding: 10px 0 12px; margin: 0 -16px; background: linear-gradient(180deg, rgba(8, 15, 25, 0), #0a1422 22%); }
  .gift-actions .btn { flex: 1 1 40%; }
  .gift-actions .btn-link { flex-basis: 100%; min-height: 32px; }
}
/* 02/12/2026 (prompt 26): en pantallas ≥1380 px el rincón decorativo de regalos (temporada-navidad.css, .sc-l) ocupa la
   esquina inferior izquierda y el medallón quedaba «perdido» sobre esa foto. El botón sube por encima del rincón
   (misma cuenta de ancho y proporción 400/265) y la etiqueta gana contraste. */
.gift-txt { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
@media (min-width: 1380px) {
  .gift-fab { bottom: calc(clamp(96px, calc((100vw - 1280px) / 2 + 24px), 210px) * 265 / 400 + 14px); }
}
@media (max-width: 760px) { .gift-box { width: 54px; height: 54px; } .gift-open::before { width: 68px; height: 68px; } }
/* Responsive (02/12/2026): la «×» tiene un área de toque de 40 px sin cambiar su dibujo; con el celular acostado el
   regalo es más chico para no tapar los botones de las portadas */
.gift-hide::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
@media (max-height: 500px) and (orientation: landscape) { .gift-box { width: 44px; height: 44px; } .gift-open::before { width: 54px; height: 54px; } .gift-txt { display: none; } }
/* En celulares (y acostados) el regalo va a la derecha y un poco más arriba: abajo a la izquierda tapaba el botón principal
   de las portadas («Ver catálogo», «Descargar la app») y queda por encima de la barra inferior de «Armá tu PC» */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) { .gift-fab { left: auto; right: 8px; bottom: 96px; } .gift-fab .gift-open { flex-direction: row-reverse; } }
