/* ==========================================================================
   USMEF SUDAMÉRICA — Rediseño 2 Vistas (Vitrina Grid + Detalle Corte)
   ========================================================================== */

/* ---------- 0. TIPOGRAFÍA LOCAL ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Hanken Grotesk Light'),
       url('./src/fonts/HankenGrotesk-300-latin.woff2') format('woff2'),
       url('./src/fonts/HankenGrotesk-300-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Hanken Grotesk Regular'),
       url('./src/fonts/HankenGrotesk-400-latin.woff2') format('woff2'),
       url('./src/fonts/HankenGrotesk-400-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Hanken Grotesk Medium'),
       url('./src/fonts/HankenGrotesk-500-latin.woff2') format('woff2'),
       url('./src/fonts/HankenGrotesk-500-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Hanken Grotesk SemiBold'),
       url('./src/fonts/HankenGrotesk-600-latin.woff2') format('woff2'),
       url('./src/fonts/HankenGrotesk-600-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Hanken Grotesk Bold'),
       url('./src/fonts/HankenGrotesk-700-latin.woff2') format('woff2'),
       url('./src/fonts/HankenGrotesk-700-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Hanken Grotesk ExtraBold'),
       url('./src/fonts/HankenGrotesk-800-latin.woff2') format('woff2'),
       url('./src/fonts/HankenGrotesk-800-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Syne Medium'),
       url('./src/fonts/Syne-500-latin.woff2') format('woff2'),
       url('./src/fonts/Syne-500-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Syne SemiBold'),
       url('./src/fonts/Syne-600-latin.woff2') format('woff2'),
       url('./src/fonts/Syne-600-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Syne Bold'),
       url('./src/fonts/Syne-700-latin.woff2') format('woff2'),
       url('./src/fonts/Syne-700-latin-ext.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Syne ExtraBold'),
       url('./src/fonts/Syne-800-latin.woff2') format('woff2'),
       url('./src/fonts/Syne-800-latin-ext.woff2') format('woff2');
}

/* ---------- 1. TOKENS ---------- */
:root {
  --color-canvas: #060e1a;
  --color-canvas-bg-2: #071322;
  --color-surface: #0b182b;
  --color-surface-hover: #0f2139;
  --color-surface-active: #162d4e;
  --color-surface-elevated: #11233d;
  --color-surface-input: #081527;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-border-active: rgba(217, 39, 50, 0.55);
  --color-divider: rgba(148, 163, 184, 0.10);
  --color-primary: #D92732;
  --color-primary-hover: #E53935;
  --color-primary-soft: rgba(217, 39, 50, 0.12);
  --color-primary-glow: rgba(217, 39, 50, 0.25);
  --color-on-primary: #ffffff;
  --color-text-primary: #dbe3f4;
  --color-text-white: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-success: #34d399;
  --color-text-onprimary: #68000c;
  --font-display: 'Syne', 'Barlow Condensed', 'Archivo Narrow', 'Oswald', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', 'Inter', 'Figtree', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Cascadia Mono', monospace;
  --space-2xs: 0.25rem;
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  --shadow-card: 0 10px 24px -6px rgba(0, 0, 0, 0.50), 0 2px 6px rgba(0, 0, 0, 0.30);
  --shadow-card-active: 0 10px 24px -6px rgba(0, 0, 0, 0.50), 0 0 16px var(--color-primary-glow);
  --shadow-primary: 0 8px 20px -6px rgba(217, 39, 50, 0.45);
  --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.40);
  --ring-focus: 0 0 0 2px var(--color-canvas-bg-2), 0 0 0 4px var(--color-primary);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --app-width: 1920px;
  --app-height: 1080px;
  --app-aspect-ratio: 16 / 9;
  --app-bar-height: 110px;
  --footer-height: 48px;
  --info-bar-height: 86px;
  --banner-height: 160px;
  --viewport-padding-x: 2.5rem;
  --viewport-padding-y: 1.25rem;
  --viewport-gap: 1.25rem;
  /* Tamaños tipográficos fluidos responsive (base desktop 1920) */
  --fs-app-heading: clamp(1.05rem, 1.3vw + 0.5rem, 1.6rem);
  --fs-brand-title: clamp(0.8rem, 0.55vw + 0.6rem, 0.95rem);
  --fs-brand-sub: clamp(0.65rem, 0.35vw + 0.55rem, 0.75rem);
  --fs-info-title: clamp(0.72rem, 0.55vw + 0.55rem, 0.9rem);
  --fs-info-sub: clamp(0.58rem, 0.35vw + 0.5rem, 0.7rem);
  --fs-cut-chile: clamp(0.7rem, 0.45vw + 0.6rem, 0.8rem);
  --fs-cut-usa: clamp(0.58rem, 0.35vw + 0.5rem, 0.65rem);
  --fs-pill: clamp(0.68rem, 0.4vw + 0.58rem, 0.82rem);
  --sp-padding-xl: clamp(1rem, 1.4vw + 0.5rem, 2.5rem);
  --sp-padding-md: clamp(0.6rem, 0.7vw + 0.4rem, 1.25rem);
  --sp-gap-vp: clamp(0.5rem, 0.7vw + 0.3rem, 1.25rem);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; width: 100%; overflow-y: auto; overflow-x: hidden; }
html.h-full { min-height: 100%; height: auto; }
html.w-full { width: 100%; }
html.overflow-hidden { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: #9f7c5e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  height: auto;
  min-width: 320px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.app-stage {
  width: 100%;
  min-width: 0;
  max-width: 1920px;
  min-height: 100vh;
  height: auto;
  background-color: #9f7c5e;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
}
.detail__description {
  display: none;
}
.app-stage > * { width: 100%; flex: 0 0 auto; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-white);
}
.material-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.custom-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.02); }
.custom-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-full); }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: var(--radius-full); }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(217, 39, 50, 0.60); }

/* ---------- 4. APP BAR ---------- */
.app-bar {
  display: none;
}
.app-bar__row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-gap-vp);
  width: 100%;
  flex-wrap: wrap;
}
.app-bar__left {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.8vw + 0.2rem, 1rem);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 40%;
}
.brand__logo {
  height: clamp(2rem, 4vw + 0.5rem, 4.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand__logo-img { height: 100%; width: auto; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.brand__title {
  font-family: var(--font-display);
  font-size: var(--fs-brand-title);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text-white);
  line-height: 1.2;
  white-space: normal;
}
.brand__subtitle {
  font-size: var(--fs-brand-sub);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(148, 163, 184, 0.90);
  line-height: 1;
}
.app-bar__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 auto;
  gap: 0.35rem;
  min-width: 0;
}
.app-bar__heading {
  font-family: var(--font-display);
  font-size: var(--fs-app-heading);
  font-weight: 800;
  letter-spacing: clamp(0.08em, 0.2vw + 0.05em, 0.22em);
  text-transform: uppercase;
  color: var(--color-text-white);
  line-height: 1;
}
.app-bar__right {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.5vw + 0.25rem, 0.875rem);
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0.25rem;
  background-color: #1c1c1c;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  gap: 0.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.category-tabs--bar {
  position: relative;
  z-index: 25;
  margin: 0.75rem auto 0;
  padding: 0.35rem 0.35rem;
  background-color: #1c1c1c;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-tabs--bar::-webkit-scrollbar { display: none; }
.category-pill {
  padding: clamp(0.4rem, 0.6vw + 0.3rem, 0.6rem) clamp(0.45rem, 0.8vw + 0.3rem, 0.8rem);
  border-radius: var(--radius-lg);
  font-size: var(--fs-pill);
  font-weight: 600;
  letter-spacing: clamp(0.04em, 0.08vw + 0.05em, 0.10em);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: transparent;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-pill:hover { color: var(--color-text-white); background: rgba(255, 255, 255, 0.05); }
.category-pill:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.category-pill--active {
  padding: clamp(0.4rem, 0.6vw + 0.3rem, 0.6rem) clamp(0.45rem, 0.8vw + 0.3rem, 0.8rem);
  border-radius: var(--radius-lg);
  font-size: var(--fs-pill);
  font-weight: 700;
  letter-spacing: clamp(0.04em, 0.08vw + 0.05em, 0.10em);
  text-transform: uppercase;
  color: var(--color-on-primary);
  background: var(--color-primary);
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}
.counter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.55rem 1rem;
  background: transparent;
  border: 1px solid rgba(217, 39, 50, 0.45);
  border-radius: var(--radius-xl);
  color: var(--color-text-white);
  transition: all var(--dur-base) var(--ease-out);
}
.counter-btn:hover { background: rgba(217, 39, 50, 0.08); border-color: var(--color-primary); }
.counter-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.counter-btn .material-icon-svg { color: var(--color-primary); }
.counter-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid rgba(217, 39, 50, 0.30);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.counter-pill--btn {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--color-text-white);
  font-weight: 700;
  font-size: 0.85rem;
}


/* ---------- 5. VISTAS ---------- */
.view {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  animation: fade-in-up 0.45s var(--ease-out) both;
}
.view--detail {
  overflow: hidden;
  overflow-y: auto;
}
.is-hidden { display: none !important; }
.view.is-hidden { display: none; }

/* ---------- 6. VISTA 1 GRID ---------- */
.view--grid {
  display: flex;
  flex-direction: column;
  padding: var(--sp-padding-md) var(--sp-padding-xl);
  gap: var(--sp-gap-vp);
}
.category-banner {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  background-color: #1c1c1c;
  aspect-ratio: auto;
  max-height: none;
}
#category-banner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 0 0 auto;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
}
.category-banner__img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: unset;
  object-position: unset;
  user-select: none;
  -webkit-user-drag: none;
  aspect-ratio: auto;
  pointer-events: none;
  transform: translateZ(0);
  background: transparent;
}

/* Overlays interactivos de hotspots sobre el banner */
.banner-hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.banner-hotspot {
  position: absolute;
  pointer-events: auto;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  border-radius: 6px;
  overflow: visible;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
  cursor: pointer;
  --hotspot-border: transparent;
  --hotspot-bg: transparent;
}
.banner-hotspot:hover {
  /* Por defecto sin feedback visual para mantener limpia la interfaz pública */
}
.banner-hotspot::before {
  content: '#' attr(data-order);
  position: absolute;
  top: -10px;
  left: -10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #facc15;
  color: #040a16;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #040a16;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  z-index: 3;
}

/* ====== MODO SHOW: URL ?show=true — apariencia original completa ====== */
body.show-hotspots .banner-hotspot {
  border-width: 2px;
  border-style: solid;
  border-color: var(--hotspot-border, rgba(250, 204, 21, 0.75));
  background-color: var(--hotspot-bg, rgba(217, 39, 50, 0.22));
  box-shadow: 0 2px 0 rgba(255,255,255,0.06) inset, 0 6px 14px rgba(0,0,0,0.45);
}
body.show-hotspots .banner-hotspot:hover {
  border-color: #facc15;
  background-color: rgba(217, 39, 50, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.22), 0 12px 22px rgba(0,0,0,0.55);
  z-index: 3;
}
body.show-hotspots .banner-hotspot::before {
  display: inline-flex;
}

/* Modo DEBUG: agregar clase "debug-hotspots" al <body> para ver rejilla y bordes extra */
body.debug-hotspots .banner-hotspot {
  border-width: 2px;
  border-style: solid;
  border-color: #22d3ee;
  background-color: rgba(34, 211, 238, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background-image:
    linear-gradient(rgba(34,211,238,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.08) 1px, transparent 1px);
  background-size: 10% 10%;
}
body.debug-hotspots .banner-hotspot::before {
  display: inline-flex;
}
body.debug-hotspots .banner-hotspot:hover {
  border-color: #facc15;
  background-color: rgba(250, 204, 21, 0.18);
  z-index: 3;
}


/* Etiqueta visual renderizada desde el admin (estilos propios del botón) */
.banner-hotspot__tag {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6px;
  overflow: hidden;
  white-space: normal;
  line-height: 1.1;
  border-radius: var(--admin-radius, 6px);
  background: var(--admin-bg, #D92732);
  color: var(--admin-fg, #ffffff);
  font-size: var(--admin-fontsize, 11px);
  font-weight: var(--admin-fontweight, 600);
  font-family: var(--font-display, 'Hanken Grotesk', system-ui, sans-serif);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 10px rgba(0,0,0,0.35);
  opacity: var(--admin-opacity, 0.9);
  transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Mostrar tag solo en modo show o debug */
body.show-hotspots .banner-hotspot__tag,
body.debug-hotspots .banner-hotspot__tag {
  display: flex;
}
body.show-hotspots .banner-hotspot:hover .banner-hotspot__tag,
body.debug-hotspots .banner-hotspot:hover .banner-hotspot__tag {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 18px rgba(0,0,0,0.45);
}
.category-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 40%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}
.info-bar {
  flex: 0 0 auto;
  height: auto;
  min-height: 86px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: clamp(0.5rem, 1vw + 0.2rem, 0.75rem) var(--sp-padding-xl);
  gap: var(--sp-gap-vp);
  background: rgba(7, 19, 34, 0.70);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--color-border);
}
.info-bar__left, .info-bar__right {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.8vw + 0.2rem, 0.875rem);
  min-width: 0;
  flex: 1 1 auto;
}
.info-bar__right { justify-content: flex-end; }
.info-bar__center {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw + 0.25rem, 1.25rem);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.info-bar__icon {
  width: clamp(1.6rem, 2vw + 0.6rem, 2.25rem);
  height: clamp(1.6rem, 2vw + 0.6rem, 2.25rem);
  color: var(--color-text-secondary);
  stroke-width: 1.5;
  flex-shrink: 0;
}
.info-bar__text { display: flex; flex-direction: column; gap: 0.1875rem; min-width: 0; }
.info-bar__text--right { text-align: right; align-items: flex-end; }
.info-bar__title {
  font-family: var(--font-display);
  font-size: var(--fs-info-title);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-white);
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}
.info-bar__subtitle {
  font-size: var(--fs-info-sub);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}
.info-bar__divider {
  display: inline-block;
  width: clamp(20px, 10vw, 100px);
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
  flex-shrink: 0;
}
.info-bar__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 0.6vw + 0.55rem, 0.95rem);
  font-weight: 600;
  letter-spacing: clamp(0.08em, 0.25vw + 0.1em, 0.30em);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}
.flag-icon {
  width: clamp(1.6rem, 2.5vw + 0.5rem, 2.5rem);
  height: auto;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
  flex-shrink: 0;
}

/* ---------- 7. VISTA 2 DETALLE ---------- */
.view--detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  padding: var(--sp-padding-md) var(--sp-padding-xl);
  gap: var(--sp-gap-vp);
  align-items: stretch;
}
.detail__image-col {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: #1c1c1c;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.back-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  color: var(--color-text-white);
  transition: all var(--dur-base) var(--ease-out);
}
.back-btn:hover { background: rgba(10, 18, 32, 0.80); border-color: rgba(255, 255, 255, 0.22); transform: translateX(-3px); }
.back-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.back-btn__icon { width: 1.5rem; height: 1.5rem; color: var(--color-text-white); stroke-width: 2.5; }
.back-btn__text { display: flex; flex-direction: column; gap: 0.1rem; text-align: left; line-height: 1; }
.back-btn__eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); }
.back-btn__cta { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-white); }
.detail__img {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.75)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.50));
  transition: opacity 0.45s var(--ease-out);
}
.detail__img.is-loading { opacity: 0; pointer-events: none; }

/* Loader overlay (solo columna imagen) */
.detail__loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(22, 42, 74, 0.88) 0%, rgba(7, 19, 34, 0.96) 80%);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border-radius: inherit;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}
.detail__loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.detail__loader-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 13vw, 140px);
  height: clamp(90px, 13vw, 140px);
}
.meat-spinner {
  width: 100%;
  height: 100%;
  animation: meat-spin 1.35s cubic-bezier(0.55, 0.1, 0.45, 0.9) infinite;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 10px 24px rgba(215, 38, 61, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
.meat-spinner svg { width: 100%; height: 100%; display: block; }
@keyframes meat-spin {
  0%   { transform: rotate(0deg)   scale(0.98); }
  15%  { transform: rotate(54deg)  scale(1.02); }
  50%  { transform: rotate(180deg) scale(0.97); }
  75%  { transform: rotate(270deg) scale(1.01); }
  100% { transform: rotate(360deg) scale(0.98); }
}
.detail__loader-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.detail__loader-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-white);
  line-height: 1;
  text-align: center;
  animation: pulse-glow 1.6s ease-in-out infinite;
}
.detail__loader-sub {
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(187, 204, 230, 0.88);
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 255, 255, 0); opacity: 0.95; }
  50%      { text-shadow: 0 0 14px rgba(255, 122, 89, 0.45); opacity: 1; }
}
.detail__loader-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.detail__loader-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a59 0%, #d7263d 100%);
  box-shadow: 0 0 10px rgba(255, 122, 89, 0.55);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.detail__loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.detail__loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0) scale(0.9); opacity: 0.6; }
  40%           { transform: translateY(-0.45rem) scale(1.05); opacity: 1; }
}

.panel {
  display: flex;
  flex-direction: column;
  background: rgba(11, 24, 43, 0.70);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.detail__info-col { padding: 0; }

/* Logo USMEF mini sobrepuesto en la esquina superior del border-2.png */
.detail__header-brand {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
}
.detail__mini-logo { height: 2.75rem; width: auto; object-fit: contain; flex-shrink: 0; }
.detail__mini-brand { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.detail__mini-title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase; color: var(--color-text-white); line-height: 1; }
.detail__mini-sub { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.01em; color: rgba(148, 163, 184, 0.90); line-height: 1; }

/* Grid interno del panel derecho: [contenido] */
.detail__panel-grid {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

/* Columna del panel (texto info) */
.detail__content-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(0.85rem, 1.2vw, 1.1rem) clamp(0.85rem, 1.2vw, 1rem) clamp(0.85rem, 1.2vw, 1.1rem) clamp(1rem, 1.4vw, 1.25rem);
  gap: clamp(0.5rem, 0.9vw, 0.75rem);
  flex: 1 1 auto;
  height: 100%;
  background-color: #1c1c1c;
}
.detail__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
}
.category-tag {
  align-self: flex-start;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.category-tag--lg { font-size: clamp(0.68rem, 0.95vw, 0.8rem); padding: 0.35rem clamp(0.75rem, 1vw, 1rem); }
.detail__status { font-size: clamp(0.72rem, 0.95vw, 0.82rem); font-weight: 600; letter-spacing: 0.02em; color: var(--color-text-secondary); line-height: 1.3; white-space: normal; }

.detail__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.9vw, 0.75rem);
  padding-right: 0.25rem;
}
.detail__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.0vw, 2.02rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--color-text-white);
  line-height: 0.95;
  white-space: normal;
  word-break: break-word;
  margin: 0;
}
.detail__usa-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.56vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
  margin: 0;
  margin-top: clamp(0.25rem, 0.4vw, 0.4rem);
}
.detail__description {
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  line-height: 1.6;
  color: var(--color-text-primary);
  font-weight: 400;
  padding: 0.25rem 0;
  white-space: normal;
}
.detail__apps-heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.75vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #E50914;
  margin-top: clamp(1.3rem, 2vw, 1.9rem);
  margin-bottom: clamp(0.9rem, 1.3vw, 1.2rem);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.detail__methods {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(0.7rem, 1vw, 0.95rem);
  padding: 0;
  border-top: none;
  border-bottom: none;
  flex-wrap: nowrap;
}
.method-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  padding: clamp(0.95rem, 1.5vw, 1.35rem) clamp(1.05rem, 1.75vw, 1.55rem);
  background: #0f1a28;
  border-radius: clamp(16px, 2.2vw, 24px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-sizing: border-box;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.method-item:hover {
  background: #132030;
  transform: translateY(-1px);
}
.method-label {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.method-label__top { display: none; }
.method-label__bottom {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.65vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--color-text-white);
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}
.method-divider { display: none; }

/* ---------- 8. FOOTER ---------- */
.app-footer {
  height: auto;
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  padding: clamp(0.5rem, 0.8vw + 0.2rem, 0.75rem) var(--sp-padding-xl);
  border-top: 1px solid var(--color-border);
  background: rgba(7, 19, 34, 0.96);
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: clamp(0.65rem, 0.4vw + 0.6rem, 0.75rem);
  color: var(--color-text-secondary);
  z-index: 20;
  gap: clamp(0.5rem, 1vw + 0.3rem, 1rem);
}
.app-stage.is-detail-view .app-footer {
  display: flex;
  flex: 0 0 auto;
}
.app-footer__left, .app-footer__right { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; min-width: 0; }
.footer__copyright { font-weight: 500; color: rgba(255, 255, 255, 0.90); white-space: normal; word-break: break-word; }
.footer__divider { color: rgba(255, 255, 255, 0.20); }
.footer__warranty { display: flex; align-items: center; gap: 0.375rem; }
.footer__location { white-space: normal; word-break: break-word; }
.footer__link { font-weight: 700; letter-spacing: 0.04em; color: var(--color-text-white); transition: color var(--dur-base) var(--ease-out); }
.footer__link:hover { color: var(--color-primary); }

/* ---------- 9. ANIMACIONES ---------- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
a:focus-visible, button:focus-visible, input:focus-visible, [role="tab"]:focus-visible, [role="button"]:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-lg);
}

/* ---------- 10. RESPONSIVE BREAKPOINTS FLUIDOS ---------- */

@media (max-width: 1440px) {
  .view--detail { grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); }
}
@media (max-width: 1280px) {
  .category-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .view--detail { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
}
@media (max-width: 1024px) {
  .category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view--detail {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, auto);
  }
  .detail__image-col { min-height: 52vh; }
  .detail__content-col { padding: 1rem 1rem 1.1rem 1rem; gap: 0.65rem; }
  .detail__apps-heading { margin-top: clamp(1.1rem, 1.8vw, 1.5rem); }
  .detail__methods { gap: 0.55rem; padding: 0; }
  .method-item { padding: 0.9rem 1rem; border-radius: 18px; }
  .method-label__bottom { font-size: clamp(0.9rem, 2vw, 1.2rem); }
  .info-bar { grid-template-columns: 1fr; row-gap: 0.75rem; column-gap: 0.5rem; }
  .info-bar__left { justify-content: flex-start; }
  .info-bar__center { justify-content: center; width: 100%; max-width: 100%; }
  .info-bar__right { justify-content: flex-end; }
  .info-bar__divider { display: none; }
}
@media (max-width: 768px) {
  .app-bar { padding: 0.6rem 1rem; }
  .app-bar__row-top { flex-direction: column; gap: 0.5rem; align-items: center; }
  .app-bar__left, .app-bar__right, .app-bar__center {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center !important;
    text-align: center;
  }
  .app-bar__right { order: 2; }
  .app-bar__center { order: 1; }
  .category-tabs {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    display: grid;
    max-width: 100%;
  }
  .category-tabs--bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0.25rem;
  }
  .category-tabs--bar .category-tabs {
    display: inline-grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    width: max-content;
    flex: 0 0 auto;
  }
  .category-banner { max-height: 80vh; }
  .app-footer { justify-content: center; text-align: center; flex-direction: column; }
  .app-footer__left, .app-footer__right { justify-content: center; }
  .footer__divider { display: none; }
  .view--grid, .view--detail { padding-left: 1rem; padding-right: 1rem; }
  .view--detail { gap: 0.75rem; }
  .detail__image-col { min-height: 46vh; border-radius: 16px; }
  .back-btn { top: 0.85rem; left: 0.85rem; padding: 0.5rem 0.75rem 0.5rem 0.6rem; gap: 0.5rem; }
  .back-btn__icon { width: 1.25rem; height: 1.25rem; }
  .detail__info-col { border-radius: 16px; }
  .detail__content-col { padding: 0.9rem 0.9rem 1rem 0.9rem; gap: 0.6rem; }
  .detail__body { gap: 0.6rem; }
}
@media (max-width: 568px) {
  .category-tabs {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-width: 100%;
  }
  .category-tabs--bar .category-tabs {
    grid-auto-flow: column;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    width: max-content;
  }
  .category-banner { max-height: 70vh; }
  .view--detail { gap: 0.6rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .detail__image-col { min-height: 40vh; border-radius: 14px; }
  .back-btn { top: 0.7rem; left: 0.7rem; padding: 0.45rem 0.65rem 0.45rem 0.55rem; gap: 0.4rem; }
  .back-btn__text { display: none; }
  .detail__info-col { border-radius: 14px; }
  .detail__content-col { padding: 0.8rem 0.8rem 0.9rem 0.8rem; gap: 0.55rem; }
  .detail__name { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .detail__description { font-size: 0.85rem; line-height: 1.55; }
  .detail__apps-heading { font-size: clamp(1.05rem, 5.8vw, 1.5rem); margin-top: 1.1rem; margin-bottom: 0.75rem; }
  .detail__methods { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0; }
  .method-item { justify-content: space-between; gap: 0.6rem; width: 100%; padding: 0.85rem 0.95rem; border-radius: 16px; }
  .method-label__bottom { font-size: clamp(0.88rem, 3.9vw, 1.08rem); }
}
@media (max-width: 420px) {
  .category-tabs { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .category-tabs--bar .category-tabs {
    grid-auto-flow: column;
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    width: max-content;
  }
  .info-bar__left, .info-bar__right { justify-content: center; }
  .info-bar__text--right { text-align: center; align-items: center; }
  .view--detail { gap: 0.5rem; padding-left: 0.6rem; padding-right: 0.6rem; }
  .detail__image-col { min-height: 36vh; border-radius: 12px; }
  .detail__info-col { border-radius: 12px; }
  .detail__content-col { padding: 0.7rem 0.7rem 0.85rem 0.7rem; gap: 0.5rem; }
  .detail__body { gap: 0.5rem; }
  .detail__name { font-size: clamp(1.2rem, 7vw, 1.55rem); }
  .detail__apps-heading { font-size: clamp(0.95rem, 6.8vw, 1.35rem); margin-top: 0.95rem; margin-bottom: 0.6rem; }
  .detail__methods { gap: 0.45rem; }
  .method-item { padding: 0.75rem 0.85rem; border-radius: 14px; }
  .method-label__bottom { font-size: clamp(0.82rem, 4.4vw, 1rem); }
  .category-tag--lg { font-size: 0.65rem; padding: 0.3rem 0.7rem; }
  .detail__status { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --color-border: rgba(255,255,255,0.40); --color-border-strong: rgba(255,255,255,0.70); --color-text-secondary: #cbd5e1; --color-text-muted: #94a3b8; }
}
