/* =====================================================================
   OLYMPIA DEPORTES — estilos propios (look deportivo premium)
   Paleta de marca: azul #102542 (principal), rojo #D7263D (acento),
   grafito #171717, gris #EAEAEA, blanco. Las demás son variantes.
   Las animaciones solo mueven transform y opacity (60 fps).
   ===================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --noche: #07111F;            /* variante oscura del azul: fondo general */
  --azul: #102542;             /* azul Olympia */
  --azul-2: #1B3A66;
  --azul-3: #2A5599;           /* azul claro para brillos */
  --rojo: #D7263D;             /* rojo Olympia */
  --rojo-2: #B81E32;
  --grafito: #171717;
  --gris: #EAEAEA;
  --blanco: #FFFFFF;
  --texto: #F3F5F8;
  --suave: #A9B4C4;            /* texto secundario (contraste 8:1 sobre --noche) */
  --vidrio: rgba(255, 255, 255, .06);
  --borde: rgba(255, 255, 255, .12);

  --f-titulo: Montserrat, system-ui, sans-serif;
  --f-texto: Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m: clamp(16px, 4vw, 56px);
  --radio: 22px;
}

/* ---------- 2. Base ---------- */
.hidden { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
.o-body {
  margin: 0; background: var(--noche); color: var(--texto);
  font-family: var(--f-texto); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Grano sutil sobre toda la página */
.o-body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:where(.o-body) a { color: inherit; }   /* baja prioridad: no pisa el blanco de los botones */
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
::selection { background: var(--rojo); color: var(--blanco); }
.o-h2 {
  font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 88px); line-height: .92; letter-spacing: -0.03em; margin: 0;
}
.o-nota { color: var(--suave); margin: 12px 0 0; font-size: 15px; }
.o-vidrio {
  background: var(--vidrio); border: 1px solid var(--borde); border-radius: var(--radio);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sin-scrollbar::-webkit-scrollbar { display: none; }
.sin-scrollbar { scrollbar-width: none; }

/* ---------- 3. Íconos y botones (brillo, presión e imán) ---------- */
.o-ico { display: inline-block; width: 20px; height: 20px; flex: none; }
.o-ico svg { width: 100%; height: 100%; }
.o-ico--grande { width: 30px; height: 30px; }
.o-btn {
  --mx: 0px; --my: 0px; --presion: 1;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transform: translate(var(--mx), var(--my)) scale(var(--presion));
  transition: transform .45s var(--ease), background-color .3s var(--ease);
}
.o-btn:active { --presion: .96; }
/* brillo que recorre el botón */
.o-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.o-btn:hover::after { transform: translateX(120%); }
.o-btn--rojo { background: var(--rojo); color: var(--blanco) !important; box-shadow: 0 10px 30px -10px rgba(215,38,61,.7); }
.o-btn--rojo:hover { background: var(--rojo-2); }
.o-btn--vidrio { background: var(--vidrio); color: var(--texto) !important; border: 1px solid var(--borde); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.o-btn--vidrio:hover { background: rgba(255,255,255,.12); }
.o-btn--chico { min-height: 44px; padding: 0 18px; font-size: 14px; }
.o-btn--grande { min-height: 58px; padding: 0 32px; font-size: 17px; }
.o-btn--ancho { width: 100%; }
.o-iconbtn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 999px; color: var(--texto); cursor: pointer; transition: background-color .3s;
}
.o-iconbtn:hover { background: rgba(255,255,255,.1); }

/* ---------- 4. Intro de carga (una vez por visita) ---------- */
.o-intro { display: none; }
.con-intro .o-intro {
  display: flex; position: fixed; inset: 0; z-index: 100; background: var(--noche);
  align-items: center; justify-content: center;
  animation: intro-sube .55s var(--ease) .5s forwards;
}
.o-intro__in { display: grid; justify-items: center; gap: 4px; }
.o-intro__logo { position: relative; display: block; width: 104px; height: 176px; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.9); animation: antorcha .5s var(--ease) forwards; }
.o-intro__logo img { position: absolute; width: 614px; max-width: none; left: -255px; top: -46px; }
@keyframes antorcha { to { opacity: 1; transform: none; } }
.o-intro__nombre { margin: 0; display: flex; overflow: hidden; font-family: var(--f-titulo); font-weight: 900; font-size: clamp(44px, 10vw, 96px); letter-spacing: .08em; line-height: 1; }
.o-intro__nombre span { display: inline-block; transform: translateY(105%); animation: letra .45s var(--ease) forwards; }
.o-intro__nombre span:nth-child(2) { animation-delay: .04s; }
.o-intro__nombre span:nth-child(3) { animation-delay: .08s; }
.o-intro__nombre span:nth-child(4) { animation-delay: .12s; }
.o-intro__nombre span:nth-child(5) { animation-delay: .16s; }
.o-intro__nombre span:nth-child(6) { animation-delay: .20s; }
.o-intro__nombre span:nth-child(7) { animation-delay: .24s; }
@keyframes intro-sube { to { transform: translateY(-100%); } }
@keyframes letra { to { transform: none; } }
@keyframes aparece { to { opacity: 1; } }

/* ---------- 5. Header: transparente → vidrio al bajar, con barra de progreso ---------- */
.o-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--texto); }
.o-bar__fondo {
  position: absolute; inset: 0; transform-origin: top; opacity: 0;
  background: rgba(7, 17, 31, .62); border-bottom: 1px solid var(--borde);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.o-bar__in {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 76px; padding: 0 var(--m); transition: transform .5s var(--ease);
}
.o-bar.achicado .o-bar__fondo { opacity: 1; transform: scaleY(.84); }
.o-bar.achicado .o-bar__in { transform: translateY(-6px); }
.o-bar.achicado .logo-mini { transform: scale(.86); }
.o-progreso {
  position: absolute; left: 0; right: 0; top: calc(76px * .84 - 2px); height: 2px; transform-origin: left;
  transform: scaleX(0); background: linear-gradient(90deg, var(--rojo), var(--azul-3)); opacity: 0; transition: opacity .4s;
}
.o-bar.achicado .o-progreso { opacity: 1; }
.o-bar__nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.o-bar__nav a { position: relative; text-decoration: none; padding: 10px 0; opacity: .85; transition: opacity .3s; }
.o-bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--rojo); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.o-bar__nav a:hover { opacity: 1; }
.o-bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.o-bar__act { display: flex; align-items: center; gap: 8px; }
.o-badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--rojo); }
.o-menu { position: relative; display: grid; padding: 4px var(--m) 16px; background: rgba(7,17,31,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.o-menu a { padding: 14px 0; font-weight: 700; text-decoration: none; font-family: var(--f-titulo); text-transform: uppercase; }
.o-solo-cel { display: none; }
.logo-fusion { mix-blend-mode: screen; }   /* el logo tiene fondo negro: se funde con el oscuro */
.logo-mini { display: block; width: 74px; height: 56px; overflow: hidden; position: relative; transition: transform .5s var(--ease); transform-origin: left center; }
.logo-mini img { position: absolute; width: 115px; max-width: none; left: -20px; top: -9px; }

/* ---------- 6. Hero ---------- */
.o-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px var(--m) 80px; }
/* manchas de color difuminadas que se mueven lento */
.o-hero__blobs i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform;
  animation: blob 18s ease-in-out infinite alternate;
}
.o-hero__blobs i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: var(--azul-3); }
.o-hero__blobs i:nth-child(2) { width: 34vw; height: 34vw; right: -6vw; top: 18%; background: var(--rojo); opacity: .4; animation-duration: 22s; animation-delay: -6s; }
.o-hero__blobs i:nth-child(3) { width: 40vw; height: 40vw; left: 30%; bottom: -22vw; background: var(--azul-2); animation-duration: 26s; animation-delay: -12s; }
@keyframes blob {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vw, 0) scale(.94); }
}
/* grilla muy tenue */
.o-hero__grilla {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%);
}
.o-hero__in { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.o-hero__titulo {
  margin: 0; font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase;
  font-size: clamp(54px, 8.4vw, 140px); line-height: .86; letter-spacing: -0.035em;
}
/* las palabras entran una por una */
html { --base: .15s; }
html.con-intro { --base: 1s; }
.o-palabra { display: block; overflow: hidden; padding: .14em 0 .04em; margin-top: -.14em; }
.o-palabra > span { display: inline-block; transform: translateY(110%); animation: palabra .9s var(--ease) forwards; animation-delay: var(--base); }
.o-palabra:nth-child(2) > span { animation-delay: calc(var(--base) + .14s); }
.o-palabra:nth-child(3) > span { animation-delay: calc(var(--base) + .28s); }
.o-palabra--rojo > span { color: var(--rojo); text-shadow: 0 0 60px rgba(215,38,61,.45); }
@keyframes palabra { to { transform: none; } }
.o-hero__sub { max-width: 48ch; margin: 24px 0 0; font-size: clamp(17px, 1.3vw, 20px); color: var(--suave); }
.o-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
/* producto destacado flotando */
.o-hero__flota { margin: 0; position: relative; justify-self: center; width: min(420px, 100%); }
.o-hero__flota::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: var(--rojo);
  filter: blur(70px); opacity: .35; animation: flota 6s ease-in-out infinite;
}
.o-hero__card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--borde); background: var(--azul-2);
  animation: flota 6s ease-in-out infinite; will-change: transform;
}
@keyframes flota {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}
.o-fundido img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear; }
.o-fundido img.is-on { opacity: 1; transform: scale(1); }
.o-colgante {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: block; padding: 14px 18px;
  border-radius: 16px; text-decoration: none; font-weight: 700; line-height: 1.3;
  background: rgba(7,17,31,.6); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .4s var(--ease);
}
.o-colgante:hover { transform: translateY(-3px); }
.o-colgante span { display: block; font-weight: 500; font-size: 14px; color: var(--suave); }
.o-hero__bajar { position: absolute; left: 50%; bottom: 24px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--borde); border-radius: 999px; }
.o-hero__bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--texto); animation: bajar 1.8s var(--ease) infinite; }
@keyframes bajar { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- 7. Cinta marquee ---------- */
.o-marquee { position: relative; z-index: 3; padding: 36px 0; overflow: hidden; }
.o-marquee__cinta { background: var(--rojo); transform: rotate(-2.5deg) scale(1.06); padding: 16px 0; box-shadow: 0 20px 60px -20px rgba(215,38,61,.6); }
.o-marquee__pista { display: flex; width: max-content; animation: marquee 32s linear infinite; will-change: transform; }
.o-marquee__pista span { font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: .02em; white-space: nowrap; padding-right: 28px; color: var(--blanco); }
.o-marquee__pista span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.85); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Contadores ---------- */
.o-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 80px var(--m) 40px; }
.o-numero { padding: 28px; border-radius: var(--radio); background: var(--vidrio); border: 1px solid var(--borde); }
.o-numero__valor {
  margin: 0; font-family: var(--f-titulo); font-weight: 900; line-height: 1; font-size: clamp(48px, 6vw, 96px);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
  color: var(--blanco);
}
.o-numero__txt { margin: 8px 0 0; color: var(--suave); font-weight: 600; }

/* ---------- 9. Catálogo: filtros ---------- */
.o-cat { padding: 100px var(--m) 120px; }
.o-cat__cab { margin-bottom: 32px; }
.o-admin { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radio); background: rgba(215,38,61,.12); border: 1px solid rgba(215,38,61,.4); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.o-admin p { margin: 0; }
.o-admin__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.o-filtros { padding: 20px; display: grid; gap: 20px; margin-bottom: 40px; position: relative; z-index: 2; }
/* pestañas con indicador que se desliza */
.o-pestanas { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--borde); }
.o-pestanas__ind {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--rojo); box-shadow: 0 8px 24px -8px rgba(215,38,61,.8); transition: transform .55s var(--ease);
}
.o-pestanas[data-activa="encargo"] .o-pestanas__ind { transform: translateX(100%); }
.o-pestanas .tab { position: relative; z-index: 1; min-height: 50px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--suave); cursor: pointer; border-radius: 999px; transition: color .4s var(--ease); }
.o-pestanas .tab[aria-selected="true"] { color: var(--blanco); }
.o-busqueda { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.o-busqueda .campo { min-height: 50px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--borde); color: var(--texto); padding: 0 18px; font-size: 16px; }
.o-busqueda .campo::placeholder { color: var(--suave); }
.o-busqueda select.campo option { color: #171717; }
.o-busqueda__campo { position: relative; display: block; }
.o-busqueda__campo .campo { padding-left: 46px; }
.o-busqueda__lupa { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--suave); }
.o-talles { border: 0; margin: 0; padding: 0; }
.o-talles legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.o-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.o-chips button {
  min-height: 42px; min-width: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--borde);
  background: rgba(255,255,255,.04); font: inherit; font-size: 15px; font-weight: 600; color: var(--texto); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background-color .3s var(--ease), border-color .3s, transform .2s var(--ease);
}
.o-chips button:hover { border-color: rgba(255,255,255,.35); }
.o-chips button:active { transform: scale(.96); }
.o-chips button[aria-pressed="true"] { background: var(--texto); color: var(--noche); border-color: var(--texto); }
.o-chips button.o-chip--oferta { border-color: rgba(215,38,61,.6); color: #FF8796; }
.o-chips button.o-chip--oferta[aria-pressed="true"] { background: var(--rojo); color: var(--blanco); border-color: var(--rojo); }
.o-marcas { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.o-marcas button { border: 0; background: none; font: inherit; font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--suave); padding: 8px 0; cursor: pointer; transition: color .3s; }
.o-marcas button:hover, .o-marcas button[aria-pressed="true"] { color: var(--texto); }
.o-marcas button[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- 10. Catálogo: tarjetas (tilt 3D, reflejo, zoom, glow) ---------- */
.o-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; perspective: 1200px; }
.o-card { --i: 0; position: relative; isolation: isolate; border-radius: var(--radio); cursor: pointer; outline: none; }
/* borde con degradado y glow, se encienden en hover */
.o-card::before, .o-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: calc(var(--radio) + 1px); z-index: -1;
  background: linear-gradient(135deg, var(--rojo), var(--azul-3) 50%, var(--rojo));
  opacity: 0; transition: opacity .5s var(--ease);
}
.o-card::after { inset: 8px; filter: blur(26px); }
.o-card:hover::before, .o-card:focus-visible::before { opacity: 1; }
.o-card:hover::after, .o-card:focus-visible::after { opacity: .55; }
.o-card__in {
  position: relative; height: 100%; display: flex; flex-direction: column; border-radius: var(--radio); overflow: hidden;
  background: #0D1A2D; border: 1px solid var(--borde); transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.o-card__luz {
  position: absolute; left: -50%; top: -50%; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.22), transparent 55%);
  transition: opacity .4s var(--ease);
}
.o-card:hover .o-card__luz { opacity: 1; }
.o-card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--azul-2); }
.o-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.o-card:hover .o-card__media img { transform: scale(1.08); }
.o-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.o-badgec { position: relative; overflow: hidden; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--blanco); background: rgba(7,17,31,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.o-badgec--oferta { background: var(--rojo); }
.o-badgec--encargo { background: var(--azul-3); }
/* brillo que pasa por el badge "Por encargo" */
.o-badgec--encargo::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  animation: shimmer 2.8s var(--ease) infinite;
}
@keyframes shimmer { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
.o-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.o-card__marca { margin: 0; font-size: 13px; font-weight: 700; color: #FF8796; letter-spacing: .04em; }
.o-card__nombre { margin: 0; font-family: var(--f-titulo); font-weight: 800; font-size: 19px; line-height: 1.2; }
.o-card__meta { margin: 0; font-size: 14px; color: var(--suave); }
.o-card__pie { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.o-card__precio { margin: 0; font-family: var(--f-titulo); font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.o-card__precio s { display: block; font-family: var(--f-texto); font-size: 13px; font-weight: 500; color: var(--suave); }
.o-card__precio .o-oferta { color: #FF8796; }
.o-card__admin { display: flex; gap: 6px; padding: 0 18px 18px; }
.o-card__admin button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.o-card__admin [data-editar] { background: var(--azul-3); color: var(--blanco); }
.o-card__admin [data-borrar] { background: var(--rojo); color: var(--blanco); }
.o-card--oculta { opacity: .5; }
.o-card--carga { aspect-ratio: 3 / 4; background: rgba(255,255,255,.05); animation: pulso 1.2s ease-in-out infinite alternate; }
@keyframes pulso { to { opacity: .4; } }
/* salida y entrada en cascada al filtrar */
.o-card.sale { opacity: 0; transform: scale(.94); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.o-card.entra { opacity: 0; transform: translateY(28px) scale(.98); }
.o-card.entra.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.o-vacio { text-align: center; padding: 48px 24px; }
.o-vacio__titulo { font-family: var(--f-titulo); font-weight: 800; font-size: 22px; margin: 0 0 8px; }
.o-vacio .o-btn { margin-top: 18px; }
.o-cat__pie { text-align: center; margin: 56px 0 0; color: var(--suave); font-weight: 600; }

/* ---------- 11. Cómo comprar ---------- */
.o-pasos { padding: 100px var(--m); }
.o-pasos__lista { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.o-paso { padding: 28px; transition: transform .5s var(--ease), border-color .5s; }
.o-paso:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); }
.o-paso__num { display: block; font-family: var(--f-titulo); font-weight: 900; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--rojo); }
.o-paso h3 { font-family: var(--f-titulo); font-weight: 800; font-size: 20px; margin: 18px 0 8px; text-transform: uppercase; }
.o-paso p { margin: 0; color: var(--suave); }
.o-pasos__nota { margin: 16px 0 0; padding: 20px 24px; }

/* ---------- 12. Nosotros ---------- */
.o-nosotros { padding: 100px var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.o-nosotros__texto p { color: var(--suave); max-width: 56ch; margin: 20px 0 0; }
.o-nosotros__texto .o-btn { margin-top: 32px; }
.o-nosotros__logo { margin: 0; position: relative; }
.o-nosotros__logo::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: var(--rojo); filter: blur(90px); opacity: .3; }
.o-nosotros__logo img { position: relative; width: 100%; height: auto; display: block; }

/* ---------- 13. Preguntas frecuentes ---------- */
.o-faq { padding: 100px var(--m); display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.o-faq__lista { display: grid; gap: 12px; }
.o-faq__lista details { border-radius: 18px; background: var(--vidrio); border: 1px solid var(--borde); padding: 0 22px; transition: border-color .4s; }
.o-faq__lista details[open] { border-color: rgba(255,255,255,.3); }
.o-faq__lista summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; cursor: pointer; font-weight: 700; }
.o-faq__lista summary::-webkit-details-marker { display: none; }
.o-faq__lista summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rojo); position: relative; transition: transform .45s var(--ease); }
.o-faq__lista summary i::before, .o-faq__lista summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--blanco); }
.o-faq__lista summary i::after { transform: rotate(90deg); }
.o-faq__lista details[open] summary i { transform: rotate(45deg); }
.o-faq__lista details p { margin: 0 0 20px; color: var(--suave); }

/* ---------- 14. Contacto ---------- */
.o-contacto { position: relative; padding: 0 var(--m) 100px; }
.o-contacto__mapa { display: block; width: 100%; height: 72svh; min-height: 420px; border: 0; border-radius: 28px; filter: grayscale(.3) invert(.9) hue-rotate(180deg) contrast(.9); }
.o-visita { position: absolute; top: 40px; right: calc(var(--m) + 40px); width: 380px; padding: 30px; display: grid; gap: 14px; background: rgba(7,17,31,.72); }
.o-visita .o-h2 { font-size: 40px; }
.o-visita p { margin: 0; }
.o-visita a:not(.o-btn) { font-weight: 700; text-underline-offset: 4px; }
.o-horas { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.o-horas div { display: flex; justify-content: space-between; gap: 16px; }
.o-horas span:first-child { font-weight: 700; }
.o-horas span:last-child { text-align: right; color: var(--suave); }
.o-visita .o-btn { margin-top: 6px; }

/* ---------- 15. Footer con OLYMPIA gigante que se llena ---------- */
.o-pie { position: relative; overflow: hidden; padding: 80px var(--m) 32px; border-top: 1px solid var(--borde); background: linear-gradient(180deg, var(--noche), #050C17); }
.o-pie__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.o-pie__in p { margin: 0; color: var(--suave); max-width: 46ch; }
.o-pie__lema { font-family: var(--f-titulo); font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--texto) !important; margin-bottom: 8px !important; }
.o-pie__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.o-pie__links a { text-decoration: none; transition: color .3s; }
.o-pie__links a:hover { color: #FF8796; }
.o-pie__gigante { position: relative; margin: 48px 0 24px; font-family: var(--f-titulo); font-weight: 900; font-size: 21.5vw; line-height: .8; letter-spacing: -0.04em; text-align: center; user-select: none; }
.o-pie__contorno { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); }
.o-pie__relleno { position: absolute; inset: 0; overflow: hidden; transform: translateY(100%); transition: transform 1.6s var(--ease); }
.o-pie__relleno > span {
  display: block; transform: translateY(-100%); transition: transform 1.6s var(--ease);
  color: var(--rojo);
}
.o-pie__gigante.lleno .o-pie__relleno, .o-pie__gigante.lleno .o-pie__relleno > span { transform: none; }
.o-pie__imprenta { text-align: center; font-size: 14px; color: var(--suave); margin: 0; }
.o-pie__imprenta button { border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* ---------- 16. Botón flotante de WhatsApp (ondas + tooltip) ---------- */
.o-flotante { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; }
.o-flotante__btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; background: #1FAF55; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(31,175,85,.7);
  transition: transform .4s var(--ease);
}
.o-flotante__btn:hover { transform: scale(1.08); }
.o-flotante__btn:active { transform: scale(.96); }
.o-flotante__onda { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FAF55; opacity: 0; animation: onda 3.6s var(--ease) infinite; }
.o-flotante__onda + .o-flotante__onda { animation-delay: .5s; }
@keyframes onda { 0% { transform: scale(1); opacity: .7; } 45%, 100% { transform: scale(2.1); opacity: 0; } }
.o-flotante__tip {
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; pointer-events: none;
  background: rgba(7,17,31,.85); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateX(10px) scale(.95); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.o-flotante__tip.ver { opacity: 1; transform: none; }

/* ---------- 17. Revelado al hacer scroll ---------- */
.js [data-revelar] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-revelar].visible { opacity: 1; transform: none; }

/* ---------- 18. Movimiento reducido: solo fundidos simples ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .o-hero__blobs i, .o-hero__card, .o-hero__flota::before, .o-marquee__pista, .o-badgec--encargo::after,
  .o-flotante__onda, .o-hero__bajar span, .o-card--carga { animation: none !important; }
  .o-palabra > span { transform: none; animation: aparece .6s ease forwards; opacity: 0; }
  .js [data-revelar] { transform: none; transition: opacity .5s ease; }
  .o-card.entra { transform: none; }
  .o-card.entra.in { transition: opacity .4s ease; transition-delay: 0s; }
  .o-card:hover .o-card__media img { transform: none; }
  .o-pie__relleno, .o-pie__relleno > span { transform: none; transition: none; }
  .o-btn::after { display: none; }
}

/* ---------- 19. Tablet y celular ---------- */
@media (max-width: 1100px) {
  .o-numeros { grid-template-columns: repeat(2, 1fr); }
  .o-pasos__lista { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .o-bar__nav, .o-solo-ancho { display: none; }
  .o-solo-cel { display: inline-flex; }
  .o-bar__in { height: 64px; }
  .o-progreso { top: calc(64px * .84 - 2px); }
  .o-hero { padding-top: 96px; }
  .o-hero__in { grid-template-columns: 1fr; gap: 40px; }
  .o-hero__flota { width: min(320px, 82%); }
  .o-hero__bajar { display: none; }
  .o-nosotros, .o-faq { grid-template-columns: 1fr; gap: 32px; }
  .o-nosotros__logo { max-width: 420px; }
  .o-contacto__mapa { height: 56svh; min-height: 320px; }
  .o-visita { position: relative; top: auto; right: auto; width: auto; margin: -64px 12px 0; }
}
@media (max-width: 560px) {
  .o-busqueda { grid-template-columns: 1fr 1fr; }
  .o-busqueda__campo { grid-column: 1 / -1; }
  .o-numeros { gap: 10px; padding-top: 56px; }
  .o-numero { padding: 20px; }
  .o-pasos__lista { grid-template-columns: 1fr; }
  .o-hero__ctas .o-btn { width: 100%; }
  .o-hero__blobs i { filter: blur(60px); }
  .o-filtros { padding: 16px; }
  .o-cat, .o-pasos, .o-nosotros, .o-faq { padding-top: 72px; padding-bottom: 72px; }
}

/* ---------- 20. Formularios del admin y la ficha (ventanas blancas) ---------- */
dialog { color: #171717; }
dialog::backdrop { background: rgba(7,17,31,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.campo { width: 100%; min-height: 44px; padding: .5rem .75rem; border-radius: .6rem; background: #fff; border: 1px solid #c4c4c4; color: #171717; font: inherit; }
.campo:focus { outline: none; border-color: #102542; box-shadow: 0 0 0 2px rgba(16,37,66,.2); }

/* ---------- 21. Cinta de marcas (en sentido contrario a la roja) ---------- */
.o-marcas-cinta { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--borde); margin: 40px 0 0; }
.o-marquee__pista--inversa { animation-direction: reverse; animation-duration: 46s; }
.o-marcas-cinta span {
  font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.01em; padding: 0 40px; color: var(--texto);
}
.o-marcas-cinta span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }

/* ---------- 22. Comprá por categoría (mosaicos con foto) ---------- */
.o-cats { padding: 100px var(--m) 0; }
.o-cats__grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 40px; }
.o-tile {
  position: relative; isolation: isolate; aspect-ratio: 4 / 5; border-radius: var(--radio); overflow: hidden;
  border: 1px solid var(--borde); padding: 0; background: var(--azul-2); cursor: pointer; text-align: left; font: inherit; color: var(--blanco);
}
.o-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
/* velo oscuro abajo para que el texto se lea sobre cualquier foto */
.o-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(7,17,31,.92)); }
.o-tile:hover img, .o-tile:focus-visible img { transform: scale(1.08); }
.o-tile__txt { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; transition: transform .5s var(--ease); }
.o-tile:hover .o-tile__txt { transform: translateY(-4px); }
.o-tile__nombre { font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase; font-size: clamp(14px, 1.05vw, 20px); letter-spacing: -0.01em; line-height: 1.05; overflow-wrap: anywhere; }
.o-tile__cant { font-size: 14px; color: var(--suave); }
.o-tile:active { transform: scale(.98); }

/* ---------- 23. Tarjetas: segunda foto al pasar el mouse / deslizar en celular ---------- */
.o-card__fotos { position: relative; width: 100%; height: 100%; }
.o-card__fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o-card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.o-card__mas { display: none; }
.o-card__cant { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(7,17,31,.75); }
@media (hover: hover) {
  .o-card:hover .o-card__alt { opacity: 1; }
}
@media (hover: none) {
  .o-card__fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .o-card__fotos::-webkit-scrollbar { display: none; }
  .o-card__fotos img { flex: 0 0 100%; scroll-snap-align: start; }
  .o-card__alt { position: static; opacity: 1; }
  .o-card__mas { display: block; }
}
@media (max-width: 560px) {
  .o-cats { padding-top: 72px; }
  .o-cats__grilla { grid-template-columns: 1fr 1fr; gap: 10px; }
  .o-tile__txt { left: 12px; right: 12px; bottom: 12px; }
  .o-tile__nombre { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .o-marquee__pista--inversa { animation: none !important; }
  .o-tile img, .o-tile__txt { transition: none; }
}

/* ---------- 24. Logo grande en la portada (lo primero que se ve) ---------- */
/* el PNG tiene márgenes transparentes: se recorta con márgenes negativos para alinearlo al texto */
.o-hero__logo {
  display: block; width: clamp(200px, 21vw, 330px); height: auto; margin: -4% 0 4px -6%;
  filter: drop-shadow(0 12px 40px rgba(215,38,61,.35));
  opacity: 0; transform: translateY(16px) scale(.96); animation: logo-entra .9s var(--ease) forwards; animation-delay: calc(var(--base) - .1s);
}
@keyframes logo-entra { to { opacity: 1; transform: none; } }
/* el logo del header, un poco más grande */
.logo-mini { width: 92px; height: 66px; }
.logo-mini img { width: 140px; left: -24px; top: -12px; }
@media (max-width: 900px) {
  .o-hero__logo { width: min(64vw, 280px); margin: -6% auto 4px -6%; }
  .logo-mini { width: 82px; height: 60px; }
  .logo-mini img { width: 126px; left: -22px; top: -11px; }
}
@media (prefers-reduced-motion: reduce) {
  .o-hero__logo { animation: aparece .5s ease forwards; transform: none; }
}

/* ---------- 25. Catálogo en celular: 2 columnas compactas ---------- */
@media (max-width: 560px) {
  .o-grilla { grid-template-columns: 1fr 1fr; gap: 10px; }
  .o-card, .o-card__in { --radio: 16px; }
  .o-card__body { padding: 10px 10px 12px; gap: 2px; }
  .o-card__marca { font-size: 12px; }
  .o-card__nombre {
    font-size: 15px; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .o-card__meta {
    font-size: 13px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .o-card__pie { padding-top: 10px; gap: 6px; }
  .o-card__precio { font-size: 17px; }
  .o-card__precio s { font-size: 12px; }
  /* el botón de WhatsApp queda como ícono redondo */
  .o-card__btn--wa { width: 40px; min-height: 40px; padding: 0; flex: none; }
  .o-card__btn-txt { display: none; }
  .o-card__btn:not(.o-card__btn--wa) { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .o-card__badges { top: 8px; left: 8px; right: 8px; gap: 4px; }
  .o-badgec { padding: 4px 8px; font-size: 12px; }
  .o-badgec__dias { display: none; }
  .o-card__cant { right: 8px; bottom: 8px; font-size: 12px; padding: 3px 8px; }
  .o-card__admin { padding: 0 10px 10px; flex-wrap: wrap; }
  .o-card__admin button { flex: 1; padding: 0 8px; }
}

/* ---------- 26. Escenario para fotos recortadas (PNG sin fondo) ----------
   La tarjeta dibuja el fondo: foco de estudio, brillo detrás y piso con sombra.
   Productos "Por encargo": el brillo usa el rojo en vez del azul. */
.o-esc {
  --brillo: rgba(42, 85, 153, .75);           /* azul de marca (stock) */
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 65% at 50% 45%, #24467A 0%, var(--azul) 52%, var(--noche) 100%);
}
.o-esc--encargo { --brillo: rgba(215, 38, 61, .6); }   /* rojo de marca (por encargo) */
.o-esc__brillo {
  position: absolute; left: 18%; right: 18%; top: 20%; bottom: 26%; z-index: -1; border-radius: 50%;
  background: var(--brillo); filter: blur(34px); opacity: .7;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
/* piso: sombra elíptica difuminada debajo de la zapatilla */
.o-esc__piso {
  position: absolute; left: 22%; right: 22%; bottom: 13%; height: 7%; border-radius: 50%;
  background: rgba(0, 0, 0, .55); filter: blur(8px);
  animation: piso 4.2s ease-in-out infinite; animation-delay: var(--desfase, 0s);
}
.o-esc__mov {
  position: absolute; inset: 9% 9% 14%; display: flex; align-items: center; justify-content: center;
  animation: zapa-flota 4.2s ease-in-out infinite; animation-delay: var(--desfase, 0s);
}
.o-card__media .o-esc__zapa, .o-esc__zapa {
  width: 100%; height: 100%; object-fit: contain;
  transform: rotate(-10deg);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)) drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
  transition: transform .7s var(--ease), filter .7s var(--ease);
}
/* la zapatilla sube y baja; el piso se achica cuando sube y se agranda cuando baja */
@keyframes zapa-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes piso { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.82); opacity: .6; } }
/* desfase distinto por tarjeta para que no floten todas juntas */
.o-card:nth-child(4n+2) { --desfase: -1.1s; }
.o-card:nth-child(4n+3) { --desfase: -2.3s; }
.o-card:nth-child(4n+4) { --desfase: -3.4s; }
/* en escritorio: hover que eleva, rota y agranda, y el brillo se intensifica */
@media (hover: hover) {
  .o-card:hover .o-esc__zapa {
    transform: translateY(-12px) rotate(-14deg) scale(1.08);
    filter: drop-shadow(0 28px 22px rgba(0, 0, 0, .5)) drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
  }
  .o-card:hover .o-esc__brillo { opacity: 1; transform: scale(1.12); }
}
/* el zoom general de foto no aplica a la zapatilla recortada (tiene su propio hover) */
.o-card:hover .o-card__media .o-esc__zapa { transform: rotate(-10deg); }
@media (hover: hover) { .o-card:hover .o-card__media .o-esc__zapa { transform: translateY(-12px) rotate(-14deg) scale(1.08); } }
/* ficha del producto con foto recortada: mismo fondo de estudio */
.o-ficha-esc { background: radial-gradient(ellipse 70% 65% at 50% 45%, #24467A 0%, var(--azul) 55%, var(--noche) 100%) !important; }
.o-ficha-esc img { object-fit: contain !important; padding: 8%; transform: rotate(-8deg); filter: drop-shadow(0 22px 20px rgba(0,0,0,.45)); }
@media (prefers-reduced-motion: reduce) {
  .o-esc__mov, .o-esc__piso { animation: none !important; }
  .o-esc__zapa, .o-esc__brillo { transition: none; }
  .o-card:hover .o-card__media .o-esc__zapa { transform: rotate(-10deg); }
}

/* ---------- 27. Ficha del producto: botones bien distintivos ---------- */
/* ¿Cómo lo querés recibir? — opción elegida en azul lleno */
.o-entrega {
  min-height: 58px; padding: 0 10px; border-radius: 14px; border: 2px solid #E2E5EA; background: #fff;
  color: var(--azul); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s, transform .2s var(--ease);
}
.o-entrega:hover { border-color: var(--azul-3); }
.o-entrega:active { transform: scale(.97); }
.o-entrega[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 10px 24px -12px rgba(16,37,66,.7); }
/* botón principal: Consultar / Encargar por WhatsApp */
.o-fcta {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 20px;
  border-radius: 999px; background: var(--rojo); color: #fff !important; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 800; font-size: 17px; letter-spacing: .01em;
  box-shadow: 0 16px 34px -14px rgba(215,38,61,.85);
  transition: transform .35s var(--ease), background-color .3s var(--ease), opacity .3s;
}
.o-fcta:hover { background: var(--rojo-2); transform: translateY(-2px); }
.o-fcta:active { transform: scale(.97); }
.o-fcta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.o-fcta:hover::after { transform: translateX(120%); }
.o-fcta__ico { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--rojo); display: grid; place-items: center; flex: none; }
.o-fcta__ico svg { width: 20px; height: 20px; }
/* secundario: Compartir */
.o-fsec {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px;
  border-radius: 999px; border: 2px solid var(--azul); background: #fff; color: var(--azul);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.o-fsec:hover { background: var(--azul); color: #fff; }
.o-fsec:active { transform: scale(.97); }

/* ---------- 28. Modo admin: botones Editar / Borrar grandes, arriba de la foto ---------- */
.o-card__media .o-card__admin {
  position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 6px; padding: 0;
}
.o-card__media .o-card__admin button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.85);
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
.o-card__media .o-card__admin button:active { transform: scale(.95); }
.o-card--admin .o-card__badges { right: auto; }
@media (max-width: 560px) {
  .o-card__media .o-card__admin { left: 8px; right: 8px; top: auto; bottom: 8px; }
  .o-card__media .o-card__admin button { flex: 1; min-height: 40px; padding: 0 8px; font-size: 13px; }
}

/* ---------- 29. Más animaciones estilo intro: letras que suben y cortinas ---------- */
/* Títulos: cada letra sube desde una línea invisible (js/animaciones.js bloque 11) */
.o-pal { display: inline-block; white-space: nowrap; }
.o-let { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .12em 0 .02em; margin: -.12em 0 -.02em; }
.js .o-h2 .o-let > span { display: inline-block; transform: translateY(110%); transition: transform .75s var(--ease); transition-delay: calc(var(--l, 0) * 26ms); }
.js .o-h2.en-vista .o-let > span { transform: none; }

/* Mosaicos de categoría: una cortina roja se corre hacia abajo al aparecer */
.js .o-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--rojo);
  transform-origin: bottom; transform: scaleY(1); transition: transform .9s var(--ease) .1s;
}
.js .o-tile:nth-child(even)::before { background: var(--azul-3); }
.js .o-tile.visible::before { transform: scaleY(0); }
.o-tile:nth-child(2)::before { transition-delay: .18s; }
.o-tile:nth-child(3)::before { transition-delay: .26s; }
.o-tile:nth-child(4)::before { transition-delay: .34s; }
.o-tile:nth-child(5)::before { transition-delay: .42s; }
.o-tile:nth-child(6)::before { transition-delay: .5s; }
.o-tile:nth-child(n+7)::before { transition-delay: .58s; }

/* Tarjetas: la foto se destapa con una cortina al entrar (en cascada) */
.o-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: var(--azul-3); transform-origin: top; transform: scaleY(0);
}
.o-card:nth-child(even) .o-card__media::after { background: var(--rojo); }
.o-card.entra.in .o-card__media::after { animation: cortina .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .1s); }
@keyframes cortina { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* Footer: las letras de OLYMPIA suben una por una y después se llenan */
.o-pie__contorno .o-let, .o-pie__relleno .o-let { padding: 0; margin: 0; }
.js .o-pie__contorno .o-let > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--l, 0) * 70ms); }
.js .o-pie__gigante.lleno .o-pie__contorno .o-let > span { transform: none; }
.o-pie__gigante.lleno .o-pie__relleno, .o-pie__gigante.lleno .o-pie__relleno > span { transition-delay: .7s; }

/* Ficha del producto: cortina roja sobre la foto y el texto entra en cascada */
#modal-ficha[open] #ficha > div:first-child { position: relative; overflow: hidden; }
#modal-ficha[open] #ficha > div:first-child::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--rojo);
  transform-origin: right; animation: cortina-x .75s var(--ease) both;
}
@keyframes cortina-x { from { transform: scaleX(1); } to { transform: scaleX(0); } }
#modal-ficha[open] #ficha > div:last-child > * { animation: sube .6s var(--ease) both; }
#modal-ficha[open] #ficha > div:last-child > *:nth-child(2) { animation-delay: .06s; }
#modal-ficha[open] #ficha > div:last-child > *:nth-child(3) { animation-delay: .12s; }
#modal-ficha[open] #ficha > div:last-child > *:nth-child(4) { animation-delay: .18s; }
#modal-ficha[open] #ficha > div:last-child > *:nth-child(5) { animation-delay: .24s; }
#modal-ficha[open] #ficha > div:last-child > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .js .o-h2 .o-let > span, .js .o-pie__contorno .o-let > span { transform: none; transition: none; }
  .js .o-tile::before, .o-card__media::after, #modal-ficha[open] #ficha > div:first-child::after { display: none; }
  #modal-ficha[open] #ficha > div:last-child > * { animation: none; }
}

/* ---------- 30. Ficha compacta: precio arriba, detalles en "Ver más", barra de compra fija ---------- */
.o-finfo { padding: 20px 20px 0; display: flex; flex-direction: column; }
.o-fprecio { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.o-fdispo { padding: 5px 11px; border-radius: 999px; background: #E7F6EC; color: #17703A; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.o-fdispo--encargo { background: rgba(215,38,61,.1); color: var(--rojo); }
.o-faviso { margin-top: 14px; border-radius: 14px; border: 2px solid var(--rojo); background: rgba(215,38,61,.05); padding: 14px; }
.o-fmas { margin-top: 14px; border-top: 1px solid #E2E5EA; border-bottom: 1px solid #E2E5EA; }
.o-fmas summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-weight: 700; color: var(--azul); }
.o-fmas summary::-webkit-details-marker { display: none; }
.o-fmas summary i { width: 26px; height: 26px; border-radius: 50%; background: var(--azul); position: relative; transition: transform .45s var(--ease); }
.o-fmas summary i::before, .o-fmas summary i::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: #fff; }
.o-fmas summary i::after { transform: rotate(90deg); }
.o-fmas[open] summary i { transform: rotate(45deg); }
.o-fmas[open] > :not(summary) { animation: sube .45s var(--ease) both; }
.o-fmas dl { padding-bottom: 8px; }
.o-fmas dl > div + div { border-top: 1px solid #F0F1F4; }
/* la barra queda pegada al borde de abajo mientras se scrollea la ficha */
.o-fbarra {
  position: sticky; bottom: 0; z-index: 6; margin: 4px -20px 0; padding: 16px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 12px);
}
.o-fbarra__fila { display: flex; gap: 10px; align-items: stretch; }
.o-fbarra .o-fcta { margin-top: 0; flex: 1; min-width: 0; font-size: 16px; }
.o-fbarra .o-fsec { position: relative; margin-top: 0; width: 60px; min-height: 60px; flex: none; padding: 0; }
.o-fsec[data-ok]::after {
  content: attr(data-ok); position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--grafito); color: #fff; font-size: 12px; font-weight: 700;
  animation: sube .3s var(--ease) both;
}
@media (min-width: 640px) { .o-finfo { padding: 24px 24px 0; } .o-fbarra { margin: 4px -24px 0; padding-left: 24px; padding-right: 24px; } }
/* en celular la foto ocupa menos alto para que el precio se vea sin scrollear */
@media (max-width: 767px) {
  .o-ffoto { aspect-ratio: 4 / 3; }
  #ficha .miniatura { width: 52px; height: 52px; }
  .o-finfo h2 { font-size: 22px; }
  .o-entrega { min-height: 48px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .o-fmas[open] > :not(summary), .o-fsec[data-ok]::after { animation: none; } }
.o-fbarra .o-fcta { white-space: nowrap; }
@media (max-width: 479px) { .o-fcta__extra { display: none; } }
