/* ==========================================================================
   ENKMINA2 SHOP - ESTILOS PRINCIPALES (rediseño alta gama)
   Azul marino, dorado y blanco. Playfair Display + Inter.
   Solo CSS y un poco de JavaScript en index.html: nada de librerías.
   ========================================================================== */

:root {
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Paleta */
  --navy: #0B1F4D;
  --navy-deep: #071534;
  --navy-night: #050F27;
  --navy-soft: #11295F;
  --navy-line: rgba(201, 162, 74, 0.22);
  --gold: #C9A24A;
  --gold-light: #E3C373;
  --gold-dark: #A9853A;
  --white: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.74);
  --text-faint: rgba(255, 255, 255, 0.52);
  --danger: #F2828E;
  --success: #7FD8A8;

  /* Sombras, radios y movimiento */
  --glow-gold: 0 0 0 1px rgba(227, 195, 115, 0.55), 0 0 22px 2px rgba(201, 162, 74, 0.38);
  --shadow-deep: 0 24px 60px rgba(2, 8, 24, 0.55);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;

  /* Altura de la cabecera fija; index.html la ajusta a la real */
  --header-h: 112px;
}

@media (min-width: 1100px) {
  :root {
    --header-h: 80px;
  }
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--navy-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.55;
  /* Playfair usa por defecto números de estilo antiguo (el "2" de ENKMINA2 baja de la línea) */
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   BOTONES (brillo dorado al pasar el ratón)
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-ghost,
.amb-btn,
.btn-offer,
.modal-cta-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Destello que cruza el botón: solo transform, no repinta la página */
.btn-primary::after,
.btn-ghost::after,
.amb-btn::after,
.btn-offer::after,
.modal-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) {
  .btn-primary:hover::after,
  .btn-ghost:hover::after,
  .amb-btn:hover::after,
  .btn-offer:hover::after,
  .modal-cta-btn:hover::after {
    transform: translateX(260%) skewX(-18deg);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(201, 162, 74, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 74, 0.45);
}

.btn-primary svg {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 74, 0.6);
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background-color: rgba(201, 162, 74, 0.12);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   CABECERA FIJA (se vuelve más opaca al hacer scroll)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(11, 31, 77, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background-color: rgba(7, 21, 52, 0.92);
  border-bottom-color: var(--navy-line);
  box-shadow: 0 10px 30px rgba(2, 8, 24, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  gap: 1.5rem;
}

/* Logotipo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover .brand-logo-img {
  transform: scale(1.06);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.logo-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo-name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* Mismo tamaño y fuente que ENKMINA2; solo cambia el color */
.logo-shop {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Eslogan en el mismo blanco que ENKMINA2 */
.logo-slogan {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* Menú de escritorio */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Buscador */
.header-search {
  position: relative;
  flex: 0 1 260px;
  order: 3;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 2.4rem 0 2.6rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input::placeholder {
  color: var(--text-faint);
}

.header-search input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.2);
}

.header-search .search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  display: flex;
}

.header-search .clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  padding: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-radius: 50%;
}

.header-search .clear-btn:hover {
  color: var(--gold-light);
}

/* Botón hamburguesa */
.mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--gold-light);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* Menú móvil */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  background: rgba(7, 21, 52, 0.98);
  border-top: 1px solid var(--navy-line);
}

.mobile-drawer.active {
  display: flex;
  animation: drawerIn 0.3s var(--ease) both;
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-line);
}

.drawer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.drawer-brand-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.drawer-brand-name span {
  color: var(--gold);
}

.drawer-brand-slogan {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a span {
  color: var(--gold);
  font-family: var(--font-body);
}

.drawer-note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==========================================================================
   HERO (pantalla completa, degradado animado solo con CSS)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-night) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  isolation: isolate;
}

/* Manchas de luz que se mueven despacio: solo transform, va fluido en móvil */
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(201, 162, 74, 0.16) 0%, transparent 70%),
    radial-gradient(45% 40% at 75% 65%, rgba(36, 84, 180, 0.32) 0%, transparent 70%),
    radial-gradient(30% 30% at 60% 20%, rgba(227, 195, 115, 0.08) 0%, transparent 70%);
  animation: heroGlow 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Línea dorada fina al pie del hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.6), transparent);
}

@keyframes heroGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.02); }
}

.hero > .container {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  max-width: 660px;
}

/* Entrada del texto al cargar */
.hero-content > * {
  animation: heroIn 0.9s var(--ease) both;
}

.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.24s; }
.hero-content > :nth-child(4) { animation-delay: 0.36s; }
.hero-content > :nth-child(5) { animation-delay: 0.48s; }
.hero-content > :nth-child(6) { animation-delay: 0.6s; }

.hero-visual {
  animation: heroIn 1.1s var(--ease) 0.35s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201, 162, 74, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(201, 162, 74, 0.08);
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-pill svg {
  width: 13px;
  height: 13px;
  fill: var(--gold);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

.hero-title .highlight {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 2.25rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Sellos de confianza */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--navy-line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-soft);
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Tarjeta destacada del hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 74, 0.28), transparent);
  filter: blur(10px);
  z-index: -1;
}

.hero-amb {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
}

/* ==========================================================================
   TARJETA PROPIA DE LA ZAPATILLA (respaldo cuando no hay imagen)
   ========================================================================== */
.brand-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

/* Fondo azul marino en lugar del color de cada marca (app.js lo pone en línea) */
.amb-card .brand-visual,
.modal-img-wrap .brand-visual {
  background: radial-gradient(120% 70% at 50% 25%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-night) 100%) !important;
}

.brand-visual-shoe {
  width: 62%;
  max-width: 220px;
  margin-bottom: 0.6rem;
  fill: rgba(201, 162, 74, 0.85);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s var(--ease);
}

.brand-visual-shoe .laces {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
}

@media (hover: hover) {
  .product-card:hover .brand-visual-shoe {
    transform: translateY(-5px) rotate(-3deg);
  }
}

.brand-visual-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.brand-visual-model {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Imagen de ambiente encima; si falla, app.js la borra y queda la tarjeta */
.brand-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

@media (hover: hover) {
  .amb-card:hover .brand-visual img {
    transform: scale(1.05);
  }
}

/* ==========================================================================
   BOTONES A AMAZON (comunes)
   ========================================================================== */
.amazon-pair-label {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}

.amazon-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.amazon-btn-pair svg,
.modal-actions svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.version-note {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
}

.btn-offer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
}

.amazon-disclosure {
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   CATÁLOGO: CABECERA, PESTAÑAS Y FILTROS
   ========================================================================== */
.catalog-section {
  padding: 5.5rem 0 5rem;
  background: var(--navy);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
}

/* Filete dorado bajo el título */
.section-header-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.8rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-header-desc {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Pestañas de categorías */
.category-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.category-tab-btn:hover {
  border-color: var(--gold);
  color: var(--white);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* Barra de marcas y ordenación */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
}

.brand-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-filters-label {
  margin-right: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-chip {
  padding: 0.38rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.brand-chip:hover {
  border-color: rgba(201, 162, 74, 0.5);
  color: var(--white);
}

.brand-chip.active {
  background: rgba(201, 162, 74, 0.16);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 600;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.items-counter {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.sort-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select-wrapper select {
  padding: 0.5rem 2.1rem 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--white);
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s ease;
}

.sort-select-wrapper select:hover,
.sort-select-wrapper select:focus {
  border-color: var(--gold);
}

.sort-select-wrapper select option {
  background: var(--navy);
  color: var(--white);
}

.sort-select-wrapper svg {
  position: absolute;
  right: 0.8rem;
  width: 14px;
  height: 14px;
  color: var(--gold);
  pointer-events: none;
}

/* ==========================================================================
   REJILLA Y TARJETAS DE PRODUCTO (1:2, azul marino y borde dorado)
   ========================================================================== */
/* 2 columnas en móvil, 3 en tablet y 4 en PC */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
  }
}

.product-card {
  position: relative;
}

.amb-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 50%, var(--navy-night) 100%);
  box-shadow: 0 14px 34px rgba(2, 8, 24, 0.35);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.7s var(--ease);
}

/* Brillo dorado al pasar el ratón (solo con ratón) */
@media (hover: hover) {
  .amb-card:hover {
    border-color: var(--gold-light);
    box-shadow: var(--glow-gold), 0 18px 40px rgba(2, 8, 24, 0.45);
    transform: translateY(-4px);
  }
}

.amb-media {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* La tarjeta de la marca hace de respaldo; la imagen va encima */
.amb-card .brand-visual {
  justify-content: flex-start;
  padding-top: 32%;
}

.amb-card .brand-visual-brand,
.amb-card .brand-visual-model {
  display: none;
}

/* Etiqueta «Imagen de ambiente» que añade app.js: no se muestra */
.amb-note {
  display: none !important;
}

.amb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 38px 10px 10px;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(7, 21, 52, 0) 0%, rgba(7, 21, 52, 0.85) 40%, rgba(5, 15, 39, 0.97) 100%);
}

/* Badge «Top ventas» en dorado */
.amb-badge {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.amb-brand {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.amb-model {
  margin: 2px 0 8px;
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.amb-model a {
  color: inherit;
}

.amb-actions .amazon-btn-pair {
  gap: 6px;
}

/* Botones «Ver en Amazon» dorados */
.amb-btn {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 70%);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.amb-btn:hover {
  box-shadow: 0 0 16px rgba(227, 195, 115, 0.55);
}

.amb-btn:active {
  transform: scale(0.97);
}

.amb-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.amb-actions .version-note {
  margin-top: 5px;
  font-size: 0.6rem;
  color: var(--text-soft);
}

@media (min-width: 1024px) {
  .amb-overlay {
    padding: 60px 14px 14px;
  }

  .amb-badge {
    font-size: 0.62rem;
  }

  .amb-brand {
    font-size: 0.68rem;
  }

  .amb-model {
    font-size: 1.22rem;
  }

  .amb-btn {
    min-height: 42px;
    font-size: 0.85rem;
  }

  .amb-btn svg {
    width: 14px;
    height: 14px;
  }

  .amb-actions .version-note {
    font-size: 0.7rem;
  }
}

/* Tarjeta destacada del hero, algo más grande */
.amb-card-hero {
  box-shadow: var(--glow-gold), var(--shadow-deep);
}

.amb-card-hero .amb-overlay {
  padding: 60px 16px 16px;
}

.amb-card-hero .amb-badge {
  font-size: 0.65rem;
}

.amb-card-hero .amb-brand {
  font-size: 0.72rem;
}

.amb-card-hero .amb-model {
  font-size: 1.4rem;
}

.amb-card-hero .amb-btn {
  min-height: 44px;
  font-size: 0.86rem;
}

/* Catálogo vacío */
.empty-state {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(201, 162, 74, 0.45);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.empty-state svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.empty-state p {
  margin-bottom: 1.5rem;
  color: var(--text-soft);
}

/* ==========================================================================
   APARICIÓN AL ENTRAR EN PANTALLA (IntersectionObserver en index.html)
   Sin JavaScript no se oculta nada: la clase js-reveal la pone el script.
   ========================================================================== */
.js-reveal .product-card:not(.is-visible),
.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}

.js-reveal .product-card.is-visible,
.js-reveal .reveal.is-visible {
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ==========================================================================
   SECCIONES DESTACADAS (NOVEDADES, RUNNING, BALONCESTO, URBANO)
   ========================================================================== */
.feature-showcase {
  padding: 2.5rem 0;
  background: var(--navy);
}

.feature-showcase.alt-bg {
  background: var(--navy-deep);
}

.feature-showcase:last-of-type {
  padding-bottom: 5rem;
}

.showcase-banner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3.25rem 3rem;
  overflow: hidden;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy-night) 100%);
  color: var(--white);
  isolation: isolate;
}

/* Halo dorado en la esquina */
.showcase-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 74, 0.2), transparent);
  z-index: -1;
}

.showcase-banner.running-theme {
  background: linear-gradient(135deg, #12306F 0%, var(--navy-night) 100%);
}

.showcase-banner.basket-theme {
  background: linear-gradient(135deg, #2A2A3F 0%, #0A1638 60%, var(--navy-night) 100%);
}

.showcase-banner.urban-theme {
  background: linear-gradient(135deg, #0E1A3A 0%, #050B1C 100%);
}

.showcase-banner-content {
  max-width: 600px;
}

.showcase-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.showcase-banner h2 {
  margin-bottom: 0.8rem;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.showcase-banner p {
  margin-bottom: 1.6rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ==========================================================================
   MODAL DEL PRODUCTO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: rgba(3, 9, 26, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(201, 162, 74, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 35%, var(--navy-deep) 100%);
  color: var(--white);
  box-shadow: var(--shadow-deep);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.active .modal-container {
  transform: none;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 74, 0.45);
  border-radius: 50%;
  color: var(--gold-light);
  transition: transform 0.3s var(--ease), background-color 0.25s ease;
}

.modal-close-btn:hover {
  background-color: rgba(201, 162, 74, 0.15);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

/* app.js escribe la descripción con un color gris en línea; aquí se aclara */
.modal-body > p[style] {
  color: var(--text-soft) !important;
}

.modal-header-badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(201, 162, 74, 0.5);
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.modal-product-summary {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-img-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
}

.modal-img-wrap .brand-visual {
  padding: 0.5rem;
}

.modal-img-wrap .brand-visual-brand {
  font-size: 0.6rem;
}

.modal-img-wrap .brand-visual-model {
  font-size: 0.8rem;
}

/* La imagen enseña sobre todo las zapatillas */
.modal-img-wrap .brand-visual img {
  object-position: 50% 72%;
}

.modal-product-brand {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-product-details h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

.modal-product-badge {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-info-box {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--navy-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  background: rgba(201, 162, 74, 0.07);
}

.modal-info-box h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
}

.modal-info-box p {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.modal-cta-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  transition: box-shadow 0.25s ease;
}

.modal-cta-btn:hover {
  box-shadow: 0 0 22px rgba(227, 195, 115, 0.45);
}

.modal-actions .amazon-pair-label {
  color: var(--gold-light);
}

/* ==========================================================================
   MODAL DE POLÍTICAS Y CONTACTO
   ========================================================================== */
.policy-modal-container {
  max-width: 720px;
  padding: 2.5rem;
}

.policy-modal-container h2 {
  margin-bottom: 1rem;
  padding-right: 2.5rem;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
}

.policy-modal-container p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.policy-modal-container h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
}

.policy-modal-container ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
}

.policy-modal-container ul li {
  margin-bottom: 0.4rem;
}

.policy-modal-container strong {
  color: var(--white);
}

.policy-modal-container code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(201, 162, 74, 0.15);
  color: var(--gold-light);
}

/* Formulario de contacto */
.contact-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.2);
}

/* Campo trampa contra el spam: oculto para las personas */
.form-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
}

.form-check input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-check a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
}

.form-submit {
  justify-content: center;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.policy-modal-container .form-status {
  margin: 0;
  min-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.policy-modal-container .form-status.success {
  color: var(--success);
}

.policy-modal-container .form-status.error {
  color: var(--danger);
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.site-footer {
  padding: 4.5rem 0 2rem;
  background: var(--navy-night);
  border-top: 1px solid var(--navy-line);
  color: var(--white);
}

/* Aviso de afiliación */
.affiliate-disclaimer-card {
  margin-bottom: 3.5rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--navy-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  background: rgba(201, 162, 74, 0.05);
}

.affiliate-disclaimer-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
}

.affiliate-disclaimer-card p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.affiliate-disclaimer-card strong {
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.footer-brand h3 span {
  color: var(--gold);
}

.footer-slogan {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-brand p {
  max-width: 380px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-col h4 {
  margin-bottom: 1.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.25s ease, transform 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-legal-links a {
  color: var(--text-soft);
  transition: color 0.25s ease;
}

.footer-legal-links a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   AVISO FLOTANTE (TOAST)
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-deep);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.toast-notice svg {
  color: var(--gold);
}

.toast-notice.show {
  transform: none;
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE (TABLET Y MÓVIL)
   ========================================================================== */
/* Por debajo de 1100px el menú pasa al botón hamburguesa */
@media (max-width: 1099px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding: 0.65rem 0 0.75rem;
  }

  .header-search {
    flex: 1 1 100%;
    order: 3;
  }

  .header-search input {
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-amb {
    max-width: 290px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-name,
  .logo-shop {
    font-size: 1.18rem;
  }

  .hero {
    padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .catalog-section {
    padding: 4rem 0 3.5rem;
  }

  .filters-bar {
    padding: 1rem;
  }

  .showcase-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.25rem 1.5rem;
  }

  .modal-product-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-img-wrap {
    margin: 0 auto;
  }

  .policy-modal-container {
    padding: 2rem 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .logo-name,
  .logo-shop {
    font-size: 1.08rem;
  }

  .logo-slogan {
    display: none;
  }

  .hero-tagline {
    letter-spacing: 0.22em;
  }

  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }

  .brand-filters::-webkit-scrollbar {
    display: none;
  }

  .brand-chip {
    white-space: nowrap;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .toast-notice {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}

/* Movimiento reducido: sin animaciones ni apariciones */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero::before {
    animation: none;
  }
}
