/* =====================================================================
   ELÉCTRICOS DEL ORIENTE — Tienda digital (mobile-first)
   Paleta corporativa: amarillo (protagonista), azul oscuro, rojo, blanco, negro
   ===================================================================== */
:root {
  --y: #FFD400;        /* amarillo fachada */
  --y-2: #FFC400;
  --y-deep: #F2A900;   /* sombreado del rayo */
  --navy: #0A1A3A;
  --navy-2: #10264F;
  --navy-3: #1B3B7A;
  --red: #E3141B;
  --red-2: #B90C12;
  --ink: #0E0F12;
  --paper: #FFFFFF;
  --mist: #F3F5F9;
  --line: #E2E6EE;
  --muted: #5A6375;
  --ok: #128C4A;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(10, 26, 58, .06), 0 4px 14px rgba(10, 26, 58, .06);
  --shadow-2: 0 10px 30px rgba(10, 26, 58, .16);
  --shadow-y: 0 8px 24px rgba(242, 169, 0, .45);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --topbar-h: 60px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--mist);
  font-size: 16px; line-height: 1.5; min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a, [role="button"], .chip, label.check { touch-action: manipulation; }
button, .chip, .tabbar a, .btn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
input, textarea, select { font: inherit; font-size: 16px; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--navy-3); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: calc(8px + var(--safe-t)); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; text-align: center; line-height: 1.15;
  transition: transform 120ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}
.btn svg { font-size: 1.3em; }
.btn:active { transform: scale(.97); }
.btn--y { --bg: var(--y); --fg: var(--ink); box-shadow: var(--shadow-y); }
.btn--red { --bg: var(--red); --fg: #fff; box-shadow: 0 8px 22px rgba(227, 20, 27, .35); }
.btn--wa { --bg: #128C4A; --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost-light { --bg: rgba(255,255,255,.08); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.06); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--navy); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; font-size: 22px; color: inherit;
  transition: background-color 140ms, transform 120ms var(--ease-out);
}
.icon-btn:active { transform: scale(.92); background: rgba(10, 26, 58, .08); }

/* ---------- Encabezado ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: calc(var(--topbar-h) + var(--safe-t)); padding: var(--safe-t) 12px 0 14px;
  background: var(--y);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.topbar::after { /* franja de luces */
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; pointer-events: none;
  background: radial-gradient(circle at 6px 0, var(--red) 2.2px, transparent 3px) 0 0 / 24px 6px repeat-x,
              radial-gradient(circle at 18px 0, var(--navy-3) 2.2px, transparent 3px) 0 0 / 24px 6px repeat-x;
  opacity: .9;
}
.topbar__brand { display: block; height: 44px; }
.topbar__brand img { height: 100%; width: auto; }
.topbar__actions { display: flex; align-items: center; gap: 4px; }
.topbar__wa { color: #0b6b38; }
.lang { display: flex; align-items: center; background: rgba(255,255,255,.55); border-radius: 999px; padding: 3px; gap: 0; font-weight: 800; font-size: .85rem; }
.lang span { opacity: .35; padding: 0 1px; }
.lang button { border: 0; background: transparent; padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 40px; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Vista principal ---------- */
.view { display: block; outline: none; min-height: 60dvh; }
.view > * { animation: viewIn 380ms var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

.section { padding: 26px 0 8px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h2 { font-size: clamp(1.35rem, 4.6vw, 2rem); line-height: 1.08; margin: 0; font-weight: 900; font-stretch: 80%; text-transform: uppercase; letter-spacing: -.005em; color: var(--navy); }
.h2 small { display: block; font-size: .55em; font-stretch: 100%; text-transform: none; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--navy-3); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: 8px 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 80% at 80% 0%, #1E3F86 0%, transparent 60%), radial-gradient(90% 70% at 0% 100%, #2a1a05 0%, transparent 55%), var(--navy);
  padding: 34px 0 28px;
}
.hero__lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__lights i {
  position: absolute; width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%;
  background: var(--c, var(--y)); filter: blur(var(--b, 0px)); opacity: .0;
  box-shadow: 0 0 18px 4px var(--c, var(--y));
  animation: twinkle var(--d, 3.2s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.8); } 50% { opacity: .95; transform: scale(1); } }
.hero__wire { position: absolute; top: 0; left: -2%; width: 104%; height: 70px; z-index: 0; pointer-events: none; }
.hero__wire path { fill: none; stroke: rgba(0,0,0,.55); stroke-width: 1.5; }
.hero__wire circle { animation: bulb 2.4s ease-in-out infinite; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero__inner { position: relative; display: grid; gap: 22px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  background: var(--y); color: var(--ink); font-weight: 900; font-stretch: 85%; text-transform: uppercase;
  padding: 7px 12px 7px 9px; border-radius: 999px; font-size: .78rem; letter-spacing: .03em; box-shadow: var(--shadow-y);
}
.hero__kicker svg { color: var(--red); font-size: 1.1em; }
.hero__brand { font-weight: 900; font-stretch: 70%; font-size: clamp(2.3rem, 11vw, 4.6rem); line-height: .9; text-transform: uppercase; margin: 2px 0 0; letter-spacing: -.01em; }
.hero__brand span { color: var(--y); display: block; text-shadow: 0 0 24px rgba(255, 212, 0, .55); }
.hero__title { font-size: clamp(1.15rem, 4.4vw, 1.6rem); font-weight: 800; line-height: 1.2; margin: 6px 0 0; max-width: 28ch; }
.hero__sub { margin: 4px 0 0; color: #C9D3EA; font-size: 1.02rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__ctas .btn--y { min-height: 56px; font-size: 1.05rem; text-transform: uppercase; font-stretch: 90%; letter-spacing: .02em; }
.hero__stats { display: flex; gap: 18px; margin-top: 4px; font-size: .82rem; color: #AFC0E4; }
.hero__stats b { display: block; font-size: 1.5rem; color: #fff; font-stretch: 80%; line-height: 1; }
.hero__collage { position: relative; height: 250px; }
.hero__card {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.9);
  animation: floaty 6s ease-in-out infinite;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card:nth-child(1) { left: 2%; top: 14px; transform: rotate(-7deg); --r: -7deg; }
.hero__card:nth-child(2) { left: 28%; top: 0; width: 48%; z-index: 2; --r: 2deg; transform: rotate(2deg); animation-delay: -2s; }
.hero__card:nth-child(3) { right: 2%; top: 30px; transform: rotate(8deg); --r: 8deg; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-8px) rotate(var(--r)); } }
.hero__badge {
  position: absolute; z-index: 3; left: 50%; bottom: 4px; transform: translateX(-50%);
  background: var(--red); color: #fff; font-weight: 900; text-transform: uppercase; font-stretch: 85%;
  border-radius: 999px; padding: 9px 16px; font-size: .82rem; white-space: nowrap; box-shadow: 0 10px 24px rgba(227, 20, 27, .45);
  display: flex; align-items: center; gap: 6px;
}
.hero__poster { position: relative; margin: 6px 0 18px; justify-self: center; width: min(100%, 460px); }
.hero__poster img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.9), 0 0 60px rgba(255,212,0,.25); transform: rotate(-1.2deg); animation: floaty 7s ease-in-out infinite; --r: -1.2deg; }
.hero__poster .hero__badge { bottom: -16px; }
@media (min-width: 860px) {
  .hero { padding: 56px 0 52px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; }
}

/* ---------- Categorías (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  position: relative; display: flex; align-items: flex-end; min-height: 128px; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; background: var(--navy); box-shadow: var(--shadow-1);
  transition: transform 160ms var(--ease-out);
}
.cat-card:active { transform: scale(.97); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 500ms var(--ease-out); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,58,0) 25%, rgba(10,26,58,.92) 100%); }
.cat-card__txt { position: relative; z-index: 1; padding: 12px; }
.cat-card__name { font-weight: 900; font-stretch: 82%; text-transform: uppercase; line-height: 1.05; font-size: 1.02rem; }
.cat-card__count { font-size: .8rem; color: var(--y); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .cat-card:hover img { transform: scale(1.06); } }

/* ---------- Carrusel horizontal ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 12px; margin: 0 -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 720px) { .rail { grid-auto-columns: minmax(200px, 23%); } }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 10px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.step::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--y); font-weight: 900; font-size: 1.15rem; }
.step b { display: block; color: var(--navy); }
.step p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Banda tienda (fachada) ---------- */
.storefront {
  position: relative; border-radius: 24px; overflow: hidden; background: var(--y); color: var(--ink);
  display: grid; gap: 0; box-shadow: var(--shadow-1);
}
@media (min-width: 760px) { .storefront { grid-template-columns: 1fr 1fr; } }
.storefront__sign { padding: 22px 20px; display: grid; gap: 12px; align-content: start; }
.storefront__sign img.logo { width: min(280px, 80%); height: auto; }
.storefront__rows { display: grid; gap: 8px; font-weight: 700; }
.storefront__rows a, .storefront__rows div { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.storefront__rows svg { font-size: 20px; background: var(--ink); color: var(--y); border-radius: 8px; padding: 5px; width: 30px; height: 30px; }
.storefront__photo { min-height: 340px; background: var(--navy) center 40% / cover no-repeat; position: relative; }
.storefront__photo--placeholder { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--navy) 0 18px, var(--navy-2) 18px 36px); }
.storefront__awning { height: 16px; background: repeating-linear-gradient(90deg, var(--red) 0 26px, #fff 26px 52px); }

/* ---------- Reseñas Google ---------- */
.review-cta { display: grid; gap: 12px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); border-left: 6px solid var(--y); }
.review-cta__stars { color: var(--y-deep); font-size: 22px; display: flex; gap: 2px; }
.review-cta p { margin: 0; color: var(--muted); }

/* ---------- Catálogo: buscador y filtros ---------- */
.catbar { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 30; background: rgba(243, 245, 249, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 0 6px 0 14px; box-shadow: var(--shadow-1); border: 1.5px solid transparent; transition: border-color 150ms; }
.search:focus-within { border-color: var(--navy-3); }
.search > svg { font-size: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 50px; color: var(--ink); }
.search input::placeholder { color: #8A93A6; }
.search .icon-btn { width: 40px; height: 40px; font-size: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 6px; margin: 0 -16px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--navy); scroll-snap-align: start;
  transition: background-color 150ms, color 150ms, border-color 150ms, transform 120ms var(--ease-out);
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { font-weight: 600; opacity: .65; }
.chip .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 2px; }
.toolbar__count { font-size: .88rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; min-height: 40px; padding: 0 34px 0 14px; font-weight: 700; color: var(--navy); font-size: 16px; max-width: 42vw; text-overflow: ellipsis; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filter-btn { position: relative; }
.filter-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; padding: 0 4px; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 0 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 180ms var(--ease-out), box-shadow 180ms;
}
.card__media { position: relative; display: block; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff 0%, #EEF1F6 100%); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform 400ms var(--ease-out); image-rendering: high-quality; }
.card__media.is-photo img { object-fit: cover; padding: 0; }
.card__ref { position: absolute; left: 8px; top: 8px; background: rgba(10, 26, 58, .88); color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 8px; border-radius: 8px; letter-spacing: .03em; backdrop-filter: blur(6px); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card__sub { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name { font-weight: 800; font-size: .95rem; line-height: 1.2; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__name::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta es tocable */
.card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-weight: 900; font-size: 1.08rem; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.price--consult { font-size: .85rem; color: var(--red-2); }
.card__add {
  position: relative; z-index: 2; flex: none; width: 42px; height: 42px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--y); color: var(--ink); display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 12px rgba(242,169,0,.4);
  transition: transform 120ms var(--ease-out), background-color 150ms;
}
.card__add:active { transform: scale(.88); }
.card__add.is-done { background: var(--ok); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .card:hover .card__media img { transform: scale(1.04); }
}
.photo-pending { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--navy-3); text-align: center; font-weight: 800; font-size: .8rem; background: repeating-linear-gradient(135deg, #F5F7FB 0 12px, #EDF1F7 12px 24px); }
.photo-pending img { width: 46px; height: auto; padding: 0 !important; opacity: .9; object-fit: contain; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { font-size: 44px; color: var(--y-deep); }

/* ---------- Detalle de producto ---------- */
.pdp { padding-bottom: 30px; }
.pdp__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.pdp__layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .pdp__layout { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } .pdp__media { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.pdp__media { position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff 0%, #E9EDF4 100%); box-shadow: var(--shadow-1); }
.pdp__media button { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.pdp__media img { display: block; width: 100%; height: auto; max-height: 70vh; max-width: 560px; object-fit: contain; margin: 0 auto; image-rendering: auto; image-rendering: high-quality; }
.pdp__media .zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(10,26,58,.8); color: #fff; font-size: .75rem; padding: 6px 10px; border-radius: 999px; font-weight: 700; pointer-events: none; }
.pdp__media .photo-pending { position: relative; min-height: 280px; }
.pdp__info { display: grid; gap: 14px; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--navy); border: 1.5px solid var(--line); text-decoration: none; }
.tag--ref { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag--y { background: var(--y); border-color: var(--y); color: var(--ink); }
.pdp__name { font-size: clamp(1.4rem, 5.5vw, 2.1rem); line-height: 1.1; margin: 0; font-weight: 900; font-stretch: 85%; color: var(--navy); }
.pdp__price { font-size: 1.9rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.pdp__price small { font-size: .9rem; color: var(--muted); font-weight: 700; margin-left: 4px; }
.pdp__price.price--consult { font-size: 1.2rem; color: var(--red-2); }
.panel { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.field-label { font-weight: 800; font-size: .85rem; color: var(--navy); margin: 0 0 8px; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .03em; }
.field-label em { font-style: normal; color: var(--red); text-transform: none; letter-spacing: 0; font-weight: 700; }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.opt { min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-align: left; line-height: 1.15; }
.opt b { display: block; font-variant-numeric: tabular-nums; }
.opt[aria-checked="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); background: #F2F5FC; }
.opt .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.stepper { display: inline-flex; align-items: center; background: var(--mist); border-radius: 999px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; font-size: 18px; cursor: pointer; box-shadow: var(--shadow-1); transition: transform 110ms var(--ease-out); }
.stepper button:active { transform: scale(.9); }
.stepper input { width: 52px; text-align: center; border: 0; background: transparent; font-weight: 900; font-size: 18px; -moz-appearance: textfield; color: var(--ink); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button { width: 34px; height: 34px; font-size: 15px; }
.stepper--sm input { width: 38px; font-size: 16px; }
.buy-row .btn { flex: 1; }
.desc { margin: 0; color: #2A3142; font-size: 1rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 700; padding-right: 12px; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.note { display: flex; gap: 10px; background: #FFF8D6; border: 1px solid #F3DF7E; border-radius: 14px; padding: 12px 14px; font-size: .9rem; color: #5B4A00; }
.note svg { font-size: 20px; flex: none; margin-top: 2px; }
.h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 900; color: var(--navy); margin: 0 0 10px; font-stretch: 90%; }
.sticky-buy { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); z-index: 20; }

/* ---------- Carrito flotante ---------- */
.cart-fab {
  position: fixed; z-index: 60; left: 0; top: 0; width: 64px; height: 64px; border-radius: 22px; border: 0; cursor: grab;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 12px 28px rgba(227, 20, 27, .45), 0 0 0 3px #fff;
  touch-action: none; will-change: transform; transform: translate3d(var(--x, 0), var(--y, 0), 0);
  transition: box-shadow 160ms, border-radius 200ms;
}
.cart-fab.is-snapping { transition: transform 420ms var(--ease-spring), box-shadow 160ms; }
.cart-fab.is-dragging { cursor: grabbing; box-shadow: 0 20px 40px rgba(227, 20, 27, .5), 0 0 0 3px #fff; }
.cart-fab.is-dragging svg { transform: scale(1.08); }
.cart-fab svg { transition: transform 160ms; }
.cart-fab__count {
  position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  background: var(--y); color: var(--ink); font-size: .82rem; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff;
}
.cart-fab.is-empty .cart-fab__count { background: #fff; color: var(--muted); }
.cart-fab.bump { animation: bump 560ms var(--ease-spring); }
@keyframes bump { 0% { scale: 1; } 30% { scale: 1.22; rotate: -8deg; } 60% { scale: .94; rotate: 4deg; } 100% { scale: 1; rotate: 0deg; } }
.cart-fab.bump .cart-fab__count { animation: pop 500ms var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.fly { position: fixed; z-index: 70; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-2); background: #fff; }

/* ---------- Hojas / sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6, 14, 32, .5); backdrop-filter: blur(2px); animation: fadeIn 200ms ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column;
  background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25);
  animation: sheetUp 360ms var(--ease-out) both; padding-bottom: var(--safe-b);
}
.sheet.is-closing { animation: sheetDown 240ms ease-in both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@media (min-width: 760px) {
  .sheet { left: auto; right: 16px; bottom: 16px; top: 16px; width: 440px; max-height: none; border-radius: 26px; animation-name: sheetIn; }
  .sheet.is-closing { animation-name: sheetOut; }
  @keyframes sheetIn { from { transform: translateX(110%); } }
  @keyframes sheetOut { to { transform: translateX(110%); } }
}
.sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: #D3D9E4; margin: 8px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet__head h2 { margin: 0; font-size: 1.25rem; font-weight: 900; font-stretch: 85%; text-transform: uppercase; color: var(--navy); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 20px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__foot { border-top: 1px solid var(--line); padding: 12px 16px 14px; background: #fff; flex: none; }

.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 72px; height: 72px; border-radius: 14px; background: var(--mist); overflow: hidden; position: relative; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 800; font-size: .95rem; line-height: 1.2; margin: 0; color: var(--ink); }
.cart-line__meta { font-size: .8rem; color: var(--muted); margin: 3px 0 0; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cart-line__sub { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.1; }
.cart-line__sub small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.cart-line .icon-btn { width: 38px; height: 38px; font-size: 18px; color: var(--red-2); }
.totals { display: grid; gap: 4px; padding: 14px 0 6px; }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.35rem; font-weight: 900; color: var(--navy); }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--navy); }
.form label span small { font-weight: 600; color: var(--muted); }
.form input, .form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; background: #fff; color: var(--ink); outline: none; transition: border-color 150ms, box-shadow 150ms; }
.form textarea { min-height: 92px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(27, 59, 122, .12); }
.form .is-invalid { border-color: var(--red); }
.form .err { color: var(--red-2); font-size: .82rem; font-weight: 700; min-height: 0; }
.checkout-bar { position: sticky; bottom: -20px; z-index: 2; background: #fff; margin: 0 -16px; padding: 10px 16px 14px; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(10,26,58,.06); display: grid; gap: 8px; }
.checkout-bar__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--muted); font-size: .9rem; }
.checkout-bar__total b { font-size: 1.25rem; color: var(--navy); font-weight: 900; font-variant-numeric: tabular-nums; }
.fineprint { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Filtros ---------- */
.fgroup { padding: 6px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 700; }
.check input { width: 24px; height: 24px; accent-color: var(--navy); }

/* ---------- Tienda / info ---------- */
.info-list { display: grid; gap: 10px; }
.info-item { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow-1); }
.info-item__ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--y); color: var(--ink); }
.info-item small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.info-item b { font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.map { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); box-shadow: var(--shadow-1); }
@media (min-width: 760px) { .map { aspect-ratio: 16 / 9; } }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 10px; padding: 20px; color: #fff; background: radial-gradient(circle at 50% 45%, var(--navy-3), var(--navy)); }
.map__fallback .pin { font-size: 46px; color: var(--y); filter: drop-shadow(0 0 16px rgba(255,212,0,.6)); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__open { position: absolute; z-index: 2; left: 12px; bottom: 12px; box-shadow: var(--shadow-2); }
.actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Link in bio ---------- */
.bio { min-height: calc(100dvh - var(--topbar-h)); background: radial-gradient(110% 60% at 50% 0%, #1D3D85 0%, var(--navy) 60%); color: #fff; padding: 28px 0 40px; position: relative; overflow: hidden; }
.bio__wrap { max-width: 520px; margin: 0 auto; padding: 0 18px; display: grid; gap: 12px; position: relative; }
.bio__head { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: 8px; }
.bio__avatar { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--y), 0 0 40px rgba(255,212,0,.5); }
.bio__avatar img { width: 70%; height: auto; }
.bio__head h1 { margin: 6px 0 0; font-size: 1.7rem; font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: 1; }
.bio__head p { margin: 0; color: #B9C6E6; font-size: .95rem; }
.bio-btn {
  display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 14px 10px 10px; border-radius: 20px; text-decoration: none; font-weight: 800; font-size: 1.02rem;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px);
  transition: transform 130ms var(--ease-out), background-color 150ms;
}
.bio-btn:active { transform: scale(.98); }
.bio-btn__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: #fff; color: var(--navy); flex: none; }
.bio-btn > span:not(.bio-btn__ico) { flex: 1; min-width: 0; }
.bio-btn > svg:last-child { opacity: .6; }
.bio-btn--y { background: var(--y); color: var(--ink); border-color: var(--y); box-shadow: var(--shadow-y); }
.bio-btn--y .bio-btn__ico { background: var(--ink); color: var(--y); }
.bio-btn--red { background: var(--red); border-color: var(--red); }
.bio-btn--red .bio-btn__ico { color: var(--red); }
.bio-btn--wa .bio-btn__ico { background: #128C4A; color: #fff; }
.bio-review { background: #fff; color: var(--ink); border-radius: 22px; padding: 18px; display: grid; gap: 10px; text-align: center; margin-top: 6px; }
.bio-review p { margin: 0; color: var(--muted); }
.bio-review .review-cta__stars { justify-content: center; }
@media (hover: hover) and (pointer: fine) { .bio-btn:hover { background: rgba(255,255,255,.14); } .bio-btn--y:hover, .bio-btn--red:hover { filter: brightness(1.05); } }

/* ---------- Barra inferior ---------- */
.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(10, 26, 58, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; color: #9FB0D6; font-size: .72rem; font-weight: 700; position: relative; }
.tabbar a svg { font-size: 24px; transition: transform 160ms var(--ease-spring); }
.tabbar a[aria-current="page"] { color: var(--y); }
.tabbar a[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--y); box-shadow: 0 0 12px var(--y); }
.tabbar a:active svg { transform: scale(.9); }
@media (min-width: 900px) {
  body { padding-bottom: 96px; }
  .tabbar { left: 50%; right: auto; bottom: 16px; width: 440px; transform: translateX(-50%); border-radius: 22px; height: 64px; padding: 0; box-shadow: var(--shadow-2); }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #AFC0E4; padding: 28px 0 24px; margin-top: 30px; font-size: .88rem; }
.footer .wrap { display: grid; gap: 12px; }
.footer__logo { background: var(--y); border-radius: 14px; padding: 8px 12px; justify-self: start; }
.footer__logo img { height: 44px; width: auto; }
.footer a { color: #fff; }
.footer p { margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-2); max-width: calc(100vw - 32px); transition: opacity 200ms, transform 300ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: transparent; border: 0; color: var(--y); font-weight: 900; cursor: pointer; padding: 6px; text-transform: uppercase; font-size: .82rem; }
.toast svg { color: var(--y); font-size: 20px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(6, 12, 26, .96); display: grid; animation: fadeIn 200ms both; }
.lightbox__scroller { overflow: auto; display: grid; place-items: center; padding: 60px 10px calc(20px + var(--safe-b)); touch-action: pinch-zoom pan-x pan-y; overscroll-behavior: contain; }
.lightbox img { max-width: min(100%, 900px); width: 100%; height: auto; image-rendering: auto; border-radius: 12px; background: #fff; }
.lightbox__close { position: fixed; top: calc(10px + var(--safe-t)); right: 10px; color: #fff; background: rgba(255,255,255,.12); z-index: 2; }

/* ---------- Instalar PWA ---------- */
.install { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-1); }
.install img { width: 44px; height: 44px; border-radius: 12px; }
.install p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.install p b { color: var(--ink); display: block; }

/* =====================================================================
   SPLASH — logo con rayo que se ilumina
   ===================================================================== */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 48%, #13306A 0%, var(--navy) 70%, #050C1E 100%);
  transition: opacity 520ms ease, visibility 520ms;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,212,0,.55), rgba(255,212,0,0) 65%); opacity: 0; animation: glow 1.9s ease-out .55s forwards; }
@keyframes glow { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: .9; } 100% { opacity: .55; transform: scale(1.05); } }
.splash__stage { position: relative; width: min(52vmin, 240px); aspect-ratio: 369 / 444; }
.splash__plate { position: absolute; left: 50%; top: 50%; width: 142%; aspect-ratio: 1; border-radius: 50%; background: #fff; translate: -50% -50%; scale: .2; opacity: 0; animation: plate 620ms var(--ease-spring) .1s forwards; box-shadow: 0 0 0 5px var(--y), 0 0 60px rgba(255,212,0,.35); }
@keyframes plate { to { scale: 1; opacity: 1; } }
.splash__ring, .splash__bolt { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__ring { opacity: 0; animation: ringIn 500ms ease .35s forwards; }
@keyframes ringIn { from { opacity: 0; transform: rotate(-30deg) scale(.9); } to { opacity: 1; transform: none; } }
.splash__bolt-wrap { position: absolute; inset: 0; }
.splash__bolt--dim { filter: grayscale(1) brightness(.55); opacity: 0; animation: fadeTo 300ms ease .45s forwards; }
@keyframes fadeTo { to { opacity: .6; } }
.splash__bolt--lit { clip-path: inset(100% 0 0 0); filter: drop-shadow(0 0 0 rgba(255,200,0,0)); animation: charge 900ms cubic-bezier(.6,0,.3,1) .7s forwards, litGlow 700ms ease 1.6s forwards; }
@keyframes charge { 0% { clip-path: inset(100% 0 0 0); } 35% { clip-path: inset(62% 0 0 0); } 45% { clip-path: inset(66% 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes litGlow { 0% { filter: drop-shadow(0 0 0 rgba(255,200,0,0)); } 40% { filter: drop-shadow(0 0 22px rgba(255,214,0,1)) brightness(1.35); } 100% { filter: drop-shadow(0 0 8px rgba(255,200,0,.7)); } }
.splash__arcs { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.splash__arcs path { fill: none; stroke: #FFE45C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px #FFD400); stroke-dasharray: 120; stroke-dashoffset: 120; opacity: 0; animation: arc 420ms steps(6) forwards; }
.splash__arcs path:nth-child(1) { animation-delay: .9s; }
.splash__arcs path:nth-child(2) { animation-delay: 1.05s; }
.splash__arcs path:nth-child(3) { animation-delay: 1.15s; }
.splash__arcs path:nth-child(4) { animation-delay: 1.25s; }
@keyframes arc { 0% { opacity: 0; stroke-dashoffset: 120; } 30% { opacity: 1; } 70% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: -120; } }
.splash__sparks i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #FFE45C; box-shadow: 0 0 10px #FFD400; opacity: 0; animation: spark 700ms ease-out 1.55s forwards; }
.splash__sparks i:nth-child(1) { --dx: -110px; --dy: -60px; } .splash__sparks i:nth-child(2) { --dx: 120px; --dy: -40px; }
.splash__sparks i:nth-child(3) { --dx: -90px; --dy: 90px; } .splash__sparks i:nth-child(4) { --dx: 100px; --dy: 100px; }
.splash__sparks i:nth-child(5) { --dx: 0px; --dy: -140px; } .splash__sparks i:nth-child(6) { --dx: -150px; --dy: 10px; }
.splash__sparks i:nth-child(7) { --dx: 150px; --dy: 20px; } .splash__sparks i:nth-child(8) { --dx: 10px; --dy: 150px; }
@keyframes spark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); } }
.splash__flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, #fff 0%, #FFF3B0 35%, rgba(255,212,0,0) 70%); opacity: 0; animation: flash 520ms ease-out 1.55s forwards; pointer-events: none; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.splash__skip { position: absolute; right: 16px; bottom: calc(18px + var(--safe-b)); background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; opacity: 0; animation: fadeIn 300ms ease .6s forwards; }
@keyframes fadeIn2 { to { opacity: 1; } }
.splash__skip { animation-name: fadeIn2; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__lights i { opacity: .6; }
}

body.is-locked .toast { bottom: auto; top: calc(var(--safe-t) + 16px); }

/* ---------- Videos de Instagram ---------- */
.rail--ig { grid-auto-columns: minmax(150px, 42%); }
@media (min-width: 720px) { .rail--ig { grid-auto-columns: minmax(180px, 19%); } }
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ig-grid { grid-template-columns: repeat(5, 1fr); } }
.ig-card { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--navy); color: #fff; text-align: left; box-shadow: var(--shadow-1); transition: transform 140ms var(--ease-out); }
.ig-card:active { transform: scale(.97); }
.ig-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,58,0) 45%, rgba(10,26,58,.92)); }
.ig-card__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: var(--y); }
.ig-card__play { position: absolute; z-index: 1; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--y); color: var(--ink); font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.ig-card__cap { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; font-size: .8rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ig-card__cap small { display: block; color: var(--y); font-weight: 700; margin-top: 2px; }
.ig-card--sk { background: linear-gradient(100deg, #DCE2EC 30%, #EEF2F8 50%, #DCE2EC 70%) 0 0 / 300% 100%; animation: sk 1.2s linear infinite; box-shadow: none; }
.ig-card--sk::after { display: none; }
@keyframes sk { to { background-position: -150% 0; } }
.ig-fallback { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-decoration: none; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1); }
.ig-fallback__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--y); color: var(--ink); flex: none; }
.ig-fallback > span:nth-child(2) { flex: 1; min-width: 180px; color: #C9D3EA; font-size: .92rem; }
.ig-fallback b { display: block; color: #fff; font-size: 1.05rem; }
.ig-follow { text-align: center; margin: 18px 0 0; }
.vmodal { position: fixed; inset: 0; z-index: 120; background: rgba(4, 9, 22, .96); display: grid; place-items: center; padding: calc(56px + var(--safe-t)) 12px calc(16px + var(--safe-b)); animation: fadeIn 200ms both; }
.vmodal__close { position: fixed; top: calc(10px + var(--safe-t)); right: 10px; color: #fff; background: rgba(255,255,255,.12); z-index: 2; }
.vmodal__box { width: min(100%, 420px); display: grid; gap: 10px; }
.vmodal__stage { width: 100%; aspect-ratio: 9 / 16; max-height: 72dvh; border-radius: 18px; overflow: hidden; background: #000; display: grid; place-items: center; margin: 0 auto; }
.vmodal__stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vmodal__noplay { position: relative; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; }
.vmodal__noplay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.vmodal__noplay p { position: relative; font-weight: 700; }
.vmodal__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; }
.vmodal__bar .icon-btn { background: rgba(255,255,255,.12); color: #fff; }
.vmodal__bar .icon-btn:disabled { opacity: .3; }
.vmodal__cap { margin: 0; color: #C9D3EA; font-size: .88rem; max-height: 4.5em; overflow-y: auto; white-space: pre-line; }
