/* =========================================================
   Retinton S.A.S. — Estilos generales
   Paleta tomada directamente del logo de marca:
   navy #2E3060 · magenta #CB007D · azul #2C8ABD · ámbar #FFB600
========================================================= */
:root {
  /* --- Colores de marca --- */
  --navy: #2E3060;
  --navy-deep: #22244a;
  --magenta: #CB007D;
  --magenta-deep: #a00062;
  --blue: #2C8ABD;
  --blue-deep: #1e6f9c;
  --amber: #FFB600;
  --amber-deep: #8a5f00; /* tono legible: 5.65:1 sobre blanco */
  --purple: #6C2E8C;

  /* --- Tintes suaves (fondos de categoría) --- */
  --magenta-soft: #fdeaf5;
  --blue-soft: #e9f4fb;
  --navy-soft: #ecedf6;
  --amber-soft: #fff6e0;

  /* --- Acento por defecto (cada sección lo sobrescribe) --- */
  --accent: var(--magenta);
  --accent-ink: var(--magenta-deep);
  --accent-soft: var(--magenta-soft);

  --gradient-brand: linear-gradient(90deg, var(--magenta), var(--purple), var(--blue), var(--amber), var(--magenta));
  --gradient-cta: linear-gradient(120deg, var(--navy), var(--purple), var(--magenta));
  --gradient-wa: linear-gradient(120deg, #25D366, #1ea97c);

  --ink: #211f38;
  --ink-soft: #5d5a75;
  --bg: #ffffff;
  --bg-alt: #f7f7fc;
  --border: #e8e6f2;

  --radius: 20px;
  --shadow-sm: 0 4px 14px rgba(46, 48, 96, .08);
  --shadow-md: 0 10px 30px rgba(46, 48, 96, .13);
  --shadow-lg: 0 20px 50px rgba(46, 48, 96, .20);

  --header-h: 96px;

  --font-head: 'Baloo 2', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Los anclajes no quedan tapados por el header fijo */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.rainbow-text {
  background: var(--gradient-brand);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow-move 8s linear infinite;
}

@keyframes rainbow-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }

/* El verde de WhatsApp queda reservado para el CTA del header (.nav__cta)
   y el botón flotante (.wa-float); ningún .btn lo usa. */

/* Acción principal con los colores de la marca */
.btn--brand {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: emoji-bounce 3s ease-in-out infinite;
}
.btn--brand:hover { animation: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: rgba(255, 255, 255, .85);
  color: var(--navy);
  border: 2px solid var(--border);
  backdrop-filter: blur(6px);
  animation: emoji-bounce 3s ease-in-out infinite;
  animation-delay: -1.5s; /* que no salten los dos botones al mismo tiempo */
}
.btn--ghost:hover { animation: none; border-color: var(--magenta); color: var(--magenta); transform: translateY(-3px); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo {
  height: 68px;
  width: auto;
  transition: transform .3s ease;
  animation: emoji-float 3.5s ease-in-out infinite;
}
.brand:hover .brand__logo { animation: none; transform: scale(1.04); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__link {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__link:not(.nav__cta):hover,
.nav__link.is-current:not(.nav__cta) { color: var(--magenta); }
.nav__link:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  background-size: 300% 100%;
  transition: width .25s ease;
}
.nav__link:not(.nav__cta):hover::after,
.nav__link.is-current:not(.nav__cta)::after { width: 100%; }

.nav__cta {
  background: var(--gradient-wa);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  animation: emoji-bounce 3s ease-in-out infinite;
}
.nav__cta:hover { animation: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s ease, opacity .3s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero con video de fondo ===== */
.hero {
  position: relative;
  padding: 150px 0 0;
  background: linear-gradient(135deg, #fdf3f9 0%, #f4f6fd 45%, #eef7fc 75%, #fff8ea 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

/* Velo blanco al 15 %. Este video mete más tinta en la zona central que los
   anteriores (2 % del área de media, 3.5 % en el peor instante), así que el
   velo ya no es decorativo: suaviza esas manchas bajo el texto. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, .15);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 72px;
}

.hero__text { position: relative; max-width: 820px; }

.hero__text h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero__text p {
  font-size: 17px;
  /* Navy en vez de gris: con el velo tan bajo, el gris no llegaba al mínimo */
  color: var(--navy);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient-brand);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

.wave { display: block; width: 100%; height: auto; position: relative; z-index: 2; }

/* ===== Marquee ===== */
.marquee {
  background: var(--navy);
  overflow: hidden;
  padding: 14px 0;
}
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  white-space: nowrap;
  opacity: .92;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Secciones genéricas ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}
.section__head h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.section__head p { color: var(--ink-soft); font-size: 16px; }

/* --- Acento por categoría --- */
.catsec--insumos {
  --accent: var(--magenta); --accent-ink: var(--magenta-deep); --accent-soft: var(--magenta-soft);
}
.catsec--repuestos {
  --accent: var(--blue); --accent-ink: var(--blue-deep); --accent-soft: var(--blue-soft);
}
.catsec--toner {
  --accent: var(--navy); --accent-ink: var(--navy); --accent-soft: var(--navy-soft);
}
.catsec--accesorios {
  --accent: var(--amber); --accent-ink: var(--amber-deep); --accent-soft: var(--amber-soft);
}

/* ===== Productos ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Los productos vienen de content/products.json (editable en /admin/), así
   que cualquier categoría puede quedar con 1 o 2 tarjetas si se borran las
   demás. script.js añade esta clase cuando hay pocas, para que se centren
   a su ancho natural en vez de estirarse por toda la fila.
   Selector compuesto (.products.products--few) a propósito: responsive.css
   se carga después y también fija grid-template-columns en .products para
   móvil, con la misma especificidad — sin este refuerzo, esa regla ganaría
   por orden de carga y el centrado no se vería en pantallas pequeñas. */
.products.products--few {
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  max-width: 780px;
  margin: 0 auto;
  justify-content: center;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card:hover::before { transform: scaleX(1); }

.card__ribbon {
  position: absolute;
  top: 18px;
  right: 0;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 5px 14px;
  border-radius: 6px 0 0 6px;
  z-index: 2;
}

.card__media {
  height: 124px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.card__media::after {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  right: -55px; bottom: -70px;
}
.card__media--icon { font-size: 50px; }
.card__media--icon,
.card__media--ink { line-height: 1; }
.card__media > * { position: relative; z-index: 1; }

/* Foto real subida desde el panel: cualquier tamaño u orientación que suba
   el usuario se ve completa, sin recortarse ni deformarse. "cover" se
   probó primero, pero una foto vertical (un frasco alto, por ejemplo)
   quedaba reducida a una tira irreconocible; con "contain" el producto
   se ve entero, centrado sobre el fondo suave de la categoría. */
/* Más alta que el resto (124px) para que la foto real se aprecie con más
   detalle en la miniatura. No afecta al visor ampliado: ese usa su propio
   tamaño en .lightbox__img, totalmente independiente de esta medida. */
.card__media--photo { height: 190px; padding: 0; }
.card__media--photo::after { display: none; }
.card__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform .25s ease;
}
.card__media--photo:hover img { transform: scale(1.05); }

/* Carrusel: 2 o más fotos en el mismo producto. Las fotos ocupan todas el
   mismo lugar (position:absolute) y solo la ".is-active" se ve; las
   flechas y los puntos cambian cuál es la activa (setupCarousels en
   script.js). El tamaño de la cajita es el mismo de siempre. */
.card__media--carousel .carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.card__media--carousel .carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 48, 96, .55);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* Siempre visibles (no solo al pasar el mouse): en celular no hay hover,
     y son la única forma de pasar de foto sin usar los puntos. */
  transition: background .2s ease;
}
.carousel__arrow:hover { background: var(--magenta); }
.carousel__arrow--prev { left: 8px; }
.carousel__arrow--next { right: 8px; }

.carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 1px rgba(46, 48, 96, .25);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel__dot.is-active { background: var(--magenta); transform: scale(1.25); }

.card__media--ink { gap: 10px; }
.drop {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-sm);
}
.drop.big { width: 54px; height: 54px; }
.drop--c { background: var(--blue); }
.drop--m { background: var(--magenta); }
.drop--y { background: var(--amber); }
.drop--k { background: var(--navy); }
.drop--rainbow {
  width: 62px; height: 62px;
  background: conic-gradient(from 0deg, var(--magenta), var(--purple), var(--blue), var(--amber), var(--magenta));
  border-radius: 50%;
  transform: none;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  word-break: break-all;
}
.card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  flex-grow: 1;
  /* Referencias tipo "G1130/G2170/G3170/..." son una sola palabra sin
     espacios: con "break-word" ya no se salían de la tarjeta, pero el
     navegador prefería mandar el bloque completo al siguiente renglón
     antes que partirlo, dejando huecos grandes al final de cada línea.
     "break-all" llena cada renglón por completo (corta donde haga
     falta, letra por letra si toca) — en el texto normal, sin palabras
     larguísimas, no cambia nada de cómo se ve. */
  word-break: break-all;
}

/* Presentaciones disponibles, como texto discreto */
.card__sizes {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: .2px;
}

/* ===== Marcas ===== */
.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.brand-card__logo {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 22px;
  border-radius: 14px;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: 2px solid var(--border);
}
.brand-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== Ubicación / mapa ===== */
.mapa {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.mapa__datos {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.mapa__dato { display: flex; gap: 14px; align-items: flex-start; }
.mapa__icono {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.mapa__dato strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2px;
}
.mapa__dato p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.mapa__dato a { color: var(--ink-soft); transition: color .2s; }
.mapa__dato a:hover { color: var(--magenta); }

/* Los botones se pegan abajo para alinearse con el borde del mapa */
.mapa__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.mapa__acciones .btn { padding: 12px 22px; font-size: 14px; }

.mapa__marco {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.mapa__marco iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: #d7d5e6;
  padding-top: 70px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* Sin fondo: el archivo ya trae quitado el blanco y el texto
   ("Retinton SAS" y el eslogan) recoloreado a blanco, así se lee
   directo sobre el navy del footer sin necesitar ninguna caja. */
.footer__logo {
  display: inline-block;
  transition: transform .3s ease;
}
.footer__logo img { width: 260px; height: auto; display: block; }
.footer__logo:hover { transform: translateY(-3px); }

.footer__brand p { margin-top: 18px; font-size: 14px; color: #a7a3bd; max-width: 300px; }

.footer__col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: #b7b3c9;
  margin-bottom: 12px;
  transition: color .2s;
}
.footer__col a:hover { color: #fff; }

/* ===== Instagram centrado y animado (pie del footer) ===== */
/* Instagram va dentro de la columna Contacto */
.footer__col .ig-btn { display: inline-flex; margin: 12px 0 0; }

.ig-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  /* El degradado se mueve solo: por eso 200% de tamaño */
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7, #ee2a7b, #f9ce34);
  background-size: 300% 300%;
  box-shadow: 0 10px 26px rgba(238, 42, 123, .45);
  animation: ig-gradiente 7s ease infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ig-btn .icon { width: 28px; height: 28px; position: relative; z-index: 2; }
.ig-btn:hover { transform: scale(1.12); box-shadow: 0 14px 34px rgba(238, 42, 123, .65); }
.ig-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* Onda que late detrás del botón */
.ig-btn__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  animation: ig-latido 2.6s ease-out infinite;
  z-index: 1;
}

@keyframes ig-gradiente {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ig-latido {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.85); opacity: 0; }
}

.footer__bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #857fa0;
}
.footer__sep { opacity: .45; margin: 0 5px; }
.footer__admin-link { color: inherit; opacity: .7; text-decoration: underline; }
.footer__admin-link:hover { opacity: 1; color: var(--magenta); }

/* ===== Botón flotante WhatsApp ===== */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .5);
  z-index: 600;
  transition: transform .25s ease;
  animation: emoji-bounce 2.6s ease-in-out infinite;
}
.wa-float:hover { animation: none; transform: scale(1.08); }
.wa-float .icon { width: 32px; height: 32px; position: relative; z-index: 2; }
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Scroll top ===== */
.scroll-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--magenta); color: #fff; }

/* ===== Visor de fotos de producto (lightbox) =====
   Al hacer clic en la foto de una tarjeta, se ve ampliada sobre un fondo
   oscuro. Se cierra con la X, haciendo clic afuera, o con Escape. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(33, 31, 56, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: min(90vw, 640px);
  max-height: 85vh;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  transform: scale(.94);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); transform: scale(1.08); }

/* Flechas y contador: solo aparecen cuando el producto tiene más de una
   foto (setupLightbox en script.js las oculta con [hidden] si no aplica). */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__arrow[hidden] { display: none; }
.lightbox__arrow:hover { background: rgba(255, 255, 255, .3); transform: translateY(-50%) scale(1.08); }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }

.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .15);
  padding: 5px 14px;
  border-radius: 100px;
}
.lightbox__count[hidden] { display: none; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Emojis animados =====
   Movimientos suaves, solo con transform (no repintan la página).
   El bloque de prefers-reduced-motion de responsive.css los desactiva. */
.emoji {
  display: inline-block;
  transform-origin: 50% 60%;
}
.emoji--float  { animation: emoji-float 3.4s ease-in-out infinite; }
.emoji--ring   { animation: emoji-ring 3s ease-in-out infinite; }
.emoji--bounce { animation: emoji-bounce 2.8s ease-in-out infinite; }

/* Desfase en rejillas para que no se muevan todos a la vez */
.products .card:nth-child(3n+2) .emoji,
.mapa__dato:nth-child(2) .emoji { animation-delay: -1.1s; }
.products .card:nth-child(3n)   .emoji,
.mapa__dato:nth-child(3) .emoji { animation-delay: -2.2s; }

@keyframes emoji-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
/* Vibra un momento y descansa el resto del ciclo */
@keyframes emoji-ring {
  0%, 60%, 100% { transform: rotate(0); }
  64% { transform: rotate(-14deg); }
  68% { transform: rotate(12deg); }
  72% { transform: rotate(-10deg); }
  76% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
  84% { transform: rotate(0); }
}
@keyframes emoji-bounce {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-6px); }
  50%      { transform: translateY(0); }
  65%      { transform: translateY(-3px); }
  80%      { transform: translateY(0); }
}
