/* ============================================================
 * Aditivos para Fluidos de Perforación | Market Alliance
 * Sistema de diseño — identidad ALLIANCE, tono industrial B2B
 * ============================================================ */

:root {
  --color-navy:        #0b2038;
  --color-navy-2:      #133a5e;
  --color-blue:        #1c5d99;
  --color-blue-light:  #3f8fd1;
  --color-accent:      #d99b2b;
  --color-accent-2:    #b97e1a;
  --color-bg:          #f5f7fa;
  --color-surface:     #ffffff;
  --color-border:      #e1e6ec;
  --color-text:        #1c2733;
  --color-text-muted:  #56657a;
  --color-success:     #1f8a55;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(11,32,56,0.08);
  --shadow-md: 0 4px 16px rgba(11,32,56,0.10);
  --shadow-lg: 0 12px 32px rgba(11,32,56,0.16);
  --max-width: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-blue-light); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--color-navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 10px 16px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  min-width: 0;
}
.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
/* Slot de logo: acepta <img> real o, en su ausencia, el texto de respaldo
   .brand-name. El mismo marcado permite sustituir el archivo sin rediseñar. */
.brand-logo-slot {
  display: flex;
  align-items: center;
  height: 34px;
}
.brand-logo-slot img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  /* El archivo de origen tiene fondo negro sólido; screen sobre el header
     navy hace transparente el negro y conserva el trazo blanco del logo. */
  mix-blend-mode: screen;
}
.brand-mark .brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #fff;
}
/* "Market Alliance" — identidad textual real (la marca no tiene isotipo
   propio; en el sitio corporativo aparece como texto dentro del
   ecosistema ALLIANCE). Debe leerse con claridad junto al wordmark. */
.brand-mark .brand-market {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}
.brand-mark .brand-sub {
  font-size: 0.66rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
/* Enlace visible "Ir a Market Alliance": visible en TODOS los anchos,
   incluido móvil, como botón discreto bajo el header en pantallas
   estrechas para no competir con el wordmark por espacio horizontal. */
.market-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #b9c8db;
  border: 1px solid #2b4a68;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.market-tag:hover { color: #fff; border-color: var(--color-accent); }

@media (max-width: 640px) {
  .brand-mark .brand-market { font-size: 0.88rem; }
  .brand-mark .brand-sub { font-size: 0.6rem; }
  .brand-divider { height: 26px; }
  .market-tag { font-size: 0.68rem; padding: 5px 9px; }
}

/* Slots provisionales de logo de marca sectorial (solo nombre + enlace
   mientras no exista archivo verificado). Mismo contenedor .brand-logo-slot
   se reutiliza para no rediseñar cuando llegue el archivo real. */
.provisional-logo-link {
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}
.provisional-logo-note {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: #cfdcec;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-cta {
  background: var(--color-accent);
  color: var(--color-navy) !important;
  padding: 8px 14px !important;
}
.nav-cta:hover { background: var(--color-accent-2); }

.lang-toggle {
  background: transparent;
  border: 1px solid #3a5975;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-toggle:hover { border-color: var(--color-accent); }

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 4px 8px;
}

@media (max-width: 1024px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-navy-2);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    display: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle-btn { display: block; }
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 55%, var(--color-blue) 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,155,43,0.18), transparent 70%);
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 720px;
  margin-bottom: 16px;
}
.hero p.lead {
  color: #cfdcec;
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  border: 2px solid transparent;
  transition: all .15s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-navy); }
.btn-primary:hover { background: var(--color-accent-2); color: var(--color-navy); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-secondary { background: var(--color-blue); color: #fff; }
.btn-secondary:hover { background: var(--color-blue-light); color: #fff; }
.btn-ghost { background: var(--color-surface); color: var(--color-navy); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-blue); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger-outline { border-color: #c0392b; color: #c0392b; background: transparent; }
.btn-danger-outline:hover { background: #c0392b; color: #fff; }

/* ============ BÚSQUEDA HERO ============ */
.hero-search {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 620px;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  outline: none;
  min-width: 0;
}
.hero-search button {
  background: var(--color-navy);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--color-blue); }

/* ============ SECCIONES GENERALES ============ */
.section { padding: 56px 0; }
.section-alt { background: var(--color-surface); }
.section-header { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-header p { color: var(--color-text-muted); }

/* ============ CATEGORÍAS (HOME) ============ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: left;
  transition: all .15s ease;
  display: block;
}
.category-card:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card .cat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--color-navy);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.category-card h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--color-navy); }
.category-card .cat-count { color: var(--color-text-muted); font-size: 0.85rem; }

/* ============ TARJETAS DE PRODUCTO ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card-visual {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  color: #fff;
  padding: 22px 18px;
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-card-visual .pc-code {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.product-card-visual .pc-grade {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.product-card-visual::before {
  content: '';
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 8px;
}

/* ---- Variante con fotografía de muestra de laboratorio ---- */
.product-card-visual.has-photo {
  padding: 14px 16px 12px;
  align-items: center;
}
.product-card-visual.has-photo::before { display: none; }
.pc-photo-frame {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 8px;
}
.pc-photo {
  max-height: 128px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.pc-sample-note {
  font-size: 0.64rem;
  color: #cfdcec;
  text-align: center;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 8px;
}
.pc-visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}
.pc-code-chip {
  font-size: 0.92rem;
  font-weight: 800;
}
.pc-grade-sm {
  display: block;
  font-size: 0.68rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pc-family-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(217,155,43,0.22);
  color: var(--color-accent);
  border: 1px solid rgba(217,155,43,0.45);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.product-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.product-card-body h3 { font-size: 1rem; margin: 0; }
.product-card-body .pc-desc {
  font-size: 0.85rem; color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: #eaf1f8;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tag-inhibitor { background: #fdeee0; color: #b45f0d; }
.tag-filtration { background: #e6f2ec; color: #1f8a55; }
.tag-viscosifier { background: #eaf1f8; color: var(--color-blue); }
.tag-thinner { background: #f2eafa; color: #6a2fb0; }
.tag-lubricant { background: #fdecec; color: #c0392b; }

.product-card-actions {
  display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.product-card-actions .btn { flex: 1; }

/* ============ CATÁLOGO / FILTROS ============ */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .catalog-layout { grid-template-columns: 1fr; }
}
.filters-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 84px;
}
@media (max-width: 860px) { .filters-panel { position: static; } }
.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text-muted); margin-bottom: 10px;
}
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.9rem; }
.filter-option input { accent-color: var(--color-blue); width: 16px; height: 16px; }
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.results-count { color: var(--color-text-muted); font-size: 0.9rem; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.active-filter-chip {
  background: #eaf1f8; color: var(--color-blue); border-radius: 20px;
  padding: 4px 10px; font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.active-filter-chip button { background: none; border: none; color: var(--color-blue); font-weight: 900; }

.no-results {
  text-align: center; padding: 60px 20px; color: var(--color-text-muted);
  background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius);
}

/* ============ FICHA DE PRODUCTO ============ */
.product-hero {
  background: var(--color-navy);
  color: #fff;
  padding: 40px 0;
}
.product-hero .breadcrumb { font-size: 0.85rem; color: #9cb4cc; margin-bottom: 16px; }
.product-hero .breadcrumb a { color: #cfdcec; }
.product-hero-grid { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.product-hero-info { flex: 1; min-width: 260px; }
.product-hero h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.product-hero .code-badge {
  display: inline-block; background: var(--color-accent); color: var(--color-navy);
  font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; margin-right: 8px;
}
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 0.85rem; color: #cfdcec; }
.meta-row strong { color: #fff; }
.visual-card {
  width: 160px; height: 160px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy-2) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 12px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.visual-card .vc-code { font-size: 1.3rem; font-weight: 800; }
.visual-card .vc-grade { font-size: 0.72rem; color: var(--color-accent); font-weight: 700; margin-top: 6px; text-transform: uppercase; }

/* ---- Ficha de producto: variante con fotografía ---- */
.visual-card.has-photo {
  width: 190px; height: auto; min-height: 190px;
  padding: 14px 12px 12px;
}
.visual-card.has-photo .pc-photo-frame { background: rgba(255,255,255,0.1); }
.visual-card.has-photo .pc-photo { max-height: 108px; }
.visual-card .pc-code { font-size: 1.3rem; font-weight: 800; }
.visual-card .pc-grade { font-size: 0.72rem; color: var(--color-accent); font-weight: 700; margin-top: 6px; text-transform: uppercase; }
.visual-card .pc-code-chip { font-size: 0.86rem; }

@media (max-width: 600px) {
  .visual-card.has-photo { width: 100%; max-width: 220px; }
}

.tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border); margin-bottom: 24px; overflow-x: auto; }
.tabs-nav button {
  background: none; border: none; padding: 12px 16px; font-weight: 700; font-size: 0.9rem;
  color: var(--color-text-muted); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs-nav button.active { color: var(--color-navy); border-bottom-color: var(--color-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
table.spec-table th {
  background: var(--color-navy); color: #fff; text-align: left; padding: 10px 14px; font-weight: 700;
  white-space: nowrap;
}
table.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); }
table.spec-table tr:nth-child(even) { background: #f8fafc; }
table.spec-table td.val-cell { font-weight: 800; color: var(--color-navy); white-space: nowrap; }
table.spec-table td.cond-cell { color: var(--color-text-muted); font-size: 0.85rem; }

.info-block { margin-bottom: 22px; }
.info-block h3 { font-size: 1rem; color: var(--color-navy); border-left: 3px solid var(--color-accent); padding-left: 10px; }
.advantages-list { padding-left: 20px; }
.advantages-list li { margin-bottom: 6px; }

.notice-box {
  background: #fff7e6; border: 1px solid #f0d69a; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.85rem; color: #7a5b12; margin: 16px 0;
}
.notice-box.blue { background: #eaf1f8; border-color: #bcd4ec; color: #1c5d99; }

/* ============ COMPARADOR ============ */
.compare-table-wrap { overflow-x: auto; }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
table.compare-table th, table.compare-table td { border: 1px solid var(--color-border); padding: 10px 14px; font-size: 0.88rem; vertical-align: top; }
table.compare-table th { background: var(--color-navy); color: #fff; text-align: left; }
table.compare-table td.param-name { font-weight: 700; background: #f8fafc; white-space: nowrap; }
table.compare-table .remove-compare-btn { background: none; border: none; color: #c0392b; font-weight: 900; float: right; cursor: pointer; }
.compare-thumb {
  display: block;
  margin: 0 auto 6px;
  max-height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px;
}

/* ============ FORMULARIO REQUERIMIENTO ============ */
.req-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .req-layout { grid-template-columns: 1fr; } }
.req-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px;
  margin-bottom: 16px;
}
.req-product-item { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.req-product-item:last-child { border-bottom: none; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--color-navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.checkbox-row { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-item { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .form-row-2 { grid-template-columns: 1fr; } }
.req-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.req-summary-preview {
  background: #f8fafc; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 14px; font-size: 0.82rem; white-space: pre-wrap; max-height: 340px; overflow-y: auto; color: var(--color-text-muted);
  font-family: 'Courier New', monospace;
}

/* Móvil: evita que la fila de cada producto (nombre, cantidad, unidad,
   presentación, botón quitar) fuerce desbordamiento horizontal. Las
   columnas de .req-product-item traen min-width/flex en línea (desde
   js/request.js) para el diseño de escritorio; en este rango se apilan
   en una sola columna y se estiran al ancho disponible sin tocar esos
   valores en línea ni el layout de escritorio. */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .req-card { padding: 16px; }
  .req-product-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .req-product-item > div {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .req-product-item .req-remove-btn {
    align-self: flex-end;
    width: auto;
  }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--color-navy); color: #cfdcec; padding: 44px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #a9bfd6; }
.site-footer a:hover { color: #fff; }
.footer-nav-list li { margin-bottom: 8px; list-style: none; }
.footer-disclaimer { font-size: 0.78rem; color: #7f96b0; border-top: 1px solid #223c56; padding-top: 20px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 0.78rem; color: #7f96b0; }

/* ============ BADGE DE ESTADO COMERCIAL ============ */
.supply-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent-2);
  background: #fff7e6;
  border: 1px solid #f0d69a;
  border-radius: 20px;
  padding: 3px 10px;
}
.supply-status-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 8px 0;
}
.supply-status-note a { font-weight: 600; }

/* ============ PÁGINAS LEGALES ============ */
.legal-page main { padding-bottom: 20px; }
.legal-content h2 { margin-top: 34px; font-size: 1.15rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text-muted); }
.legal-content ul { padding-left: 22px; margin-bottom: 1em; color: var(--color-text-muted); }
.legal-content li { margin-bottom: 6px; }
.legal-meta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-size: 0.82rem; color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border); padding-bottom: 16px; margin-bottom: 20px;
}
.legal-nav-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.legal-nav-pills a {
  font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 20px;
  background: #eaf1f8; color: var(--color-blue);
}
.legal-nav-pills a.active { background: var(--color-navy); color: #fff; }

/* ============ CONTACTO ============ */
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 22px 0; }
.contact-method-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.contact-method-card i { font-size: 1.6rem; color: var(--color-blue); margin-bottom: 10px; }
.contact-method-card .cm-value { font-weight: 700; color: var(--color-navy); margin: 6px 0; word-break: break-word; }

/* ============ ALMACENAMIENTO LOCAL ============ */
.storage-key-table { margin: 18px 0; }
.clear-storage-box {
  background: #fdecec; border: 1px solid #f3c6c1; border-radius: var(--radius);
  padding: 18px; margin: 22px 0;
}
.clear-storage-box p { color: #8a3b32; }

/* ============ AVISO NOINDEX / BANNER PREVIEW (opcional visual) ============ */
.notice-strip {
  background: #eaf1f8; color: #1c5d99; font-size: 0.8rem; text-align: center; padding: 6px 10px;
}

/* ============ UTILIDADES ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.family-group-title {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-text-muted); margin: 30px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--color-border);
}
