/* ============================================
   Paradise Industries 3D — Diseño elegante y profesional
   ============================================ */

:root {
  /* Fondo principal usando tu imagen del camión con un velo oscuro */
  --bg: #0f1115; 
  --surface: #1a1d21;      /* Color de las tarjetas */
  --surface-alt: #262a30;  /* Color para hovers y fondos secundarios */
  --text: #f3f4f6;         /* Blanco suave para textos */
  --text-soft: #9ca3af;    /* Gris para textos secundarios */
  --muted: #6b7280;
  --border: #374151;       /* Bordes oscuros sutiles */
  --border-focus: #14b8a6;
  --brand: #14b8a6;        /* Teal brillante para que resalte en oscuro */
  --brand-hover: #0d9488;
  --brand-light: rgba(20, 184, 166, 0.15);
  --accent: #14b8a6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.8);
  --radius: 12px;
  --radius-lg: 16px;
  --card-blur: blur(16px);
  --topbar-blur: blur(12px);

  /* Typography System */
  --font-display: "Inter", sans-serif; /* Weight 900, Uppercase, -0.045em */
  --font-body: "Inter", sans-serif;    /* Weight 400/500/700 */
  --font-mono: "JetBrains Mono", monospace; /* Weight 400/500, Uppercase, +0.22em */

  /* Extra semantic adapters (Dark Theme defaults) */
  --bg-gradient: linear-gradient(rgba(15, 17, 21, 0.94), rgba(15, 17, 21, 0.94)), url('../imagenes_/fondo-camion.jpg');
  --tile-bg: #111317;
  --tile-hover-bg: #16191e;
  --tile-title: #ffffff;
  --footer-bg: #1a1d21;
  --footer-text: #9ca3af;
  --footer-heading: #d1d5db;
  --hero-bg-image: url('../imagenes_/fondo-camion.jpg');
  --hero-bg-gradient: radial-gradient(circle at center, rgba(15, 17, 21, 0.75) 0%, rgba(15, 17, 21, 0.98) 100%);
  --topbar-bg: rgba(15, 17, 21, 0.98);
  --banner-overlay: linear-gradient(90deg, rgba(26, 29, 33, 0.88) 0%, rgba(26, 29, 33, 0.4) 65%, transparent 100%);
}

[data-theme="light"] {
  /* WOW Glassmorphism Palette */
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-alt: rgba(255, 255, 255, 0.45);
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.15);
  --border-focus: #0d9488;
  --brand: #0d9488;
  --brand-hover: #0f766e;
  --brand-light: rgba(13, 148, 136, 0.08);
  --accent: #0d9488;
  --shadow-sm: 0 4px 12px rgba(13, 148, 136, 0.04);
  --shadow: 0 10px 30px rgba(13, 148, 136, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 148, 136, 0.12);

  /* Extra semantic adapters (Light Theme overrides) */
  --bg-gradient: linear-gradient(rgba(248, 250, 252, 0.90), rgba(248, 250, 252, 0.90)), url('../imagenes_/fondo-camion-claro.png');
  --tile-bg: rgba(255, 255, 255, 0.65);
  --tile-hover-bg: rgba(255, 255, 255, 0.85);
  --tile-title: #0f172a;
  --footer-bg: #ffffff;
  --footer-text: #475569;
  --footer-heading: #0f172a;
  --hero-bg-image: url('../imagenes_/fondo-camion-claro.png');
  --hero-bg-gradient: radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.95) 100%);
  --topbar-bg: rgba(255, 255, 255, 0.6);
  --banner-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 65%, transparent 100%);
}

[data-theme="light-alt"] {
  /* Brutalist Editorial Palette */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f4f4;
  --text: #000000;
  --text-soft: #333333;
  --muted: #666666;
  --border: #000000;
  --border-focus: #ff3300;
  --brand: #ff3300;
  --brand-hover: #cc2900;
  --brand-light: rgba(255, 51, 0, 0.1);
  --accent: #ff3300;
  --shadow-sm: 4px 4px 0 #000000;
  --shadow: 8px 8px 0 #000000;
  --shadow-lg: 12px 12px 0 #000000;
  --radius: 0px;
  --radius-lg: 0px;
  --card-blur: none;
  --topbar-blur: none;

  /* Extra semantic adapters */
  --bg-gradient: none;
  --tile-bg: #ffffff;
  --tile-hover-bg: #f4f4f4;
  --tile-title: #000000;
  --footer-bg: #ffffff;
  --footer-text: #000000;
  --footer-heading: #000000;
  --hero-bg-image: none;
  --hero-bg-gradient: none;
  --topbar-bg: #ffffff;
  --banner-overlay: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: var(--topbar-blur);
  -webkit-backdrop-filter: var(--topbar-blur);
  border-bottom: 1px solid var(--border);
}
.nav__sep {
  color: var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 0 4px;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 8px 10px;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: transparent;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}
.topbar__inner > .logo {
  flex: 1;
  display: flex;
  justify-content: center;
  text-decoration: none;
}
.topbar__inner > .nav-quick {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.logo__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo__name { 
  font-family: var(--font-display); 
  font-weight: 900; 
  text-transform: uppercase; 
  letter-spacing: -0.045em; 
  font-size: 1.35rem; 
  color: var(--text); 
}
.logo__tag { 
  font-family: var(--font-mono); 
  font-weight: 500; 
  text-transform: uppercase; 
  letter-spacing: 0.22em; 
  color: var(--brand); 
  font-size: 0.65rem; 
}

.nav-quick a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-quick a:hover { color: var(--text); }
.nav-quick a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.badgeC {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  margin-left: 4px;
  padding: 0 6px;
}

.nav-toggle {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover, .nav-toggle:focus {
  background: var(--surface-alt);
  border-color: var(--brand);
  outline: none;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.topbar--open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar--open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.topbar--open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar Menu */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay--open {
  opacity: 1;
  pointer-events: auto;
}
.sidebar-menu {
  position: fixed;
  top: 0; left: 0; width: 340px; max-width: 85vw; height: 100vh;
  background: var(--bg);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  border-right: 1px solid var(--border);
}
.sidebar-menu--open {
  transform: translateX(0);
  box-shadow: 20px 0 40px rgba(0,0,0,0.5);
}
.sidebar-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-close:hover { color: var(--text); }
.sidebar-menu__content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.sidebar-menu__group {
  margin-bottom: 32px;
}
.sidebar-menu__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.sidebar-menu__nav {
  display: flex;
  flex-direction: column;
}
/* Solo enlaces de primer nivel del grupo (Home, 3D Studio, etc.) */
.sidebar-menu__group > a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s, transform 0.2s;
}
.sidebar-menu__group > a:hover {
  color: var(--brand);
  transform: translateX(4px);
}
.sidebar-menu__details {
  margin: 4px 0;
}
.sidebar-menu__details--nested {
  margin-left: 12px;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.sidebar-menu__details--cat {
  margin: 0;
  border: none;
  padding: 0;
}
.sidebar-menu__shop-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-menu__summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  transition: color 0.2s;
}
.sidebar-menu__details--shop > .sidebar-menu__summary {
  font-size: 1.25rem;
}
.sidebar-menu__summary::-webkit-details-marker {
  display: none;
}
.sidebar-menu__summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 10px;
  font-size: 0.85rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.sidebar-menu__details[open] > .sidebar-menu__summary::before {
  transform: rotate(90deg);
}
.sidebar-menu__summary--nested {
  font-size: 1.05rem;
  color: var(--text-soft);
}
.sidebar-menu__summary--cat {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
}
.sidebar-menu__subnav .sidebar-menu__cat-link {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s;
}
.sidebar-menu__subnav .sidebar-menu__cat-link:hover,
.sidebar-menu__summary--cat:hover {
  color: var(--brand);
  transform: translateX(4px);
}
.sidebar-menu__subcats {
  display: flex;
  flex-direction: column;
 /* gap: 2px; */
  margin: 0 0 8px 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.sidebar-menu__summary:hover {
  color: var(--brand);
}
.sidebar-menu__subnav {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 22px;
}
.sidebar-menu__subnav--nested {
  padding-left: 8px;
}
.sidebar-menu__subnav .sidebar-menu__subnav-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.35;
  transition: color 0.2s, transform 0.2s;
}
.sidebar-menu__subnav .sidebar-menu__subnav-link:hover {
  color: var(--brand);
  transform: translateX(4px);
}
.sidebar-menu__subnav .sidebar-menu__subnav-link--child {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 0;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
}
.sidebar-menu__subnav .sidebar-menu__subnav-link--collection {
  padding-left: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  padding-top: 5px;
  padding-bottom: 5px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-soft);
}
.sidebar-menu__subnav .sidebar-menu__subnav-link--collection:hover {
  color: var(--brand);
}
.sidebar-menu__subnav .sidebar-menu__subnav-link--view-all {
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.sidebar-menu__subnav .sidebar-menu__subnav-link--all {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted);
}
.sidebar-menu__lang {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.sidebar-menu__lang a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-menu__lang a.active, .sidebar-menu__lang a:hover {
  color: var(--brand);
  font-weight: 900;
}
.sidebar-menu__lang .sep {
  margin: 0 8px;
  color: var(--border);
}

/* Search */
.search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.search-form__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
}
.search-form__input::placeholder { color: var(--muted); }
.search-form__input:focus { outline: none; }
.search-form__btn {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--brand);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.search-form__btn:hover { background: var(--brand-light); color: var(--brand-hover); }

/* ========== Landing Hero ========== */

.landing-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--hero-bg-gradient), url('../imagenes_/fondo-camion.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 24px;
  margin-bottom: 40px;
}
.landing-hero__inner {
  max-width: 800px;
  width: 100%;
}
.landing-hero__logo {
  margin-bottom: 40px;
}
.landing-hero__logo img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}
.landing-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--text);
}
.landing-hero__meta {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.8;
}

/* ========== Hero (home fallback) ========== */
.hero { padding: 40px 0 32px; }
.hero--with-banner { padding-top: 28px; }

.hero__banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  aspect-ratio: 21/9;
  box-shadow: var(--shadow);
}
.hero__banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 48px;
  background: var(--banner-overlay);
}
.hero__banner-overlay .hero__title {
  margin: 0 0 10px;
  color: var(--tile-title);
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero__banner-overlay .hero__sub {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  max-width: 440px;
  line-height: 1.5;
}
.hero__banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text);
}
.hero__sub {
  color: var(--text-soft);
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.6;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.hero__card {
  background: var(--surface);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.hero--with-banner .hero__grid { margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--brand {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}
.btn--brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--surface);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn--ghost:hover {
  background: var(--surface-alt);
  border-color: var(--muted);
  color: var(--text);
}

/* ========== Sections ========== */
.section { padding: 24px 0 48px; }
.section__header {
  margin-bottom: 24px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  font-size: 1.5rem;
  color: var(--text);
}
.section__subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Category blocks (home) */
.categories-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.category-card {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.category-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  background: var(--surface-alt);
}
.category-card span.category-card__image {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.04) 100%);
}
.category-card:nth-child(2) span.category-card__image {
  background: linear-gradient(135deg, rgba(26, 29, 33, 0.08) 0%, rgba(13, 148, 136, 0.06) 100%);
}
.category-card__body { padding: 24px; }
.category-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  font-size: 1.375rem;
  color: var(--text);
}
.category-card__desc {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.category-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-card__link:hover { color: var(--brand-hover); }
.category-card__link::after { content: "→"; }

/* Cards (generic) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cards--half { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  font-size: 1.25rem;
  color: var(--text);
}
.card p { margin: 0; color: var(--text-soft); line-height: 1.55; font-size: 0.9375rem; }

/* Product grid */
.resuBus { margin-top: 16px; }
.gridResuBus {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card-product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s, background 0.25s;
  position: relative;
}
.card-product:hover {
  border-color: var(--brand);
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.25);
  transform: translateY(-4px);
}
.card-product img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-alt);
}
.card-product__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  padding: 0 16px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-product__price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  padding: 0 16px 16px;
}
.card-product__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
}
.badge--new {
  background: rgba(13, 148, 136, 0.16);
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--brand-hover);
}
.badge--top {
  background: rgba(255, 42, 109, 0.12);
  border-color: rgba(255, 42, 109, 0.35);
  color: #d81b60;
}
.badge--sale {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  font-weight: 800;
}

/* Card price (con oferta) */
.card-product__price--sale .card-product__price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
  margin-right: 6px;
  opacity: 0.85;
}
.card-product__price--sale .card-product__price-now {
  color: #ef4444;
  font-weight: 700;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
}
.alert-info { background: var(--brand-light); border-color: rgba(13, 148, 136, 0.25); color: var(--brand-hover); }

/* ========== Cart: free shipping progress ========== */
.cart-free-shipping {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
}
.cart-free-shipping__text {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.9375rem;
}
.cart-free-shipping__bar {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .25);
  overflow: hidden;
}
.cart-free-shipping__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
}

/* ========== Breadcrumbs ========== */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 12px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { margin: 0 8px; opacity: 0.7; }

/* ========== Footer ========== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 24px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px 32px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer__brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.footer__col h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--footer-heading);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  color: var(--footer-text);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }
.footer__copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ========== Legal & contact ========== */
.legal-content { max-width: 720px; margin: 0 auto; padding: 32px 0 48px; }
.legal-content .legal-text { margin-top: 24px; line-height: 1.7; color: var(--text-soft); }
.legal-content .legal-text h2 { font-size: 1.125rem; color: var(--text); margin: 24px 0 10px; font-family: var(--font-head); font-weight: 400; }
.legal-content .legal-text h2:first-child { margin-top: 0; }
.legal-content .legal-text p, .legal-content .legal-text ul { margin: 0 0 14px; }
.legal-content .legal-text a { color: var(--brand); }
.legal-content .legal-text a:hover { text-decoration: underline; }

/* ========== Auth (login / registro) ========== */
.auth-form { margin-top: 24px; max-width: 400px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 0.875rem; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* ========== Shop filters (growshop) ========== */
.shop-filters {
  padding: 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.shop-filters__field {
  min-width: 220px;
}
.shop-filters__field--grow {
  flex: 1;
}
.shop-filters__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
}
.shop-filters__input,
.shop-filters__select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.shop-filters__input::placeholder { color: var(--muted); }
.shop-filters__input:focus,
.shop-filters__select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.shop-filters__select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.shop-filters__submit {
  border-radius: 12px;
}
.shop-per-page {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  margin: -6px 0 14px 0;
}
.shop-per-page__label {
  font-size: .95rem;
  color: var(--text-soft);
}

/* ========== Shop v3 (unified /shop) ========== */
.shop-v3--products { --shop-accent: #0d9488; --shop-accent-soft: rgba(13, 148, 136, 0.12); }
.shop-v3--supply,
.shop-v3--originals { --shop-accent: #0d9488; --shop-accent-soft: rgba(13, 148, 136, 0.12); }
.shop-v3--clothing { --shop-accent: #e879f9; --shop-accent-soft: rgba(232, 121, 249, 0.14); }
.shop-v3--all { --shop-accent: var(--brand); --shop-accent-soft: var(--brand-light); }

.shop-v3__masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}
.shop-v3__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-v3__headline {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}
.shop-v3__lead {
  margin: 0 0 10px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.shop-v3__stat {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.shop-v3__masthead-visual {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--shop-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shop-v3__masthead-visual img { width: 100%; height: 100%; object-fit: cover; }
.shop-v3__masthead-glyph {
  font-size: 2.5rem;
  color: var(--shop-accent);
  line-height: 1;
}

.shop-v3__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.shop-v3__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.shop-v3__tab:hover {
  color: var(--text);
  border-color: var(--shop-accent);
  transform: translateY(-1px);
}
.shop-v3__tab--active {
  color: var(--bg);
  background: var(--shop-accent);
  border-color: var(--shop-accent);
}
.shop-v3__tab-count {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.15);
}
.shop-v3__tab:not(.shop-v3__tab--active) .shop-v3__tab-count {
  background: var(--bg);
  color: var(--muted);
}

.shop-v3__discover { margin-bottom: 32px; }
.shop-v3__discover-title {
  margin: 0 0 16px;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.shop-v3__discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.shop-v3__discover-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.shop-v3__discover-card:hover {
  border-color: var(--shop-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.shop-v3__discover-thumb {
  aspect-ratio: 4/3;
  background: var(--shop-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-v3__discover-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-v3__discover-glyph { font-size: 2rem; color: var(--shop-accent); }
.shop-v3__discover-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.shop-v3__discover-menu {
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.shop-v3__discover-name { font-weight: 700; font-size: 0.95rem; }
.shop-v3__discover-slogan { font-size: 0.8rem; color: var(--text-soft); line-height: 1.35; }
.shop-v3__discover-count { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.shop-v3__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.shop-v3__sidebar {
  padding: 14px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.shop-v3__sidebar-title {
  margin: 0 0 12px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.shop-v3__familia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}
.shop-v3__familia:hover {
  background: var(--shop-accent-soft);
  color: var(--text);
}
.shop-v3__familia--active {
  background: var(--shop-accent-soft);
  color: var(--shop-accent);
  font-weight: 600;
}
.shop-v3__familia-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-v3__familia-name { line-height: 1.25; }
.shop-v3__familia-slogan {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-v3__count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.shop-v3__familia--active .shop-v3__count { color: var(--shop-accent); }

.shop-v3__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.shop-v3__context { margin: 0 0 12px; color: var(--text); font-size: 0.95rem; }
.shop-v3__context-line { margin: 0; }
.shop-v3__context-sub { color: var(--muted); font-weight: 400; }
.shop-v3__context-desc { margin: 8px 0 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.55; max-width: 65ch; }
.shop-v3__results-meta {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.shop-v3__filters { margin-bottom: 18px; }

.shop-v3__empty {
  padding: 48px 24px;
  text-align: center;
}
.shop-v3__empty-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
.shop-v3__empty-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.shop-v3__pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-v3__page-info {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .shop-v3__masthead { grid-template-columns: 1fr; }
  .shop-v3__masthead-visual { display: none; }
  .shop-v3__layout { grid-template-columns: 1fr; }
  .shop-v3__sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .shop-v3__sidebar-title { display: none; }
  .shop-v3__familia {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .shop-v3__familia-slogan { display: none; }
}

.auth-msg { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9375rem; }
.auth-msg--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.auth-msg--success { background: var(--brand-light); border: 1px solid rgba(13, 148, 136, 0.3); color: var(--brand-hover); }

/* ========== Account / orders ========== */
.pedidos-list { list-style: none; margin: 0; padding: 0; }
.pedido-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pedido-item:last-child { border-bottom: 0; }
.pedido-ref { font-weight: 600; color: var(--text); }
.pedido-fecha { font-size: 0.875rem; color: var(--muted); }
.pedido-total { color: var(--brand); margin-left: auto; font-weight: 600; }

/* ========== Reviews ========== */
.rating-summary { margin-bottom: 24px; padding: 0; }
.rating-summary h3 { margin: 0 0 12px; font-family: var(--font-head); font-size: 1.125rem; font-weight: 400; color: var(--text); }
.rating-average { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rating-value { font-size: 1.5rem; font-weight: 600; color: var(--brand); }
.rating-count { font-size: 0.875rem; color: var(--muted); }
.rating-summary p { margin: 0; color: var(--text-soft); font-size: 0.9375rem; }

.star-rating { display: inline-flex; gap: 2px; align-items: center; color: var(--brand); }
.star-rating .star-item { color: var(--brand); font-size: 1rem; }
.star-rating .star-item.empty { color: var(--border); opacity: 0.8; }
.star-rating .star-item.half { opacity: 0.75; }

.review-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.review-form h4 { margin: 0 0 16px; font-family: var(--font-head); font-size: 1.125rem; font-weight: 400; color: var(--text); }
.review-form .form-group { margin-bottom: 18px; }
.review-form .form-label { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: 0.875rem; }
.review-form .form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.review-form .form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.review-form .form-control--textarea { min-height: 120px; resize: vertical; display: block; }
.review-form .form-control::placeholder { color: var(--muted); }

.stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
}
.stars-input input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.stars-input label { cursor: pointer; display: flex; padding: 4px; }
.stars-input .star { font-size: 1.75rem; line-height: 1; color: var(--border); transition: color 0.15s; }
.stars-input label:hover .star, .stars-input label:hover ~ label .star { color: var(--brand); }
.stars-input input:checked ~ label .star { color: var(--brand); }
.stars-input label:focus-within .star { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.review-login-prompt, .review-already-submitted {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9375rem;
}
.review-login-prompt a, .review-already-submitted a { color: var(--brand); }

.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.review-user { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.review-date { font-size: 0.8125rem; color: var(--muted); }
.review-rating { margin-bottom: 10px; }
.review-title { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.review-text { font-size: 0.9375rem; line-height: 1.55; color: var(--text-soft); margin-bottom: 14px; }
.review-voting { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.review-voting .btn-helpful, .review-voting .btn-not-helpful {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8125rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.review-voting .btn-helpful:hover:not(:disabled), .review-voting .btn-not-helpful:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.review-voting .btn-helpful.voted, .review-voting .btn-not-helpful.voted { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.review-voting .btn-helpful:disabled, .review-voting .btn-not-helpful:disabled { opacity: 0.6; cursor: default; }
.review-voting .count { margin-left: 4px; }

/* Product actions (ficha producto) */
.hero__card--image { padding: 0; overflow: hidden; }
.product-gallery { display: flex; flex-direction: column; }
.product-gallery__main { width: 100%; }
.product-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-alt);
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.product-gallery__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--surface-alt);
  transition: border-color 0.2s;
}
.product-gallery__thumb:hover { border-color: var(--muted); }
.product-gallery__thumb--active { border-color: var(--brand); }
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--brand);
}
.product-price-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.product-price__old {
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.8;
  font-weight: 400;
}
.product-price__discount {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 4px;
  line-height: 1;
}
.product-price--sale {
  color: #ef4444 !important;
  font-weight: 700;
}
.product-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-actions__form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.product-favoritos-wrap { margin-top: 16px; margin-bottom: 0; }
.product-actions input[type="number"] {
  width: 80px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}
.card--no-padding { padding: 0; }
.card__inner { padding: 24px; }

/* Cart */
.cart-item { display: flex; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 100px; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--surface-alt); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { color: var(--text); font-size: 0.9375rem; font-weight: 500; }
.cart-item__qty { color: var(--muted); font-size: 0.8125rem; margin-top: 4px; }
.cart-item__total { font-weight: 600; color: var(--brand); }
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.cart-summary__label { color: var(--muted); font-size: 0.9375rem; }
.cart-summary__total { font-family: var(--font-head); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.cart-actions__form { margin: 0; }

/* ========== Panel administrador (estructura tipo intranet) ========== */
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.admin-panel__heading {
  padding: 16px 24px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.admin-panel__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text);
}
.admin-panel__sub { margin: 8px 0 0; font-size: 0.9375rem; color: var(--text-soft); }
.admin-panel__body { padding: 24px; }
.admin-panel__table-wrap { margin-top: 20px; }
.admin-panel__footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* Filtros (formulario tipo intranet) */
.admin-filters { 
  background: var(--surface); 
  padding: 24px; 
  border-radius: var(--radius); 
  border: 1px solid var(--border);
  margin-bottom: 30px; 
}
.admin-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-bottom: 12px;
}
.admin-filters__field {
  min-width: 0;
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}
.admin-filters__field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.admin-filters__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
}
.admin-filters__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-light);
}
.admin-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.admin-filters__actions .btn { flex-shrink: 0; }

/* Paginación */
.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.admin-pagination__info { font-size: 0.875rem; color: var(--muted); }

/* Estado pedido (badge) */
.admin-estado {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--muted);
}
.admin-estado--1 { background: #fef2f2; color: #b91c1c; }
.admin-estado--5 { background: var(--brand-light); color: var(--brand-hover); }
.admin-estado--10 { background: #dcfce7; color: #166534; }

.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.admin-table th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
}
.admin-table__th--id { width: 50px; }
.admin-table__th--fecha { width: 120px; }
.admin-table__th--ref { width: 140px; }
.admin-table__th--importe { width: 90px; }
.admin-table__th--estado { width: 70px; }
.admin-table__th--acciones { width: 100px; text-align: right; }
.admin-table__muted { color: var(--muted); font-size: 0.875rem; }
.admin-table__email { font-size: 0.8125rem; color: var(--muted); }
.admin-table tbody tr:hover { background: var(--surface-alt); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .btn--sm { padding: 6px 12px; font-size: 0.8125rem; }
.btn--sm { padding: 6px 12px; font-size: 0.8125rem; }
.admin-dl { margin: 0; }
.admin-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 12px;
}
.admin-dl dt:first-child { margin-top: 0; }
.admin-dl dd { margin: 4px 0 0; font-size: 0.9375rem; color: var(--text); }

.admin-subnav {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin: -4px 0 16px;
}
.admin-subnav a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.admin-subnav__sep { margin: 0 6px; color: var(--muted); text-decoration: none; }
.admin-subnav__here { color: var(--text); font-weight: 600; }

.admin-alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.admin-alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.admin-alert__list { margin: 0; padding-left: 1.2rem; }

.admin-presupuesto-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 20px;
  margin-bottom: 20px;
  background: var(--surface-alt);
}
.admin-presupuesto-fieldset legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brand-hover);
}

textarea.admin-filters__input {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.admin-presupuesto-lines .admin-filters__input { width: 100%; margin: 0; }
.admin-table__th--num { text-align: right; width: 110px; }
.req { color: #b91c1c; }

@media (max-width: 767px) {
  .admin-filters__field { max-width: 100%; }
  .admin-panel__body { padding: 16px; }
  .admin-table th, .admin-table td { padding: 10px 12px; font-size: 0.875rem; }
  .admin-table .btn { padding: 6px 10px; font-size: 0.75rem; }
  .admin-table__th--id, .admin-table__th--fecha, .admin-table__th--ref, .admin-table__th--importe, .admin-table__th--estado, .admin-table__th--acciones { width: auto; }
}

/* ========== Responsive: tablet ========== */
@media (max-width: 920px) {
  .container { padding: 0 20px; }
  .hero { padding: 32px 0 24px; }
  .hero__banner { aspect-ratio: 16/9; }
  .hero__banner-overlay { padding: 28px 24px; background: linear-gradient(180deg, rgba(26,29,33,0.85) 0%, rgba(26,29,33,0.5) 100%); }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 20px 0 36px; }
  .categories-block { grid-template-columns: 1fr; gap: 20px; }
  .cards, .cards--half { grid-template-columns: 1fr; }
  .gridResuBus { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer__inner { grid-template-columns: 1fr 1fr; padding-left: 20px; padding-right: 20px; }
}

/* ========== Responsive: mobile ========== */
@media (max-width: 1250px) {
  .topbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 12px 0;
    gap: 8px;
    max-width: 100%;
  }
  .header-left {
    flex: 0 0 auto;
    margin-right: 8px;
  }
  .topbar__inner > .logo {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .topbar__inner > .nav-quick {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  .topbar__inner .search-form {
    max-width: none;
    margin: 6px 8px;
    min-width: 0;
    flex: 1;
  }
  .search-form__input {
    padding: 10px 12px;
    font-size: 16px;
    min-width: 0;
  }
  .search-form__btn {
    padding: 10px 12px;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
  .nav-toggle { 
    display: flex; 
    flex-shrink: 0; 
    margin: 4px 0;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
  }
  .topbar--open .nav { display: flex; }
  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav .badgeC { margin-left: auto; }
  .logo { min-width: 0; }
  .logo__img { max-width: 140px; height: 40px; object-fit: contain; }
  .logo__name { font-size: 1.15rem; }
  
  .topbar__inner > .nav-quick {
    gap: 4px;
    font-size: 0.75rem;
  }
  .topbar__inner > .nav-quick a {
    font-size: 0.75rem;
  }
  
  .nav__sep--desktop {
    display: none !important;
  }
  .nav .lang-switcher {
    display: flex !important;
    padding: 14px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 767px) {

  .container {
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .landing-hero {
    min-height: 100vh; /* Ocupa toda la pantalla en móvil para máximo impacto */
    background: radial-gradient(circle at center, rgba(26, 29, 33, 0.9) 0%, #0f1115 100%), url('../imagenes_/fondo-camion.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    margin-bottom: 0;
  }
  .landing-hero__logo img {
    width: 120px;
  }
  .landing-hero__title {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
  }
  .landing-hero__meta {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }
  .hero { padding: 20px 0 16px; }
  .hero__card { padding: 20px; overflow: hidden; }
  .hero__banner { aspect-ratio: 4/3; border-radius: var(--radius); }
  .hero__banner-overlay { padding: 20px 16px; }
  .hero__banner-overlay .hero__title { font-size: 1.375rem; line-height: 1.25; }
  .hero__banner-overlay .hero__sub { font-size: 0.9375rem; margin-bottom: 18px; }
  .hero__banner-actions .btn { min-height: 48px; padding: 14px 18px; -webkit-tap-highlight-color: transparent; }
  .categories-block { gap: 16px; }
  .category-card__body { padding: 18px 16px; }
  .category-card__title { font-size: 1.125rem; }
  .category-card__desc { font-size: 0.875rem; }
  .section { padding: 16px 0 32px; }
  .section__header { margin-bottom: 20px; padding: 0 4px; }
  .section__title { font-size: 1.25rem; }
  .section__subtitle { font-size: 0.9375rem; }
  .gridResuBus { grid-template-columns: 1fr; gap: 16px; }
  .card-product__title, .card-product__price { padding-left: 14px; padding-right: 14px; }
  .card-product__price { padding-bottom: 14px; }
  .card { padding: 18px 16px; }
  .btn {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 0.9375rem;
    -webkit-tap-highlight-color: transparent;
  }
  .form-group input,
  .review-form .form-control {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 14px;
  }
  .review-form .form-control--textarea { min-height: 120px; }
  .stars-input .star { font-size: 1.5rem; }
  .stars-input label { padding: 8px; min-height: 44px; display: flex; align-items: center; }
  .review-item { padding: 16px; }
  .review-voting .btn-helpful,
  .review-voting .btn-not-helpful {
    min-height: 44px;
    padding: 10px 14px;
    -webkit-tap-highlight-color: transparent;
  }
  .breadcrumb {
    font-size: 0.8125rem;
    padding-top: 8px;
    margin-bottom: 12px;
    overflow-wrap: break-word;
  }
  .breadcrumb__sep { margin: 0 6px; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .footer {
    padding: 36px 0 20px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .footer__links a { padding: 4px 0; min-height: 44px; display: flex; align-items: center; }
  .legal-content { padding: 24px 0 40px; }
  .auth-form { max-width: 100%; }
  .pedido-item {
    padding: 12px 0;
    gap: 8px;
    align-items: flex-start;
  }
  .pedido-item span { min-width: 0; }
  .pedido-total { flex-basis: 100%; margin-left: 0; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
  .product-price { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .logo__img { max-width: 120px; height: 36px; }
  .hero__banner-overlay .hero__title { font-size: 1.25rem; }
  .hero__banner-actions { flex-direction: column; width: 100%; gap: 10px; }
  .hero__banner-actions .btn { width: 100%; justify-content: center; }
  .hero__card { padding: 16px; }
  .category-card__body { padding: 16px; }
  .section__title { font-size: 1.125rem; }
  .product-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .product-actions__form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-actions .btn { width: 100%; justify-content: center; }
  .product-actions input[type="number"] { width: 100%; max-width: none; box-sizing: border-box; }
  .product-favoritos-wrap .btn { width: 100%; justify-content: center; }
  .product-price { font-size: 1.375rem; }
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0;
    border-bottom-width: 2px;
  }
  .cart-item img {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    align-self: center;
  }
  .cart-item__info { order: 2; }
  .cart-item__total {
    order: 3;
    font-size: 1.125rem;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .cart-summary { margin-top: 20px; padding-top: 20px; }
  .cart-summary__total { font-size: 1.375rem; }
  .cart-actions { flex-direction: column; margin-top: 24px; gap: 10px; }
  .cart-actions .btn,
  .cart-actions__form .btn { width: 100%; justify-content: center; }
  .card--no-padding .card__inner { padding: 16px; }
}

/* ========== Toasts ========== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  background: var(--surface);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
}
.toast--success { border-left-color: #10b981; }
.toast--error { border-left-color: #ef4444; }
.toast--warning { border-left-color: #f59e0b; }
.toast--info { border-left-color: #3b82f6; }

.toast-content {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.toast-close:hover {
  background: var(--surface-alt);
  color: var(--text);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(20%) scale(0.9); }
}
.toast.hiding {
  animation: toast-out 0.3s ease forwards;
}

@media (max-width: 767px) {
  .toast-container {
    top: auto;
    bottom: 24px;
    left: 16px;
    right: 16px;
  }
  .toast {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================================
   PHASE 2: EDITORIAL CORE DESIGN SYSTEM
   ========================================================================== */

/* --- Verticals Strip --- */
.verticals-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border, #2a2e35);
  border: 1px solid var(--border, #2a2e35);
  margin: 48px 0;
}
.vertical-tile {
  background: var(--tile-bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: var(--text-soft);
}
.vertical-tile:hover {
  background: var(--tile-hover-bg);
  color: var(--text);
}
.vertical-tile__header {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
}
.vertical-tile__title {
  font-family: var(--font-head, sans-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--tile-title);
  margin: 0 0 16px;
  line-height: 1.2;
}
.vertical-tile__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.vertical-tile__cta {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: transform 0.2s ease;
}
.vertical-tile:hover .vertical-tile__cta {
  transform: translateX(6px);
  color: var(--text);
}

/* --- Manifesto Strip --- */
.manifesto-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
  margin: 64px 0;
}
.manifesto-strip__inner {
  max-width: 800px;
  margin: 0 auto;
}
.manifesto-strip__title {
  font-family: var(--font-head, sans-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.manifesto-strip__title strong {
  font-weight: 700;
  color: var(--brand);
}
.manifesto-strip__text {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
}

/* --- Editorial Grid (Latest from Lab) --- */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 32px 0 64px;
}
.editorial-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-soft);
  transition: transform 0.3s ease;
}
.editorial-card:hover {
  transform: translateY(-4px);
}
.editorial-card__image-wrapper {
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.editorial-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.editorial-card:hover .editorial-card__image-wrapper img {
  opacity: 1;
  transform: scale(1.03);
}
.editorial-card__metadata {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.editorial-card__title {
  font-family: var(--font-head, sans-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.editorial-card:hover .editorial-card__title {
  color: var(--brand);
}

/* --- Three Doors Grid --- */
.three-doors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 64px;
}
.door-card {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-decoration: none;
}
.door-card:hover {
  border-color: var(--brand);
  background: var(--tile-hover-bg);
}
.door-card__header {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.door-card__title {
  font-family: var(--font-head, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tile-title);
  margin: 0 0 16px;
}
.door-card__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.door-card__cta {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* --- Trust / Scroll Strip --- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin: 64px 0;
  background: var(--bg);
  overflow: hidden;
}
.trust-strip__caption {
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.trust-strip__scroll-container {
  display: flex;
  width: 200%;
  overflow: hidden;
  position: relative;
}
.trust-strip__track {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  animation: logo-scroll 25s linear infinite;
  white-space: nowrap;
}
.trust-strip__track span {
  font-family: var(--font-display, sans-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.25;
  text-transform: uppercase;
  padding: 0 20px;
}
@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Newsletter Block --- */
.newsletter-block {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  padding: 64px 48px;
  margin: 64px 0;
}
.newsletter-block__headline {
  font-family: var(--font-head, sans-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--tile-title);
  margin: 0 0 32px;
  text-align: center;
}
.newsletter-block__form {
  max-width: 640px;
  margin: 0 auto;
}
.newsletter-block__row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.newsletter-block__input {
  flex-grow: 1;
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
  outline: none;
}
.newsletter-block__input:focus {
  border-color: var(--brand);
}
.newsletter-block__btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 14px 28px;
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.newsletter-block__btn:hover {
  background: var(--brand);
  color: var(--bg);
}
.newsletter-block__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  color: var(--text-soft, #9ca3af);
  cursor: pointer;
}
.newsletter-block__checkbox-label input {
  accent-color: var(--brand);
}
.newsletter-block__microcopy {
  margin-top: 24px;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* --- Manifesto / Origins (About Page) --- */
.about-hero {
  padding: 80px 0 48px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.about-hero__eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.about-hero__title {
  font-family: var(--font-head, sans-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 32px;
  line-height: 1.1;
}
.about-hero__opener {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.about-origin {
  max-width: 720px;
  margin: 64px auto;
  line-height: 1.8;
  font-size: 1.0625rem;
  color: var(--text-soft);
}
.about-origin h2 {
  font-family: var(--font-head, sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.vertical-zigzag {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 96px 0;
}
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.zigzag-row:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}
.zigzag-row:nth-child(even) .zigzag-content {
  grid-column: 2;
}
.zigzag-row:nth-child(even) .zigzag-media {
  grid-column: 1;
  grid-row: 1;
}
.zigzag-content h3 {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.zigzag-content h4 {
  font-family: var(--font-head, sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
}
.zigzag-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}
.zigzag-media {
  aspect-ratio: 16/10;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zigzag-media span {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  color: var(--muted);
}

.principles-section {
  background: var(--tile-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  margin: 80px 0;
}
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 48px auto 0;
}
.principle-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
}
.principle-number {
  font-family: var(--font-display, sans-serif);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
  opacity: 0.4;
}
.principle-content h3 {
  font-family: var(--font-head, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.principle-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

.dual-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 64px 0 96px;
}

/* --- FAQ Layout --- */
.faq-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  margin: 48px 0 80px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 100px;
}
.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-nav-link {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}
.faq-nav-link:hover,
.faq-nav-link.active {
  color: var(--brand);
}
.faq-block {
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}
.faq-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.faq-block__title {
  font-family: var(--font-head, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--tile-bg);
  padding: 24px 32px;
}
.faq-item__q {
  font-family: var(--font-head, sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tile-title);
  margin: 0 0 12px;
}
.faq-item__a {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft, #9ca3af);
  margin: 0;
}
.faq-item__a a {
  color: var(--brand);
  text-decoration: underline;
}

/* --- Responsiveness Overrides --- */
@media (max-width: 1024px) {
  .verticals-strip { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .three-doors-grid { grid-template-columns: 1fr; }
  .dual-doors { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-sidebar { position: static; margin-bottom: 32px; }
  .faq-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .zigzag-row, .zigzag-row:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .zigzag-row:nth-child(even) .zigzag-content { grid-column: auto; }
  .zigzag-row:nth-child(even) .zigzag-media { grid-column: auto; grid-row: auto; }
}

@media (max-width: 767px) {
  .verticals-strip { grid-template-columns: 1fr; }
  .vertical-tile { min-height: 300px; padding: 32px 24px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .newsletter-block { padding: 40px 24px; }
  .newsletter-block__row { flex-direction: column; }
  .newsletter-block__btn { width: 100%; }
}

/* ==========================================================================
   Ultra-Premium 2-Column Desktop Navigation & Mobile Toggle System
   ========================================================================== */
@media (min-width: 1251px) {
  .nav {
    display: flex !important;
    gap: 2px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin-left: auto !important;
  }
  .nav a {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.785rem !important; /* Premium ultra-compact technical look */
    padding: 6px 6px !important;
    letter-spacing: 0.05em !important;
    color: var(--text-soft, #9ca3af) !important;
    transition: color 0.2s ease, background 0.2s ease !important;
  }
  .nav a:hover {
    color: var(--brand) !important;
    background: transparent !important;
  }
  .nav__sep--desktop {
    display: inline !important;
    margin: 0 4px !important;
    color: var(--border, #2a2e35) !important;
    opacity: 0.5 !important;
  }
  .lang-switcher a {
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.785rem !important;
    padding: 2px 4px !important;
  }
}

@media (max-width: 1250px) {
  .nav-toggle {
    display: flex !important;
  }
  .nav {
    display: none !important; /* Locked closed state */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 12px 0 24px !important;
    background: var(--surface, #16191e) !important;
    border-bottom: 1px solid var(--border, #2a2e35) !important;
    box-shadow: var(--shadow-lg) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
  }
  .topbar--open .nav {
    display: flex !important; /* Explicit open state */
  }
  .nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border, #2a2e35) !important;
    font-size: 0.9375rem !important;
    min-height: 48px !important;
    color: var(--text) !important;
  }
  .nav a:last-child {
    border-bottom: 0 !important;
  }
  .nav__sep--desktop {
    display: none !important;
  }
  .lang-switcher {
    display: flex !important;
    padding: 14px 16px !important;
    align-items: center !important;
    border-bottom: 1px solid var(--border, #2a2e35) !important;
  }
}



.chip-subcat {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 12px;
}
