/* ==========================================================================
   Torquen · Sistema de diseño
   Basado en _assets/Torquen/SistemaDiseno.dc.html
   ========================================================================== */

:root {
  /* Color */
  --yellow: #FDCF05;
  --yellow-light: #FFE14D;
  --ink: #14110F;          /* negro / fondo */
  --ink-2: #1C1A17;        /* texto principal */
  --surface-dark: #1F1B18; /* superficie oscura */
  --surface-dark-2: #322C27;
  --white: #FFFFFF;
  --surface: #F5F4F2;
  --surface-2: #FAF9F7;
  --border: #E7E3DC;
  --border-2: #E0DCD4;
  --line: #EDEAE4;
  --muted: #9A958D;        /* texto tenue */
  --muted-2: #8A857D;
  --text-2: #6E6962;       /* texto secundario */
  --text-3: #5A554E;
  --on-dark: #C9C4BC;
  --on-dark-2: #A8A39B;
  --danger: #C23B22;

  /* Tipografía */
  --font: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Forma */
  --r-btn: 4px;
  --r-card: 8px;
  --r-pill: 999px;
  --shadow-hover: 0 22px 44px -20px rgba(20, 17, 15, .3);
  --shadow-card: 0 18px 40px -12px rgba(20, 17, 15, .22);

  /* Layout */
  --container: 1280px;
  --gutter: 32px;
  --header-h: 78px;
}

/* Reset --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Layout -------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* Solo vertical: usar padding-top/bottom para no anular el padding horizontal
   de .container cuando ambas clases van en el mismo elemento. */
.section { padding-top: 100px; padding-bottom: 100px; }
.section--sm { padding-top: 80px; padding-bottom: 80px; }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-surface { background: var(--surface); }
.bg-yellow { background: var(--yellow); }

@media (max-width: 560px) {
  :root { --gutter: 22px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--sm { padding-top: 56px; padding-bottom: 56px; }
}

/* Eyebrow ------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--yellow);
  display: inline-block;
  flex: none;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--center { justify-content: center; }

/* Tipografía ---------------------------------------------------------------- */
.h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; }
.h3 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.015em; }
.lead { font-size: 17px; line-height: 1.62; color: var(--text-2); }
.lead--on-dark { color: var(--on-dark); }

/* Botones ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  padding: 15px 28px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .22s ease;
  line-height: 1;
}
.btn svg { flex: none; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-light); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); font-weight: 700; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid #D9D5CD; font-weight: 700; }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); font-weight: 700; }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--lg { font-size: 16px; padding: 18px 34px; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.link-arrow--yellow { color: var(--yellow); }

/* Etiquetas ----------------------------------------------------------------- */
.tag {
  font-size: 13.5px; font-weight: 600; color: #3A352F;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: var(--r-pill);
}
.tag--sm { font-size: 11.5px; padding: 5px 10px; }
.badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  background: var(--yellow); padding: 5px 11px; border-radius: 3px;
}

/* Campos -------------------------------------------------------------------- */
.field { display: block; }
.label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 8px;
}
.input, .textarea {
  width: 100%; padding: 0 16px; height: 50px;
  border: 1.5px solid var(--border-2); border-radius: 6px;
  font-family: var(--font); font-size: 15px; color: var(--ink-2);
  outline: none; background: var(--white); transition: border-color .18s ease;
}
.textarea { height: auto; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--yellow); }
.field-error { display: block; font-size: 13px; color: var(--danger); margin-top: 6px; font-weight: 600; }

/* ==========================================================================
   Header / Navegación
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.site-header__bar {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; letter-spacing: .01em;
  background: none; border: none; cursor: pointer; font-family: var(--font);
}
.nav__link[aria-current="page"]::after,
.nav__item--active > .nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 3px; background: var(--yellow);
}
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; box-shadow: var(--shadow-card);
  padding: 8px; display: none; flex-direction: column; z-index: 50;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { display: flex; }
.nav__menu a {
  padding: 11px 14px; border-radius: 3px; font-size: 14.5px;
  font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.nav__menu a:hover { background: var(--surface); }
.nav__menu a.is-soon { color: var(--muted); font-weight: 500; cursor: default; }
.nav__icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 6px; border-radius: 50%;
  background: var(--white); border: 1.5px solid #D9D5CD;
  color: var(--ink); text-decoration: none; transition: all .2s ease; position: relative;
}
.nav__icon:hover { border-color: var(--ink); }
.nav__cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center;
}
.nav__cart-count.is-visible { display: flex; }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--white); cursor: pointer; color: var(--ink-2);
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--white); padding: 14px 24px 26px; }
.mobile-nav.is-open { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a { padding: 14px 8px; font-size: 17px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid #F0EDE7; }
.mobile-nav__group { padding: 14px 8px 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mobile-nav a.is-sub { padding: 11px 18px; font-size: 16px; font-weight: 600; border-bottom: none; }
.mobile-nav a.is-soon { color: var(--muted); font-weight: 500; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: flex; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--white); }
.site-footer__grid {
  max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer__brand { max-width: 300px; }
.site-footer__brand img { height: 38px; width: auto; margin-bottom: 20px; }
.site-footer__brand p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.65; color: var(--on-dark-2); }
.site-footer h4 { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.site-footer__col { display: flex; flex-direction: column; gap: 11px; }
.site-footer__col a { font-size: 14.5px; color: var(--on-dark-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__col a.is-mail { color: var(--yellow); font-weight: 600; }
.site-footer__rexroth { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.site-footer__rexroth::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--yellow); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom-in { max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__bottom span { font-size: 13px; color: #7C776F; }
.site-footer__bottom a { color: var(--on-dark-2); text-decoration: none; font-weight: 600; }
.site-footer__bottom a:hover { color: var(--yellow); }

@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Hero (interior, panel + media)
   ========================================================================== */
.page-hero { display: flex; min-height: 380px; align-items: stretch; background: var(--ink); }
.page-hero__panel { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; padding: 64px; color: var(--white); }
.page-hero__media { flex: 1; position: relative; background-size: cover; background-position: center; min-height: 380px; }
.page-hero__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(20,17,15,.2) 28%, rgba(20,17,15,0) 60%); }
.page-hero__media::after { content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--yellow); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--on-dark-2); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumb .sep { color: var(--on-dark-2); }
.breadcrumb .cur { color: var(--white); }
.breadcrumb .acc { color: var(--yellow); }
.page-hero__panel .lead { margin: 0; max-width: 480px; }
/* Hero de catálogo: imagen enmarcada en proporción 3:2, centrada (cover). */
.page-hero__media--3-2 { flex: 0 0 50%; align-self: center; aspect-ratio: 3 / 2; min-height: 0; }

@media (max-width: 900px) {
  .page-hero { flex-direction: column; }
  .page-hero__panel { flex: none; width: 100%; padding: 48px 28px; }
  .page-hero__media { width: 100%; min-height: 260px; }
  /* En móvil la imagen ocupa el ancho completo manteniendo el 3:2. */
  .page-hero__media--3-2 { align-self: stretch; min-height: 0; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--yellow); }
.cta-band__in { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.cta-band p { margin: 0; font-size: 16.5px; line-height: 1.55; color: #3A332A; font-weight: 500; }
.cta-band .btn { flex: none; }

/* ==========================================================================
   Catálogo (componente)
   ========================================================================== */
.catalog__searchbar {
  position: sticky; top: var(--header-h); z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border); box-shadow: 0 6px 20px -14px rgba(20,17,15,.3);
}
.catalog__searchbar-in { max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 240px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.search input {
  width: 100%; height: 52px; padding: 0 44px 0 46px; border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill); font-family: var(--font); font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); outline: none; background: var(--surface-2); transition: all .18s ease;
}
.search input:focus { border-color: var(--yellow); background: var(--white); }
.search__clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--line);
  color: var(--text-2); cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 15px;
}
.search__clear.is-visible { display: flex; }
.filter-toggle {
  display: none; /* solo visible en móvil (ver media query) */
  align-items: center; gap: 8px; height: 52px; padding: 0 20px;
  border: 1.5px solid var(--border-2); border-radius: var(--r-pill); background: var(--white);
  font-family: var(--font); font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.filter-toggle__count { background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* Layout catálogo: filtros + grid */
.catalog__body { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 96px; }
.catalog__layout { display: grid; grid-template-columns: 248px 1fr; gap: 40px; align-items: start; }
.catalog--no-aside .catalog__layout { grid-template-columns: 1fr; }

.filters { position: sticky; top: calc(var(--header-h) + 88px); }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters__title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.filters__clear { background: none; border: none; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; font-family: var(--font); }
.filter-group { border-top: 1px solid var(--line); padding: 18px 0; }
.filter-group__label { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; color: var(--text-2); }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--yellow); cursor: pointer; flex: none; }
.filter-opt:hover { color: var(--ink); }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--muted); }

.catalog__results-info { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.catalog__results-info strong { color: var(--ink); font-weight: 800; }

.catalog__group { margin-bottom: 56px; }
.catalog__group:last-child { margin-bottom: 0; }
.catalog__group-head { margin-bottom: 28px; max-width: 760px; }
.catalog__group-head h2 { margin: 0 0 10px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.015em; }
.catalog__group-head p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* Vista de catálogo: 3 columnas en escritorio, responsivo desde ahí */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalog--no-aside .product-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* Tarjeta de producto */
.product-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: 7px; overflow: hidden;
  transition: all .25s ease;
}
.product-card:hover { border-color: var(--yellow); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card__media {
  position: relative; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--surface), #E7E4DD);
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media .placeholder { width: 56%; height: auto; opacity: .9; }
.product-card__sub { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 4px 9px; border-radius: 3px; }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { margin: 0 0 2px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; word-break: break-word; }
.product-card__name a { color: inherit; text-decoration: none; }
.product-card__name a:hover { color: var(--text-2); }
.product-card__desc { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--text-2); flex: 1; word-break: break-word; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-card__actions { display: flex; gap: 8px; align-items: center; }
.product-card__detail { flex: 1; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font); }
.btn-quote {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--ink); color: var(--white); font-family: var(--font);
  font-size: 13px; font-weight: 700; padding: 11px 16px; border: none;
  border-radius: var(--r-btn); cursor: pointer; transition: all .2s ease; flex: 1; white-space: nowrap;
}
.btn-quote:hover { background: #000; }
.btn-quote.is-added { background: var(--yellow); color: var(--ink); }

/* Sin resultados */
.catalog__empty { text-align: center; padding: 80px 20px; grid-column: 1 / -1; }
.catalog__empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.catalog__empty h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.catalog__empty p { margin: 0 0 22px; font-size: 15.5px; color: var(--text-2); }

/* Botón de cerrar filtros (oculto en escritorio; visible en el drawer móvil) */
.filters__mobile-close { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-size: 20px; }

@media (max-width: 900px) {
  .catalog__layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; z-index: 400; background: var(--white);
    padding: 24px; overflow-y: auto; display: none;
  }
  .filters.is-open { display: block; }
  .filters__head {
    position: sticky; top: -24px; background: var(--white); z-index: 1;
    margin: -24px -24px 0; padding: 24px 24px 14px; border-bottom: 1px solid var(--line);
  }
  .filters__mobile-close { display: flex; }
  .filter-toggle { display: inline-flex; }
}

/* ==========================================================================
   Especificaciones (ficha de producto)
   ========================================================================== */
.spec { margin-bottom: 18px; }
.spec__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.spec__value { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.spec__tags { display: flex; flex-wrap: wrap; gap: 9px; }

/* ==========================================================================
   Carrito / Solicitud de cotización
   ========================================================================== */
.cart-drawer-overlay { position: fixed; inset: 0; z-index: 450; background: rgba(20,17,15,.5); display: none; }
.cart-drawer-overlay.is-open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; z-index: 460;
  background: var(--white); box-shadow: -20px 0 60px -20px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.cart-drawer__head h3 { font-size: 19px; font-weight: 800; }
.cart-drawer__close { width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 18px; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item__media { flex: none; width: 60px; height: 60px; border-radius: 6px; background: linear-gradient(135deg, var(--surface), #E7E4DD); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 14.5px; font-weight: 800; margin: 0 0 2px; word-break: break-word; }
.cart-item__desc { font-size: 12.5px; color: var(--text-2); margin: 0; word-break: break-word; }
.cart-item__remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 0; text-decoration: underline; font-family: var(--font); }
.cart-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.cart-empty svg { margin: 0 auto 16px; }

/* Página de solicitud */
.quote-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.quote-row { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.quote-row:last-child { border-bottom: none; }
.quote-row__media { flex: none; width: 56px; height: 56px; border-radius: 6px; background: linear-gradient(135deg, var(--surface), #E7E4DD); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.quote-row__info { flex: 1; min-width: 0; }
.quote-row__info h4 { font-size: 15px; font-weight: 800; margin: 0 0 2px; }
.quote-row__info p { font-size: 13px; color: var(--text-2); margin: 0; }

/* Alertas / feedback */
.alert { border-radius: var(--r-card); padding: 16px 20px; font-size: 14.5px; font-weight: 600; }
.alert--ok { background: #EAF7EE; color: #1E7A3D; border: 1px solid #BFE5CC; }
.alert--error { background: #FBEDEA; color: var(--danger); border: 1px solid #F3CFC7; }
.is-hidden { display: none !important; }
/* El [hidden] del navegador es display:none, pero cualquier regla de clase con
   display propio (p. ej. .btn { display: inline-flex }) le gana por
   especificidad. Esto lo restablece para todo el sitio. */
[hidden] { display: none !important; }

/* Confirmación enviada */
.sent-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 48px 40px; text-align: center; }
.sent-box__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.sent-box h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.sent-box p { margin: 0 0 26px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* ==========================================================================
   Página de detalle de producto (/producto/<id>)
   ========================================================================== */
/* Miga de pan sobre fondo claro (la base .breadcrumb es para fondo oscuro). */
.breadcrumb--dark { color: var(--text-2); margin-bottom: 0; }
.breadcrumb--dark a { color: var(--text-2); }
.breadcrumb--dark a:hover { color: var(--ink); }
.breadcrumb--dark .sep { color: var(--border-2); }
.breadcrumb--dark .cur { color: var(--ink); }

.product-detail { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 48px; align-items: start; }
.product-detail__media { aspect-ratio: 1/1; border-radius: 10px; background: linear-gradient(135deg, var(--surface), #E7E4DD); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-detail__media img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.product-detail__name { margin: 6px 0 8px; word-break: break-word; }
.product-detail__model { font-size: 16px; font-weight: 600; color: var(--text-2); margin: 0 0 26px; word-break: break-word; }
.product-detail__actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.section--top-0 { padding-top: 0; }
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-detail__media { max-width: 360px; }
}

/* Utilidades varias */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Intro de Sectores (home): texto + sello de certificación */
.sectores-intro { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.sectores-intro__text { max-width: 620px; }
.sectores-badge { flex: 0 0 auto; width: 190px; height: auto; }
@media (max-width: 900px) {
  .sectores-intro { flex-direction: column; align-items: flex-start; gap: 28px; }
  .sectores-badge { width: 130px; align-self: center; }
}

/* Hover de tarjetas de sector / categoría (home) */
.sector-card, .prod-cat-card { transition: all .3s ease; }
.sector-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(20,17,15,.4); }
.prod-cat-card:hover { border-color: var(--yellow) !important; transform: translateY(-5px); }

/* Paneles duales de sector (Minería) */
@media (max-width: 760px) {
  .mineria-duo { grid-template-columns: 1fr !important; }
  .mineria-duo > div { min-height: 420px !important; }
}

/* Grid de contacto y cotización */
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .quote-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ==========================================================================
   Tarjetas de tipo de equipo (página de sector, p. ej. cielo abierto)
   ========================================================================== */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.equip-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.equip-card__media {
  width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.equip-card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.equip-card__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.015em; margin-bottom: 14px; }
.equip-card__desc { font-size: 15.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 26px; max-width: 360px; }
.equip-card__btn { margin-top: auto; border-radius: var(--r-pill); padding: 15px 34px; }
@media (max-width: 860px) { .equip-grid { grid-template-columns: 1fr; gap: 56px; max-width: 460px; margin: 0 auto; } }

/* ==========================================================================
   Carrusel de productos (Inicio)
   ========================================================================== */
.carousel { position: relative; }
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.carousel__head .h2 { margin: 0; }
.carousel__nav { display: flex; gap: 10px; flex: none; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-2);
  background: var(--white); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.carousel__btn:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__btn[disabled]:hover { border-color: var(--border-2); background: var(--white); color: var(--ink); }
.carousel__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 2px 14px; margin: -6px -2px 0;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .product-card { flex: 0 0 280px; scroll-snap-align: start; }
.carousel__foot { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 560px) {
  .carousel__track > .product-card { flex-basis: 78%; }
  .carousel__nav { display: none; }
}
