/* ==========================================================
   ESTILO iOS (todo el sitio) — vidrio esmerilado, esquinas redondeadas
   Vidrio esmerilado (glassmorphism) sobre fondos con brillos de color
   ========================================================== */
:root {
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", var(--font);
  --glass-light: rgba(255, 255, 255, .58);
  --glass-dark: rgba(18, 18, 24, .38);
  --glass-line: rgba(255, 255, 255, .55);
}
.home-ios { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 64px; }
.sec { position: relative; border-radius: 32px; padding: 30px 30px 32px; overflow: hidden; isolation: isolate; font-family: var(--ios-font); }
.sec:empty { display: none; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.sec-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 6px; }

/* Botón de vidrio tipo píldora */
.glass-pill { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--glass-light); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 20px rgba(0,0,0,.08); transition: transform .2s, background .2s; }
.glass-pill:hover { transform: translateY(-1px); background: rgba(255,255,255,.78); }
.glass-pill span { transition: transform .2s; }
.glass-pill:hover span { transform: translateX(3px); }

/* Etiqueta "Nuevo" de vidrio sobre la foto (también en las tarjetas de Productos) */
.glass-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-family: var(--ios-font);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: rgba(20, 20, 26, .38); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); }
.card .glass-tag { left: 10px; top: 10px; }

/* ---------- 1) Novedades: fondo oscuro con brillos ---------- */
.sec-nov { color: #fff; background:
  radial-gradient(60% 80% at 8% 0%, rgba(47, 94, 168, .55), transparent 60%),
  radial-gradient(50% 70% at 100% 100%, rgba(225, 6, 0, .28), transparent 60%),
  radial-gradient(40% 60% at 70% 10%, rgba(0, 128, 128, .25), transparent 60%),
  #0c0c11; }
.sec-nov .sec-eyebrow { color: rgba(255,255,255,.62); }
.sec-nov .glass-pill { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset; }
.sec-nov .glass-pill:hover { background: rgba(255,255,255,.22); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -30px; padding: 4px 30px 6px; scroll-padding: 0 30px; }
.rail::-webkit-scrollbar { display: none; }
.ncard { position: relative; display: block; aspect-ratio: 3 / 4.1; border-radius: 24px; overflow: hidden; scroll-snap-align: start; background: #1b1b22;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateZ(0); }
.ncard > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ncard:hover > img { transform: scale(1.05); }
.ncard-info { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  padding: 12px 14px; border-radius: 18px; color: #fff;
  background: var(--glass-dark); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.ncard-txt { display: grid; min-width: 0; }
.ncard-txt b { font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard-txt small { font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.ncard-price .precio-desc s { color: rgba(255,255,255,.6); }
.ncard-price .precio-desc b { color: #ff6b62; }
.ncard-mas { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: none; }
.ncard-mas span { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ncard-mas b { align-self: flex-end; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.92); color: #111; transition: transform .25s; }
.ncard-mas:hover b { transform: translateX(4px); }
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.rail-nav button { width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: #fff; padding-bottom: 3px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background .2s; }
.rail-nav button:hover { background: rgba(255,255,255,.24); }

/* ---------- 2) Ofertas / Todos: fondo claro con brillos ---------- */
.sec-tienda { background:
  radial-gradient(55% 50% at 0% 0%, rgba(47, 94, 168, .16), transparent 70%),
  radial-gradient(45% 45% at 100% 8%, rgba(255, 59, 48, .12), transparent 70%),
  radial-gradient(60% 50% at 50% 100%, rgba(120, 120, 140, .12), transparent 70%),
  #f5f5f7; }

/* Control segmentado iOS */
.segmented { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 22px; border-radius: 12px;
  background: rgba(118, 118, 128, .14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.segmented button { position: relative; z-index: 1; padding: 9px 26px; border-radius: 9px; font-family: var(--ios-font); font-size: 15px; font-weight: 600; color: #3a3a3c; transition: color .2s; }
.segmented button small { font-size: 12px; font-weight: 500; color: #8e8e93; margin-left: 4px; }
.segmented button[aria-selected="true"] { color: #000; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); transition: transform .32s cubic-bezier(.3,.7,.2,1); }
.segmented[data-v="todos"] .seg-thumb { transform: translateX(100%); }

/* Tarjetas redondeadas de vidrio claro */
.grid { gap: 16px; }
.grid-ios { padding-bottom: 0; }
.card { border-radius: 22px; overflow: hidden; background: var(--glass-light); border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.1); }
.card .info { font-family: var(--ios-font); font-size: 13.5px; font-weight: 500; padding: 14px 16px 16px; }
.card .cat { font-size: 11.5px; color: #8e8e93; }
.card .price { font-weight: 600; }
.card.promo { box-shadow: inset 0 0 0 1.5px var(--promo), 0 8px 24px rgba(225,6,0,.08); }
.card .tag-promo, .card .badge { border-radius: 999px; padding: 5px 10px; }

@media (max-width: 900px) {
  .rail { grid-auto-columns: calc((100% - 2 * 12px) / 2.6); gap: 12px; }
}
@media (max-width: 680px) {
  .home-ios { gap: 14px; padding-top: 14px; padding-bottom: 40px; }
  .sec { margin: 0 -8px; border-radius: 28px; padding: 22px 16px 20px; }
  .sec-head { margin-bottom: 16px; }
  .sec-head h2 { font-size: 28px; }
  .glass-pill { padding: 9px 15px; font-size: 13px; }
  .rail { grid-auto-columns: 74%; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding: 0 16px; }
  .ncard { border-radius: 22px; }
  .ncard-mas span { font-size: 22px; }
  .rail-nav { display: none; }
  .segmented { display: grid; width: 100%; margin-bottom: 16px; }
  .segmented button { padding: 9px 8px; }
  .grid { gap: 10px; }
  .card { border-radius: 18px; }
  .card .info { padding: 10px 12px 12px; font-size: 13px; }
  .card .tag-promo { padding: 4px 8px; max-width: none; white-space: nowrap; font-size: 7.5px; letter-spacing: .05em; }
  .card .glass-tag { left: 6px; top: 6px; font-size: 10px; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .ncard > img, .seg-thumb, .card { transition: none; }
}

/* Pantallas grandes: más columnas para aprovechar el ancho */
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
}

/* ==========================================================
   TODO EL SITIO — mismo vidrio y redondeado en cada página
   ========================================================== */
body { font-family: var(--ios-font); background: #f5f5f7; -webkit-font-smoothing: antialiased; }
/* Brillos de color fijos detrás de todo: el vidrio se nota encima */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(45% 40% at 0% 0%, rgba(47, 94, 168, .10), transparent 70%),
  radial-gradient(40% 40% at 100% 30%, rgba(255, 59, 48, .07), transparent 70%),
  radial-gradient(50% 45% at 30% 100%, rgba(120, 120, 140, .10), transparent 70%); }

/* Encabezado de vidrio que se queda arriba */
.header, .header.solid { position: sticky; top: 0; z-index: 30; background: rgba(245, 245, 247, .72); border-bottom: 1px solid rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.searchbar { background: rgba(255,255,255,.82); border-bottom: 0; border-radius: 0 0 24px 24px; -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.sr-item { border-radius: 12px; padding: 8px; border-top: 0; }
.sr-item img { border-radius: 8px; }
.drawer .panel { background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); border-radius: 0 28px 28px 0; }
.drawer nav a { font-weight: 600; letter-spacing: -.02em; }

/* Banner redondeado como las secciones */
.banner, .banner.banner-foto { border-radius: 32px; overflow: hidden; margin-top: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.12); transform: translateZ(0); }

/* Botones tipo píldora */
.btn-solid, .btn-outline { border-radius: 999px; font-family: var(--ios-font); letter-spacing: .04em; font-weight: 600; font-size: 12.5px; text-transform: none; }
.btn-solid { box-shadow: 0 6px 18px rgba(0,0,0,.14); transition: transform .15s, background .2s; }
.btn-solid:hover:not(:disabled) { transform: translateY(-1px); }
.btn-solid:disabled { box-shadow: none; }

/* Panel de vidrio reutilizable */
.ck-paso, .ck-resumen, .fpanel, .summary, .exito-total, .promo-box, .rs-acepto, .ck-aviso {
  border-radius: 24px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 10px 30px rgba(0,0,0,.06); }

/* ---------- Productos ---------- */
.page-title h1 { font-size: 34px; font-weight: 700; letter-spacing: -.025em; }
.filters { border-bottom: 0; }
.ftoggle { border: 1px solid rgba(255,255,255,.85); border-radius: 999px; padding: 10px 18px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ftoggle:hover, .filters.open .ftoggle { background: #111; color: #fff; border-color: #111; }
.fchip { border-radius: 999px; padding: 7px 12px; font-size: 12.5px; background: rgba(118,118,128,.12); }
.fchip:hover { background: rgba(118,118,128,.2); }
.fchip-oferta { background: rgba(225,6,0,.1); color: var(--promo); }
.fpanel { padding: 22px 24px; }
.fgroup h4 { letter-spacing: .04em; text-transform: none; font-size: 13px; font-weight: 600; color: #6e6e73; }
.opt { border-radius: 999px; border-color: rgba(0,0,0,.12); padding: 8px 15px; font-size: 13px; background: rgba(255,255,255,.7); letter-spacing: 0; }
.opt.on { background: #111; border-color: #111; }
.fpanel-foot { border-top-color: rgba(0,0,0,.06); }

/* ---------- Ficha de producto ---------- */
.pdp .gallery .main { border-radius: 28px; box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.thumbs button { border-radius: 12px; }
.thumbs button.on { border-color: #111; box-shadow: 0 0 0 1px #111; }
.pdp h1 { font-size: 32px; font-weight: 700; letter-spacing: -.025em; }
.size { border-radius: 12px; background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.12); font-size: 14px; }
.size.on { background: #111; border-color: #111; }
.qty { border-radius: 12px; overflow: hidden; border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.7); }
.buy-row .btn-solid { padding: 16px 24px; font-size: 14px; }
.promo-box { border: 1.5px solid var(--promo); background: rgba(255, 245, 245, .75); padding: 16px 18px; }
.tag-promo { border-radius: 999px; padding: 5px 10px; }
.transf-precio { border-radius: 14px; border-left: 0; background: rgba(31,122,77,.08); padding: 10px 14px; }
.perks .sin-dev { border-radius: 12px; }
.specs { border-color: rgba(0,0,0,.07); }

/* ---------- Carrito / pago ---------- */
.ck-paso { padding: 26px 28px; }
.ck-resumen, .summary { top: 96px; } /* debajo del encabezado fijo */
.ck-paso h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ck-foto, .rs-foto { border-radius: 14px; }
.rs-foto { overflow: visible; }
.rs-foto img { border-radius: 12px; }
.choice, .ck-choice { border-radius: 16px; border-color: rgba(0,0,0,.1); background: rgba(255,255,255,.75); }
.choice:has(input:checked) { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.pay-opt { border-radius: 20px; border-color: rgba(0,0,0,.1); background: rgba(255,255,255,.75); }
.pay-opt:has(input:checked) { background: #fff; }
.field input, .field textarea, .cp-form input { border-radius: 14px; border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.85); }
.field input:focus, .field textarea:focus, .cp-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,94,168,.15); }
.cp-form button { border-radius: 14px; }
.free-banner { border-radius: 16px; }
.ck-aviso { border: 1.5px solid #f0a020; background: rgba(255,245,230,.85); }
.rs-acepto { border: 1.5px solid rgba(0,0,0,.08); border-radius: 16px; }
.rs-acepto.bad { border-color: #b3261e; }
.ck-cta { border-radius: 999px; font-size: 16px; letter-spacing: .02em; }
.exito-total { padding: 18px 22px; }
.ck-barra { background: rgba(255,255,255,.8); border-top: 1px solid rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.br-fotos span { border-radius: 10px; }

/* ---------- Referencias ---------- */
.ref-item { border-radius: 22px; box-shadow: 0 10px 28px rgba(0,0,0,.1); }

/* ---------- Avisos ---------- */
.toast { border-radius: 999px; background: rgba(20,20,26,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

@media (max-width: 680px) {
  .banner, .banner.banner-foto { margin: 14px -8px 0; border-radius: 28px; }
  .page-title h1 { font-size: 28px; }
  .pdp .gallery .main { border-radius: 24px; }
  .pdp h1 { font-size: 26px; }
  .ck { grid-template-columns: minmax(0, 1fr); }
  .ck-paso { padding: 20px 16px; border-radius: 22px; min-width: 0; }
  .cp-form input { width: 100%; }
  .ck-cp input { font-size: 18px; letter-spacing: .06em; padding: 14px 12px; }
  .ck-cp button { padding: 0 14px; letter-spacing: .04em; }
  .ck-paso h2 { font-size: 21px; }
  .ref-item { border-radius: 16px; }
  .fpanel { border-radius: 28px 28px 0 0; background: rgba(255,255,255,.92); padding: 0 16px; }
  .filters.open .fpanel { transform: none; }
}

/* ---------- Carrusel de banners ---------- */
.banner-slider { position: relative; }
.bs-track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.bs-slide { flex: 0 0 100%; display: block; }
.bs-slide img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.banner-foto.banner-slider:hover img { transform: none; }
/* Bolitas: discretas, la activa un poco más visible y alargada */
.bs-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 9px; border-radius: 999px;
  background: rgba(0,0,0,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bs-dots button { width: 7px; height: 7px; padding: 0; border-radius: 999px; background: #fff; opacity: .4; transition: opacity .3s, width .3s; }
.bs-dots button[aria-current="true"] { opacity: .9; width: 18px; }
/* Flechas de vidrio: aparecen al pasar el mouse (en celular siempre, discretas) */
.bs-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; line-height: 1; padding-bottom: 3px; color: #fff; z-index: 2;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  opacity: 0; transition: opacity .25s, background .2s; }
.bs-prev { left: 10px; }
.bs-next { right: 10px; }
.banner-slider:hover .bs-flecha, .bs-flecha:focus-visible { opacity: 1; }
.bs-flecha:hover { background: rgba(255,255,255,.3); }
@media (hover: none) {
  .bs-flecha { opacity: .75; width: 32px; height: 32px; font-size: 20px; }
  .bs-prev { left: 8px; }
  .bs-next { right: 8px; }
}
@media (max-width: 680px) {
  .bs-dots { bottom: 8px; padding: 5px 7px; gap: 6px; }
  .bs-dots button { width: 6px; height: 6px; }
  .bs-dots button[aria-current="true"] { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-track { transition: none; }
}
