/* =========================================================
   Válvulas y Automatización Industrial | Market Alliance
   Hoja de estilos principal
   ========================================================= */

:root {
  --color-bg: #0b1220;
  --color-bg-soft: #10192e;
  --color-navy: #0f1c3f;
  --color-navy-light: #1d3577;
  --color-accent: #f5a623;
  --color-accent-dark: #d88a0f;
  --color-blue: #2e3d98;
  --color-text: #1a1f2b;
  --color-text-soft: #4b5563;
  --color-muted: #6b7280;
  --color-line: #e2e5ea;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f6f9;
  --color-warning-bg: #fff8e8;
  --color-warning-border: #f0b429;
  --color-pending-bg: #eef1f7;
  --color-pending-text: #47506b;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 28, 63, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 28, 63, 0.12);
  --maxw: 1180px;
  font-size: 16px;
}

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

/* Oculta visualmente un elemento sin quitarlo del árbol de accesibilidad:
   lectores de pantalla siguen anunciando su texto (p. ej. etiquetas de
   formulario asociadas a un <select> que no necesita texto visible propio
   porque ya tiene una opción de marcador de posición visible). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / navegación ---------- */
.site-header {
  background: #ffffff;
  color: var(--color-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 14px;
  flex-wrap: nowrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
}
.brand-title .site-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-title .site-tag {
  font-size: 0.76rem;
  color: var(--color-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Grupo derecho siempre visible: selector de idioma + botón de menú */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--color-line); }
.lang-btn.active { background: var(--color-navy); color: #fff; }
.lang-btn:hover:not(.active) { background: var(--color-surface-alt); color: var(--color-navy); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.main-nav a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-surface-alt);
  color: var(--color-navy);
}
.main-nav .btn-market {
  background: var(--color-accent);
  color: #1a1200;
  margin-left: 10px;
}
.main-nav .btn-market:hover {
  background: var(--color-accent-dark);
  color: #1a1200;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 55%, #26307a 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.5);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero p.lead {
  font-size: 1.05rem;
  color: #d8deef;
  max-width: 54ch;
  margin: 0 0 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-accent);
  color: #1a1200;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy {
  background: var(--color-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--color-navy-light); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.hero-note {
  font-size: 0.82rem;
  color: #b9c1de;
  border-left: 3px solid var(--color-accent);
  padding-left: 12px;
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(2px);
}
.hero-panel h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin: 0 0 16px;
}
.hero-panel ul { display: flex; flex-direction: column; gap: 12px; }
.hero-panel li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: #e3e7f6;
}
.hero-panel li i { color: var(--color-accent); margin-top: 3px; }

/* ---------- Secciones generales ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--color-surface-alt); }
.section-navy { background: var(--color-navy); color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 0 34px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 8px;
}
.section-navy .section-head .eyebrow { color: var(--color-accent); }
.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
}
.section-head p { color: var(--color-text-soft); font-size: 1rem; margin: 0; }
.section-navy .section-head p { color: #cbd3ee; }

/* ---------- Grid de familias / tarjetas de producto ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-media {
  background: var(--color-surface-alt);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-line);
  position: relative;
  overflow: hidden;
}
.card-media svg { width: 56%; height: 56%; color: var(--color-navy-light); }
.card-media.has-photo { background: #fff; }
.card-media.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.card-media .img-pending-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15,28,63,0.85);
  color: #fff;
  font-size: 0.62rem;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue);
}
.card-body h3 { margin: 0; font-size: 1.08rem; font-weight: 700; }
.card-body p { margin: 0; font-size: 0.9rem; color: var(--color-text-soft); flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px dashed var(--color-line);
  padding-top: 10px;
  margin-top: 4px;
}
.card-foot a { font-weight: 700; color: var(--color-navy-light); }
.card-foot a:hover { text-decoration: underline; }

/* ---------- Ficha técnica de producto ---------- */
.tech-sheet {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin-bottom: 30px;
  overflow: hidden;
  scroll-margin-top: 96px;
}
.tech-sheet-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}
@media (max-width: 760px) {
  .tech-sheet-head { grid-template-columns: 1fr; }
}
.tech-sheet-media {
  background: var(--color-surface-alt);
  border-right: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  min-height: 200px;
}
.tech-sheet-media svg { width: 70%; height: 70%; color: var(--color-navy-light); }
.tech-sheet-media.has-photo { background: #fff; padding: 18px; }
.tech-sheet-media.has-photo img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.tech-sheet-info { padding: 24px 26px; }

/* Miniaturas de galería dentro de una ficha técnica */
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.thumb-btn {
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 6px;
  border: 2px solid var(--color-line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.thumb-btn.active { border-color: var(--color-blue); }
.thumb-btn:hover { border-color: var(--color-navy-light); }

/* Galería compartida (p. ej. actuadores neumáticos p. 11 sin serie inequívoca) */
.shared-gallery-note {
  background: var(--color-pending-bg);
  border-left: 3px solid #7c88ad;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--color-pending-text);
  border-radius: 6px;
  margin: 4px 0 14px;
}
.shared-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.shared-gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.shared-gallery-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  margin-bottom: 8px;
}
.shared-gallery-item figcaption {
  font-size: 0.7rem;
  color: var(--color-text-soft);
  line-height: 1.35;
}
.tech-sheet-info .card-tag { margin-bottom: 6px; display:block; }
.tech-sheet-info h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.tech-sheet-info .desc { color: var(--color-text-soft); font-size: 0.95rem; margin: 0 0 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line);
  color: var(--color-text-soft);
}
.chip-info { background: #eef1f7; border-color: #d5dbec; color: var(--color-navy-light); font-weight: 700; }
.norma-verificado { background: #e9f3ea; border-color: #bfe0c4; color: #226b32; }
.norma-referencia { background: #eef1f7; border-color: #ccd3e6; color: var(--color-pending-text); }
.norma-pendiente { background: #fdf1e2; border-color: #f2cd94; color: #92600c; }

.tech-sheet-body { padding: 4px 26px 26px; }

.spec-table-wrap { overflow-x: auto; margin: 10px 0 18px; }
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}
table.spec-table th, table.spec-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
}
table.spec-table th {
  background: var(--color-surface-alt);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
}
table.spec-table td.valor-consultar { color: var(--color-pending-text); font-style: italic; }

.pending-note {
  background: var(--color-pending-bg);
  border-left: 3px solid #7c88ad;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--color-pending-text);
  border-radius: 6px;
  margin-bottom: 14px;
}

.config-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 6px 0 16px;
}

/* Sección de normas y documentación técnica por ficha */
.normas-section {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.normas-section h4 { margin: 0 0 10px; font-size: 0.92rem; font-weight: 800; color: var(--color-navy); }
.normas-list { display: flex; flex-direction: column; gap: 10px; }
.norma-item { border-top: 1px solid var(--color-line); padding-top: 10px; }
.normas-list li:first-child { border-top: none; padding-top: 0; }
.norma-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.norma-item-head strong { font-size: 0.9rem; }
.norma-item p { margin: 0; font-size: 0.84rem; color: var(--color-text-soft); }
.normas-footnote { margin: 10px 0 0; font-size: 0.78rem; color: var(--color-muted); font-style: italic; }

.sheet-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-note { font-size: 0.78rem; color: var(--color-muted); }

/* ---------- Avisos / disclaimers ---------- */
.notice-box {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.86rem;
  color: #6b4c00;
  margin: 18px 0;
}
.notice-box strong { color: #4a3400; }

.disclaimer-block {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

/* ---------- Industrias ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.industry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.industry-card i.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(46,61,152,0.08);
  color: var(--color-blue);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.industry-card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.industry-card p { margin: 0; font-size: 0.85rem; color: var(--color-text-soft); }
.industry-card .pending-flag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-pending-text);
  background: var(--color-pending-bg);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ---------- Filtros de producto ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--color-navy-light); color: var(--color-navy-light); }
.filter-btn.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

/* ---------- Buscador de catálogo ---------- */
.catalog-search-bar {
  position: relative;
  margin-bottom: 18px;
}
.catalog-search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
}
.catalog-search-bar input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.catalog-search-bar input:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

/* ---------- Facetas (material / conexión / accionamiento) ---------- */
.facet-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.facet-bar select {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  min-width: 170px;
}

/* ---------- Filtros activos + resultados ---------- */
.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
#results-count { font-size: 0.85rem; color: var(--color-muted); font-weight: 600; }
.active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.active-filter-chip {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-line);
  color: var(--color-text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.active-filter-chip:hover { border-color: var(--color-navy-light); }
.clear-all-btn {
  background: transparent;
  border: none;
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 4px;
}

/* Estado sin resultados */
.catalog-empty-state {
  display: none;
  text-align: center;
  padding: 50px 20px;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}
.catalog-empty-state p { margin: 0 0 16px; color: var(--color-text-soft); font-size: 1rem; }

.card-link { font-weight: 700; color: var(--color-navy-light); }
.card-link:hover { text-decoration: underline; }

/* ---------- Formulario constructor de requerimiento ---------- */
.req-builder {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 700; color: var(--color-text); }
.form-field .hint { font-size: 0.74rem; color: var(--color-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--color-line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

.req-summary {
  margin-top: 24px;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-line);
  border-radius: 8px;
  padding: 18px;
}
.req-summary h3 { margin: 0 0 10px; font-size: 0.95rem; }
.req-summary pre {
  white-space: pre-wrap;
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 14px;
  margin: 0 0 14px;
  color: var(--color-text);
}
.copy-feedback {
  font-size: 0.8rem;
  color: #226b32;
  font-weight: 600;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.copy-feedback.show { opacity: 1; }

/* ---------- Acciones de envío del requerimiento (correo / copiar) ---------- */
.req-actions-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.req-email-line {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.req-email-address {
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: underline;
}
.req-email-copy-btn {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-text-soft);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
}
.req-email-copy-btn:hover { border-color: var(--color-navy-light); color: var(--color-navy-light); }
.req-secondary-nav {
  margin: 14px 0 0;
  font-size: 0.82rem;
}
.req-secondary-nav a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
}
.req-secondary-nav a:hover { color: var(--color-navy); }

.btn-whatsapp {
  background: #25d366;
  color: #06210f;
}
.btn-whatsapp:hover { background: #1ebd5a; }
.req-whatsapp-too-long {
  color: #92600c;
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0 0;
}
.req-whatsapp-line {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.req-whatsapp-line i { color: #25d366; }
.req-whatsapp-number { font-weight: 700; color: var(--color-navy); }

/* ---------- Ecosistema Alliance ---------- */
.ecosystem-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ecosystem-strip a {
  border: 1px solid rgba(255,255,255,0.25);
  color: #dde3f5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.ecosystem-strip a:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #c6cde6;
  padding: 46px 0 24px;
  font-size: 0.86rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 4px;
  /* Logo sobre fondo oscuro: se aclara con un fondo blanco sutil para
     mantenerlo legible sin redibujarlo ni recortarlo. */
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  color: #9aa4c8;
  line-height: 1.7;
}
.footer-legal p { margin: 0; }
.footer-bottom {
  margin-top: 18px;
  font-size: 0.76rem;
  color: #7d87ac;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Breadcrumb / page header interior ---------- */
.page-hero {
  background: var(--color-navy);
  color: #fff;
  padding: 44px 0 40px;
}
.page-hero .eyebrow {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 12px; }
.page-hero p { color: #cbd3ee; max-width: 62ch; margin: 0; font-size: 0.98rem; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.divider { height: 1px; background: var(--color-line); margin: 34px 0; }

/* ---------- Responsive nav ----------
 * Punto de colapso del menú principal: 1100px. Por debajo de ese ancho el
 * menú de enlaces + CTA se oculta y aparece el botón hamburguesa; el
 * selector de idioma y "Market Alliance" viven en .header-actions /
 * .brand-title y permanecen visibles en TODOS los anchos, incluida la
 * vista de menú compacto. Se eligió 1100px (en vez de 900px) porque a
 * 1024px de ancho el menú inline + CTA no cabían y producían desborde
 * horizontal de página. */
@media (max-width: 1100px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--color-line); box-shadow: var(--shadow-md); z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav .btn-market { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header .wrap { min-height: 64px; gap: 8px; }
  .site-header .wrap { padding-left: 16px; padding-right: 16px; }
  .brand-logo { height: 30px; }
  /* El nombre largo del sitio se oculta en pantallas muy angostas para
     dejar espacio a lo que el usuario debe seguir viendo siempre:
     "Market Alliance", el selector de idioma y el botón de menú. */
  .brand-title .site-name { display: none; }
  .brand-title .site-tag { font-size: 0.72rem; }
  .lang-btn { padding: 6px 7px; font-size: 0.7rem; }
  .nav-toggle { padding: 7px 9px; font-size: 1rem; }
  .hero { padding: 42px 0 40px; }
  .section { padding: 40px 0; }
}

@media (max-width: 360px) {
  .site-header .wrap { gap: 6px; }
  .brand-block { gap: 7px; }
  .header-actions { gap: 6px; }
}
