/* ═══════════════════════════════════════════════════════════════════════
   SATEC · Ideas para regalar — 15/11/2026
   GUBOS Developer Costa Rica · BCom A.i Xpert

   La página de temporada. Acá sí la Navidad va de frente: portada roja con
   esferas que cuelgan, nieve, cintas doradas y un moño en cada producto.
   Se apoya en navidad.css (sus colores --nv-*), que siempre está cargada
   cuando esta página existe.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ Portada ═══════════════════════════════════════════════════════════ */
.rg-hero {
  position: relative; overflow: hidden; color: #fff; padding: 66px 0 86px; margin-top: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='20' cy='30' r='1.6' opacity='.5'/%3E%3Ccircle cx='140' cy='18' r='1.2' opacity='.45'/%3E%3Ccircle cx='96' cy='96' r='1.8' opacity='.35'/%3E%3Ccircle cx='190' cy='120' r='1.3' opacity='.5'/%3E%3Ccircle cx='46' cy='170' r='1.1' opacity='.45'/%3E%3Ccircle cx='160' cy='196' r='1.6' opacity='.35'/%3E%3C/g%3E%3Cg fill='%23F2C14E' opacity='.55'%3E%3Cpath d='M70 50 l2 6 6 2 -6 2 -2 6 -2 -6 -6 -2 6 -2z'/%3E%3Cpath d='M180 60 l1.5 4.5 4.5 1.5 -4.5 1.5 -1.5 4.5 -1.5 -4.5 -4.5 -1.5 4.5 -1.5z'/%3E%3Cpath d='M120 160 l1.5 4.5 4.5 1.5 -4.5 1.5 -1.5 4.5 -1.5 -4.5 -4.5 -1.5 4.5 -1.5z'/%3E%3C/g%3E%3C/svg%3E") repeat,
    radial-gradient(120% 90% at 85% 10%, #E0243F 0%, transparent 55%),
    linear-gradient(135deg, #7A0B1C 0%, #B3122C 52%, #8E0E22 100%);
}
/* El borde de abajo: nieve acumulada que se funde con la página */
.rg-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='38' preserveAspectRatio='none'%3E%3Cpath d='M0 38 V20 C20 8 40 26 62 16 C84 6 100 22 124 14 C150 5 168 24 192 15 C212 8 228 18 240 14 V38 Z' fill='%23F5F5F7'/%3E%3C/svg%3E") repeat-x bottom / 240px 38px;
}
html[data-tema="oscuro"] .rg-hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='38' preserveAspectRatio='none'%3E%3Cpath d='M0 38 V20 C20 8 40 26 62 16 C84 6 100 22 124 14 C150 5 168 24 192 15 C212 8 228 18 240 14 V38 Z' fill='%23081420'/%3E%3C/svg%3E");
}
.rg-hero-in { position: relative; z-index: 2; max-width: 860px; margin-left: max(16px, calc((100vw - var(--s4-maxw)) / 2 + 24px)); }
.rg-kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.rg-kicker svg { width: 15px; height: 15px; color: #F2C14E; }
.rg-hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.04em; color: #fff; text-wrap: balance; }
.rg-hero h1 span { display: block; color: #F7CF6A; }
.rg-hero p { margin: 0 0 26px; max-width: 620px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .9); }

.rg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rg-chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #7A0B1C; font-weight: 700; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); transition: transform .2s var(--s4-ease), box-shadow .2s var(--s4-ease);
}
.rg-chips a:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .55); }
.rg-chips a svg { width: 17px; height: 17px; color: #1B793D; }

/* ═══ Esferas que cuelgan del borde de arriba ═════════════════════════
   Cada una con su hilo, su tapita dorada y un brillo. Se mecen despacio. */
.rg-esferas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rg-esf { position: absolute; top: 0; width: 2px; transform-origin: top center; animation: rg-mece 4.5s ease-in-out infinite alternate; }
.rg-esf::before { content: ""; position: absolute; left: 0; top: 0; width: 1.5px; height: 100%; background: rgba(255, 255, 255, .55); }
.rg-esf::after {
  content: ""; position: absolute; left: 50%; bottom: 0; border-radius: 50%; transform: translate(-50%, 100%);
  width: var(--d); height: var(--d);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .85) 0 8%, transparent 9%),
    radial-gradient(circle at 35% 35%, var(--c1), var(--c2) 70%);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45), inset 0 -6px 12px rgba(0, 0, 0, .18);
  border-top: 5px solid #E2B23A;
}
.rg-esf.e1 { right: 6%;  height: 70px;  --d: 56px; --c1: #FFE08A; --c2: #C8901A; animation-delay: -1s; }
.rg-esf.e2 { right: 15%; height: 120px; --d: 42px; --c1: #6FE3A0; --c2: #157A41; animation-delay: -2.5s; }
.rg-esf.e3 { right: 24%; height: 46px;  --d: 34px; --c1: #FFFFFF; --c2: #B9C7D6; animation-delay: -.5s; }
.rg-esf.e4 { right: 32%; height: 96px;  --d: 28px; --c1: #FFB3BD; --c2: #D21F3C; animation-delay: -3.2s; }
.rg-esf.e5 { right: 2%;  height: 150px; --d: 30px; --c1: #8CCBFF; --c2: #2F6FB0; animation-delay: -1.8s; }
@keyframes rg-mece { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@media (max-width: 900px) {
  .rg-esf.e3, .rg-esf.e4 { display: none; }
  .rg-esf.e1 { --d: 40px; } .rg-esf.e2 { --d: 32px; height: 90px; }
  .rg-hero { padding: 48px 0 74px; }
}
@media (max-width: 560px) { .rg-esferas { opacity: .55; } }

/* ═══ El filtro de precio ═════════════════════════════════════════════ */
.rg-precio { position: relative; z-index: 3; margin-top: -40px; }
section.rg-precio + section.s4-sec.rg-sec { padding-top: 30px; }
.rg-precio-in {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px;
  background: var(--s4-surface); box-shadow: var(--s4-sh-2); border: 1px solid var(--s4-line);
}
.rg-precio-tit { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--s4-ink); }
.rg-precio-tit svg { width: 19px; height: 19px; color: var(--nv-red); }
.rg-bandas { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-bandas button {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--s4-line-2); background: transparent;
  color: var(--s4-ink-2); font: 600 14px var(--s4-font); cursor: pointer; transition: all .18s var(--s4-ease);
}
.rg-bandas button:hover { border-color: var(--nv-red); color: var(--nv-red); }
.rg-bandas button.on { background: var(--nv-red); border-color: var(--nv-red); color: #fff; }

/* ═══ Cada colección ══════════════════════════════════════════════════ */
.rg-sec { scroll-margin-top: 150px; }
.rg-sec .s4-head h2::before { content: none; }          /* el ícono ya hace de adorno */
.rg-tit { display: flex; align-items: center; gap: 14px; }
.rg-ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  background: var(--nv-red); color: #fff; box-shadow: 0 10px 20px -12px rgba(200, 16, 46, .9);
}
.rg-sec:nth-of-type(even) .rg-ico { background: var(--s4-green); box-shadow: 0 10px 20px -12px rgba(27, 121, 61, .9); }
.rg-ico svg { width: 25px; height: 25px; }
.rg-ico-oro { background: #C8901A; }

/* La cinta dorada que separa una colección de otra */
.rg-sec + .rg-sec .wrap { position: relative; padding-top: 6px; }
.rg-sec + .rg-sec .wrap::before {
  content: "✦"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 100%; text-align: center;
  color: var(--nv-gold); font-size: 13px; letter-spacing: 0;
  background: linear-gradient(var(--nv-gold), var(--nv-gold)) left 50% / calc(50% - 22px) 1px no-repeat,
              linear-gradient(var(--nv-gold), var(--nv-gold)) right 50% / calc(50% - 22px) 1px no-repeat;
  opacity: .55;
}

/* Un moño rojo en la esquina de cada producto: aquí todo es un regalo.
   Va ADENTRO de la tarjeta: el carrusel recorta lo que se sale por arriba. */
.rg-sec .prod-card { position: relative; }
.rg-sec .prod-card::before {
  content: ""; position: absolute; top: 6px; left: 8px; width: 36px; height: 29px; z-index: 5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 48'%3E%3Cpath d='M30 22 C20 6 4 6 6 16 C8 26 22 24 30 22Z' fill='%23D21F3C'/%3E%3Cpath d='M30 22 C40 6 56 6 54 16 C52 26 38 24 30 22Z' fill='%23B5172F'/%3E%3Cpath d='M29 23 L18 44 L24 42 L27 47 L31 24Z' fill='%23D21F3C'/%3E%3Cpath d='M31 23 L42 44 L36 42 L33 47 L29 24Z' fill='%23B5172F'/%3E%3Ccircle cx='30' cy='22' r='5' fill='%23A00D24'/%3E%3Cpath d='M12 14 C16 10 22 12 26 18' fill='none' stroke='%23FF8A98' stroke-width='1.6' opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .18));
}

.rg-vacio { margin: 6px 0 0; padding: 18px; border-radius: 16px; background: var(--s4-surface); border: 1.5px dashed var(--s4-line-2);
  color: var(--s4-muted); text-align: center; }
.rg-esq { height: 340px; border-radius: 18px; background: linear-gradient(90deg, var(--s4-bg-2), var(--s4-surface), var(--s4-bg-2));
  background-size: 200% 100%; animation: rg-brillo 1.3s linear infinite; }
@keyframes rg-brillo { to { background-position: -200% 0; } }

/* ═══ El cierre ═══════════════════════════════════════════════════════ */
.rg-cierre { padding: 10px 0 56px; }
.rg-cierre-in {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 24px;
  background:
    linear-gradient(var(--s4-surface), var(--s4-surface)) padding-box,
    linear-gradient(90deg, var(--nv-red), var(--nv-gold-l), var(--nv-green)) border-box;
  border: 2px solid transparent;
}
.rg-cierre-in > div { flex: 1 1 300px; min-width: 0; }
.rg-cierre h2 { margin: 0 0 4px; font-size: 22px; }
.rg-cierre p { margin: 0; color: var(--s4-muted); }
.rg-cierre .nv-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px;
  background: var(--s4-green); color: #fff; font-weight: 700; text-decoration: none;
}
.rg-cierre .nv-cta svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .rg-esf { animation: none; }
  .rg-esq { animation: none; }
}
