/* ==========================================================================
   AMEXCO · Portada de Navidad
   Solo se carga en la portada mientras la temporada está activa.
   Paleta: índigo de marca como cielo nocturno, rojo de marca, dorado y blanco nieve.
   ========================================================================== */
:root {
  --xmas-gold: #F4C24F;
  --xmas-gold-ink: #8A5B00;
  --xmas-gold-soft: #FFF4DA;
  --xmas-pine: #1E7A4C;
  --xmas-pine-soft: #E5F4EB;
  --xmas-night: #12042F;
}

/* ---------- Guirnalda de luces bajo el menú ---------- */
.xmas-lights {
  position: relative; z-index: 2; display: flex; justify-content: center; height: 30px; margin-bottom: -14px;
  overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 50% -26px, transparent 33px, rgba(29, 7, 82, .5) 33.5px, rgba(29, 7, 82, .5) 35px, transparent 35.5px) center top / 48px 30px repeat-x;
}
.xmas-lights span { position: relative; flex: none; width: 48px; height: 30px; }
.xmas-lights span::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 6px; height: 4px; margin-left: -3px;
  border-radius: 1px; background: #3A2A66;
}
.xmas-lights span::after {
  content: ""; position: absolute; left: 50%; top: 10px; width: 9px; height: 13px; margin-left: -4.5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--bulb);
  box-shadow: 0 0 6px 1px var(--bulb);
  animation: xmas-twinkle 2.8s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.xmas-lights span:nth-child(4n+1) { --bulb: #FF3B47; --d: 0s; }
.xmas-lights span:nth-child(4n+2) { --bulb: #F4C24F; --d: .7s; }
.xmas-lights span:nth-child(4n+3) { --bulb: #34C77B; --d: 1.4s; }
.xmas-lights span:nth-child(4n+4) { --bulb: #A99BFF; --d: 2.1s; }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Encabezado navideño ---------- */
.xmas { margin-top: 20px; }
.xmas-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px 40px;
  min-height: 400px; padding: 48px 56px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(122, 78, 255, .45) 0%, transparent 60%),
    radial-gradient(55% 80% at 0% 100%, rgba(227, 6, 19, .35) 0%, transparent 62%),
    linear-gradient(140deg, var(--xmas-night) 0%, var(--amx-indigo) 52%, var(--amx-indigo-deep) 100%);
}
.xmas-hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 130px;
  background: radial-gradient(70% 100% at 50% 100%, rgba(255, 255, 255, .13), transparent 72%);
}

/* Nieve: dos capas de copos que caen despacio (sin JavaScript). */
/* Menos nieve sobre el texto para que se lea bien. */
.xmas-snow {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .45) 38%, #000 62%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .45) 38%, #000 62%);
}
.xmas-snow::before, .xmas-snow::after { content: ""; position: absolute; left: 0; right: 0; will-change: transform; }
.xmas-snow::before {
  top: -300px; height: calc(100% + 300px); background-size: 300px 300px;
  background-image:
    radial-gradient(circle at 20px 40px, rgba(255, 255, 255, .9) 0 1.6px, transparent 2.3px),
    radial-gradient(circle at 120px 12px, rgba(255, 255, 255, .7) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 210px 70px, rgba(255, 255, 255, .85) 0 2px, transparent 2.7px),
    radial-gradient(circle at 62px 150px, rgba(255, 255, 255, .7) 0 1.4px, transparent 2.1px),
    radial-gradient(circle at 262px 188px, rgba(255, 255, 255, .8) 0 1.8px, transparent 2.5px),
    radial-gradient(circle at 150px 238px, rgba(255, 255, 255, .65) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 32px 272px, rgba(255, 255, 255, .85) 0 2px, transparent 2.7px),
    radial-gradient(circle at 190px 130px, rgba(255, 255, 255, .6) 0 1.3px, transparent 2px);
  animation: xmas-fall-a 18s linear infinite;
}
.xmas-snow::after {
  top: -180px; height: calc(100% + 180px); background-size: 180px 180px; opacity: .55;
  background-image:
    radial-gradient(circle at 40px 30px, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 130px 90px, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 80px 150px, #fff 0 .9px, transparent 1.5px),
    radial-gradient(circle at 160px 20px, #fff 0 1px, transparent 1.6px);
  animation: xmas-fall-b 11s linear infinite;
}
@keyframes xmas-fall-a { to { transform: translate3d(0, 300px, 0); } }
@keyframes xmas-fall-b { to { transform: translate3d(0, 180px, 0); } }

.xmas-spark { position: absolute; z-index: -1; color: var(--xmas-gold); animation: xmas-twinkle 3.6s ease-in-out infinite; }
.xmas-spark .ico { width: 100%; height: 100%; }
.xmas-spark--1 { top: 26px; left: 47%; width: 22px; height: 22px; }
.xmas-spark--2 { bottom: 40px; left: 41%; width: 15px; height: 15px; animation-delay: 1.2s; }
.xmas-spark--3 { top: 26px; right: 30px; width: 46px; height: 46px; color: #fff; opacity: .2; animation: none; }

.xmas-hero__copy { position: relative; }
.xmas-hero__tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid rgba(244, 194, 79, .45); background: rgba(244, 194, 79, .12); color: var(--xmas-gold);
  font: 700 13px/1 var(--font-title); letter-spacing: .06em; text-transform: uppercase;
}
.xmas-hero__tag .ico { width: 15px; height: 15px; fill: currentColor; }
.xmas-hero__title { margin: 18px 0 14px; font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.xmas-hero__accent {
  display: inline-block; padding-bottom: .12em; color: var(--xmas-gold); white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14c62-9 132-12 292-6' stroke='%23F4C24F' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .3em no-repeat;
}
.xmas-hero__text { max-width: 450px; font-size: 16.5px; line-height: 1.55; }
.xmas-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.xmas-hero__actions .btn .ico { width: 18px; height: 18px; }
.xmas-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.xmas-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.xmas-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.xmas-hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.xmas-hero__facts .ico { flex: none; width: 17px; height: 17px; color: var(--xmas-gold); }
.xmas-hero__facts .xmas-hero__notice { flex-basis: 100%; color: #fff; font-weight: 600; }

/* Etiquetas de regalo (productos reales) colgando de una cinta dorada. */
.xmas-hero__gifts { --pad: 40px; position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 16px; margin: 0; padding: var(--pad) 0 6px; list-style: none; }
.xmas-hero__gifts::before {
  content: ""; position: absolute; top: 2px; left: 2%; right: 2%; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M2 3c66 22 330 22 396 0' stroke='%23F4C24F' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
/* --hang: altura de la cinta sobre cada etiqueta; --drop: cuánto más abajo cuelga la etiqueta. */
.xmas-hero__gifts li { --drop: 0px; --hang: 18px; flex: 0 0 auto; margin-top: var(--drop); }
.xmas-hero__gifts li:nth-child(1) { --drop: 14px; --hang: 13px; --tilt: -6deg; }
.xmas-hero__gifts li:nth-child(2) { --drop: 0px; --hang: 21px; --tilt: 3deg; }
.xmas-hero__gifts li:nth-child(3) { --drop: 22px; --hang: 13px; --tilt: -2.5deg; }
.xmas-tag {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: clamp(140px, 12.5vw, 176px); padding: 28px 14px 16px; border-radius: 18px;
  background: #fff; color: var(--ink); text-align: center;
  box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .7);
  transform: rotate(var(--tilt, 0deg)); transform-origin: 50% calc(var(--hang, 18px) - var(--pad, 40px) - var(--drop, 0px)); transition: transform .5s var(--ease), box-shadow .3s var(--ease);
}
/* Hilo hasta la cinta: más largo en las etiquetas que cuelgan más abajo. */
.xmas-tag::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--hang, 18px) - var(--pad, 40px) - var(--drop, 0px)); width: 1.5px;
  height: calc(var(--pad, 40px) + 12px + var(--drop, 0px) - var(--hang, 18px)); margin-left: -.75px;
  background: var(--xmas-gold);
}
.xmas-tag__hole { position: absolute; top: 10px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--xmas-night); box-shadow: inset 0 0 0 2px var(--xmas-gold); }
.xmas-tag:hover, .xmas-tag:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 34px 50px -24px rgba(0, 0, 0, .75); }
.xmas-tag img { width: 112px; height: 112px; object-fit: contain; }
.xmas-tag__label { font: 700 11px/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--amx-red); }
.xmas-tag strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; font: 600 13.5px/1.3 var(--font-title); color: var(--ink); }
.xmas-tag .price { justify-content: center; font-size: 15px; }
.xmas-tag .price del { font-size: 12px; flex-basis: 100%; text-align: center; }

/* ---------- Regalos por persona y ofertas (bloques de la portada) ---------- */
.amx-navidad .needs .need__icon { background: var(--amx-red-soft); color: var(--amx-red); }
.amx-navidad .needs li:nth-child(2) .need__icon { background: var(--xmas-gold-soft); color: var(--xmas-gold-ink); }
.amx-navidad .needs li:nth-child(3) .need__icon { background: var(--xmas-pine-soft); color: var(--xmas-pine); }
.amx-navidad .needs li:nth-child(4) .need__icon { background: var(--amx-indigo-soft); color: var(--amx-indigo); }

/* ---------- Ideas de regalo por presupuesto ---------- */
.xmas-budget { margin-top: 40px; }
.xmas-budget .sec-head { margin-bottom: 16px; }
.xmas-budget__lead { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.xmas-budget__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.xmas-budget__grid li { display: flex; }
.xmas-budget__card {
  --band: var(--amx-red); --band-soft: var(--amx-red-soft);
  position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 24px 22px 20px; border-radius: var(--r-xl); background: #fff; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
/* Cinta de regalo: una franja vertical y otra horizontal muy suaves. */
.xmas-budget__card::before, .xmas-budget__card::after { content: ""; position: absolute; z-index: -1; background: var(--band-soft); }
.xmas-budget__card::before { top: 0; bottom: 0; right: 42px; width: 16px; }
.xmas-budget__card::after { left: 0; right: 0; top: 42px; height: 16px; }
.xmas-budget__card--2 { --band: var(--xmas-gold-ink); --band-soft: var(--xmas-gold-soft); }
.xmas-budget__card--3 { --band: var(--xmas-pine); --band-soft: var(--xmas-pine-soft); }
.xmas-budget__card--4 { --band: var(--amx-indigo); --band-soft: var(--amx-indigo-soft); }
.xmas-budget__card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.xmas-budget__bow { position: absolute; top: 31px; right: 31px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--band); box-shadow: 0 0 0 3px var(--band-soft); }
.xmas-budget__bow .ico { width: 20px; height: 20px; }
.xmas-budget__price { margin-top: 30px; font: 800 clamp(21px, 2vw, 27px)/1.1 var(--font-title); letter-spacing: -.01em; color: var(--ink); }
.xmas-budget__count { font-size: 14px; color: var(--muted); }
.xmas-budget__thumbs { display: flex; margin: 8px 0 4px; }
.xmas-budget__thumbs img { width: 62px; height: 62px; margin-left: -12px; border-radius: 50%; border: 3px solid #fff; background: #fff; box-shadow: 0 0 0 1px var(--line); object-fit: contain; }
.xmas-budget__thumbs img:first-child { margin-left: 0; }
.xmas-budget__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font: 600 14.5px/1 var(--font-title); color: var(--band); }
.xmas-budget__card:hover .xmas-budget__cta .ico { transform: translateX(3px); }
.xmas-budget__cta .ico { transition: transform .25s var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .xmas-hero { grid-template-columns: minmax(0, 1fr); padding: 40px 40px 34px; }
  .xmas-hero__gifts { --pad: 36px; }
  .xmas-spark--1 { left: auto; right: 22%; }
  .xmas-spark--2 { display: none; }
}
@media (max-width: 1024px) {
  .xmas-budget__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xmas-lights { height: 26px; margin-bottom: -10px; }
  .xmas { margin-top: 14px; }
  .xmas-hero { gap: 6px; min-height: 0; padding: 30px 20px 22px; border-radius: var(--r-lg); }
  .xmas-hero__title { font-size: 36px; }
  .xmas-hero__text { font-size: 15px; }
  .xmas-hero__actions { margin-top: 20px; }
  .xmas-hero__actions .btn { flex: 1 1 auto; }
  .xmas-hero__facts { gap: 8px 14px; font-size: 13px; }
  .xmas-spark--3 { width: 34px; height: 34px; top: 18px; right: 18px; }
  .xmas-hero__gifts { --pad: 32px; gap: 8px; }
  .xmas-hero__gifts li:nth-child(1) { --drop: 10px; --tilt: -4deg; }
  .xmas-hero__gifts li:nth-child(2) { --tilt: 2deg; }
  .xmas-hero__gifts li:nth-child(3) { --drop: 16px; --tilt: -2deg; }
  .xmas-tag { width: calc((100vw - 2 * var(--gutter) - 40px - 16px) / 3); padding: 22px 8px 12px; border-radius: 14px; gap: 4px; }
  .xmas-tag img { width: 66px; height: 66px; }
  .xmas-tag__label { font-size: 9.5px; letter-spacing: .05em; }
  .xmas-tag strong { font-size: 12px; }
  .xmas-tag .price { font-size: 13px; }
  .xmas-tag .price del { display: none; }
  .xmas-budget { margin-top: 32px; }
  .xmas-budget__grid { gap: 10px; }
  .xmas-budget__card { padding: 18px 14px 16px; border-radius: var(--r-lg); }
  .xmas-budget__card::before { right: 30px; width: 12px; }
  .xmas-budget__card::after { top: 32px; height: 12px; }
  .xmas-budget__bow { top: 22px; right: 20px; width: 32px; height: 32px; }
  .xmas-budget__bow .ico { width: 17px; height: 17px; }
  .xmas-budget__price { margin-top: 44px; font-size: 19px; }
  .xmas-budget__count { font-size: 12.5px; }
  .xmas-budget__thumbs img { width: 44px; height: 44px; margin-left: -10px; border-width: 2px; }
  .xmas-budget__cta { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-snow::before, .xmas-snow::after, .xmas-lights span::after, .xmas-spark { animation: none !important; }
}
