/* RG Nicaragua — sistema visual de la tienda */

:root {
  --night: #060b14;
  --deep: #0a1424;
  --navy: #0d2140;
  --panel: #0f1c31;
  --celeste: #3fb0ea;
  --celeste-hi: #82d4fa;
  --celeste-soft: #e6f5fd;
  --blue: #0067c6;           /* azul de la bandera */
  --paper: #ffffff;
  --mist: #eef3f8;
  --ink: #0a1424;
  --muted: #5a6b80;
  --line: #dfe6ee;
  --on-dark: rgba(255, 255, 255, .68);
  --line-dark: rgba(255, 255, 255, .1);
  --danger: #c0352b;
  --ok: #1a9152;
  --warn: #c27a00;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r-card: 20px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; }

/* ───────── Tipografía ───────── */

.display {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.045em;
}
.display em { font-style: normal; color: var(--celeste); }
.display .dot { color: var(--celeste); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; font-stretch: 112%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--celeste);
}
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.kicker.no-line::before { display: none; }

.lead { margin: 0; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 44ch; }
.dark .lead { color: var(--on-dark); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head .display { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-top: 14px; }
.section-head .lead { max-width: 34ch; }

/* Marca de la bandera: azul / blanco / azul */
.flag {
  display: inline-block; width: 20px; height: 13px; flex: none; border-radius: 2px;
  background: linear-gradient(var(--blue) 0 33.3%, #fff 33.3% 66.6%, var(--blue) 66.6%);
  box-shadow: 0 0 0 1px rgba(10, 20, 36, .16);
}

/* ───────── Botones ───────── */

.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-size: 13px; font-weight: 800; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-celeste { --bg: var(--celeste); --fg: var(--night); }
.btn-dark { --bg: var(--ink); --fg: #fff; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
@media (hover: hover) {
  .btn-celeste:hover { --bg: var(--celeste-hi); box-shadow: 0 10px 30px -8px rgba(63, 176, 234, .7); }
  .btn-dark:hover { --bg: var(--blue); }
  .btn-outline-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
  .btn-outline:hover { --bg: var(--ink); --fg: #fff; }
  .btn-white:hover { --bg: var(--celeste-soft); }
  .btn:hover svg.arrow { transform: translateX(3px) rotate(-45deg); }
}
.btn svg.arrow { transform: rotate(-45deg); }
.btn[aria-disabled='true'], .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
  font-size: 12px; font-weight: 800; font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: var(--celeste);
}
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(5px); } }

.chip {
  min-width: 44px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  transition: border-color .2s, background .2s, color .2s;
}
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ───────── Header flotante ───────── */

.site-header {
  position: fixed; z-index: 50; top: 14px; left: 0; right: 0; padding-inline: var(--gutter);
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 10px 0 24px; border-radius: var(--r-pill);
  background: #fff; box-shadow: 0 10px 40px -12px rgba(6, 11, 20, .35);
  transition: height .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled .header-bar { height: 58px; box-shadow: 0 14px 40px -14px rgba(6, 11, 20, .45), 0 0 0 1px rgba(10, 20, 36, .06); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--celeste);
  font-size: 16px; font-weight: 900; font-style: italic; letter-spacing: -.06em;
}
.brand.has-logo .brand-mark { display: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 15px; font-weight: 900; letter-spacing: .14em; font-stretch: 112%; }
.brand-name span { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .26em; color: var(--muted); }
.brand-name .flag { width: 13px; height: 8px; }
.demo-tag {
  padding: 3px 8px; border-radius: var(--r-pill); background: var(--celeste-soft); color: var(--blue);
  font-size: 10px; font-weight: 800; letter-spacing: .14em; cursor: help;
}
@media (max-width: 420px) { .demo-tag { display: none; } }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: var(--r-pill); text-decoration: none;
  font-size: 12px; font-weight: 700; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: #2a3a50;
  transition: background .2s, color .2s;
}
@media (hover: hover) { .nav a:hover { background: var(--mist); color: var(--ink); } }

.header-cta { min-height: 46px; padding: 0 22px; font-size: 12px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: var(--ink);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 14px; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), background .2s;
}
.menu-toggle span { top: 22px; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded='true'] span { background: transparent; }
.menu-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--night); color: #fff;
  padding: 112px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 52px) 46px);
  transition: clip-path .5s var(--ease), visibility 0s .5s; visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 52px) 46px); visibility: visible; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0;
  border-bottom: 1px solid var(--line-dark); text-decoration: none;
  font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: 1;
}
.mobile-menu nav a small { font-size: 12px; font-weight: 700; color: var(--celeste); letter-spacing: .1em; }
.mobile-menu .btn { margin-top: 32px; }
.mobile-menu .menu-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; color: var(--on-dark); }
body.menu-open { overflow: hidden; }

@media (max-width: 1060px) { .nav a { padding: 10px 9px; letter-spacing: .1em; } }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-bar { padding: 0 9px 0 16px; height: 62px; }
}

/* ───────── Superficies oscuras ───────── */

.dark { background: var(--night); color: #fff; position: relative; }
.texture::after {
  /* grano sutil */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Hero ───────── */

.hero { overflow: hidden; isolation: isolate; }
.hero::before {
  /* retícula técnica */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: radial-gradient(70% 70% at 70% 50%, #000 0%, transparent 80%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -18vmax; top: 50%; translate: 0 -50%;
  background: radial-gradient(circle, rgba(63, 176, 234, .38) 0%, rgba(13, 33, 64, .5) 35%, transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px;
  min-height: 100svh; padding-top: 120px; padding-bottom: 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero-chip i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(63, 176, 234, .16); color: var(--celeste);
}
.hero-chip svg { width: 15px; height: 15px; }

.hero h1 { font-size: clamp(3.6rem, 7.2vw, 7.6rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85); }
@keyframes rise { from { transform: translateY(105%); } }

.hero .lead { max-width: 40ch; }
.hero .lead strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fade-up { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, .3s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* Escenario del producto */
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 660px; justify-self: end; display: grid; place-items: center; }
.stage-mono {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 0;
  font-size: clamp(14rem, 34vw, 30rem); font-weight: 900; font-style: italic; letter-spacing: -.08em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(130, 212, 250, .16); user-select: none;
}
.stage-rings { position: absolute; left: 50%; bottom: 2%; width: 96%; translate: -50% 0; z-index: 1; overflow: visible; }
.stage-rings ellipse { fill: none; stroke: var(--celeste); transform-origin: center; transform-box: fill-box; }
.stage-rings .r1 { stroke-opacity: .7; stroke-width: 1.5; }
.stage-rings .r2 { stroke-opacity: .35; stroke-dasharray: 3 9; animation: spin 40s linear infinite; }
.stage-rings .r3 { stroke-opacity: .18; animation: pulse 3.6s var(--ease) infinite; }
.stage-rings .core { fill: url(#coreGlow); stroke: none; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }

.stage-ball { position: absolute; z-index: 1; width: 34%; right: 2%; bottom: 14%; color: var(--celeste); opacity: .75; animation: spin 50s linear infinite; }
.stage.no-image .stage-ball { width: 64%; right: auto; bottom: auto; opacity: .9; animation-duration: 70s; }
@keyframes spin { to { rotate: 360deg; } }

.stage-img {
  position: relative; z-index: 2; width: 82%; max-height: 92%; object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)) drop-shadow(0 0 60px rgba(63, 176, 234, .25));
  animation: float 6s ease-in-out infinite, fadeUp 1s var(--ease) both;
}
@keyframes float { 50% { translate: 0 -14px; } }

.stage-tag {
  position: absolute; z-index: 3; left: 0; bottom: 10%;
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 16px;
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  transition: transform .3s var(--ease);
}
.stage-tag img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--mist); mix-blend-mode: multiply; }
.stage-tag small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--celeste); }
.stage-tag b { font-size: 15px; }
@media (hover: hover) { .stage-tag:hover { transform: translateY(-3px); } }

.stage-coords {
  position: absolute; z-index: 3; right: -4px; top: 6%; writing-mode: vertical-rl;
  font-size: 11px; font-weight: 700; letter-spacing: .3em; color: rgba(130, 212, 250, .7);
}

/* Tarjeta rotativa de destacados (fotos de producto con fondo blanco) */
.stage.has-card .stage-ball { width: 30%; right: 0; bottom: 18%; }
.hero-card {
  position: relative; z-index: 2; width: min(76%, 360px); margin-bottom: 8%;
  display: grid; gap: 14px; padding: 14px 14px 18px; border-radius: 26px;
  background: #fff; color: var(--ink);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .6), 0 0 80px rgba(63, 176, 234, .22);
  animation: float 7s ease-in-out infinite;
}
.hero-card-media {
  display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  background: radial-gradient(85% 75% at 50% 40%, #fff 0%, #eaf1f7 100%);
}
.hero-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.hero-card.is-swapping .hero-card-media img { animation: swapIn .6s var(--ease); }
.hero-card.is-swapping .hero-card-body { animation: fadeUp .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: scale(.94) rotate(-3deg); } }
.hero-card-body { display: grid; gap: 4px; text-align: center; }
.hero-card-body small { font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--celeste); }
.hero-card-body b { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.hero-card-body span { font-size: .95rem; font-weight: 800; color: var(--blue); }
.hero-card-dots { display: flex; justify-content: center; gap: 6px; }
.hero-card-dots:empty { display: none; }
.hero-card-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; background: var(--line); transition: width .35s var(--ease), background .2s; }
.hero-card-dots button[aria-current='true'] { width: 24px; background: var(--ink); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--on-dark); text-decoration: none;
}
.scroll-cue i { position: relative; width: 1px; height: 36px; background: var(--line-dark); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--celeste); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 112px; padding-bottom: 40px; min-height: 0; gap: 8px; }
  .stage { justify-self: center; max-width: 520px; margin-top: 8px; }
  .scroll-cue { display: none; }
  .hero-actions .btn { flex: 1 1 200px; }
}

/* Cinta en movimiento */
.ticker { background: var(--celeste); color: var(--night); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .1); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px;
  font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.ticker-track span::after { content: '✦'; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Secciones ───────── */

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section.light { background: var(--paper); }
.section.mist { background: var(--mist); }

/* ───────── Tarjeta de producto ───────── */

.pcard { position: relative; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.pcard-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card);
  background: radial-gradient(90% 70% at 50% 40%, #fff 0%, #edf2f7 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 20, 36, .05);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pcard-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%;
  mix-blend-mode: multiply;
  transition: transform .7s var(--ease), opacity .45s var(--ease);
}
.pcard-media img.alt { opacity: 0; }
.pcard-num { position: absolute; z-index: 1; top: 16px; left: 18px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #8a9bb0; }
.pcard-badge {
  position: absolute; z-index: 1; top: 12px; right: 12px; padding: 6px 11px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.pcard-badge[data-status='available'] { background: var(--celeste-soft); color: var(--blue); }
.pcard-badge[data-status='limited'] { background: var(--celeste); color: var(--night); }
.pcard-badge[data-status='preorder'] { background: #fff4e0; color: var(--warn); }
.pcard-cta {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s;
}
.pcard-info { display: grid; gap: 6px; padding-inline: 4px; }
.pcard-cat { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--celeste); }
.pcard h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; line-height: 1; }
.pcard-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pcard-price { font-size: 1.05rem; font-weight: 800; color: var(--blue); }
.pcard-price small { margin-left: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.featured .pcard-price small { color: var(--on-dark); }
.pcard-price.pending { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pcard-sizes { font-size: 13px; color: var(--muted); }

@media (hover: hover) {
  .pcard:hover .pcard-media { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(10, 20, 36, .45), inset 0 0 0 1px rgba(63, 176, 234, .5); }
  .pcard:hover .pcard-media img { transform: scale(1.06) rotate(-2deg); }
  .pcard:hover .pcard-media img.alt { opacity: 1; }
  .pcard:hover .pcard-media img.has-alt:not(.alt) { opacity: 0; }
  .pcard:hover .pcard-cta { opacity: 1; transform: none; }
  .pcard-cta:hover { background: var(--blue); }
}
@media (hover: none) { .pcard-cta { display: none; } }

/* ───────── Destacados: carrusel ───────── */

.featured { overflow: hidden; }
.featured::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 15% 0%, rgba(63, 176, 234, .18), transparent 70%);
}
.featured .section-head .display { color: #fff; }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
/* En celulares de hasta 413 px el enlace y las flechas no caben en una fila: las flechas pasan abajo. */
@media (max-width: 413px) {
  .carousel-controls { flex-wrap: wrap; row-gap: 16px; }
  .carousel-controls .link-arrow { flex-basis: 100%; }
}
.arrow-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .25);
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.arrow-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .arrow-btn:not(:disabled):hover { background: var(--celeste); border-color: var(--celeste); color: var(--night); } }
.arrow-btn:disabled { opacity: .3; cursor: default; }

.carousel {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 8px;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 clamp(260px, 30%, 400px); scroll-snap-align: start; }
.featured .pcard h3 { color: #fff; }
.featured .pcard-price { color: var(--celeste); }
.featured .pcard-sizes { color: var(--on-dark); }
.featured .pcard-num { color: #9aaabf; }
@media (max-width: 640px) { .carousel > * { flex-basis: 78%; } }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: var(--r-pill); border: 0; cursor: pointer; background: rgba(255, 255, 255, .25); transition: width .35s var(--ease), background .2s; }
.dots button[aria-current='true'] { width: 34px; background: var(--celeste); }

/* ───────── Colecciones (líneas) ───────── */

.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: clamp(12px, 1.6vw, 20px); }
.collection {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 250px; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(20px, 2.6vw, 32px);
  background: radial-gradient(80% 70% at 70% 30%, #fff 0%, #e8eff6 100%); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(10, 20, 36, .05); transition: box-shadow .4s var(--ease);
}
.collection:first-child { grid-column: span 2; grid-row: span 2; min-height: 520px; background: radial-gradient(70% 70% at 65% 35%, #fff 0%, #dcebf6 100%); }
.collection img {
  position: absolute; z-index: -1; right: 0; top: 4%; width: 64%; height: 78%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .8s var(--ease);
}
.collection:first-child img { width: 62%; height: 86%; right: 4%; top: 6%; }
.collection::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(20deg, rgba(232, 239, 246, .95) 0%, rgba(232, 239, 246, 0) 55%);
}
.collection::before {
  content: ''; position: absolute; left: clamp(20px, 2.6vw, 32px); top: clamp(20px, 2.6vw, 32px);
  width: 28px; height: 3px; border-radius: 3px; background: var(--celeste);
}
.collection small { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.collection h3 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 900; letter-spacing: -.05em; text-transform: uppercase; line-height: .86; }
.collection:not(:first-child) h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.collection .link-arrow { color: var(--blue); }
@media (hover: hover) {
  .collection:hover { box-shadow: inset 0 0 0 1.5px var(--celeste); }
  .collection:hover img { transform: scale(1.07) rotate(-4deg); }
}
@media (max-width: 860px) {
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection:first-child { grid-column: span 2; grid-row: auto; min-height: 400px; }
}
@media (max-width: 520px) {
  .collections { grid-template-columns: 1fr 1fr; gap: 10px; }
  .collection { min-height: 200px; padding: 16px; }
  .collection img { width: 80%; height: 64%; right: -6%; }
  .collection:not(:first-child) h3 { font-size: 1.4rem; }
  .collection .link-arrow { display: none; }
}

/* ───────── Catálogo ───────── */

.filters { display: grid; gap: 14px; padding: 20px 0 22px; margin-bottom: 36px; border-block: 1px solid var(--line); }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-row > span { width: 88px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.filters-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.catalog-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.clear-filters { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row > span { width: auto; flex: none; margin-right: 6px; }
  .chip { flex: none; }
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(14px, 2vw, 24px);
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .pcard { gap: 12px; }
  .pcard h3 { font-size: 1.05rem; }
  .pcard-num { top: 12px; left: 12px; font-size: 10px; }
  .pcard-badge { top: 8px; right: 8px; padding: 4px 8px; font-size: 9px; letter-spacing: .08em; }
}

/* Estados */
.state {
  grid-column: 1 / -1; padding: 64px 24px; text-align: center; border-radius: var(--r-card);
  background: var(--mist); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.state h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.state p { margin: 0; max-width: 46ch; color: var(--muted); }
.dark .state { background: var(--panel); }
.dark .state p { color: var(--on-dark); }

.skeleton .pcard-media { background: linear-gradient(90deg, #eef3f8 0, #f7fafc 50%, #eef3f8 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.dark .skeleton .pcard-media { background: linear-gradient(90deg, #0f1c31 0, #16263f 50%, #0f1c31 100%); background-size: 200% 100%; }
.skeleton .bar { height: 16px; border-radius: 6px; background: var(--mist); width: 70%; }
.dark .skeleton .bar { background: var(--panel); }
.skeleton .bar + .bar { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── Nicaragua ───────── */

.local { background: var(--deep); overflow: hidden; }
.local-stripes {
  position: absolute; z-index: 0; right: -10%; top: -20%; width: 70%; height: 140%; transform: rotate(-14deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 103, 198, .38) 0 33.3%, rgba(255, 255, 255, .07) 33.3% 66.6%, rgba(0, 103, 198, .38) 66.6%);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.local-505 {
  position: absolute; z-index: 0; right: var(--gutter); top: clamp(48px, 7vw, 96px);
  font-size: clamp(7rem, 22vw, 20rem); font-weight: 900; letter-spacing: -.07em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(130, 212, 250, .22); user-select: none;
}
.local .wrap { position: relative; z-index: 1; }
.local h2 { font-size: clamp(3rem, 8vw, 7rem); margin: 18px 0 26px; max-width: 11ch; }
.steps { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.step {
  position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-dark);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
@media (hover: hover) { .step:hover { border-color: rgba(63, 176, 234, .5); background: rgba(63, 176, 234, .06); transform: translateY(-4px); } }
.step b { display: block; font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: var(--celeste); opacity: .85; }
.step i { display: block; height: 1px; margin: 22px 0; background: linear-gradient(90deg, var(--celeste), transparent); }
.step h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; }
.step p { margin: 0; color: var(--on-dark); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ───────── Tecnología ───────── */

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tech-item { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-card); background: var(--mist); }
.tech-item b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--celeste); margin-bottom: 40px; }
.tech-item h3 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.tech-item p { margin: 0; color: var(--muted); }

/* ───────── Guía de tallas ───────── */

.sizes-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.size-tool { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--paper); box-shadow: 0 30px 60px -40px rgba(10, 20, 36, .4); }
.size-tool label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.size-tool output { font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); }
.size-tool output small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.range { width: 100%; margin: 18px 0 28px; accent-color: var(--celeste); height: 28px; cursor: pointer; }
.size-result {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 18px;
  background: var(--night); color: #fff;
}
.size-result span { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); }
.size-result b { font-size: 3rem; font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--celeste); }
.size-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; text-align: center; }
.size-table th { padding: 8px 4px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.size-table td { padding: 9px 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.size-table tr.is-match td { background: var(--celeste-soft); color: var(--blue); font-weight: 800; }
.size-table tr.is-match td:first-child { border-radius: 10px 0 0 10px; }
.size-table tr.is-match td:last-child { border-radius: 0 10px 10px 0; }
.size-how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.size-how li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.size-how li b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.source-note { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.source-note a { color: var(--blue); }
@media (max-width: 900px) { .sizes-grid { grid-template-columns: 1fr; } }

/* ───────── CTA ───────── */

.cta { background: var(--celeste); color: var(--night); overflow: hidden; position: relative; }
.cta::before {
  content: 'RG'; position: absolute; right: -2%; bottom: -28%; font-size: clamp(14rem, 34vw, 28rem); font-weight: 900; font-style: italic;
  letter-spacing: -.08em; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(6, 11, 20, .12); pointer-events: none;
}
.cta .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 8vw, 104px); }
.cta h2 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
.cta p { margin: 16px 0 0; max-width: 44ch; font-size: 1.08rem; color: rgba(6, 11, 20, .78); }

/* ───────── Footer ───────── */

.site-footer { background: var(--night); color: var(--on-dark); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 56px; }
.footer-id { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
@media (max-width: 480px) { .footer-id .footer-word { font-size: 2.2rem; } .footer-logo { width: 56px; height: 56px; } }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; box-shadow: 0 0 0 3px rgba(63, 176, 234, .35); }
.footer-word { margin: 0; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -.05em; line-height: .9; color: #fff; text-transform: uppercase; }
.footer-word span { color: var(--celeste); }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; }
.site-footer h3 { margin: 0 0 18px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--celeste); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { text-decoration: none; transition: color .2s; }
@media (hover: hover) { .site-footer a:hover { color: #fff; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark);
}
.footer-bottom .flag { vertical-align: -2px; margin-right: 8px; }
.pending-note { color: rgba(255, 255, 255, .4); font-style: italic; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ───────── Página de producto ───────── */

.page-top { background: var(--night); height: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }

.pdp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-bottom: clamp(72px, 9vw, 128px); }

.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-self: start; position: sticky; top: 100px; }
.gallery-main {
  grid-column: 2; grid-row: 1; position: relative;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px;
  background: radial-gradient(90% 70% at 50% 40%, #fff 0%, #e9f0f6 100%);
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main figure { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
.thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.thumb { padding: 0; border: 1.5px solid transparent; border-radius: 14px; background: var(--mist); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.thumb[aria-current='true'] { border-color: var(--celeste); }
.gallery-dots { display: none; }

.pdp-info { display: flex; flex-direction: column; gap: 22px; padding-top: 4px; }
.pdp-info h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.pdp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pdp-code { font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 4px 9px; border-radius: var(--r-pill); background: var(--mist); color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.status[data-status='available'] { color: var(--ok); }
.status[data-status='limited'], .status[data-status='preorder'] { color: var(--warn); }
.status[data-status='sold_out'] { color: var(--danger); }
.pdp-price { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--blue); }
.pdp-price small { display: block; margin-top: 4px; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.pdp-price.pending { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.pdp-desc { margin: 0; color: var(--muted); max-width: 52ch; white-space: pre-line; }

.size-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.size-picker legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.size-picker legend output { font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--blue); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sizes span {
  display: grid; place-items: center; height: 54px; border-radius: 14px; border: 1.5px solid var(--line);
  font-weight: 800; transition: border-color .2s, background .2s, color .2s, transform .15s;
}
@media (hover: hover) { .sizes label:hover span { border-color: var(--ink); } }
.sizes input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--celeste); }
.sizes input:active + span { transform: scale(.95); }
.sizes input:focus-visible + span { outline: 2px solid var(--celeste); outline-offset: 2px; }
.size-picker.invalid .sizes span { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.field-error { margin: 12px 0 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.size-help { margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.order-note { margin: 0; font-size: 13px; color: var(--muted); }
.sold-out-note {
  margin: 0; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); color: var(--ink); font-size: 14px; font-weight: 600;
}
.pdp-meta { border-top: 1px solid var(--line); }
.pdp-meta details { border-bottom: 1px solid var(--line); }
.pdp-meta summary {
  padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.pdp-meta summary::-webkit-details-marker { display: none; }
.pdp-meta summary::after { content: '+'; font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.pdp-meta details[open] summary::after { transform: rotate(45deg); }
.pdp-meta details > div { padding-bottom: 20px; color: var(--muted); font-size: 15px; }
.pdp-meta details p { margin: 0; }
.pdp-meta .size-table { margin-top: 0; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-main { grid-column: 1; }
  .thumbs { display: none; }
  .gallery-dots { display: flex; justify-content: center; gap: 6px; padding-top: 14px; }
  .gallery-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .2s; }
  .gallery-dots span[aria-current='true'] { width: 26px; background: var(--ink); }
  .order-bar {
    position: sticky; bottom: 0; z-index: 5; margin-inline: calc(-1 * var(--gutter));
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  }
}

/* ───────── Redes, carrito y WhatsApp flotante ───────── */

.header-social { display: flex; gap: 2px; }
.icon-link {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #2a3a50;
  transition: background .2s, color .2s;
}
.icon-link svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon-link:hover { background: var(--mist); color: var(--blue); } }
.icon-link-dark { width: 48px; height: 48px; color: #fff; border: 1px solid var(--line-dark); }
.icon-link-dark svg { width: 20px; height: 20px; }
@media (hover: hover) { .icon-link-dark:hover { background: var(--celeste); border-color: var(--celeste); color: var(--night); } }
.menu-social { display: flex; gap: 10px; margin-top: 20px; }
.brand { flex-shrink: 0; white-space: nowrap; }
.header-bar { gap: 14px; }
.nav { gap: 0; }
.nav a { padding: 10px 11px; letter-spacing: .1em; }
@media (max-width: 1100px) { .nav a { padding: 10px 7px; letter-spacing: .06em; } }
@media (max-width: 1360px) { .header-social { display: none; } }

.cart-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.cart-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .cart-btn:hover { border-color: var(--ink); } }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--celeste); color: var(--night);
  font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px #fff;
  animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: scale(.4); } }
@media (max-width: 960px) { .cart-btn { width: 44px; height: 44px; margin-left: auto; } .brand { margin-right: 0; } .header-bar { gap: 10px; } .brand { flex: 1; min-width: 0; } }

.footer-link { display: inline-flex; align-items: center; gap: 10px; }
.footer-link svg { width: 18px; height: 18px; flex: none; color: var(--celeste); }

.wa-float {
  position: fixed; z-index: 40; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0; height: 58px; padding: 0 17px; border-radius: var(--r-pill);
  background: var(--celeste); color: var(--night); text-decoration: none; cursor: pointer;
  box-shadow: 0 16px 34px -12px rgba(6, 11, 20, .55), 0 0 0 4px rgba(63, 176, 234, .22);
  transition: gap .3s var(--ease), padding .3s var(--ease), transform .2s var(--ease), background .2s;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float span {
  max-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  transition: max-width .35s var(--ease);
}
@media (hover: hover) {
  .wa-float:hover { gap: 10px; padding: 0 22px 0 18px; background: var(--celeste-hi); }
  .wa-float:hover span { max-width: 160px; }
}
.wa-float:active { transform: scale(.95); }
body.menu-open .wa-float, body.cart-open .wa-float { display: none; }
@media (max-width: 900px) { .has-buy-bar .wa-float { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* Selector de cantidad */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); height: 40px; }
.qty button {
  width: 38px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ink);
  border-radius: var(--r-pill);
}
.qty button:disabled { color: #b5c0cc; cursor: default; }
@media (hover: hover) { .qty button:not(:disabled):hover { background: var(--mist); } }
.qty output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty-lg { height: 54px; flex: none; }
.qty-lg button { width: 46px; }

.buy-row { display: flex; gap: 10px; margin-top: 24px; }
.buy-row .btn { flex: 1; min-width: 0; }
.pdp-info .btn { white-space: normal; line-height: 1.2; text-align: center; }
@media (max-width: 420px) {
  .buy-row .btn, .pdp-info .btn-outline { padding: 0 14px; letter-spacing: .08em; font-size: 12px; }
  .qty-lg button { width: 38px; }
}
.added-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--celeste-soft); color: var(--blue); font-size: 14px; font-weight: 600; }

/* Panel del carrito */
.cart {
  width: min(100%, 460px); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0 0 0 auto; padding: 0; border: 0; background: #fff; color: var(--ink);
}
.cart::backdrop { background: rgba(6, 11, 20, .55); }
.cart[open] { animation: cartIn .35s var(--ease); }
@keyframes cartIn { from { transform: translateX(40px); opacity: 0; } }
.cart-panel { display: flex; flex-direction: column; height: 100%; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 20px 18px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; }
.cart-summary { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.cart-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; font-size: 26px; line-height: 1; }
.cart-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { grid-row: span 2; width: 80px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: radial-gradient(90% 70% at 50% 40%, #fff, #eaf1f7); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cart-info { display: grid; gap: 3px; min-width: 0; }
.cart-info b { font-size: 1rem; }
.cart-name { font-size: 1.05rem; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; line-height: 1.1; }
@media (hover: hover) { .cart-name:hover { color: var(--blue); } }
.cart-meta { font-size: 13px; color: var(--muted); }
.cart-meta b { color: var(--ink); }
.cart-unit { font-size: 14px; font-weight: 700; color: var(--blue); }
.cart-unit small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.cart-warn { font-size: 13px; color: var(--danger); font-weight: 600; }
.cart-remove {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.cart-remove svg { width: 18px; height: 18px; }
@media (hover: hover) { .cart-remove:hover { background: #fdecea; color: var(--danger); } }
.cart-row { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.cart-line { font-size: 1.05rem; font-weight: 900; }
.cart-item.is-unavailable .cart-thumb, .cart-item.is-unavailable .cart-name { opacity: .5; }

.cart-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 64px 12px; }
.cart-empty b { font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.cart-empty p { margin: 0 0 8px; color: var(--muted); }

.cart-foot { display: grid; gap: 12px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.cart-foot > * { min-width: 0; }
.cart-checkout { white-space: normal; line-height: 1.2; text-align: center; }
@media (max-width: 420px) { .cart-checkout { padding: 0 16px; letter-spacing: .08em; } }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-total > span { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cart-total div { text-align: right; }
.cart-total b { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--blue); }
.cart-total small { font-size: 13px; color: var(--muted); }
.cart-hint, .cart-sent { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.cart-sent { padding: 10px 12px; border-radius: 12px; background: var(--celeste-soft); color: var(--blue); font-weight: 600; }
.cart-clear { justify-self: center; padding: 6px; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .cart-clear:hover { color: var(--danger); } }
@media (max-width: 480px) {
  .cart-head { padding: 16px 16px 14px 18px; }
  .cart-body { padding: 4px 18px; }
  .cart-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
  .cart-item { grid-template-columns: 68px minmax(0, 1fr) auto; }
  .cart-thumb { width: 68px; }
}

/* ───────── Porteros que confían en RG ───────── */

.section.team { overflow: hidden; padding-top: clamp(72px, 11vw, 140px); border-top: 1px solid var(--line-dark); }
.team-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.team-head h2 { margin-top: 14px; font-size: clamp(2.8rem, 7vw, 7.2rem); color: #fff; }
.team-aside { display: grid; justify-items: end; gap: 22px; text-align: right; }
.team-aside p { margin: 0; max-width: 24ch; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 400; line-height: 1.35; color: var(--on-dark); }
.team-controls { display: flex; gap: 10px; }
.team-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .22);
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.team-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .team-btn:not(:disabled):hover { background: var(--celeste); border-color: var(--celeste); color: var(--night); } }
.team-btn:disabled { opacity: .3; cursor: default; }

/* Carril: arranca alineado con el contenido y se extiende hasta el borde derecho de la pantalla. */
.team-track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --gap: clamp(12px, 1.4vw, 20px);
  list-style: none; margin: 0; display: flex; gap: var(--gap);
  padding: 0 var(--edge) 8px; scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.team-track:focus-visible { outline: 2px solid var(--celeste); outline-offset: 6px; }

/* Todas las tarjetas con la misma proporción vertical (3:4); ~4 completas y parte de la quinta en escritorio. */
.team-card { flex: 0 0 clamp(250px, 21.5vw, 400px); scroll-snap-align: start; }
.team-card figure {
  position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: var(--panel);
  isolation: isolate;
}
.team-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.88);
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
.team-card figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 11, 20, .92) 0%, rgba(6, 11, 20, .45) 26%, rgba(6, 11, 20, 0) 52%);
}
.team-card figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 6px; }
.team-card b { font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; color: #fff; }
.team-card figcaption span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--celeste);
}
.team-card figcaption span::before { content: ''; width: 18px; height: 2px; background: currentColor; }
@media (hover: hover) {
  .team-card:hover img { filter: grayscale(.3) contrast(1.02) brightness(1); transform: scale(1.04); }
}

@media (max-width: 760px) {
  .team-head { grid-template-columns: 1fr; }
  .team-head h2 { font-size: clamp(2.2rem, 10.6vw, 3.6rem); }
  .team-aside { justify-items: start; text-align: left; }
  .team-card { flex-basis: 74vw; }
}

/* ───────── Entrada al desplazarse ───────── */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ───────── Página Guantes ───────── */

.nav a[aria-current='page'] { background: var(--ink); color: #fff; }
@media (hover: hover) { .nav a[aria-current='page']:hover { background: var(--ink); color: #fff; } }
.mobile-menu nav a[aria-current='page'] { color: var(--celeste); }
.site-footer a[aria-current='page'] { color: #fff; }

.shop-hero { overflow: hidden; isolation: isolate; padding: 112px 0 clamp(48px, 7vw, 84px); }
.shop-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(63, 176, 234, .28), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 72px 72px;
}
.crumbs-dark { color: var(--on-dark); }
.crumbs-dark [aria-current] { color: #fff; }
@media (hover: hover) { .crumbs-dark a:hover { color: var(--celeste); } }
.shop-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(12px, 3vw, 32px); }
.shop-hero .kicker { color: var(--celeste); }
.shop-hero h1 { font-size: clamp(3.4rem, 10vw, 8.4rem); margin-top: 14px; }
.shop-hero .lead { max-width: 38ch; }
.shop-hero .lead strong { color: #fff; font-weight: 700; }

.section.shop { padding-top: clamp(28px, 4vw, 48px); }
.shop .filters { border-top: 0; padding-top: 0; }
.shop-search {
  display: flex; align-items: center; gap: 10px; max-width: 460px; height: 52px; padding: 0 20px;
  border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--line); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.shop-search:focus-within { border-color: var(--celeste); box-shadow: 0 0 0 4px rgba(63, 176, 234, .18); }
.shop-search svg { width: 18px; height: 18px; flex: none; }
.shop-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  font: inherit; font-size: 16px; color: var(--ink);
}
.shop-search input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 960px) { .shop-hero { padding-top: 100px; } }
