/* ============================================================================
   POROTOS VIVO — la tienda con colores de cartelera (Junior, 2026-09-28)
   ----------------------------------------------------------------------------
   Junior mandó un video de la cartelera del autoservicio de McDonald's: *"colores
   bien lindos, llamativos… algo moderno, no esos colores muertos… imágenes móviles
   de los más vendidos, las gatas girando con colores bonitos de fondo"*.

   Se toma la IDEA (fondo oscuro cálido, paneles amarillo dorado, rojo vivo en lo que
   se vende, letras blancas y gruesas, precios en etiqueta) con una paleta propia de
   Porotos —el naranja del poroto va de acento—, para que se reconozca como Porotos
   y no se confunda con otra marca.

   Paleta:
     carbón cálido  #1c1512 · #2b201a   (el fondo de la cartelera)
     sol            #ffc21a · #ffd966   (paneles y botones de acción)
     tomate         #e3261b · #ff4b2b   (precios, ofertas)
     naranja poroto #ff7a1a              (la mascota)
     crema          #fff6e6

   Se carga DESPUÉS de styles.css y marca.css: pisa sus colores sin tocarlos. Para
   volver a la versión anterior se saca el <link> de este archivo en index.html.
   ========================================================================== */
:root {
  --carbon: #1c1512;
  --carbon-2: #2b201a;
  --carbon-3: #3a2a20;
  --sol: #ffc21a;
  --sol-claro: #ffd966;
  --tomate: #e3261b;
  --tomate-vivo: #ff4b2b;
  --naranja: #ff7a1a;
  --crema: #fff6e6;

  /* las variables de marca.css pasan a la paleta nueva */
  --rojo-marca: var(--tomate);
  --rojo-vivo: var(--tomate-vivo);
  --rojo-prof: var(--carbon);
  --navy-marca: #231a15;
  --navy-2: var(--carbon-2);
  --navy-borde: #5a4030;
  --oro: var(--sol);
  --oro-claro: var(--sol-claro);
  --oro-osc: #e6a400;
  --poroto: var(--naranja);
  --grad-oro: linear-gradient(180deg, #ffe07a 0%, #ffc21a 55%, #f0a800 100%);
  --puntos: radial-gradient(circle, rgba(255, 194, 26, 0.07) 1.1px, transparent 1.2px);
}

/* ---------- fondo: la cartelera, oscura y cálida, con dos luces ---------- */
body {
  background:
    var(--puntos),
    radial-gradient(60% 40% at 12% 8%, rgba(255, 122, 26, 0.18), transparent 70%),
    radial-gradient(50% 35% at 90% 30%, rgba(227, 38, 27, 0.16), transparent 70%),
    linear-gradient(180deg, #221914 0%, var(--carbon) 40%, #140f0d 100%);
  background-size: 11px 11px, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

/* ---------- HERO: carbón con rayos de sol que giran detrás del poroto ---------- */
.hero2 {
  background: radial-gradient(90% 120% at 50% 0%, #3a2519 0%, #241913 55%, var(--carbon) 100%);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero2::before {
  content: "";
  position: absolute;
  left: 50%; top: -120%;
  width: 1600px; height: 1600px;
  margin-left: -800px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 194, 26, 0.10) 0 7deg, transparent 7deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%);
  mask-image: radial-gradient(circle, #000 20%, transparent 62%);
  animation: vivo-gira 90s linear infinite;
  pointer-events: none;
}
.hero2::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--tomate), var(--naranja), var(--sol), var(--naranja), var(--tomate));
}
.hero2-grid, .hero2-bg .orb { display: none; }
.hero-rubro { color: var(--sol); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.hero2-stats { display: none; }            /* se fueron a la cinta que corre, abajo */
.hero2-inner.centrado .hero-head .hero-logo { animation: vivo-flota 4.5s ease-in-out infinite; }

@keyframes vivo-gira { to { transform: rotate(360deg); } }
@keyframes vivo-flota { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

.search input { border: 2px solid var(--sol); }
.cat-chip.on, .hero2-marquee.estatica .mq-item.on { background: var(--sol); color: var(--carbon); border-color: var(--sol); }

/* ---------- tarjetas del catálogo: paneles blancos con marco de sol ---------- */
.card { border: 2px solid rgba(255, 194, 26, 0.35); border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: var(--sol); }
}
.card .precio { color: var(--tomate); }
.badge { background: var(--tomate); color: #fff; }

/* ═══════════════════════ 🔥 LA VITRINA QUE SE MUEVE ═══════════════════════ */
.vt {
  position: relative;
  max-width: 1180px;
  margin: 22px auto 10px;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 194, 26, 0.35);
  isolation: isolate;
}
.vt[hidden] { display: none; }
.vt-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 10px;
  padding: 34px 76px 54px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
  background: radial-gradient(circle at 72% 50%, var(--c1) 0%, var(--c2) 70%);
  color: var(--tinta);
}
.vt-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.vt-slide.t-sol { --c1: #ffd23d; --c2: #ff8f1a; --tinta: #2a1608; --acento: var(--tomate); --acento-tx: #fff; }
.vt-slide.t-tomate { --c1: #ff5a2e; --c2: #b8120c; --tinta: #fff; --acento: var(--sol); --acento-tx: #2a1608; }
.vt-slide.t-carbon { --c1: #4a3326; --c2: #1a120e; --tinta: #fff; --acento: var(--sol); --acento-tx: #2a1608; }
.vt-rayos {
  position: absolute; z-index: -1;
  right: -380px; top: 50%;
  width: 1100px; height: 1100px; margin-top: -550px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.16) 0 8deg, transparent 8deg 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  animation: vivo-gira 45s linear infinite;
}
.vt-txt { position: relative; z-index: 1; }
.vt-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--tinta);
  font: 700 13px/1 "Fredoka", system-ui, sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 30px;
}
.vt-slide.t-sol .vt-tag { background: rgba(255, 255, 255, 0.45); }
.vt-titulo {
  font: 700 clamp(26px, 4.2vw, 48px)/1.05 "Fredoka", system-ui, sans-serif;
  margin: 14px 0 6px;
  text-wrap: balance;
}
.vt-slide.t-tomate .vt-titulo, .vt-slide.t-carbon .vt-titulo { text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.vt-sub { font: 500 16px/1.35 "Inter", system-ui, sans-serif; opacity: .88; margin: 0 0 18px; max-width: 36ch; }
.vt-precio {
  display: inline-flex; align-items: baseline; gap: 2px;
  background: var(--acento); color: var(--acento-tx);
  font: 700 clamp(34px, 5vw, 54px)/1 "Fredoka", system-ui, sans-serif;
  padding: 10px 22px 12px;
  border-radius: 20px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  animation: vivo-late 2.6s ease-in-out infinite;
}
.vt-precio small { font-size: .55em; margin-right: 2px; }
@keyframes vivo-late { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(-3deg) scale(1.06); } }
.vt-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.vt-add, .vt-ver {
  border: 0; cursor: pointer;
  font: 700 16px/1 "Fredoka", system-ui, sans-serif;
  border-radius: 16px; padding: 15px 22px;
  transition: transform .15s;
}
.vt-add { background: #fff; color: #1c1512; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); }
.vt-slide.t-sol .vt-add { background: var(--carbon); color: var(--sol); }
.vt-ver { background: rgba(255, 255, 255, 0.2); color: var(--tinta); border: 2px solid rgba(255, 255, 255, 0.55); }
.vt-slide.t-sol .vt-ver { border-color: rgba(42, 22, 8, 0.35); background: rgba(255, 255, 255, 0.35); }
@media (hover: hover) { .vt-add:hover, .vt-ver:hover { transform: translateY(-2px); } }

/* el producto: en su plato blanco, balanceándose como si girara */
.vt-img { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.vt-plato {
  position: relative;
  width: min(340px, 34vw); aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;   /* blanco parejo: el blanco de la foto se funde con el plato */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 -10px 30px rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; justify-content: center;
}
.vt-plato::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  animation: vivo-gira 20s linear infinite;
}
.vt-plato img {
  /* 68%: el cuadrado completo de la foto cabe dentro del círculo (su diagonal es 0,96 del plato) */
  width: 68%; height: 68%; object-fit: contain;
  animation: vivo-baila 5.5s ease-in-out infinite;
  /* 🧼 sin el cuadro blanco (Junior, 2026-09-28): las fotos de Mercado Libre traen fondo blanco;
     con multiply ese blanco desaparece sobre el plato y queda solo el producto. La sombra
     (drop-shadow) dibujaba el borde del cuadro, por eso se sacó. */
  mix-blend-mode: multiply;
}
@keyframes vivo-baila {
  0%, 100% { transform: rotateY(-24deg) translateY(0); }
  50% { transform: rotateY(24deg) translateY(-12px); }
}
.vt-sombra {
  position: absolute; bottom: -22px; left: 50%;
  width: 60%; height: 22px; margin-left: -30%;
  border-radius: 50%; background: rgba(0, 0, 0, 0.25); filter: blur(8px);
  animation: vivo-sombra 5.5s ease-in-out infinite;
}
@keyframes vivo-sombra { 0%, 100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.8); opacity: .3; } }

/* barras de avance (como las historias) y flechas */
.vt-barras { position: absolute; left: 28px; right: 28px; bottom: 18px; display: flex; gap: 6px; z-index: 3; }
.vt-b { flex: 1; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); overflow: hidden; cursor: pointer; border: 0; padding: 0; }
.vt-b i { display: block; height: 100%; width: 0; background: #fff; }
.vt-b.hecho i { width: 100%; }
.vt-b.on i { animation: vivo-llena var(--vt-tiempo, 5s) linear forwards; }
.vt.pausa .vt-b.on i { animation-play-state: paused; }
@keyframes vivo-llena { to { width: 100%; } }
.vt-fl {
  position: absolute; top: 50%; z-index: 3;
  width: 44px; height: 44px; margin-top: -22px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.28); color: #fff; font: 700 24px/1 system-ui;
}
.vt-fl.izq { left: 12px; } .vt-fl.der { right: 12px; }
@media (hover: none) { .vt-fl { display: none; } }

/* ═══════════════════════ 🏷️ LA CINTA QUE CORRE ═══════════════════════ */
.cinta {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: var(--tomate);
  border-block: 3px solid var(--sol);
  margin: 18px 0 8px;
  transform: rotate(-1deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.cinta-pista { display: inline-flex; gap: 42px; padding: 12px 0; animation: vivo-cinta 32s linear infinite; }
.cinta-pista span { font: 700 17px/1 "Fredoka", system-ui, sans-serif; color: #fff; letter-spacing: .02em; }
.cinta-pista span b { color: var(--sol); font-weight: 700; }
@keyframes vivo-cinta { to { transform: translateX(-50%); } }

/* ═══════════════════ 📺 LOS TABLEROS DE ABAJO (van cambiando solos) ═══════════════════ */
.tableros-titulo { max-width: 1180px; margin: 36px auto 12px; padding: 0 16px;
  font: 700 26px/1.1 "Fredoka", system-ui, sans-serif; color: var(--sol); }
.tableros {
  max-width: 1180px; margin: 0 auto 30px; padding: 0 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.tablero {
  position: relative; height: 240px;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 194, 26, 0.3);
  cursor: pointer;
}
.tb-promo {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  padding: 20px 24px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--tinta);
}
.tb-promo.on { opacity: 1; transform: none; }
.tb-promo.t-sol { --c1: #ffd23d; --c2: #ffa41a; --tinta: #2a1608; }
.tb-promo.t-tomate { --c1: #ff5a2e; --c2: #c4140d; --tinta: #fff; }
.tb-promo.t-carbon { --c1: #4a3326; --c2: #1d1511; --tinta: #fff; }
.tb-promo h3 { font: 700 clamp(20px, 2.4vw, 28px)/1.08 "Fredoka", system-ui, sans-serif; margin: 0 0 6px; }
.tb-promo p { font: 500 14px/1.3 "Inter", system-ui, sans-serif; margin: 0 0 12px; opacity: .88; }
.tb-ver { font: 700 14px/1 "Fredoka", system-ui, sans-serif; background: rgba(255, 255, 255, 0.92); color: #1c1512; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.tb-img { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.tb-img img {
  max-width: 88%; max-height: 180px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 18px; aspect-ratio: 1; width: 170px; max-width: 88%;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  animation: vivo-flota 5s ease-in-out infinite;
}
.tb-desde {
  position: absolute; right: 2px; top: 6px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--tomate); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 700 12px/1.1 "Fredoka", system-ui, sans-serif; text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); transform: rotate(8deg);
  border: 3px solid #fff;
}
.tb-promo.t-tomate .tb-desde { background: var(--sol); color: #2a1608; }
.tb-desde b { font-size: 19px; }

/* ═══════════════════════ 🎵 TIKTOK ═══════════════════════ */
.tk-franja { max-width: 1180px; margin: 34px auto 26px; padding: 0 16px; }
.tk-card {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: linear-gradient(120deg, #111 0%, #1b1b1b 60%, #2a0f1a 100%);
  border-radius: 26px; padding: 18px 24px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), -4px 0 0 #25f4ee, 4px 0 0 #fe2c55;
}
.tk-poroto { width: 86px; height: 86px; object-fit: contain; animation: vivo-flota 4.5s ease-in-out infinite; flex: none; }
.tk-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tk-tag { font: 700 13px/1 "Fredoka", system-ui, sans-serif; color: #25f4ee; letter-spacing: .04em; text-transform: uppercase; }
.tk-txt b { font: 700 clamp(24px, 3.4vw, 34px)/1.05 "Fredoka", system-ui, sans-serif;
  text-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55; }
.tk-txt small { font: 500 14px/1.3 "Inter", system-ui, sans-serif; opacity: .8; }
.tk-btn { display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: #fe2c55; color: #fff; font: 700 16px/1 "Fredoka", system-ui, sans-serif;
  padding: 14px 20px; border-radius: 16px; box-shadow: 0 8px 18px rgba(254, 44, 85, 0.4); transition: transform .15s; }
.tk-btn svg { width: 20px; height: 20px; fill: #fff; }
@media (hover: hover) { .tk-card:hover .tk-btn { transform: translateY(-2px); } }
.tk-embed { margin-top: 16px; display: flex; justify-content: center; border-radius: 22px; overflow: hidden; }
.tk-embed blockquote { margin: 0 auto; border-radius: 18px; }
.tk-embed.nada { display: none; }
.tk-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.tk-vid { display: flex; justify-content: center; }
.tk-card-vid { position: relative; display: block; width: 100%; max-width: 340px; aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), -4px 0 0 #25f4ee, 4px 0 0 #fe2c55; }
.tk-card-vid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tk-card-vid::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 55%, rgba(0,0,0,.8) 100%); }
.tk-play { position: absolute; z-index: 2; left: 50%; top: 45%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(254, 44, 85, 0.92); display: flex; align-items: center; justify-content: center;
  font-size: 30px; padding-left: 6px; box-shadow: 0 0 0 8px rgba(255,255,255,.25); animation: vivo-late 2.2s ease-in-out infinite; }
.tk-sello { position: absolute; z-index: 2; top: 14px; left: 14px; font: 700 13px/1 "Fredoka", system-ui, sans-serif;
  background: rgba(0,0,0,.55); padding: 7px 11px; border-radius: 20px; }
.tk-pie { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.tk-pie b { font: 700 19px/1.15 "Fredoka", system-ui, sans-serif; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.tk-pie small { font: 700 14px/1 "Fredoka", system-ui, sans-serif; color: #25f4ee; }
@media (hover: hover) { .tk-card-vid:hover img { transform: scale(1.04); } }
.tk-vid blockquote { border-radius: 18px; background: #fff; }
/* mientras la red no carga su reproductor, el link se ve como botón (y queda así si nunca carga) */
.tk-vid blockquote > a, .tk-vid blockquote section a { display: block; padding: 22px 18px; text-align: center;
  font: 700 16px/1.2 "Fredoka", system-ui, sans-serif; color: #1c1512; text-decoration: none; }
.foot-social a[hidden] { display: none !important; }

/* ═══════════════════════ 📱 teléfono ═══════════════════════ */
@media (max-width: 760px) {
  .vt { margin: 14px 10px 6px; min-height: 590px; border-radius: 24px; }
  .vt-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 22px 20px 44px; gap: 4px; align-content: start; }
  .vt-img { order: -1; }
  .vt-plato { width: min(250px, 64vw); }
  .vt-sub { font-size: 14.5px; margin-bottom: 14px; }
  .vt-btns { margin-top: 16px; }
  .vt-add, .vt-ver { flex: 1; padding: 14px 12px; text-align: center; }
  .vt-rayos { right: 50%; margin-right: -550px; top: 30%; }
  .vt-barras { left: 18px; right: 18px; bottom: 14px; }
  .tableros { grid-template-columns: 1fr; }
  .tablero { height: 210px; }
  .cinta-pista span { font-size: 15px; }
  .tk-card { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .tk-poroto { width: 64px; height: 64px; }
  .tk-btn { width: 100%; justify-content: center; }
}

/* quien pidió menos movimiento en su teléfono, no lo tiene */
@media (prefers-reduced-motion: reduce) {
  .hero2::before, .vt-rayos, .vt-plato::before, .vt-plato img, .vt-sombra, .vt-precio,
  .cinta-pista, .tb-img img, .hero2-inner.centrado .hero-head .hero-logo { animation: none !important; }
}
