/* ============================================
   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;

  /* 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 */
}

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

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(rgba(15, 17, 21, 0.94), rgba(15, 17, 21, 0.94)), url('../imagenes_/fondo-camion.jpg');
  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; }

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: rgba(15, 17, 21, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: #fff;
  background: transparent;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: nowrap;
}
.topbar__inner .logo { flex-shrink: 0; }
.topbar__inner .search-form { flex: 1; min-width: 0; max-width: 400px; margin: 0 20px; }
.topbar__inner .nav { flex-shrink: 0; margin-left: auto; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.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 {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface-alt); }
.nav 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: none;
  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); }

/* 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: #fff;
  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: radial-gradient(circle at center, rgba(15, 17, 21, 0.6) 0%, rgba(15, 17, 21, 0.95) 100%), 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: #fff;
}
.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: linear-gradient(90deg, rgba(26, 29, 33, 0.88) 0%, rgba(26, 29, 33, 0.4) 65%, transparent 100%);
}
.hero__banner-overlay .hero__title {
  margin: 0 0 10px;
  color: #fff;
  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);
  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);
  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;
}
.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);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s, transform 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;
}

/* 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: #1a1d21;
  color: #9ca3af;
  padding: 48px 0 24px;
  margin-top: 48px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  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: #fff;
  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: #d1d5db;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  color: #9ca3af;
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }
.footer__copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #6b7280;
}

/* ========== 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 {
  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 {
  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: #9ca3af;
}
.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-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-alt);
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--brand);
}
.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: 767px) {

  .container {
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .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: 10px;
    max-width: 100%;
  }
  .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; }
  .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; }
  .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: rgba(26, 29, 33, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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%;
  }
}
