/* =========================================================
   INSANITY SOCIETY — estilos
   ========================================================= */
:root {
  --bg: #0b0b0b;
  --bg-alt: #121212;
  --panel: #1a1a1a;
  --card: #161616;
  --line: #262626;
  --text: #eaeaea;
  --muted: #a8a8a8;
  --accent: #e50914;
  --accent-dark: #b30000;
  --graphite: #1f1f1f;
  --radius: 14px;
  --header-offset: 72px;
  --font-title: "Oswald", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@font-face {
  font-family: "AndroidAssassin";
  src: url("../fonts/Android Assassin.ttf") format("truetype");
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
fieldset { min-width: 0; }
html { scroll-padding-top: var(--header-offset); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(1600px 400px at 10% -10%, rgba(229,9,20,0.06), transparent 40%),
    radial-gradient(1200px 300px at 90% 110%, rgba(229,9,20,0.05), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--header-offset);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.no-scroll { overflow: hidden; }
main { flex: 1 0 auto; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); letter-spacing: .5px; line-height: 1.2; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 5000; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- Botones ---------- */
.btn-primario, .btn-secundario {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.1rem; border-radius: 8px; font-weight: 800; letter-spacing: .4px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.btn-primario { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); color: #fff; }
.btn-primario:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(229,9,20,.35); }
.btn-secundario { background: #232323; color: #fff; border-color: #3a3a3a; }
.btn-secundario:hover { border-color: var(--accent); }
.btn-primario[disabled], .btn-secundario[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.4); }
.btn-bloque { width: 100%; }
.icon-btn { background: none; border: 0; color: #fff; font-size: 1.15rem; padding: .35rem .55rem; cursor: pointer; border-radius: 8px; }
.icon-btn:hover { color: var(--accent); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 2rem; background: #000; border-bottom: 1px solid #141414;
  transition: padding .2s ease, background .2s ease;
}
.navbar.shrink { padding-block: .5rem; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.logo {
  font-family: "AndroidAssassin", var(--font-title);
  font-size: clamp(.95rem, 4.2vw, 2rem); letter-spacing: clamp(1px, .45vw, 3px); text-transform: uppercase; text-decoration: none;
  min-width: 0; overflow: hidden; flex-shrink: 1;
  color: var(--accent); -webkit-text-stroke: 1.5px #000; paint-order: stroke fill;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; white-space: nowrap;
}
.nav-links { display: flex; gap: 1.4rem; }
.tab-link { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .3px; padding: .2rem 0; border-bottom: 2px solid transparent; }
.tab-link:hover { color: var(--accent); }
.tab-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-carrito {
  position: relative; background: #151515; border: 1px solid #2a2a2a; color: #fff; font-weight: 700;
  padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
}
.btn-carrito:hover { border-color: var(--accent); }
.btn-carrito.pulse { animation: pulse .45s ease; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.contador {
  position: absolute; top: -7px; right: -7px; min-width: 1.35em; height: 1.35em; padding: 0 .3em;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: calc(100% + 6px); right: 8px; left: 8px;
  display: flex; flex-direction: column; padding: .5rem;
  background: rgba(18,18,18,.98); border: 1px solid #2c2c2c; border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.55);
}
.mobile-menu .tab-link { padding: .75rem .9rem; border-radius: 8px; border-bottom: 0; }
.mobile-menu .tab-link.active, .mobile-menu .tab-link:hover { background: #222; }

/* Navbar simple (páginas internas) */
.navbar--simple .back-home { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; flex-shrink: 0; padding: .4rem 0; }
.navbar--simple .back-home:hover { color: var(--accent); }

/* ---------- Secciones ---------- */
.tab-content { padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem; max-width: 1280px; margin: 0 auto; width: 100%; }
#home.tab-content { padding: 0; max-width: none; }
.tab-content.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-content > h2 {
  text-align: center; color: var(--accent); margin-bottom: 1rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.section-intro { max-width: 820px; margin: 0 auto 1.75rem; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(460px, calc(100svh - var(--header-offset) - 70px), 860px);
  display: grid; place-items: center; text-align: center; overflow: hidden;
  background: #000 url("../img/Insanity%20Power%20Meet%202025/sentadilla.jpg") center/cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) brightness(.7) saturate(.9); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.8)), radial-gradient(900px 320px at 50% 10%, rgba(229,9,20,.14), transparent 45%);
}
.hero-content { position: relative; z-index: 2; padding: 2rem 1.25rem; max-width: 900px; }
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); text-transform: uppercase; margin-bottom: .8rem; text-shadow: 0 10px 30px rgba(0,0,0,.6); }
.hero p { font-size: clamp(1rem, 2.2vw, 1.25rem); color: #cfcfcf; margin-bottom: 1.5rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.home-strip { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0e0e; }
.home-strip div { padding: 1.1rem 1rem; text-align: center; display: flex; flex-direction: column; }
.home-strip div + div { border-left: 1px solid var(--line); }
.home-strip strong { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.home-strip span { color: var(--muted); font-size: .9rem; }

/* ---------- La Sociedad ---------- */
.sociedad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.soc-card { background: linear-gradient(160deg, var(--graphite), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.soc-card h3 { margin-bottom: .6rem; }
.soc-card ul { padding-left: 1.1rem; }
.soc-card li { margin: .5rem 0; }
.soc-card strong { color: var(--accent); }
.manifesto { background-image: radial-gradient(800px 300px at -10% -20%, rgba(229,9,20,.14), transparent 40%), linear-gradient(160deg, #141414, #1a1a1a); }
.manifesto p { font-size: 1.1rem; color: #ddd; }

/* ---------- Colecciones ---------- */
.colecciones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.col-card {
  display: flex; flex-direction: column; gap: .35rem;
  border-radius: var(--radius); padding: 1.1rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, #141414, #191919);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.col-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.45); border-color: #3a1a1a; }
.col-card h3 { font-size: 1.25rem; }
.col-card .jp { color: var(--accent); font-weight: 400; margin-left: .25rem; }
.col-card p { color: var(--muted); }
.col-cta { margin-top: auto; padding-top: .6rem; color: var(--accent); font-weight: 800; text-decoration: none; align-self: flex-start; }
.col-cta:hover { text-decoration: underline; }
.col-card--destacada { grid-column: span 2; background-image: radial-gradient(700px 260px at 110% -10%, rgba(229,9,20,.2), transparent 45%), linear-gradient(180deg, #141414, #1a1a1a); }
.raijin-legend { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.raijin-legend h4 { color: var(--accent); letter-spacing: .6px; margin-bottom: .25rem; }
.raijin-legend .btn-primario { margin-top: .75rem; }

/* ---------- Tienda ---------- */
.filters-bar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.resultados-txt { color: var(--muted); font-size: .9rem; margin-left: .25rem; }
.badge { background: #fff; color: #000; border-radius: 999px; font-size: .75rem; min-width: 1.4em; padding: 0 .35em; }
.catalogo-grupo { margin-bottom: 2rem; }
.catalogo-titulo { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }

.producto { container-type: inline-size; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 40%, #222, #0d0d0d 70%); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.card:hover .product-img { transform: scale(1.04); }
.product-media.sin-foto::before {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center;
  font-family: "AndroidAssassin", var(--font-title); font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: 2px; color: #2e2e2e;
}
.product-media.sin-foto::after { content: "Foto próximamente"; position: absolute; bottom: .75rem; left: 0; right: 0; text-align: center; font-size: .78rem; color: #6a6a6a; }
.foto-ref { position: absolute; top: .5rem; left: .5rem; background: rgba(0,0,0,.7); font-size: .72rem; padding: .15rem .5rem; border-radius: 999px; color: #ccc; }
.view-toggle { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); display: flex; gap: .3rem; background: rgba(0,0,0,.6); padding: .25rem; border-radius: 999px; }
.view-btn { background: none; border: 0; color: #ddd; font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; cursor: pointer; }
.view-btn.active { background: var(--accent); color: #fff; }

.producto-info { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.producto-col { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.producto-nombre { font-size: 1.1rem; }
.producto-material { color: var(--muted); font-size: .88rem; }
.precio { font-size: 1.2rem; font-weight: 800; color: #fff; margin: .15rem 0 .35rem; }
.opciones { border: 0; margin-bottom: .45rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.opciones legend { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: .3rem; width: 100%; }
.opciones-error { color: #ff5a5f; font-size: .85rem; font-weight: 600; }

/* Chips (radio/checkbox) */
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #1f1f1f; border: 1px solid #353535; color: #e6e6e6; border-radius: 999px;
  padding: .3rem .7rem; font-size: .85rem; transition: background .15s ease, border-color .15s ease;
}
.chip:hover > span { border-color: #666; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.chip--talla > span { min-width: 2.6rem; justify-content: center; border-radius: 8px; }
.swatch { width: .85rem; height: .85rem; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255,255,255,.35); display: inline-block; }

/* Panel de filtros */
.filters-panel {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 2600; width: min(360px, 92vw);
  display: flex; flex-direction: column; background: #111; border-right: 1px solid var(--line);
  box-shadow: 6px 0 30px rgba(0,0,0,.5); transform: translateX(-105%); transition: transform .3s ease; visibility: hidden;
}
.filters-panel.open { transform: none; visibility: visible; }
.filters-header, .filters-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1rem; background: #0d0d0d; }
.filters-header { border-bottom: 1px solid var(--line); }
.filters-header h3 { color: var(--accent); }
.filters-footer { border-top: 1px solid var(--line); }
.filters-footer .btn-primario { flex: 1; }
.filters-content { padding: 1rem; overflow-y: auto; flex: 1; }
.filter-group { border: 0; margin-bottom: 1.1rem; }
.filter-group legend { text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-title); margin-bottom: .45rem; }
.filter-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 2500; }
.cargando-catalogo { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.no-resultados { text-align: center; color: #bbb; border: 1px dashed #333; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }

/* ---------- Comunidad ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; align-items: start; }
.blog-card { background: linear-gradient(160deg, var(--graphite), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.blog-card p { color: var(--muted); }
.blog-card--evento { grid-column: span 2; }
.blog-card:has(.blog-link), .blog-card--img { padding: 0; overflow: hidden; }
.blog-card--img:not(:has(.blog-link)) > :not(img) { margin-inline: 1.1rem; }
.blog-card--img:not(:has(.blog-link)) { padding-bottom: 1.1rem; }
.blog-link { display: flex; flex-direction: column; gap: .4rem; padding: 0 0 1.1rem; text-decoration: none; height: 100%; }
.blog-link > :not(img) { margin-inline: 1.1rem; }
.blog-thumb { width: 100%; height: 260px; object-fit: cover; margin-bottom: .5rem; transition: transform .4s ease; }
.blog-card--evento:hover .blog-thumb { transform: scale(1.03); }
.blog-fecha { font-size: .85rem; }
.blog-mas { color: var(--accent); font-weight: 800; margin-top: auto; }
.tag { align-self: flex-start; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; background: rgba(229,9,20,.15); color: #ff6b70; padding: .15rem .55rem; border-radius: 999px; }
.tag--muted { background: #262626; color: #9a9a9a; }

/* ---------- Carrito ---------- */
.carrito {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2700; width: min(400px, 100vw);
  display: flex; flex-direction: column; background: #151515; border-left: 1px solid var(--line);
  box-shadow: -6px 0 30px rgba(0,0,0,.5); transform: translateX(105%); transition: transform .3s ease; visibility: hidden;
}
.carrito.active { transform: none; visibility: visible; }
.carrito-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.carrito-header h2 { font-size: 1.3rem; }
.lista-carrito { list-style: none; overflow-y: auto; flex: 1; padding: .5rem 1.1rem; }
.carrito-vacio { padding: 2rem 1.1rem; color: var(--muted); text-align: center; flex: 1; }
.item-carrito { padding: .85rem 0; border-bottom: 1px solid #242424; display: flex; flex-direction: column; gap: .5rem; }
.item-info { display: flex; flex-direction: column; }
.item-info small { color: var(--muted); }
.item-acciones { display: flex; align-items: center; gap: .75rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid #333; border-radius: 8px; overflow: hidden; }
.qty button { background: #222; border: 0; color: #fff; width: 2rem; height: 2rem; cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--accent); }
.qty span { min-width: 2rem; text-align: center; font-weight: 700; }
.item-subtotal { margin-left: auto; font-weight: 800; color: var(--accent); }
.item-quitar { background: none; border: 0; color: #8a8a8a; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.item-quitar:hover { color: #fff; }
.carrito-footer { padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #111; }
.carrito-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .75rem; font-size: 1.05rem; }
#total { color: var(--accent); font-weight: 800; }

/* ---------- Modal checkout ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.7); }
.modal { background: #181818; border: 1px solid #2a2a2a; border-radius: var(--radius); width: min(580px, 100%); max-height: 92svh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: fadeIn .25s ease both; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.modal-header h3 { color: var(--accent); font-size: 1.3rem; }
.modal-body { padding: 1rem 1.2rem; overflow-y: auto; overscroll-behavior: contain; }
.modal-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.checkout-resumen ul { list-style: none; border: 1px solid #262626; border-radius: 10px; padding: .4rem .8rem; background: #121212; }
.checkout-resumen li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px dashed #2a2a2a; }
.checkout-resumen li:last-child { border-bottom: 0; }
.checkout-resumen small { display: block; color: var(--muted); }
.checkout-total { font-weight: 800; color: var(--accent); margin: .6rem 0 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.form-row { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.form-row label { font-size: .78rem; letter-spacing: .8px; text-transform: uppercase; color: #aaa; }
.form-row:focus-within label { color: var(--accent); }
.modal input[type=text], .modal input[type=tel], .modal select {
  background: #0f0f0f; border: 1px solid #2f2f2f; color: #fff; padding: .7rem .85rem; border-radius: 10px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.modal input::placeholder { color: #5e5e5e; }
.modal input:focus, .modal select:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.modal select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.modal select:disabled { opacity: .5; }
.modal select option { background: #111; }
#ciudadOtra { margin-top: .4rem; }
.form-error { display: none; color: #ff5a5f; font-size: .8rem; }
.invalido .form-error { display: block; }
.invalido input, .invalido select { border-color: #b30000 !important; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: #bdbdbd; cursor: pointer; padding: .6rem; border-radius: 10px; border: 1px solid transparent; }
.check-row input { margin-top: .2rem; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.check-row.invalido { border-color: #b30000; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 1rem; right: 1rem; margin-inline: auto; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 4000;
  background: #fff; color: #000; font-weight: 700; padding: .7rem 1.1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  width: max-content; max-width: min(460px, calc(100vw - 2rem)); text-align: center; animation: fadeIn .25s ease both;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #070707; margin-top: 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 1.75rem clamp(1rem, 4vw, 2.5rem); display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; color: var(--muted); font-size: .9rem; }
.footer-logo { font-family: "AndroidAssassin", var(--font-title); color: var(--accent); letter-spacing: 3px; font-size: 1.2rem; }
.footer a { color: #fff; font-weight: 700; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-copy { font-size: .8rem; color: #666; }
.footer-logo { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: default; }
.footer .footer-admin { font-size: .75rem; color: #555; font-weight: 600; text-decoration: none; }
.footer .footer-admin:hover { color: var(--accent); }

/* ---------- Páginas internas: Raijin ---------- */
.raijin-page-header {
  position: relative; min-height: clamp(260px, 42vh, 440px); display: grid; place-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(900px 400px at 50% 0%, rgba(229,9,20,.35), transparent 60%), linear-gradient(180deg, #1a0000, #000);
}
.raijin-page-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--bg)); }
.raijin-page-header > div { position: relative; z-index: 1; padding: 2rem 1rem; }
.raijin-kicker { color: #ff8a8a; letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; font-weight: 800; }
.raijin-page-title { color: var(--accent); font-size: clamp(2rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 12px 32px rgba(0,0,0,.6); }
.raijin-page-subtitle { color: #ddd; max-width: 760px; margin: .6rem auto 0; }
.raijin-indice { max-width: 760px; margin: 1.5rem auto 0; padding: 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.raijin-indice a { font-size: .8rem; text-decoration: none; color: #ccc; border: 1px solid #333; border-radius: 999px; padding: .25rem .7rem; }
.raijin-indice a:hover { border-color: var(--accent); color: #fff; }
.raijin-story { max-width: 760px; margin: 1.5rem auto 3rem; padding: 0 1.25rem; }
.raijin-story section { padding-top: .5rem; }
.raijin-story h2 { color: var(--accent); margin: 1.75rem 0 .6rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.raijin-story h2 small { display: block; font-size: .75rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.raijin-story p { margin: .6rem 0; line-height: 1.9; font-size: 1.05rem; color: #dcdcdc; }
.raijin-quote { color: #ffb3b3 !important; border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.25rem 0 !important; font-style: italic; font-size: 1.2rem !important; }
.page-cta { text-align: center; margin: 2rem 0 0; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Páginas internas: evento ---------- */
.evento { max-width: 1100px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; width: 100%; }
.evento-header { text-align: center; margin: 1rem 0 1.5rem; }
.evento-header h1 { color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.evento-meta { color: var(--muted); margin-top: .25rem; }
.evento-hero { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.evento-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.evento-media video { width: 100%; height: 100%; max-height: 560px; object-fit: contain; background: #000; }
.evento-texto { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: linear-gradient(180deg, #141414, #0f0f0f); }
.evento-texto h2 { margin-bottom: .5rem; }
.evento-texto p { color: #cfcfcf; margin-bottom: .85rem; line-height: 1.8; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.galeria figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.galeria img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.galeria figure:hover img { transform: scale(1.04); }
.galeria figcaption { padding: .5rem .75rem; font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .evento-hero { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .navbar { padding: .7rem 1rem; }
  .btn-carrito-txt { display: none; }
}
@media (hover: none) {
  .card:hover, .col-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   ADAPTACIÓN A CELULARES Y TABLETS
   ========================================================= */
@media (max-width: 900px) {
  .navbar { padding: .55rem .75rem; gap: .5rem; }
  .btn-carrito { padding: .45rem .7rem; }
}

@media (max-width: 700px) {
  /* Evita el zoom automático de iPhone al tocar un campo */
  input, select, textarea { font-size: 16px !important; }

  .tab-content { padding: 1.25rem 1rem 2rem; }
  .tab-content > h2 { margin-bottom: .6rem; }
  .section-intro { font-size: .95rem; margin-bottom: 1.25rem; }

  /* Portada */
  .hero { min-height: clamp(380px, 72svh, 620px); }
  .hero-content { padding: 1.5rem 1.1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: min(300px, 100%); margin: 0 auto; }
  .home-strip div { padding: .8rem .35rem; }
  .home-strip strong { font-size: .82rem; letter-spacing: .5px; }
  .home-strip span { font-size: .75rem; line-height: 1.35; }

  /* Colecciones y La Sociedad */
  .colecciones-grid, .sociedad-grid, .blog-grid { gap: .75rem; }
  .col-card, .soc-card { padding: .95rem; }
  .col-card p, .soc-card li { font-size: .93rem; }
  .col-card--destacada, .blog-card--evento { grid-column: auto; }
  .manifesto p { font-size: 1rem; }

  /* Tienda: dos columnas compactas */
  .filters-bar { gap: .4rem; margin-bottom: 1rem; }
  .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .card:hover { transform: none; box-shadow: none; }
  .producto-info { padding: .65rem .6rem .75rem; gap: .25rem; }
  .producto-col { font-size: .72rem; letter-spacing: .8px; }
  .producto-nombre { font-size: .95rem; line-height: 1.25; }
  .producto-material { font-size: .78rem; line-height: 1.3; }
  .precio { font-size: 1.05rem; margin: .1rem 0 .25rem; }
  .opciones { gap: .3rem; margin-bottom: .35rem; }
  .opciones legend { font-size: .74rem; margin-bottom: .2rem; }
  .chip > span { padding: .3rem .55rem; font-size: .8rem; min-height: 32px; }
  .chip--talla > span { min-width: 2.25rem; padding-inline: .35rem; }
  .agregar-carrito { padding: .65rem .5rem; font-size: .88rem; min-height: 42px; }
  .producto .btn-secundario { font-size: .82rem; padding: .6rem .4rem; text-align: center; }
  .view-toggle { bottom: .4rem; padding: .2rem; }
  .view-btn { font-size: .72rem; padding: .25rem .55rem; }
  .foto-ref { font-size: .65rem; }

  /* Comunidad */
  .blog-thumb { height: 200px; }

  /* Ventanas (pago y editor) a pantalla completa */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal { width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .modal-header, .modal-body, .modal-footer { padding-inline: 1rem; }
  .modal-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .checkout-resumen ul { max-height: 28svh; overflow-y: auto; }
  .checkout-resumen li { font-size: .88rem; }
  .modal-footer .btn-primario, .modal-footer .btn-secundario { flex: 1 1 auto; }

  /* Avisos arriba para no tapar botones */
  .toast { top: calc(var(--header-offset) + .5rem); bottom: auto; font-size: .9rem; }

  /* Raijin y evento */
  .raijin-story { padding: 0 1rem; }
  .raijin-story p { font-size: 1rem; line-height: 1.8; }
  .raijin-quote { font-size: 1.08rem !important; }
  .raijin-indice { margin-top: 1rem; }
  .evento { padding: 1rem 1rem 2rem; }
  .evento-texto { padding: 1rem; }
  .galeria { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .galeria figcaption { font-size: .75rem; padding: .35rem .5rem; }
  .page-cta > * { flex: 1 1 200px; }
}

/* Tarjetas de producto angostas: colores solo como círculos, tallas en una fila */
@container (max-width: 230px) {
  .add-extra { display: none; }
  .chip--talla { flex: 1 1 0; min-width: 30px; }
  .chip--talla > span { width: 100%; min-width: 0; padding-inline: .2rem; }
  .chip--color .chip-txt { display: none; }
  .chip--color > span { padding: .3rem; min-width: 32px; justify-content: center; }
  .chip--color .swatch { width: 1.1rem; height: 1.1rem; }
}

@container (max-width: 150px) {
  .opciones { gap: .2rem; }
  .chip--talla { min-width: 22px; }
  .chip--talla > span { font-size: .72rem; padding-inline: 0; }
  .chip--color > span { min-width: 28px; padding: .25rem; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  .productos { gap: .45rem; }
  .producto-info { padding: .55rem .5rem .65rem; }
  .chip--talla > span { min-width: 2rem; font-size: .76rem; }
  .galeria { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) { .back-txt { display: none; } .navbar--simple .back-home::after { content: 'Volver'; } }

/* Celular horizontal: portada más baja */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
}

/* ---------- Página The Truth Behind the Mask ---------- */
.mascaras-header { background: radial-gradient(900px 420px at 50% 0%, rgba(229,9,20,.28), transparent 60%), linear-gradient(180deg, #120606, #000); }
.mascaras { max-width: 1100px; margin: 1rem auto 3rem; padding: 0 clamp(1rem, 4vw, 2rem); width: 100%; }
.capitulo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 5vw, 3rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-offset) + 1rem); }
.capitulo--inverso .capitulo-media { order: 2; }
.capitulo-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 40%, #241010, #0b0b0b 70%); border: 1px solid var(--line); }
.capitulo-img { width: 100%; height: 100%; object-fit: contain; }
.capitulo-texto h2 { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .2rem 0 .4rem; }
.capitulo-texto > p:not(.raijin-kicker):not(.raijin-quote):not(.capitulo-precio) { color: #d6d6d6; line-height: 1.8; margin: .55rem 0; }
.capitulo-texto strong { color: #fff; }
.capitulo-precio { font-weight: 800; font-size: 1.1rem; margin: 1rem 0 .8rem; color: #fff; }
.capitulo-precio:empty { display: none; }
@media (max-width: 760px) {
  .capitulo { grid-template-columns: 1fr; }
  .capitulo--inverso .capitulo-media { order: 0; }
  .capitulo-media { max-width: 420px; width: 100%; margin: 0 auto; }
  .capitulo-texto > p:not(.raijin-kicker):not(.raijin-quote):not(.capitulo-precio) { font-size: .98rem; }
  .capitulo-texto .btn-primario { width: 100%; }
}

/* ---------- Guía de tallas ---------- */
.guia-link { background: none; border: 0; color: var(--accent); font: inherit; font-size: .9em; text-transform: none; letter-spacing: 0; text-decoration: underline; cursor: pointer; padding: 0 0 0 .35rem; }
.guia { width: min(620px, 100%); }
.guia-body h4 { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; color: #fff; margin: 1.1rem 0 .5rem; }
.guia-body h4:first-of-type { margin-top: .6rem; }
.guia-tip { color: var(--muted); font-size: .9rem; background: #121212; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.guia-nota { color: #888; font-size: .82rem; margin-top: .4rem; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tabla-tallas { width: 100%; border-collapse: collapse; font-size: .95rem; text-align: center; }
.tabla-tallas th { background: #101010; color: #aaa; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; padding: .55rem .5rem; }
.tabla-tallas td { padding: .5rem; border-top: 1px solid #222; }
.tabla-tallas td:first-child { font-weight: 800; color: var(--accent); }
.tabla-tallas tbody tr:nth-child(even) { background: #141414; }
.guia-cortes dt { font-weight: 800; color: #fff; margin-top: .55rem; }
.guia-cortes dd { color: #bdbdbd; font-size: .92rem; }
.guia-tela { padding-left: 1.1rem; color: #cfcfcf; font-size: .92rem; }
.guia-tela li { margin: .3rem 0; }
.guia-tela strong { color: #fff; }
@container (max-width: 230px) { .guia-link { font-size: .85em; } }

/* ---------- Destacados, ofertas y cupones ---------- */
.destacados { max-width: 1280px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 1rem; }
.destacados-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.destacados-head h2 { color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-size: clamp(1.4rem, 3vw, 2rem); }
.destacados-head .col-cta { padding-top: 0; }
.badge-oferta {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; padding: .2rem .55rem; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(229,9,20,.4);
}
.precio-antes { color: #888; font-weight: 600; font-size: .82em; text-decoration: line-through; margin-right: .2rem; }
.precio-oferta { color: #ff4d55; }
.oferta-hasta { font-size: .78rem; color: #ff8a8a; margin-top: -.2rem; }
.promo-bar {
  display: flex; align-items: center; justify-content: center; gap: .5rem; position: relative;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent)); color: #fff; font-weight: 700; font-size: .9rem;
  padding: .55rem 2.75rem; text-align: center;
}
.promo-bar[hidden] { display: none !important; }
.promo-bar a { color: #fff; text-decoration: none; }
.promo-bar a:hover { text-decoration: underline; }
.promo-bar .icon-btn { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: .95rem; }
.cupon { margin-bottom: .75rem; }
.cupon-form { display: flex; gap: .4rem; }
.cupon-form input { flex: 1; min-width: 0; background: #0f0f0f; border: 1px solid #2f2f2f; color: #fff; padding: .6rem .75rem; border-radius: 8px; text-transform: uppercase; }
.cupon-form input::placeholder { text-transform: none; color: #666; }
.cupon-form input:focus { outline: none; border-color: #fff; }
.cupon-form .btn-secundario { padding-inline: .9rem; }
.cupon-aplicado { display: flex; justify-content: space-between; align-items: center; background: rgba(46,160,67,.12); border: 1px dashed #2ea043; border-radius: 8px; padding: .5rem .75rem; font-size: .9rem; }
.cupon-msg { font-size: .82rem; margin-top: .4rem; }
.cupon-msg--ok { color: #56d364; }
.cupon-msg--error { color: #ff6b70; }
.cupon-msg--aviso { color: #ffb84d; }
.carrito-fila { display: flex; justify-content: space-between; font-size: .92rem; color: #cfcfcf; margin-bottom: .35rem; }
.carrito-fila--desc { color: #56d364; }
.checkout-desc { display: block; color: #56d364; font-weight: 600; font-size: .88rem; margin-bottom: .2rem; }
.checkout-total small { color: #888; font-weight: 400; }
@media (max-width: 700px) {
  .destacados { padding: 1.5rem 1rem .5rem; }
  .badge-oferta { font-size: .72rem; top: .4rem; right: .4rem; }
  .promo-bar { font-size: .82rem; padding: .5rem 2.4rem .5rem 1rem; }
}
.badge-oferta--inline { position: static; display: inline-block; vertical-align: middle; box-shadow: none; }

/* ---------- Tarjetas compactas ---------- */
.producto-mini { display: flex; flex-direction: column; cursor: pointer; }
.mini-media { border: 0; padding: 0; cursor: pointer; width: 100%; display: block; color: inherit; font: inherit; }
.mini-img-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) { .producto-mini:hover .mini-img-alt { opacity: 1; } }
.mini-info { flex: 1; gap: .3rem; }
.mini-info .producto-nombre { font-size: 1.02rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-info .precio { margin: .1rem 0 .15rem; }
.mini-desde { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.mini-resumen { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; margin-bottom: .55rem; }
.mini-colores { display: inline-flex; align-items: center; gap: .25rem; }
.mini-colores .swatch { width: .8rem; height: .8rem; }
.mini-mas { font-size: .72rem; color: var(--muted); margin-left: .1rem; }
.mini-btn { margin-top: auto; }
.producto-mini .badge-oferta { pointer-events: none; }

/* ---------- Ventana de detalle ---------- */
.producto-modal { width: min(940px, 100%); position: relative; overflow: hidden; }
.producto-modal-body { overflow-y: auto; overscroll-behavior: contain; max-height: 92svh; flex: 1; }
.producto-cerrar { position: absolute; top: .6rem; right: .6rem; z-index: 5; background: rgba(0,0,0,.6); width: 40px; height: 40px; border-radius: 50%; }
.producto--detalle { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 0; border-radius: 0; background: transparent; }
.producto--detalle:hover { transform: none; box-shadow: none; }
.producto--detalle .product-media { aspect-ratio: 1 / 1; align-self: start; position: sticky; top: 0; }
.producto--detalle .producto-info { padding: 1.5rem 1.4rem 1.4rem; gap: .45rem; }
.producto--detalle .producto-nombre { font-size: clamp(1.3rem, 2.4vw, 1.7rem); padding-right: 2.5rem; }
.producto--detalle .precio { font-size: 1.45rem; }
.producto--detalle .opciones { margin-bottom: .6rem; }
.producto--detalle .chip--color .chip-txt { display: inline; }
@media (max-width: 760px) {
  .producto--detalle { grid-template-columns: 1fr; }
  .producto--detalle .product-media { position: relative; }
  .producto-modal-body { max-height: 100dvh; height: 100%; }
  .producto--detalle .producto-info { padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .producto--detalle .agregar-carrito { position: sticky; bottom: calc(.75rem + env(safe-area-inset-bottom)); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
}
@media (max-width: 700px) {
  .mini-info .producto-nombre { font-size: .92rem; }
  .mini-resumen { font-size: .74rem; gap: .3rem; margin-bottom: .45rem; }
  .mini-colores .swatch { width: .72rem; height: .72rem; }
  .mini-btn { padding: .6rem .4rem; font-size: .85rem; min-height: 40px; }
  .producto--detalle .add-extra { display: inline; }
}

.producto-mini .producto-col { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.producto--detalle:hover .product-img, .producto--detalle .product-img { transform: none; }

/* ---------- Carrusel de destacados ---------- */
.destacados { --gutter: clamp(1rem, 4vw, 2.5rem); }
.carrusel-wrap { position: relative; container-type: inline-size; }
.carrusel-btn {
  position: absolute; z-index: 3; display: none; place-items: center;
  /* centradas sobre la foto de las tarjetas, en el margen junto a los productos */
  top: calc(.25rem + (100cqw - 3 * 1.25rem) / 8); transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #333; background: rgba(22,22,22,.92); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding-bottom: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.carrusel-btn--prev { left: max(calc(-1 * var(--gutter) + 1px), calc(-1 * var(--gutter) / 2 - 21px)); }
.carrusel-btn--next { right: max(calc(-1 * var(--gutter) + 1px), calc(-1 * var(--gutter) / 2 - 21px)); }
.carrusel-wrap.con-flechas .carrusel-btn { display: grid; }
.carrusel-btn:hover { border-color: var(--accent); background: #1f1010; }
.carrusel-btn:active { transform: translateY(-50%) scale(.92); }
.carrusel-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#destacadosGrid.carrusel {
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  scrollbar-width: none; padding: .25rem 0 .75rem;
}
#destacadosGrid.carrusel::-webkit-scrollbar { display: none; }
#destacadosGrid.carrusel > * { scroll-snap-align: start; }
#destacadosGrid.carrusel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1100px) {
  #destacadosGrid.carrusel { grid-auto-columns: calc((100% - 2 * 1rem) / 3); gap: 1rem; }
  .carrusel-btn { top: calc(.25rem + (100cqw - 2 * 1rem) / 6); width: 38px; height: 38px; font-size: 1.45rem; }
  .carrusel-btn--prev { left: max(calc(-1 * var(--gutter) + 1px), calc(-1 * var(--gutter) / 2 - 19px)); }
  .carrusel-btn--next { right: max(calc(-1 * var(--gutter) + 1px), calc(-1 * var(--gutter) / 2 - 19px)); }
}
@media (max-width: 700px) {
  #destacadosGrid.carrusel { grid-auto-columns: 46%; gap: .6rem; margin-right: -1rem; padding-right: 1rem; }
  #destacadosGrid.carrusel.en-bucle { margin-left: -1rem; padding-left: 1rem; scroll-padding-inline: 1rem; }
  .carrusel-wrap.con-flechas .carrusel-btn { display: none; }
}
@media (max-width: 360px) { #destacadosGrid.carrusel { grid-auto-columns: 62%; } }

/* ---------- Inventario en la tienda ---------- */
.badge-agotado {
  position: absolute; top: .55rem; left: .55rem; z-index: 2; pointer-events: none;
  background: rgba(0,0,0,.8); color: #fff; border: 1px solid #555; font-weight: 800; font-size: .75rem;
  letter-spacing: 1px; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px;
}
.producto-mini.is-agotado .product-img { filter: grayscale(1) brightness(.55); }
.producto-mini.is-agotado .precio { color: #888; }
.chip.is-agotada { cursor: not-allowed; }
.chip.is-agotada > span { opacity: .35; text-decoration: line-through; border-style: dashed; }
.chip.is-agotada input { cursor: not-allowed; }
.stock-msg { font-size: .85rem; min-height: 1.2em; color: var(--muted); margin: -.1rem 0 .35rem; }
.stock-msg:empty { display: none; }
.stock-msg--pocas { color: #ffb84d; font-weight: 700; }
.stock-msg--ok { color: #56d364; }
.stock-agotado { color: #ff8a8a; font-weight: 700; margin: .3rem 0 .5rem; }

/* ---------- Favoritos ---------- */
.btn-nav-icono {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #151515; border: 1px solid #2a2a2a; color: #fff; text-decoration: none; flex-shrink: 0;
}
.btn-nav-icono svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn-nav-icono:hover, .btn-nav-icono.active { border-color: var(--accent); color: var(--accent); }
.btn-fav {
  position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: rgba(10,10,10,.65); border: 1px solid rgba(255,255,255,.18); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .15s ease, border-color .15s ease;
}
.btn-fav svg { width: 19px; height: 19px; fill: transparent; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .15s ease; }
.btn-fav:hover { border-color: var(--accent); transform: scale(1.06); }
.btn-fav[aria-pressed="true"] { color: var(--accent); border-color: rgba(229,9,20,.6); }
.btn-fav[aria-pressed="true"] svg { fill: var(--accent); }
.btn-fav.latido { animation: latido .35s ease; }
@keyframes latido { 40% { transform: scale(1.25); } }
.btn-fav--inline { position: static; flex-shrink: 0; background: #151515; -webkit-backdrop-filter: none; backdrop-filter: none; }
.producto-mini { position: relative; }
/* el corazón ocupa la esquina derecha: la etiqueta de oferta pasa a la izquierda */
.producto-mini .badge-oferta { right: auto; left: .55rem; }
.producto-mini.is-agotado.con-oferta .badge-oferta { top: 2.3rem; }
.nombre-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.nombre-fila .producto-nombre { min-width: 0; }
.seccion-intro { color: var(--muted); text-align: center; max-width: 640px; margin: -.4rem auto 1.5rem; }
.estado-vacio { text-align: center; padding: 2.5rem 1rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.estado-vacio.hidden { display: none; }
.footer-links a { color: #ccc; }

/* ---------- Mis pedidos ---------- */
.mis-pedidos-lista { display: flex; flex-direction: column; gap: 1rem; max-width: 760px; margin: 0 auto 2rem; }
.mis-pedidos-vacio { text-align: center; color: var(--muted); padding: 1.5rem 1rem; border: 1px dashed #2f2f2f; border-radius: 12px; }
.pedido-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.pedido-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .8rem; }
.pedido-head h3 { font-size: 1.25rem; }
.pedido-fecha { color: var(--muted); font-size: .85rem; }
.pedido-estado { font-weight: 800; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; background: rgba(255,184,77,.14); color: #ffb84d; border: 1px solid #6b4a00; }
.estado-confirmado .pedido-estado, .estado-enviado .pedido-estado { background: rgba(88,166,255,.12); color: #79b8ff; border-color: #1f4a7a; }
.estado-entregado .pedido-estado { background: rgba(46,160,67,.14); color: #56d364; border-color: #1f5a2a; }
.estado-cancelado .pedido-estado { background: #222; color: #aaa; border-color: #444; }
.estado-cancelado { opacity: .75; }
.pedido-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 .6rem; padding: 0; counter-reset: paso; }
.pedido-pasos li { position: relative; text-align: center; font-size: .74rem; color: #777; padding-top: 1.4rem; line-height: 1.2; }
.pedido-pasos li span { position: absolute; top: .3rem; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #2a2a2a; border: 2px solid #3a3a3a; z-index: 1; }
.pedido-pasos li::before { content: ''; position: absolute; top: calc(.3rem + 6px); left: -50%; right: 50%; height: 2px; background: #2f2f2f; }
.pedido-pasos li:first-child::before { display: none; }
.pedido-pasos li.hecho, .pedido-pasos li.actual { color: #eee; }
.pedido-pasos li.hecho span { background: var(--accent); border-color: var(--accent); }
.pedido-pasos li.actual span { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229,9,20,.25); }
.pedido-pasos li.hecho::before, .pedido-pasos li.actual::before { background: var(--accent); }
.pedido-pasos li.actual { font-weight: 800; }
.pedido-det { color: #cfcfcf; font-size: .9rem; margin-bottom: .5rem; }
.pedido-guia { background: #101010; border: 1px solid #2a2a2a; border-radius: 10px; padding: .5rem .7rem; font-size: .9rem; margin-bottom: .6rem; overflow-wrap: anywhere; }
.pedido-items { list-style: none; padding: 0; margin: .4rem 0; border-top: 1px solid #222; }
.pedido-items li { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid #222; font-size: .9rem; }
.pedido-items small { display: block; color: var(--muted); }
.pedido-items li > span:last-child { white-space: nowrap; }
.pedido-total { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: .4rem; margin: .5rem 0 .8rem; }
.pedido-total small { flex-basis: 100%; text-align: right; color: #56d364; }
.pedido-total strong { font-size: 1.15rem; }
.pedido-acciones { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: .3rem 0; }
.link-btn:hover { color: #fff; }
.buscar-pedido { max-width: 760px; margin: 0 auto; background: #121212; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.buscar-pedido h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.buscar-pedido > p { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.buscar-pedido-campos { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: .6rem; align-items: end; }
.buscar-pedido-campos label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: #bbb; min-width: 0; }
.buscar-pedido-campos input { background: #0f0f0f; border: 1px solid #2f2f2f; color: #fff; padding: .65rem .75rem; border-radius: 10px; width: 100%; }
.buscar-pedido-campos input:focus { outline: none; border-color: #fff; }

@media (max-width: 900px) {
  .btn-nav-icono { width: 38px; height: 38px; }
  .nav-actions { gap: .4rem; }
}
@media (max-width: 560px) {
  .btn-nav-pedidos { display: none; } /* en celular está en el menú */
  .buscar-pedido-campos { grid-template-columns: 1fr 1fr; }
  .buscar-pedido-campos button { grid-column: 1 / -1; }
  .pedido-pasos li { font-size: .66rem; }
  .btn-fav { width: 34px; height: 34px; top: .4rem; right: .4rem; }
  .btn-fav svg { width: 17px; height: 17px; }
  .producto-mini .badge-oferta { left: .4rem; }
}
@media (max-width: 360px) {
  .btn-nav-icono { width: 34px; height: 34px; }
  .btn-nav-icono svg { width: 17px; height: 17px; }
}
.checkout-aviso { background: rgba(255,184,77,.1); border: 1px solid #6b4a00; color: #ffcf85; border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; margin: .4rem 0 .8rem; }
.checkout-aviso.hidden { display: none; }

/* ---------- Preventa ---------- */
.nav-preventa[hidden] { display: none !important; }
.badge-preventa {
  position: absolute; left: .55rem; bottom: .55rem; z-index: 2; pointer-events: none;
  background: #6d3fd1; color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(109,63,209,.45);
}
.producto-mini.is-agotado .badge-preventa { background: #3a3a3a; box-shadow: none; }
.mini-preventa { font-size: .78rem; color: #c9a7ff; margin: -.1rem 0 .55rem; line-height: 1.35; }
.mini-entrega { color: #aaa; }
.preventa-info {
  display: flex; flex-direction: column; gap: .2rem; margin: .2rem 0 .9rem; padding: .7rem .85rem;
  border: 1px solid #4b2f80; background: rgba(109,63,209,.12); border-radius: 12px; font-size: .9rem;
}
.preventa-info strong { color: #c9a7ff; letter-spacing: .5px; text-transform: uppercase; font-size: .82rem; }
.preventa-info small { color: #aaa; }
.preventa-cierre { color: #fff; font-weight: 700; }
.preventa-info.is-cerrada { border-color: #333; background: #151515; }
.preventa-info.is-cerrada strong { color: #999; }
.tag-preventa { color: #c9a7ff; font-weight: 700; }
.preventa-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1rem;
  max-width: 1280px; margin: 1.5rem auto 0; width: calc(100% - 2 * clamp(1rem, 4vw, 2.5rem));
  padding: .9rem 1.2rem; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(100deg, #2a1650, #45207f 55%, #6d3fd1); border: 1px solid #5b37a8;
  box-shadow: 0 10px 30px rgba(109,63,209,.25); transition: transform .2s ease, box-shadow .2s ease;
}
.preventa-banner[hidden] { display: none; }
.preventa-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(109,63,209,.35); }
.preventa-banner-tag { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; background: rgba(0,0,0,.3); padding: .25rem .65rem; border-radius: 999px; }
.preventa-banner-txt { font-weight: 700; text-align: center; }
.preventa-banner-cta { font-weight: 800; color: #e7dbff; white-space: nowrap; }
@media (max-width: 700px) {
  .preventa-banner { margin-top: 1rem; width: calc(100% - 2rem); padding: .8rem; flex-direction: column; text-align: center; }
  .badge-preventa { font-size: .64rem; left: .4rem; bottom: .4rem; padding: .18rem .45rem; }
}

/* Con Preventa, Favoritos y Mis pedidos el menú completo ya no cabe en pantallas medianas:
   por debajo de 1180 px se usa el botón ☰ */
.tab-link { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .btn-carrito-txt { display: none; }
}

/* ---------- Cuenta / invitación ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cuenta-modal { width: min(460px, 100%); position: relative; overflow: hidden; border-color: #3a1212; }
.cuenta-modal::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); z-index: 1; }
.cuenta-cerrar { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.cuenta-caja { padding: 2.6rem 1.4rem 1.4rem; }
.cuenta-vista { display: flex; flex-direction: column; gap: .75rem; }
.cuenta-vista[hidden] { display: none; }
.cuenta-vista .vip-titulo { padding-right: 2.2rem; }
.cuenta-motivo { background: #241a0b; border: 1px solid #6b4a00; color: #ffcf85; border-radius: 10px; padding: .55rem .75rem; font-size: .88rem; margin-bottom: .8rem; }
.cuenta-motivo[hidden] { display: none; }
.cuenta-botones { display: flex; flex-direction: column; gap: .55rem; margin-top: .3rem; }
.cuenta-invitado { align-self: center; }
.cuenta-nota { color: #8d8d8d; font-size: .78rem; text-align: center; }
.cuenta-form { display: flex; flex-direction: column; gap: .6rem; }
.cuenta-form label:not(.check-row) { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: #bbb; }
.cuenta-form label small { color: #777; font-size: .72rem; }
.cuenta-form input[type=text], .cuenta-form input[type=email], .cuenta-form input[type=tel], .cuenta-form input[type=password] {
  background: #0f0f0f; border: 1px solid #2f2f2f; color: #fff; padding: .7rem .8rem; border-radius: 10px; width: 100%; font: inherit; font-size: 16px;
}
.cuenta-form input:focus { outline: none; border-color: #fff; }
.cuenta-check { font-size: .76rem; color: #9a9a9a; align-items: flex-start; }
.cuenta-form .btn-primario { margin-top: .3rem; }
.cuenta-cambiar { text-align: center; font-size: .85rem; color: #9a9a9a; }
.cuenta-cambiar .link-btn { color: #fff; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .75rem 1rem; border-radius: 10px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font: inherit; font-weight: 700; cursor: pointer; }
.btn-google svg { width: 20px; height: 20px; }
.btn-google:hover { background: #f2f2f2; }
.btn-google[hidden], .cuenta-o[hidden] { display: none; }
.cuenta-o { display: flex; align-items: center; gap: .7rem; color: #777; font-size: .78rem; }
.cuenta-o::before, .cuenta-o::after { content: ''; flex: 1; height: 1px; background: #2f2f2f; }
.cuenta-datos { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .9rem; background: #111; border: 1px solid #262626; border-radius: 10px; padding: .7rem .85rem; }
.cuenta-datos dt { color: #8d8d8d; }
.cuenta-datos dd { color: #fff; margin: 0; word-break: break-all; }
.cuenta-codigo { display: flex; flex-direction: column; gap: .45rem; text-align: center; }
.cuenta-codigo:empty { display: none; }
.cuenta-cargando { text-align: center; color: #aaa; padding: 2rem 0; }
.btn-cuenta { cursor: pointer; padding: 0; font: inherit; }
.btn-cuenta.active { border-color: var(--accent); }
.cuenta-punto { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; border: 2px solid #0b0b0b; }
.cuenta-punto[hidden] { display: none; }
.menu-cuenta { background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.mis-pedidos-entrar { background: #141414; border: 1px solid #2a2a2a; border-radius: var(--radius); padding: 1.4rem; text-align: center; display: flex; flex-direction: column; gap: .9rem; align-items: center; }
.mis-pedidos-entrar[hidden], .buscar-pedido[hidden] { display: none; }
.mis-pedidos-entrar-btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 700px) {
  #cuentaModal { align-items: flex-end; padding: 0; }
  #cuentaModal .cuenta-modal { max-height: 94dvh; border-radius: 18px 18px 0 0; border-top: 1px solid #3a1212; }
  #cuentaModal .cuenta-caja { padding: 2.5rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); }
}

.vip-eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .75rem; }
.vip-titulo { font-family: var(--font-title); font-size: clamp(1.5rem, 4vw, 2rem); text-transform: uppercase; letter-spacing: 1px; color: #fff; line-height: 1.05; margin: .15rem 0 .35rem; }
.vip-texto { color: #cfcfcf; }
.vip-regalo { margin-top: .5rem; background: rgba(229,9,20,.12); border: 1px dashed rgba(229,9,20,.6); color: #fff; font-weight: 700; padding: .55rem .75rem; border-radius: 10px; }
.vip-regalo[hidden] { display: none; }
.vip-resultado[hidden] { display: none; }
.vip-resultado { text-align: center; display: flex; flex-direction: column; gap: .6rem; }
.vip-ok-titulo { font-family: var(--font-title); font-size: 1.5rem; color: #fff; text-transform: uppercase; }
.vip-codigo { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.vip-codigo strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: 2px; color: #fff; background: #0f0f0f; border: 1px dashed var(--accent); padding: .45rem .9rem; border-radius: 10px; }
.vip-condiciones { color: #aaa; font-size: .85rem; }
.vip-pie { padding: 1.1rem clamp(1rem, 4vw, 2.5rem); background: radial-gradient(ellipse at top, rgba(229,9,20,.10), transparent 70%), #0b0b0b; border-top: 1px solid var(--line); }
.vip-pie[hidden] { display: none; }
.vip-barra { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.vip-barra-texto { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.vip-barra .vip-eyebrow { font-size: .68rem; }
.vip-barra .vip-titulo { font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin: 0; }
.vip-barra-sub { color: #cfcfcf; font-size: .92rem; }
.vip-barra .btn-primario { flex-shrink: 0; padding-inline: 2rem; }
@media (max-width: 600px) {
  .vip-barra { flex-direction: column; text-align: center; }
  .vip-barra .btn-primario { width: 100%; }
}

/* ---------- Aviso de confección sobre pedido ---------- */
.aviso-confeccion { display: flex; gap: .45rem; align-items: flex-start; font-size: .85rem; line-height: 1.4; color: #d6d6d6; background: #141414; border: 1px solid #2a2a2a; border-left: 3px solid var(--accent); border-radius: 10px; padding: .55rem .7rem; margin: .1rem 0 .8rem; }
.aviso-confeccion[hidden] { display: none; }
.carrito-footer .aviso-confeccion { margin: .5rem 0 .7rem; font-size: .8rem; }
.nota-envio { display: flex; gap: .45rem; align-items: flex-start; font-size: .8rem; line-height: 1.4; color: #a8a8a8; margin: -.2rem 0 .7rem; }
.carrito-total small { font-size: .72rem; font-weight: 400; color: #888; margin-right: auto; margin-left: .35rem; align-self: center; }
.checkout-total + .nota-envio { margin-top: -.6rem; }

/* ---------- Cabecera en celular: que el nombre de la marca se vea completo ----------
   Favoritos y Mis pedidos están en el menú ☰, así que en pantallas angostas
   solo quedan Cuenta, Carrito y Menú, más compactos. */
@media (max-width: 480px) {
  .navbar { gap: .4rem; padding-inline: .7rem; }
  .nav-actions { gap: .3rem; }
  .nav-actions a.btn-nav-icono[href="#favoritos"] { display: none; }
  .btn-nav-icono { width: 36px; height: 36px; }
  .btn-nav-icono svg { width: 18px; height: 18px; }
  .btn-carrito { padding: .4rem .6rem; }
  .menu-toggle { width: 36px; }
  .menu-toggle span { left: 8px; right: 8px; }
  .logo { font-size: clamp(.8rem, 4.3vw, 1.2rem); letter-spacing: clamp(.5px, .3vw, 1.5px); -webkit-text-stroke: 1px #000; }
}

