/* ===================================================================
   PÁGINA DE INICIO
   Estilos que sólo usa index.html. El resto de la tienda no se toca.

   Identidad: negro, texto blanco y UN solo color vivo (verde). Todo lo
   que se mueve usa transform/opacity, igual que css/animaciones.css.
   =================================================================== */

:root {
  --yi-verde: #22c55e;
  --yi-verde-tenue: rgba(34, 197, 94, .14);
  --yi-borde-vivo: rgba(34, 197, 94, .35);
}

/* Ancho cómodo para los bloques de inicio */
.yi-seccion { padding: 54px 0; }
.yi-seccion--junta { padding: 28px 0; }

/* Encabezado de sección: ojito arriba, título grande, línea de apoyo */
.yi-cab { margin-bottom: 26px; }
.yi-ojo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--yi-verde);
}
.yi-cab h2 {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 800;
  letter-spacing: -.4px; margin-top: 8px;
}
.yi-cab p { color: var(--text-secondary); font-size: 14.5px; margin-top: 7px; max-width: 620px; }
.yi-cab-fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yi-cab-fila a { font-size: 13.5px; color: var(--text-secondary); white-space: nowrap; }
.yi-cab-fila a:hover { color: var(--text-primary); }

/* ======================= PORTADA ======================= */
.yi-hero {
  position: relative; overflow: hidden;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

/* Fondo: cuadrícula finita + un resplandor que se mueve despacio.
   Los dos van detrás de todo y no reciben clics. */
.yi-hero-fondo { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.yi-hero-reja {
  position: absolute; inset: -20% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 78%);
}
.yi-hero-luz {
  position: absolute; left: 50%; top: -120px; width: 620px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(34,197,94,.13), transparent 72%);
  filter: blur(6px);
  animation: yiLuz 13s ease-in-out infinite;
}
@keyframes yiLuz {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .85; }
  50%      { transform: translate(calc(-50% + 30px), 16px) scale(1.09); opacity: 1; }
}

/* Respaldo del fondo animado: si js/fondo-ciudad.js no carga, la ciudad en foto.
   La imagen solo se descarga cuando hace falta (la clase la pone index.html).
   Es pixel art a su tamaño real de píxeles: se agranda sin suavizar. */
.yi-hero-fondo.fondo-fijo { background: #0a0a0a url('/assets/fondo-ciudad.webp') center bottom / cover no-repeat; image-rendering: pixelated; }
@media (max-width: 700px) {
  .yi-hero-fondo.fondo-fijo { background-image: url('/assets/fondo-ciudad-cel.webp'); }
}
.yi-hero-fondo.fondo-fijo .yi-hero-reja,
.yi-hero-fondo.fondo-fijo .yi-hero-luz { display: none; }

/* En el celular el marco de portadas llega casi al fondo de la portada: el
   botón "⏸ Animación" (lo pone fondo-ciudad.js a 8 px) baja para no pisarlo. */
@media (max-width: 700px) {
  .yi-ciudad-pausa, .yi-fondo-tema { bottom: 3px !important; }
}

/* Tema "La metamorfosis" (js/fondo-kafka.js): el fondo es papel claro, así que la letra
   de la portada pasa a tinta y los botones se invierten. El chip y las notas ya traen
   su propio fondo oscuro. */
.yi-hero h1, .yi-hero h1 .yi-apagado, .yi-hero-sub { transition: color .6s ease; }
.yi-hero.tema-papel .yi-chip-vivo { background: linear-gradient(var(--yi-verde-tenue), var(--yi-verde-tenue)), #15110d; }
.yi-hero.tema-papel h1 { color: #15110d; }
.yi-hero.tema-papel h1 .yi-apagado { color: #5c554b; }
.yi-hero.tema-papel .yi-hero-sub { color: #3d372f; }
.yi-hero.tema-papel .yi-hero-botones .btn-primary { background: #15110d; color: #f2ecdd; }
.yi-hero.tema-papel .yi-hero-botones .btn-primary:hover { background: #3b3229; }
.yi-hero.tema-papel .yi-hero-botones .btn-ghost:not(:hover) { background: rgba(242, 236, 221, .6); color: #15110d; border-color: rgba(21, 17, 13, .45); }
.yi-hero.tema-papel .yi-hero-botones .btn-ghost:hover { background: #15110d; color: #f2ecdd; border-color: #15110d; }

.yi-hero-caja { position: relative; z-index: 1; text-align: center; }
.yi-chip-vivo {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--yi-borde-vivo); background: var(--yi-verde-tenue);
  color: #a7f3c4; font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
}
/* En la portada el chip va sobre la ciudad (que de día tiene cielo claro): debajo del verde
   lleva un fondo oscuro, así se lee igual de noche que de día. */
.yi-hero .yi-chip-vivo { background: linear-gradient(var(--yi-verde-tenue), var(--yi-verde-tenue)), rgba(10, 10, 12, .62); }
.yi-punto {
  width: 7px; height: 7px; border-radius: 100px; background: var(--yi-verde);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18); /* fijo: no indica nada en vivo, no late */
}
@keyframes yiPulso {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.yi-hero h1 {
  font-size: clamp(34px, 6.2vw, 68px); font-weight: 800; line-height: 1.06;
  letter-spacing: -1.4px; text-transform: uppercase; margin-top: 18px;
}
.yi-hero h1 .yi-apagado { color: var(--text-muted); }
.yi-hero-sub {
  color: var(--text-secondary); font-size: clamp(15px, 1.6vw, 17.5px);
  margin: 18px auto 0; max-width: 640px;
}
.yi-hero-botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Los dos botones de la portada: son la puerta de entrada, se ven de lejos. */
.yi-btn-grande {
  padding: 16px 34px; font-size: 16px; font-weight: 650; border-radius: 12px;
}
.yi-btn-grande.btn-primary { box-shadow: 0 10px 30px rgba(255, 255, 255, .08); }
/* La ciudad del fondo también sale de día o con neblina (cielo claro): "Cómo comprar" lleva
   su propio fondo oscuro para que la letra blanca se lea siempre. */
.yi-hero-botones .btn-ghost:not(:hover) { background: rgba(10, 10, 12, .55); }
.yi-hero-notas {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px;
}
.yi-nota {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); font-size: 12.5px; font-weight: 500;
  padding: 7px 13px; border-radius: 100px;
}
.yi-nota b { color: var(--text-primary); font-weight: 600; }

/* Marco de las portadas (config/heroSlides). Se esconde solo si no hay. */
.yi-marco {
  position: relative; z-index: 1; margin: 34px auto 0; max-width: 900px;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--bg-card); box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.yi-marco-barra {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-bottom: 1px solid var(--border); background: #0d0d0d;
}
.yi-marco-luz { width: 9px; height: 9px; border-radius: 100px; background: #2a2a2a; }
.yi-marco-tit { margin-left: 7px; font-size: 11.5px; color: var(--text-muted); letter-spacing: .3px; }
.yi-marco-lienzo { position: relative; aspect-ratio: 16 / 7; background: #0b0b0b; }
.yi-marco-lienzo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .45s ease;
}
.yi-marco-flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); border: 1px solid var(--border-light);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity var(--transition);
}
.yi-marco:hover .yi-marco-flecha { opacity: 1; }
.yi-marco-flecha.izq { left: 12px; }
.yi-marco-flecha.der { right: 12px; }
.yi-marco-bolitas { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.yi-bolita {
  width: 7px; height: 7px; border-radius: 100px; background: rgba(255,255,255,.28);
  cursor: pointer; transition: width var(--transition), background var(--transition);
}
.yi-bolita.on { width: 20px; background: #fff; }

/* ======================= TIRA QUE CORRE ======================= */
/* Las marcas que de verdad se venden, sacadas del catálogo. Va dentro del
   contenedor central, con el mismo ancho que el resto de la página. */
.yi-tira { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--border); }
.yi-tira-marco {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  overflow: hidden;
}
.yi-tira-fila {
  display: flex; align-items: center; gap: 14px; width: max-content;
  animation: yiCorre 38s linear infinite;
}
.yi-tira:hover .yi-tira-fila, .yi-tira:focus-within .yi-tira-fila { animation-play-state: paused; }
@keyframes yiCorre { to { transform: translateX(-50%); } }
/* Mientras cargan, la tira y las categorías guardan su lugar (así no brinca lo de abajo). */
.yi-tira-fila { min-height: 44px; }
.yi-cargando { min-height: 100vh; }
.yi-tira-item {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 100px; padding: 8px 16px 8px 8px; white-space: nowrap;
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
}
.yi-tira-item img { width: 26px; height: 26px; border-radius: 100px; object-fit: cover; }

/* ======================= ENCABEZADO DE LA TIENDA ======================= */
.yi-tienda-cab { padding: 42px 0 8px; border-bottom: 1px solid var(--border); }
.yi-tienda-cab h1 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  letter-spacing: -.8px; margin-top: 8px;
}
.yi-tienda-cab p { color: var(--text-secondary); font-size: 15px; margin-top: 9px; max-width: 640px; }

/* ======================= PAGOS ======================= */
.yi-pagos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.yi-pago {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 12px; padding: 11px 16px;
  color: var(--text-secondary); font-size: 13.5px; font-weight: 600;
  animation: yiTurno 9s ease-in-out infinite;
}
.yi-pago span.em { font-size: 16px; }
/* Cada uno se enciende en su turno (el JS le pone el retraso). */
@keyframes yiTurno {
  0%, 14%, 100% { border-color: var(--border); color: var(--text-secondary); box-shadow: none; }
  4%, 9%        { border-color: var(--yi-borde-vivo); color: #d6ffe6; box-shadow: 0 0 0 3px rgba(34,197,94,.09); }
}
.yi-pagos-pie { text-align: center; color: var(--text-muted); font-size: 12.5px; margin-top: 14px; }

/* ======================= CATÁLOGO DESTACADO ======================= */
.yi-rejilla {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.yi-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 14px; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.yi-card:hover { border-color: var(--border-light); transform: translateY(-3px); }
.yi-card-foto { position: relative; aspect-ratio: 1 / 1; background: var(--bg-elevated); overflow: hidden; }
.yi-card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.yi-card:hover .yi-card-foto img { transform: scale(1.05); }
.yi-etq {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 5px 10px; border-radius: 100px;
  background: rgba(0,0,0,.72); border: 1px solid var(--border-light); color: var(--text-secondary);
}
.yi-etq--auto { border-color: var(--yi-borde-vivo); background: rgba(6,32,17,.85); color: #a7f3c4; }
.yi-etq--sin { top: auto; bottom: 10px; }
.yi-card-cuerpo { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.yi-card-nombre {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yi-card-precio { display: flex; align-items: baseline; gap: 6px; }
.yi-card-precio b { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.yi-card-precio small { color: var(--text-muted); font-size: 12.5px; }
.yi-card-pie {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 4px;
}
.yi-stock { font-size: 12px; color: var(--text-muted); }
.yi-stock.poco { color: #f0b429; }
.yi-stock.hay::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 100px;
  background: var(--yi-verde); margin-right: 6px; vertical-align: middle;
}

/* ======================= TRES TARJETAS CON VIDA ======================= */
.yi-bento { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.yi-bento-card {
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px;
  min-height: 290px;
}
.yi-bento-escena {
  position: relative; flex: 1; min-height: 168px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 0%, #141414, #0c0c0c 70%);
}
.yi-bento-texto strong { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.2px; }
.yi-bento-texto p { color: var(--text-secondary); font-size: 13.5px; margin-top: 5px; }
.yi-bento-ojo {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--text-muted);
}

/* --- escena 1: avisos de entrega que se van turnando --- */
.yi-aviso {
  position: absolute; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: #111; border-radius: 11px; padding: 10px 12px;
  opacity: 0;
  animation: yiAviso 7.5s ease-in-out infinite;
}
.yi-aviso:nth-child(1) { top: 20px; animation-delay: 0s; }
.yi-aviso:nth-child(2) { top: 76px; animation-delay: .8s; }
.yi-aviso:nth-child(3) { top: 132px; animation-delay: 1.6s; }
@keyframes yiAviso {
  0%, 5%     { opacity: 0; transform: translateY(9px) scale(.97); }
  13%, 72%   { opacity: 1; transform: none; }
  84%, 100%  { opacity: 0; transform: translateY(-6px); }
}
.yi-aviso-ic {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: var(--yi-verde-tenue); border: 1px solid var(--yi-borde-vivo);
}
.yi-aviso b { display: block; font-size: 12.5px; font-weight: 600; }
.yi-aviso span { display: block; font-size: 12.5px; color: var(--text-muted); }

/* --- escena 2: conversación con los puntitos de "escribiendo" --- */
.yi-chat { position: absolute; inset: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.yi-burbuja {
  max-width: 78%; font-size: 12px; line-height: 1.45;
  border: 1px solid var(--border); background: #111;
  border-radius: 12px; padding: 8px 11px; opacity: 0;
  animation: yiBurbuja 8s ease-in-out infinite;
}
.yi-burbuja.mia {
  align-self: flex-end; background: #0e2417; border-color: var(--yi-borde-vivo); color: #d6ffe6;
}
.yi-burbuja:nth-child(1) { animation-delay: .3s; }
.yi-burbuja:nth-child(2) { animation-delay: 2.1s; }
.yi-burbuja:nth-child(3) { animation-delay: 3.6s; }
@keyframes yiBurbuja {
  0%, 4%    { opacity: 0; transform: translateY(7px); }
  10%, 86%  { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; }
}
.yi-escribiendo { display: inline-flex; gap: 3px; align-items: center; }
.yi-escribiendo i {
  width: 4px; height: 4px; border-radius: 100px; background: var(--yi-verde); display: block;
  animation: yiPunto 1.1s ease-in-out infinite;
}
.yi-escribiendo i:nth-child(2) { animation-delay: .15s; }
.yi-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes yiPunto {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

/* --- escena 3: las formas de pago encendiéndose por turnos --- */
.yi-fichas {
  position: absolute; inset: 0; display: flex; flex-wrap: wrap; gap: 9px;
  align-content: center; justify-content: center; padding: 16px;
}
.yi-ficha {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: #111; border-radius: 10px;
  padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--text-muted);
  animation: yiTurno 9s ease-in-out infinite;
}

/* ======================= JUEGOS ======================= */
/* auto-fill (no auto-fit): con un solo juego, la tarjeta no se estira a todo el ancho */
.yi-juegos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.yi-juego {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
}
.yi-juego:hover { border-color: var(--border-light); transform: translateY(-3px); }
.yi-juego-foto { aspect-ratio: 16 / 9; background: var(--bg-elevated); overflow: hidden; }
.yi-juego-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yi-juego:hover .yi-juego-foto img { transform: scale(1.05); }
.yi-juego-cuerpo { padding: 15px 16px 17px; }
.yi-juego-cuerpo h3 { font-size: 16px; font-weight: 700; }
.yi-juego-cuerpo p {
  color: var(--text-muted); font-size: 12.5px; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.yi-juego-mas { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.yi-juego:hover .yi-juego-mas { color: var(--text-primary); }
.yi-juego-conteo {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.72); border: 1px solid var(--border-light);
  border-radius: 100px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
}

/* ======================= CÓMO COMPRAR ======================= */
.yi-pasos { display: grid; gap: 0; }
.yi-paso {
  position: relative;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 14px; padding: 18px 20px;
}
.yi-paso-num {
  position: absolute; top: 16px; right: 18px;
  font-size: 12px; font-weight: 700; color: #2f2f2f; letter-spacing: 1px;
}
.yi-paso-ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--yi-verde-tenue); border: 1px solid var(--yi-borde-vivo);
}
.yi-paso h3 { font-size: 16px; font-weight: 700; margin-top: 13px; }
.yi-paso p { color: var(--text-secondary); font-size: 13.5px; margin-top: 5px; }
/* El halo que va saltando de paso en paso, como diciendo "ahora vas aquí". */
.yi-paso::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--yi-borde-vivo); opacity: 0; pointer-events: none;
  animation: yiHalo 9s ease-in-out infinite;
}
.yi-union { position: relative; height: 30px; overflow: hidden; }
.yi-union::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--border); transform: translateX(-50%);
}
/* La lucecita que baja por la línea entre un paso y el siguiente. */
.yi-union::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 14px;
  background: linear-gradient(180deg, transparent, var(--yi-verde));
  transform: translate(-50%, -100%);
  animation: yiBaja 9s linear infinite;
}
@keyframes yiHalo { 0%, 16%, 100% { opacity: 0; } 5%, 12% { opacity: 1; } }
@keyframes yiBaja {
  0%             { transform: translate(-50%, -100%); opacity: 1; }
  9%             { transform: translate(-50%, 30px);  opacity: 1; }
  9.1%, 100%     { transform: translate(-50%, 30px);  opacity: 0; }
}

/* ======================= NÚMEROS ======================= */
.yi-numeros {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 16px; padding: 22px;
}
.yi-numero strong { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.6px; }
.yi-numero span { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 3px; }

/* ======================= AYUDA ======================= */
/* Los botones con diseño propio (los mismos de la página de enlaces). Van en
   una sola columna centrada: cada uno trae su texto adentro y su propia
   proporción, así que se respeta tal cual y nunca se deforma. */
.yi-canales { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }
.yi-boton {
  display: block; line-height: 0; border-radius: 14px;
  transition: transform var(--transition), filter var(--transition);
}
.yi-boton img { display: block; width: 100%; height: auto; }
.yi-boton:hover, .yi-boton:focus-visible {
  transform: translateY(-2px) scale(1.012);
  filter: brightness(1.08) drop-shadow(0 12px 26px rgba(0,0,0,.55));
  outline: none;
}
.yi-boton:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--yi-verde); }

.yi-canal {
  display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--border); background: var(--bg-card);
  border-radius: 14px; padding: 16px 17px;
  transition: border-color var(--transition), transform var(--transition);
}
.yi-canal:hover { border-color: var(--border-light); transform: translateY(-2px); }
.yi-canal-ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.yi-canal b { display: block; font-size: 14.5px; font-weight: 650; }
.yi-canal span { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }

/* ======================= PIE ======================= */
.yi-pie { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 0 26px; background: #0b0b0b; }
.yi-pie-cols {
  display: grid; gap: 26px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.yi-pie-marca { display: flex; align-items: center; gap: 10px; }
.yi-pie-marca img { width: 34px; height: 34px; border-radius: 9px; }
.yi-pie-marca b { font-size: 15.5px; font-weight: 700; }
.yi-pie-nota { color: var(--text-muted); font-size: 12.5px; margin-top: 11px; max-width: 320px; line-height: 1.6; }
.yi-pie h3, .yi-pie h4 {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px;
}
.yi-pie-cols a, .yi-pie-cols button {
  display: block; color: var(--text-secondary); font-size: 13.5px; margin-bottom: 8px;
  background: none; border: none; padding: 0; text-align: left; font-family: inherit; cursor: pointer;
}
.yi-pie-cols a:hover, .yi-pie-cols button:hover { color: var(--text-primary); }
.yi-pie-raya {
  border-top: 1px solid var(--border); margin-top: 26px; padding-top: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 12px;
}

/* ======================= PANTALLAS CHICAS ======================= */
@media (max-width: 900px) {
  .yi-bento { grid-template-columns: 1fr; }
  .yi-bento-card { min-height: 0; }
  .yi-bento-escena { min-height: 150px; }
  .yi-pie-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .yi-seccion { padding: 40px 0; }
  .yi-hero { padding: 36px 0 30px; }
  .yi-rejilla { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .yi-card-cuerpo { padding: 12px 12px 14px; }
  .yi-card-nombre { font-size: 13px; }
  .yi-card-precio b { font-size: 17px; }
  .yi-marco-flecha { opacity: 1; width: 30px; height: 30px; }
  .yi-pie-cols { grid-template-columns: 1fr; gap: 20px; }
  .yi-hero-notas { gap: 6px; }
  .yi-nota { font-size: 12.5px; padding: 6px 11px; }
  /* En el teléfono los dos botones van uno debajo del otro, bien anchos:
     se pican con el pulgar sin apuntar. */
  .yi-hero-botones { flex-direction: column; gap: 10px; }
  .yi-btn-grande { width: 100%; padding: 15px 20px; font-size: 15.5px; }
  .yi-tienda-cab { padding: 30px 0 4px; }
}

/* Quien pidió menos movimiento: todo quieto, pero todo visible. */
@media (prefers-reduced-motion: reduce) {
  .yi-hero-luz, .yi-tira-fila, .yi-pago, .yi-ficha, .yi-aviso, .yi-burbuja,
  .yi-escribiendo i, .yi-paso::after, .yi-union::after, .yi-punto {
    animation: none !important;
  }
  .yi-aviso, .yi-burbuja { opacity: 1; }
  .yi-boton { transition: none !important; }
  .yi-aviso:nth-child(2) { top: 76px; }
  .yi-aviso:nth-child(3) { top: 132px; }
}
