@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@800&display=swap");
/* «Próximos productos»: usa la tira de Novedades (pro-max-18.css) tal cual; aquí solo lo que cambia.
   Los paneles son enlaces a WhatsApp y las fotos vienen con fondo blanco, así que el panel es blanco con un filo fino (sin "multiply",
   que Safari no aplica dentro de una tira que se desliza). Sin precios. */
.pm18--prox[hidden], .pm18--prox .pm18__nav[hidden] { display: none; }
.pm18--prox .pm18__card { background: #fff; box-shadow: 0 0 0 1px #d9e1ee; color: inherit; text-decoration: none; }
.pm18--prox .pm18__photo img,
.pm18--prox .pm18__photo .pm18__alt {
  inset: 0; width: 100%; height: 100%; padding: 6%; box-sizing: border-box;
  object-fit: contain; mix-blend-mode: normal; background: #fff;
}
/* Sin foto todavía: bloque oscuro con el código del producto */
.px-vacio {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.25rem; text-align: center; color: #fff;
  background: linear-gradient(155deg, #1b2a4a 0%, #0d1424 70%);
}
.px-vacio span { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; }

.pm18--prox .pm18__info { position: relative; padding-right: 76px; }
.pm18--prox .pm18__info strong { overflow-wrap: anywhere; text-wrap: balance; }
.pm18--prox .px-det { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm18--prox .px-llega { color: var(--pm18-ink); font-weight: 600; }
/* Flecha redonda: indica que el panel se toca (igual que las flechas del título) */
.px-go {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--pm18-ink); color: #fff;
  transition: transform 140ms var(--pm18-ease), background-color 160ms ease;
}
.px-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pm18--prox .pm18__card:active .px-go { transform: scale(.94); }
.pm18--prox .pm18__card:focus-visible { outline: 3px solid #1f6feb; outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .pm18--prox .pm18__card:hover .px-go { background: #1b2a4a; transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) { .px-go { transition: none; } }

/* ---------- Portada de la sección: cuenta regresiva + tres productos grandes ---------- */
.pm18--prox { padding: 0; --pxh-solape: clamp(72px, 11vw, 168px); }
.pxh {
  --pxh-h: clamp(250px, min(29vw, 44vh), 420px);          /* alto de las tarjetas de los lados; la del centro es más alta */
  position: relative; isolation: isolate; color: #fff; text-align: center;
  padding: clamp(1.5rem, 4.4vh, 4rem) 0 0;
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(77, 116, 184, .55), transparent 70%),
    radial-gradient(40% 50% at 92% 55%, rgba(31, 111, 235, .28), transparent 70%),
    radial-gradient(38% 46% at 6% 70%, rgba(143, 180, 255, .16), transparent 70%),
    linear-gradient(180deg, #1b2a4a 0%, #0d1424 100%);
}
.pxh__in { display: grid; justify-items: center; }
.pxh__title {
  margin: 0; font-size: clamp(2.2rem, min(5.6vw, 8vh), 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.012em; word-spacing: .06em; text-wrap: balance;
}
.pxh__sub { margin: clamp(.6rem, 1.4vw, 1rem) 0 0; font-size: clamp(1.05rem, 1.9vw, 1.5rem); color: rgba(255, 255, 255, .84); text-wrap: balance; }
.pxh__sub:empty { display: none; }
.pxh__sub em { font-style: normal; font-weight: 700; color: #9cc0ff; }

.pxh__cuenta { display: flex; justify-content: center; gap: clamp(1.1rem, 4.5vw, 4rem); margin-top: clamp(.9rem, 2.4vh, 2rem); }
.pxh__cuenta[hidden] { display: none; }
.pxh__cuenta > div { display: grid; justify-items: center; gap: 6px; }
.pxh__cuenta b {
  font-size: clamp(2.2rem, min(6.2vw, 8.5vh), 4.5rem); font-weight: 800; line-height: 1; letter-spacing: 0;
  font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center;
}
.pxh__cuenta span { letter-spacing: .02em; font-size: clamp(.9rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .78); }

/* Tarjetas: la del centro más alta; todas se montan sobre el borde inferior del fondo oscuro */
.pxh__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); align-items: end; justify-content: center;
  gap: clamp(10px, 1.6vw, 20px); width: 100%; margin: clamp(1rem, 2.8vh, 2.25rem) 0 calc(-1 * var(--pxh-solape)); padding: 0; list-style: none;
  position: relative; z-index: 1;
}
.pxh__cards[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 320px)); }
.pxh__cards[data-n="1"] { grid-template-columns: minmax(0, 340px); }
.pxh__cards[data-n="0"] { display: none; }
.pxh__cards > li { display: grid; }
.pxh__card {
  position: relative; display: grid; grid-template-rows: 1fr auto auto; height: var(--pxh-h); overflow: hidden; border-radius: 20px;
  background: #fff; color: var(--pm18-ink); text-align: left; text-decoration: none;
  box-shadow: 0 24px 50px -22px rgba(7, 12, 26, .65), 0 0 0 1px rgba(13, 20, 36, .08);
  transition: transform 220ms var(--pm18-ease), box-shadow 220ms ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pxh__cards[data-n="3"] > li:nth-child(2) .pxh__card,
.pxh__cards[data-n="1"] .pxh__card { height: calc(var(--pxh-h) * 1.16); }
.pxh__llega {
  position: absolute; z-index: 2; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 5px 11px; border-radius: 999px;
  background: #0d1424; color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.25;
}
.pxh__foto { position: relative; min-height: 0; margin-top: 12px; overflow: hidden; }
.pxh__foto img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 4% 8% 0; box-sizing: border-box; object-fit: contain;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(var(--k, 1)); transform-origin: 50% 50%;
  transition: opacity 260ms ease;
}
.pxh__info { position: relative; display: grid; gap: 2px; padding: 4px 70px 16px 16px; }
.pxh__info strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance; }
.pxh__info .px-det { color: var(--pm18-soft); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pxh__card .px-go { right: 12px; bottom: 12px; }
.pxh__card:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 3px; }
.pxh__card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .pxh__card:hover .px-go { background: #1b2a4a; transform: translateX(2px); }
}

/* Debajo de la portada va la tira del resto, empezando donde terminan de sobresalir las tarjetas.
   Sin tira, queda solo ese espacio para que las tarjetas no pisen lo que sigue. */
.pxh__mas { padding: calc(var(--pxh-solape) + clamp(1.75rem, 3.5vw, 3rem)) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--bg, #f7faff); }
.pxh__mas--vacia { height: calc(var(--pxh-solape) + clamp(1.5rem, 3vw, 2.5rem)); padding: 0; }
.pxh__mas--vacia > * { display: none; }

@media (max-width: 760px) {
  /* Celular: las tarjetas se deslizan de lado y se queda a la vista la del centro */
  .pxh__cards, .pxh__cards[data-n="1"], .pxh__cards[data-n="2"] {
    display: flex; justify-content: flex-start; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 0 var(--gutter, 16px) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pxh__cards::-webkit-scrollbar { display: none; }
  .pxh__cards > li { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; }
  .pxh { --pxh-h: clamp(300px, 78vw, 360px); }
}
@media (prefers-reduced-motion: reduce) { .pxh__card, .pxh__foto img { transition: none; } }
.pxh__mas .pm18__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

/* Otros colores de las tarjetas de los lados, asomando por detrás hacia afuera (solo con espacio de sobra a los costados) */
.pxh { overflow-x: clip; }
.pxh__cards > li { position: relative; }
.pxh__asoma {
  position: absolute; display: none; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: #fff; pointer-events: none;
  box-shadow: 0 18px 40px -20px rgba(7, 12, 26, .7);
}
.pxh__asoma img { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.pxh__asoma--1 { z-index: -1; width: 58%; bottom: 0; }
[data-lado="izq"] .pxh__asoma--1 { left: -38%; transform: rotate(-6deg); transform-origin: 100% 100%; }
[data-lado="der"] .pxh__asoma--1 { right: -38%; transform: rotate(6deg); transform-origin: 0 100%; }
@media (min-width: 1360px) { .pxh__asoma--1 { display: block; } }

/* Modelos de iPhone compatibles, debajo de la foto (del más reciente al más antiguo) */
.pxh__modelos { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 0 16px 8px; min-height: 30px; overflow: hidden; }
.pxh__modelo--mas { background: transparent; box-shadow: inset 0 0 0 1px #d5deec; color: var(--pm18-soft); }
.pxh__modelos-et { flex: none; margin-right: 2px; font-size: .74rem; font-weight: 600; color: var(--pm18-soft); }
.pxh__modelo { flex: none; padding: 3px 8px; border-radius: 999px; background: #edf2f9; color: var(--pm18-ink); font-size: .74rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.pxh__info { padding-top: 2px; }
/* La tira de «También llegan» tampoco cambia de foto al pasar el mouse */
.pxh__mas .pm18__card:hover .pm18__photo:has(.pm18__alt) .pm18__main { opacity: 1; }
.pxh__mas .pm18__card:hover .pm18__alt { opacity: 0; }

@media (max-width: 900px) { .pxh__info strong { font-size: .95rem; } .pxh__info { padding-right: 62px; } }

/* Título en curva con brillo iridiscente (lo dibuja proximos.js) */
.pxh__title--oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.px-curva { width: min(1320px, 96%, 150vh); }
.px-curva svg { display: block; width: 100%; height: auto; overflow: visible; }
.px-curva text { font-family: Unbounded, Geist, system-ui, sans-serif; font-weight: 800; }
@media (max-width: 760px) { .px-curva { width: min(520px, 98%); } }
