/* =========================
   Variables, modo oscuro y base
========================= */

:root {
  /* Paleta bys */
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --accent: #111111;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;

  --surface: #f7f7f7;
  --surface-strong: #ffffff;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.09);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.12);

  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.9);

  --transition-fast: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.28s cubic-bezier(0.22, 1, 0.36, 1);

  --border-soft: rgba(0, 0, 0, 0.06);

  font-size: 16px;
}




/* Botones */
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .cart-btn,
html[data-theme="dark"] .add-btn {
  background: #2a2a2a;
  color: #f5f5f5;
  border-color: #333;
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .btn.primary:hover,
html[data-theme="dark"] .cart-btn:hover,
html[data-theme="dark"] .add-btn:hover {
  background: #3a3a3a;
  color: #ffffff;
  box-shadow: var(--shadow-medium);
}

/* Tarjetas hero y producto */
html[data-theme="dark"] .card-big,
html[data-theme="dark"] .product {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255,255,255,0.06);
}

/* Pills */
html[data-theme="dark"] .hoodie-pill-light,
html[data-theme="dark"] .hoodie-pill-dark {
  background: linear-gradient(135deg, #222, #333);
  color: #f5f5f5;
  box-shadow: var(--shadow-medium);
}

/* Select estilizado */
html[data-theme="dark"] .custom-select {
  background: #1c1c1c;
  color: #f5f5f5;
  border-color: rgba(255,255,255,0.06);
}

html[data-theme="dark"] .custom-select:hover,
html[data-theme="dark"] .custom-select:focus-visible {
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  background: #2a2a2a;
  border-color: var(--accent);
}

/* Carrito */
html[data-theme="dark"] .cart {
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
}

html[data-theme="dark"] .cart-items::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15); /* más tenue */
}

/* Overlay */
html[data-theme="dark"] .overlay {
  background: rgba(0,0,0,0.25);
}

/* Texto y enlaces */
html[data-theme="dark"] a,
html[data-theme="dark"] .nav a {
  color: var(--muted);
}

html[data-theme="dark"] .nav a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
}

/* Footer y legal nav */
html[data-theme="dark"] .bys-legal-nav {
  background: #121212;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

html[data-theme="dark"] .bys-legal-nav a {
  color: #b3b3b3;
}

/* Body - dark mode */
html[data-theme="dark"] body {
  background: radial-gradient(circle at top, #121212 0%, #0a0a0a 100%);
}

/* Hero card */
html[data-theme="dark"] .card-big {
  background: radial-gradient(circle at top left, #1a1a1a 0%, #1c1c1c 40%, #121212 100%);
}

/* Hoodie pill light -> oscuro */
html[data-theme="dark"] .hoodie-pill-light {
  background: linear-gradient(135deg, #222222, #2a2a2a);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}


html[data-theme="dark"] .bys-legal-nav a:hover {
  background: #2a2a2a;
  color: #f5f5f5;
}


/* Reset básico */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #f9f9fb 0, var(--bg) 36%);
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus accesible */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Utilidades */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

@media (max-width: 768px) {
  .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Visually hidden */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* =========================
   Header y navegación
========================= */

.site-header {
  top: 0;
  z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* CENTRA TODO */
  align-items: center;
  gap: 1.5rem;
}

.nav {
  flex: 1 1 100%;
  display: flex;
  justify-content: center; /* CENTRA EL MENÚ */
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* nav */



.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav a:hover {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Botón carrito */

.cart-btn {
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Toggle tema */

.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
  color: var(--accent);
}

.theme-icon {
  font-size: 0.9rem;
}

/* =========================
   Select estilizado
========================= */

.select-wrap {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.custom-select {
  appearance: none;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 0.45rem 2.1rem 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.custom-select:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.custom-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #ffffff;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 0.7rem;
  pointer-events: none;
}

/* =========================
   Hero
========================= */

.hero {
  padding: 3.3rem 0 2.5rem;
}

.hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 1rem;
  max-width: 360px;
}

/* Botón principal */

.btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  border: 1px solid var(--border-soft);
  background: var(--surface-strong);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast), background var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: #000000;
}

/* Tarjeta hero */

.hero-art {
  flex-shrink: 0;
}

.card-big {
  width: 240px;
  height: 240px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, #f7f7f8 0, var(--surface) 40%, var(--bg-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.hoodie-pill {
  position: absolute;
  inset-inline: 22px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding-inline: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hoodie-pill-light {
  top: 56px;
  background: linear-gradient(135deg, #f9f9fb, #ffffff);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.hoodie-pill-dark {
  bottom: 52px;
  background: linear-gradient(135deg, #111111, #222222);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
}

.crown-mark {
  position: absolute;
  font-size: 1.5rem;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.08em;
}

/* =========================
   Secciones de productos
========================= */

.products {
  padding: 1.5rem 0 3rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.products h2 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.4rem;
}

/* Tarjeta de producto */

.product {
  background: var(--surface);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  background: var(--surface-strong);
  border-color: var(--border-soft);
}

.thumb {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.9rem;
}

.thumb-new {
  position: relative;
}

.thumb-new::after {
  content: "bys";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.product-title {
  margin: 0 0 0.15rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.product-note {
  margin: 0 0 0.6rem;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.price {
  margin: 0 0 0.7rem;
  font-weight: 600;
}

/* Botón añadir */

.add-btn {
  margin-top: auto;
  background: var(--accent);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.add-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.add-btn:active {
  transform: scale(0.94);
}

/* =========================
   Carrito (REPARADO)
   - Sticky en desktop
   - Fixed en móvil
   - Fallback .cart--fixed para casos donde sticky falla (overflow en ancestros)
========================= */

/* Nota: position: sticky requiere que ningún ancestro tenga 'overflow: hidden/auto/scroll'
   Si detectas que no funciona, añade la clase .cart--fixed al <aside id="cart"> desde tu JS o HTML. */

.cart {
  /* intentamos sticky por defecto (mejor UX en desktop) */
  position: fixed;
  top: 76px;               /* distancia desde el top del viewport */
  right: 24px;
  width: 320px;
  margin-left: auto;       /* para asegurar alineación si está en un layout flex/column */
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(170%);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-strong);
  /* estados iniciales para la animación de entrada */
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  pointer-events: none;    /* inactivo hasta .open */
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 30;
  border: 1px solid var(--border-soft);
  max-height: calc(100vh - 96px); /* evita desbordes excesivos */
  overflow: hidden;                /* el contenido interno tiene su propio scroll (.cart-items) */
}

/* Cuando el carrito está abierto */
.cart.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Fallback: si por estructura no funciona sticky, añade la clase .cart--fixed
   (por ejemplo: <aside id="cart" class="cart cart--fixed">) */
.cart.cart--fixed {
  position: fixed;
  top: 76px;
  right: 24px;
  left: auto;
}

/* Ajustes del contenido del carrito (scroll interno seguro) */
.cart-items {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* mantener el resto de estilos del carrito */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}

.cart-header h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-radius: 12px;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.cart-items li:nth-child(odd) {
  background: rgba(0, 0, 0, 0.04);
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

.cart-footer p {
  margin: 0;
  font-size: 0.93rem;
}

/* Cerrar */

.close {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-xs);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.close:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Microinteracción contador carrito */

#cart-count.bump {
  animation: bump 0.28s ease-out;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* =========================
   Overlay
========================= */

/* El overlay se mantiene igual; z-index inferior para que el carrito quede encima cuando open */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 15;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   SELECTOR DE TALLAS
========================= */
.sizes {
  display: flex;
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}

.size-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

/* =========================
   CARRUSEL AUTO + FLECHAS
========================= */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 14px;
}

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  padding: 0.6rem 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(0,0,0,0.7);
}

/* Etiqueta de descuento */
.discount-tag {
  display: inline-block;
  background: #ff2d2d;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

/* Precio tachado */
.old-price {
  color: #d11;
  text-decoration: line-through;
  font-size: 0.9rem;
  margin: 0.2rem 0 -0.2rem;
  font-weight: 600;
}
.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}
.carousel img {
  width: 100%;
  display: block;
  border-radius: 14px;
}
.size-btn:hover {
  background: #eaeaea;
}

.size-btn.active {
  background: #111;
  color: white;
  border-color: #111;
}

/* =========================
   Footer
========================= */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 2.6rem; /* más espacio entre botones */
  justify-content: center;
}
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-soft);
}
.product .price {
  margin-top: 0.4rem;
}
/* =========================
   PRODUCTO SOLD OUT
============================ */
.product.soldout {
  opacity: 0.55;
  pointer-events: none;
}
.product.soldout .price {
  color: #b00;
  font-weight: 600;
}

/* =========================
   Responsive
   - en móvil colocamos el carrito fixed en bottom-right (más accesible)
========================= */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-art {
    align-self: center;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav {
    gap: 0.5rem;
  }

  /* móvil: carrito fijo, compacto y accesible */
  .cart {
    position: fixed !important;
    top: auto;
    bottom: 14px;
    right: 12px;
    left: auto;
    width: auto;
    max-width: calc(100% - 32px);
    border-radius: 14px;
    padding: 10px;
    transform: translateY(6px) scale(0.98);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .cart.open {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card-big {
    width: 200px;
    height: 200px;
  }

  .custom-select {
    width: 150px;
  }

  .hero {
    padding-top: 2.6rem;
  }
}

/* Extras: layout helpers y cierre */

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.remove-btn:hover {
  background: rgba(0,0,0,0.06);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ====== Fixes: evitar overflow horizontal en móvil ====== */

/* Previene escapes accidentales manteniendo layout responsivo */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Model-viewer y bloque 3D: que no superen el ancho del contenedor */
.model-viewer-responsive,
.hero-art model-viewer {
  width: min(400px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  display: block;
}

/* Ajustes generales del hero en pantallas pequeñas */
@media (max-width: 900px) {
  .hero-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-text {
    flex: 1 1 320px;
    min-width: 0; /* evita overflow por flex items */
  }
  .hero-art {
    flex: 0 1 320px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .card-big {
    width: min(320px, 86vw);
    height: min(320px, 86vw);
  }
}

/* Permitir que la barra legal haga wrap y no provoque scroll */
@media (max-width: 720px) {
  .bys-legal-nav a {
    white-space: normal;
    padding-inline: 0.45rem;
  }
}

/* Ajustes del carrito en móvil para evitar salirse del viewport */
@media (max-width: 700px) {
  .cart {
    right: 12px;
    left: auto;
    width: auto;
    max-width: calc(100vw - 24px);
  }
}

/* Asegurar que cualquier elemento flex no desborde */
.container, .header-inner, .grid, .nav {
  min-width: 0;
}

/* NAVBAR SUPERIOR BYS */
.bys-legal-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* permite saltos de línea si no caben */
  gap: 0.8rem 1rem; /* fila y columna */
  padding: 0.9rem 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-sizing: border-box;
}

.bys-legal-nav a {
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #111;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
  white-space: nowrap; /* evita que palabras se rompan a la mitad */
}

.bys-legal-nav a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Ajustes móviles */
@media (max-width: 720px) {
  .bys-legal-nav {
    gap: 0.5rem 0.8rem;
    padding: 0.7rem 0.4rem;
  }
  .bys-legal-nav a {
    font-size: 0.68rem;
    padding: 0.35rem 0.6rem;
  }
}

 
      /* =========================
   Animación global de entrada BYS
========================= */

#top-logo-model {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    z-index: 9999;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  /* Ajustes del propio model-viewer para que ocupe el contenedor */
  #top-logo-model model-viewer {
    width: 100%;
    height: 100%;
    display: block;
  }

@keyframes bysFadeIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =========================
   ENTRY SCREEN — BYS (LOGO MÁS GRANDE)
   FONDO DEGRADADO BLANCO-NEGRO
========================= */

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #fff 0%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  perspective: 1500px; /* perspectiva 3D global */
}

.entry-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animación de giro lento */
@keyframes spinSlow {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* =========================
   TEXTO PRESS ENTER / PULSA
========================= */
.entry-text {
  position: absolute;
  bottom: 14%;
  font-size: 1.8rem; /* más grande */
  font-family: 'Montserrat', 'Inter', sans-serif; /* elegante y legible */
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff; /* blanco para buen contraste */
  text-shadow: 0 2px 6px rgba(0,0,0,0.5); /* sombra sutil para destacar */
  opacity: 0.85;
  animation: pressBlink 1.6s ease-in-out infinite;
}

.entry-text::after {
  content: "Press Enter"; /* desktop */
}

/* Mobile: cambia a "Pulsa" y ajusta tamaño */
@media (max-width: 700px) {
  .entry-text::after {
    content: "Pulsa";
  }

  .entry-text {
    bottom: 12%;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
  }
}

/* Animación de parpadeo */
@keyframes pressBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Entrada suave de todos los elementos */
.entry-screen * {
  animation: entryIn 1s ease both;
}

@keyframes entryIn {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Mobile tweaks para el logo */
@media (max-width: 700px) {
  .entry-3d model-viewer {
    width: 85vw;
    height: auto;
    aspect-ratio: 1/1;
  }
}
