/* ============================================================
   RL Premium G5 — Catálogo (tema blanco: negro / blanco / rojo)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --bg-card: #ffffff;
  --accent: #e11d2a;
  --accent-dark: #c01421;
  --text: #111111;
  --muted: #6f7078;
  --border: #e9e9ec;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .5px; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Aviso "En vivo" ---------- */
.live-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--accent); color: #fff; padding: 10px 16px; font-size: 14px; text-align: center;
}
.live-bar strong { font-weight: 800; letter-spacing: .5px; margin-right: 4px; }
.live-bar-punto { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: livePulso 1.2s ease-in-out infinite; flex-shrink: 0; }
.live-bar-btn { background: #fff; color: var(--accent); font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 30px; white-space: nowrap; }
@keyframes livePulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

/* ---------- Barra superior ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 30px; border-bottom: 1px solid var(--border); position: sticky; top: 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); z-index: 10;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }

.search-form { display: flex; gap: 8px; min-width: 0; }
.search-form input, .search-form select {
  background: var(--bg-soft); border: 1px solid transparent; color: var(--text);
  padding: 10px 16px; border-radius: 30px; font-size: 14px; font-family: inherit; min-width: 0;
}
.search-form input { width: 240px; }
.search-form input:focus, .search-form select:focus { outline: none; border-color: var(--text); background: #fff; }
.search-form button {
  background: var(--text); border: none; color: #fff; padding: 10px 20px; border-radius: 30px;
  cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit;
}

/* ---------- Portada ---------- */
.hero {
  max-width: 1300px; margin: 0 auto; padding: 44px 30px 30px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
}
.hero-tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: #fdecee; padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: .92; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 24px; max-width: 440px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-negro, .btn-linea {
  padding: 14px 26px; border-radius: 30px; font-weight: 700; font-size: 14.5px; border: 1.5px solid var(--text);
  transition: background .15s, color .15s;
}
.btn-negro { background: var(--text); color: #fff; }
.btn-negro:hover { background: var(--accent); border-color: var(--accent); }
.btn-linea:hover { background: var(--text); color: #fff; }
.hero-img { border-radius: 24px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Carrusel de marcas (infinito, solo de adorno: no se puede tocar ni seleccionar) ---------- */
.marcas-carrusel {
  width: 100%; overflow: hidden; border: none; outline: none; box-shadow: none; background: transparent; padding: 22px 0;
  pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marcas-track { display: flex; align-items: center; gap: 64px; width: max-content; padding-left: 64px; animation: marcasScroll 48s linear infinite; will-change: transform; }
.marcas-track img { height: 46px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; border: none; outline: none; background: transparent; -webkit-user-drag: none; user-drag: none; }
@keyframes marcasScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marcas-track { animation-duration: 180s !important; } }

/* ---------- Entrada con video a pantalla completa (solo celular y tablet) ---------- */
.video-intro { display: none; }
.hero-img.solo-chico { display: none; }
@media (max-width: 1024px) {
  .video-intro { display: block; position: fixed; inset: 0; z-index: 99999; width: 100%; height: 100%; background: #000; overflow: hidden; opacity: 1; transition: opacity .35s ease; }
  .video-intro[hidden] { display: none; }
  .video-intro.saliendo { opacity: 0; pointer-events: none; }
  html.intro-abierta, html.intro-abierta body { overflow: hidden; }
  .video-intro-barra { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.25); }
  .video-intro-barra i { display: block; height: 100%; width: 0; background: #e11d2e; }
  .hero-img.solo-chico { position: relative; }
  .ver-video-btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: 700; font-family: inherit; white-space: nowrap; }
  .video-intro video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .video-intro-sonido { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600; font-family: inherit; backdrop-filter: blur(6px); }
  .video-intro-bajar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); background: #fff; color: #111; border: none; padding: 14px 26px; border-radius: 30px; font-size: 15px; font-weight: 700; font-family: inherit; box-shadow: 0 8px 26px rgba(0,0,0,.35); white-space: nowrap; }
  .video-intro-bajar span { display: inline-block; margin-left: 4px; animation: introBaja 1.3s ease-in-out infinite; }
  .hero-video, .hero-escena { display: none !important; }
  .hero-img.solo-chico { display: block; }
}
@keyframes introBaja { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Video de la portada ---------- */
.hero-video { position: relative; justify-self: center; width: 100%; max-width: 340px; aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; background: #0d0d0f; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.hero-video-btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 8px 16px; border-radius: 30px; font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; backdrop-filter: blur(6px); }

/* ---------- Categorías ---------- */
.ancla { scroll-margin-top: 76px; }
.categorias { display: flex; gap: 8px; justify-content: center; padding: 26px 30px 8px; flex-wrap: wrap; }
.categorias a {
  padding: 9px 20px; border: 1px solid var(--border); border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
}
.categorias a:hover { border-color: var(--text); }
.categorias a.active { background: var(--text); color: #fff; border-color: var(--text); }
.categorias.subcategorias { padding-top: 4px; }
.categorias.subcategorias a { font-size: 12.5px; padding: 6px 14px; font-weight: 500; }
.filtro-activo { text-align: center; color: var(--muted); font-size: 13.5px; margin: 10px 16px 0; }
.filtro-activo a { color: var(--accent); font-weight: 600; }

/* ---------- Productos ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px;
  padding: 22px 30px 70px; max-width: 1300px; margin: 0 auto;
}
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px 0; }

.product-card { display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--radius); }
.product-img {
  position: relative; aspect-ratio: 1/1; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.no-img { color: #c9c9cf; font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 2px; }
.no-img.grande { font-size: 44px; }

.badge {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 10.5px; padding: 5px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.badge-agotado { background: var(--text); }

.product-info { padding: 12px 4px 0; display: flex; flex-direction: column; flex: 1; }
.product-marca { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; min-height: 14px; }
.product-info h3 { font-size: 21px; line-height: 1.05; margin: 3px 0 6px; }
.product-tallas { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.product-tallas span { font-size: 11px; font-weight: 600; border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.precio-menudeo small { font-size: 11px; font-weight: 600; color: var(--muted); }
span.btn-agregar-carrito { display: block; text-align: center; }
.product-precios { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.precio-menudeo { font-size: 18px; font-weight: 800; }
.precio-mayoreo { font-size: 11.5px; color: var(--accent); font-weight: 600; }

.btn-agregar-carrito {
  width: 100%; margin-top: 10px; padding: 11px; border-radius: 30px; border: 1.5px solid var(--text);
  background: #fff; color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.btn-agregar-carrito:hover { background: var(--text); color: #fff; }
.btn-agregar-carrito.grande { padding: 14px; font-size: 15px; flex: 1; margin-top: 0; background: var(--text); color: #fff; }
.btn-agregar-carrito.grande:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Síguenos ---------- */
.siguenos { background: var(--bg-soft); padding: 56px 30px 60px; text-align: center; }
.siguenos h2 { font-size: 44px; margin: 0 0 4px; }
.siguenos-sub { color: var(--muted); margin: 0 0 30px; font-size: 15px; }
.siguenos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.red-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 26px 18px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 230px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.red-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.08); border-color: var(--text); }
.red-icono { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 10px; }
.red-icono svg { width: 26px; height: 26px; }
.red-tiktok .red-icono { background: #010101; }
.red-instagram .red-icono { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 35%, #d6249f 60%, #285AEB 90%); }
.red-facebook .red-icono { background: #1877F2; }
.red-whatsapp .red-icono { background: #25D366; }
.red-card strong { font-size: 17px; }
.red-usuario { font-size: 13px; color: var(--muted); font-weight: 600; }
.red-desc { font-size: 13px; color: var(--muted); }
.red-btn { margin-top: auto; background: var(--text); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 26px; border-radius: 30px; }
.red-card:hover .red-btn { background: var(--accent); }

/* ---------- Pie ---------- */
.footer { text-align: center; padding: 36px 30px 90px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.footer-logo { height: 70px; width: auto; margin-bottom: 14px; }
.footer-redes { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.footer-redes a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text); transition: background .15s, color .15s, border-color .15s;
}
.footer-redes a svg { width: 18px; height: 18px; }
.footer-redes a:hover { background: var(--text); border-color: var(--text); color: #fff; }

.burbuja-wa {
  position: fixed; bottom: 22px; right: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45); transition: transform .15s;
}
.burbuja-wa svg { width: 30px; height: 30px; }
.burbuja-wa:hover { transform: scale(1.08); }

/* ---------- Carrito flotante ---------- */
.carrito-flotante {
  position: fixed; bottom: 22px; left: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--text); border: none; color: #fff; font-size: 24px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center;
}
.carrito-contador {
  position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.carrito-overlay { display: none; position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.45); }
.carrito-overlay.show { display: block; }
.carrito-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; background: #fff;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.18);
}
.carrito-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.carrito-panel-header h3 { margin: 0; font-size: 26px; }
.carrito-cerrar { background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; line-height: 1; }
.carrito-lista { flex: 1; overflow-y: auto; padding: 12px 20px; }
.carrito-vacio { color: var(--muted); font-size: 14px; text-align: center; margin-top: 30px; }
.carrito-item-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.carrito-item-info strong { display: block; font-size: 13.5px; }
.carrito-item-info span { font-size: 12px; color: var(--muted); }
.carrito-item-controles { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.carrito-item-controles button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: 15px; }
.carrito-item-quitar { background: none; border: none; color: var(--accent); font-size: 22px; cursor: pointer; }
.carrito-panel-footer { padding: 18px 20px; border-top: 1px solid var(--border); }
.carrito-total-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.btn-whatsapp-carrito { width: 100%; background: #25D366; color: #fff; border: none; padding: 15px; border-radius: 30px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.carrito-nota { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ---------- Detalle de producto ---------- */
.detalle { max-width: 1050px; margin: 0 auto; padding: 26px 30px 60px; }
.volver { color: var(--muted); font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 18px; }
.volver:hover { color: var(--text); }
.detalle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.detalle-img-col { display: flex; flex-direction: column; gap: 12px; }
.detalle-img { background: var(--bg-soft); border-radius: 22px; overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.detalle-img img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas { display: flex; gap: 10px; flex-wrap: wrap; }
.miniatura { width: 66px; height: 66px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; opacity: .65; transition: opacity .15s, border-color .15s; }
.miniatura:hover { opacity: 1; }
.miniatura.activa { opacity: 1; border-color: var(--text); }
.detalle-info h1 { font-size: 48px; line-height: .98; margin: 6px 0; }
.categoria-tag { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.detalle-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.detalle-chips span { border: 1px solid var(--text); border-radius: 30px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.tallas-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 6px 0 8px; }
.tallas-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tallas-selector a { min-width: 48px; text-align: center; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 14px; }
.tallas-selector a:hover { border-color: var(--text); }
.tallas-selector a.activa { background: var(--text); color: #fff; border-color: var(--text); }
.tallas-selector a.sin-stock { color: #b9bac0; text-decoration: line-through; }
.tallas-selector a.sin-stock.activa { background: #b9bac0; border-color: #b9bac0; color: #fff; }
.precios-box { display: flex; gap: 12px; margin: 18px 0; }
.precios-box div { flex: 1; background: var(--bg-soft); border-radius: 14px; padding: 14px 18px; }
.precios-box span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.precios-box strong { font-size: 24px; font-weight: 800; }
.precios-box div + div strong { color: var(--accent); }
.descripcion { color: #45464d; line-height: 1.65; margin: 18px 0; }
.detalle-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-whatsapp { display: inline-block; background: #25D366; color: #fff; font-weight: 700; padding: 14px 26px; border-radius: 30px; flex: 1; text-align: center; white-space: nowrap; }
.agotado-box { background: var(--bg-soft); color: var(--muted); padding: 14px 28px; border-radius: 30px; display: inline-block; margin-top: 10px; font-weight: 600; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 22px 16px 18px; gap: 20px; }
  .hero-img { order: -1; aspect-ratio: 16/9; border-radius: 18px; }
  .hero-video { order: -1; max-width: none; aspect-ratio: 4/5; border-radius: 20px; }
  .hero-video video { object-position: 50% 12%; }
  .hero p { font-size: 15px; }
  .hero-btns a { flex: 1; text-align: center; padding: 13px 12px; }
}
@media (max-width: 700px) {
  .topbar { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .brand img { height: 40px; }
  .marcas-carrusel { padding: 16px 0; }
  .marcas-track { gap: 44px; padding-left: 44px; }
  .marcas-track img { height: 34px; max-width: 110px; }
  .search-form { width: 100%; order: 2; }
  .search-form input { flex: 1; width: auto; }
  .search-form button { padding: 10px 16px; }
  .live-bar { font-size: 13px; padding: 9px 12px; gap: 8px; }
  .categorias { padding: 18px 16px 6px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .categorias::-webkit-scrollbar { display: none; }
  .categorias a { white-space: nowrap; padding: 8px 16px; font-size: 13px; flex-shrink: 0; }
  .ancla { scroll-margin-top: 110px; }
  .grid { padding: 14px 16px 50px; gap: 18px 12px; grid-template-columns: repeat(2, 1fr); }
  .product-info h3 { font-size: 18px; }
  .precio-menudeo { font-size: 16px; }
  .btn-agregar-carrito { font-size: 12px; padding: 10px 6px; }
  .siguenos { padding: 40px 16px 44px; }
  .siguenos h2 { font-size: 34px; }
  .siguenos-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .red-card { min-height: 210px; padding: 20px 12px 18px; }
  .detalle { padding: 16px 16px 50px; }
  .detalle-grid { grid-template-columns: 1fr; gap: 20px; }
  .detalle-info h1 { font-size: 36px; }
  .detalle-botones { flex-direction: column; }
  .detalle-botones > * { flex: none; width: 100%; }
  .footer { padding: 30px 16px 96px; }
  .carrito-flotante { bottom: 16px; left: 16px; }
  .burbuja-wa { bottom: 16px; right: 16px; }
}


/* ---------- Computadora: productos que salen de atrás del video ---------- */
.hero-escena { position: relative; justify-self: center; width: 100%; max-width: 340px; --u: clamp(96px, 11.5vw, 160px); --m: 170px; }
.hero-escena .hero-video { z-index: 2; max-width: none; }
.hero-carta { position: absolute; z-index: 1; width: var(--u); height: var(--u); top: var(--y); left: 50%; margin-left: calc(var(--u) / -2);
  transform: translateX(0) rotate(0deg) scale(.6); opacity: 0; animation: cartaSale 1.1s cubic-bezier(.2,.9,.25,1.15) forwards; animation-delay: var(--d); text-decoration: none; }
.hero-carta span { display: block; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #111; border: none;
  box-shadow: 0 16px 36px rgba(0,0,0,.16); animation: cartaFlota 4.5s ease-in-out infinite; animation-delay: var(--d); transition: transform .25s ease, box-shadow .25s ease; }
.hero-carta:hover { z-index: 3; }
.hero-carta:hover span { transform: translateX(calc(var(--dir) * 34px)) scale(1.06); box-shadow: 0 22px 46px rgba(0,0,0,.26); animation-play-state: paused; }
.hero-carta img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.hero-carta.es-logo span { background: #f4f4f5; }
.hero-carta.es-logo img { object-fit: contain; padding: 18%; }
/* --x: cuánto se asoma a los lados · --r: inclinación · --y: altura · --d: orden en que salen */
.hc1 { --dir: -1; --x: calc(var(--m) * -1 - var(--u) * .22); --r: -10deg; --y: 4%;  --d: .15s; }
.hc2 { --dir: 1; --x: calc(var(--m) + var(--u) * .22);  --r: 9deg;   --y: 9%;  --d: .3s; }
.hc3 { --dir: -1; --x: calc(var(--m) * -1 - var(--u) * .36); --r: 7deg;   --y: 37%; --d: .45s; }
.hc4 { --dir: 1; --x: calc(var(--m) + var(--u) * .36);  --r: -8deg;  --y: 41%; --d: .6s; }
.hc5 { --dir: -1; --x: calc(var(--m) * -1 - var(--u) * .18); --r: -6deg;  --y: 70%; --d: .75s; }
.hc6 { --dir: 1; --x: calc(var(--m) + var(--u) * .18);  --r: 11deg;  --y: 72%; --d: .9s; }
@keyframes cartaSale { to { transform: translateX(var(--x)) rotate(var(--r)) scale(1); opacity: 1; } }
/* se asoman y se meten un poco, como saliendo de atrás del video */
@keyframes cartaFlota { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(calc(var(--dir) * 16px)); } }
@media (prefers-reduced-motion: reduce) { .hero-carta span { animation: none; } }
@media (max-width: 1250px) { .hero-escena { max-width: 290px; --m: 145px; --u: 90px; } }


/* ---------- Pedido con transferencia (dentro del carrito) ---------- */
.carrito-paso { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.carrito-paso[hidden] { display: none; }
.btn-pagar-carrito { width: 100%; background: var(--text); color: #fff; border: none; padding: 15px; border-radius: 30px; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; margin-bottom: 10px; }
.btn-pagar-carrito:disabled { opacity: .6; }
.btn-whatsapp-carrito.secundario { background: #fff; color: #128c4b; border: 1.5px solid #25D366; font-size: 13.5px; padding: 12px; }
.pedido-ver-ultimo { display: block; background: #fff7e6; border: 1px solid #f3d38a; color: #7a5200; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.pedido-ver-ultimo[hidden] { display: none; }
.pedido-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.pedido-input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 13px; font-size: 16px; font-family: inherit; background: #fff; color: var(--text); }
.pedido-input:focus { outline: none; border-color: var(--text); }
.pedido-dos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.pedido-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pedido-opciones button { border: 1.5px solid var(--border); background: #fff; color: var(--text); border-radius: 12px; padding: 12px 6px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; }
.pedido-opciones button.activa { border-color: var(--text); background: var(--text); color: #fff; }
.pedido-error { background: #fdecec; color: #b3261e; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin: 14px 0 0; }
.pedido-volver { width: 100%; background: none; border: none; color: var(--muted); font-size: 13.5px; font-family: inherit; padding: 6px; cursor: pointer; }
.pago-ok { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.pago-ok strong { display: block; font-size: 16px; } .pago-ok small { color: var(--muted); }
.pago-palomita { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #25D366; color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pago-total { background: var(--bg-soft); border-radius: 16px; padding: 14px 16px; text-align: center; margin-bottom: 14px; }
.pago-total span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pago-total strong { display: block; font-size: 30px; line-height: 1.2; }
.pago-total small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pago-datos { border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; }
.pago-dato { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.pago-dato:last-child { border-bottom: none; }
.pago-dato span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pago-dato strong { display: block; font-size: 15px; word-break: break-word; }
.pago-copiar { flex: none; border: 1.5px solid var(--border); background: #fff; color: var(--text); border-radius: 20px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.pago-nota { font-size: 13px; color: var(--muted); margin: 12px 2px; }
.pago-resumen { margin-top: 14px; font-size: 13px; color: var(--muted); }
.pago-resumen div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }


/* ---------- Promociones y ofertas ---------- */
.promo-tira { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; background: #e11d2e; color: #fff; text-decoration: none; padding: 11px 16px; font-size: 14px; text-align: center; max-width: 1300px; margin: 14px auto 0; border-radius: 16px; }
.promo-tira em { font-style: normal; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.badge-oferta { background: #e11d2e; }
.precio-menudeo.en-oferta { color: #e11d2e; }
.precio-menudeo s { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.categorias a.chip-ofertas { color: #e11d2e; border-color: #e11d2e; font-weight: 700; }
.categorias a.chip-ofertas.active { background: #e11d2e; color: #fff; }
.precios-box .caja-oferta { background: #fdecee; }
.precios-box .caja-oferta span, .precios-box .caja-oferta strong { color: #e11d2e; }
.precios-box small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1340px) { .promo-tira { margin-left: 16px; margin-right: 16px; } }

/* Portada sin video ni imagen: solo el texto, centrado */
.hero.hero-solo-texto { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-bottom: 10px; }
.hero.hero-solo-texto p { margin-left: auto; margin-right: auto; }
.hero.hero-solo-texto .hero-btns { justify-content: center; }

/* Si apagaste el video de entrada, en celular el video se queda dentro de la portada */
@media (max-width: 1024px) {
  .sin-intro .hero-escena { display: block !important; max-width: 300px; order: -1; }
  .sin-intro .hero-video { display: block !important; aspect-ratio: 9/16; max-width: none; }
  .sin-intro .hero-carta { display: none; }
  .sin-intro .hero-img.solo-chico { display: none; }
}

/* Mayoreo en el carrito */
.carrito-mayoreo { background: #fff7e6; border: 1px solid #f3d38a; color: #7a5200; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.carrito-mayoreo[hidden] { display: none; }
.carrito-mayoreo.activo { background: #eafaf0; border-color: #25D366; color: #0f7a3d; }
.carrito-item-info s { color: var(--muted); }
.carrito-item-info .precio-may { color: #0f7a3d; }

.pedido-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pedido-chips button { border: 1.5px solid var(--border); background: #fff; color: var(--text); border-radius: 30px; padding: 8px 13px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.pedido-chips button.activa { border-color: var(--text); background: var(--text); color: #fff; }

/* Elegir cómo hacer el pedido */
.pedido-elegir[hidden] { display: none; }
.pedido-elegir p { margin: 0 0 10px; font-weight: 700; font-size: 15px; text-align: center; }
.pedido-elegir-op { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--text); color: #fff; border: none; border-radius: 16px; padding: 13px 16px; margin-bottom: 8px; font-family: inherit; cursor: pointer; }
.pedido-elegir-op > span:first-child { font-size: 24px; }
.pedido-elegir-op strong { display: block; font-size: 15px; }
.pedido-elegir-op small { display: block; font-size: 12px; opacity: .8; }
.pedido-elegir-op.wa { background: #25D366; }
#carritoHacerBtn { margin-bottom: 0; }
#carritoHacerBtn[hidden] { display: none; }

.hero p.hero-mayoreo { font-size: 14px; margin: -12px 0 22px; color: var(--text); }
.precio-mayoreo { white-space: nowrap; }

/* ---------- Página de producto: datos y piezas ---------- */
.detalle-datos { list-style: none; padding: 0; margin: 4px 0 18px; border-top: 1px solid var(--border); }
.detalle-datos li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.detalle-datos span { color: var(--muted); }
.detalle-datos strong { text-align: right; font-weight: 600; }
.detalle-datos strong.pocas { color: var(--accent); }
.detalle-cantidad { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detalle-cantidad > span { font-weight: 700; font-size: 14px; }
.detalle-cantidad small { color: var(--muted); font-size: 13px; }
.cant-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.cant-control button { width: 46px; height: 46px; border: none; background: var(--bg-soft); font-size: 22px; font-weight: 600; cursor: pointer; color: var(--text); }
.cant-control input { width: 62px; height: 46px; border: none; text-align: center; font-size: 18px; font-weight: 700; font-family: inherit; -moz-appearance: textfield; }
.cant-control input::-webkit-outer-spin-button, .cant-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cant-total { margin: 10px 0 4px; font-size: 15px; }
.cant-total small { color: var(--muted); }
.cant-total .ya-mayoreo { color: #0f7a3d; font-size: 13px; }
.carrito-sub-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.carrito-tope { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: 11px 18px; border-radius: 30px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; white-space: nowrap; }
.carrito-tope.show { opacity: 1; transform: translateX(-50%) translateY(0); }
