/* ============================================================
   B&M FOODS — Hoja de estilos principal
   Paleta: tinta/charcoala + rojo cárnico + dorado premium
   ============================================================ */

:root {
  --ink: #12171d;
  --ink-2: #1a222c;
  --ink-3: #243040;
  --paper: #f6f4ef;
  --paper-2: #efebe2;
  --white: #ffffff;
  --line: #e5e0d5;
  --line-2: #2a3542;
  --muted: #5b6673;
  --muted-2: #a7b2be;
  --red: #b5202c;
  --red-2: #8f141d;
  --gold: #c8a24b;
  --gold-2: #e0c685;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(18, 23, 29, 0.06), 0 4px 12px rgba(18, 23, 29, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 23, 29, 0.12);
  --shadow-lg: 0 24px 60px rgba(18, 23, 29, 0.22);
  --font-head: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1440px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* Reset básico */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

/* Contenedor y secciones */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section--flush-bottom { padding-bottom: 0; }
section[id], form[id] { scroll-margin-top: 90px; }

/* Eyebrow / etiqueta de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--red); }
.eyebrow--light { color: var(--gold-2); }
.eyebrow--light::before { background: var(--gold-2); }

/* Títulos de sección */
.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.section-head .lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 0.85rem; }
.section-head .lead:last-child { margin-bottom: 0; }
.section--dark .section-head .lead { color: var(--muted-2); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.01em; line-height: 1; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(181, 32, 44, 0.32); }
.btn--primary:hover { background: var(--red-2); box-shadow: 0 14px 30px rgba(181, 32, 44, 0.4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--block { width: 100%; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.98); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

/* Navegación */
.site-nav { display: flex; align-items: center; gap: 0.5rem; }
.site-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.6rem; border-radius: 8px; font-family: var(--font-head);
  font-weight: 600; font-size: 0.78rem; color: var(--ink); text-transform: uppercase; white-space: nowrap; transition: color .15s ease, background .15s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--red); background: rgba(181, 32, 44, 0.06); }
.nav-caret { width: 10px; height: 10px; transition: transform .2s ease; }
.has-submenu:hover .nav-caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.85rem; border-radius: 8px; font-weight: 500; font-size: 0.92rem; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.submenu a:hover { background: var(--paper); color: var(--red); }
.submenu a.is-active { background: var(--paper); color: var(--red); }
.submenu-icon { height: 40px; width: auto; flex-shrink: 0; display: block; }

.nav-cta { margin-left: 0.25rem; text-align: center; white-space: nowrap; text-transform: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Acciones de cabecera (selector de idioma + menú móvil) */
.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch__btn { border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--muted); padding: 4px 7px; border-radius: 999px; transition: opacity .15s ease, background .15s ease, filter .15s ease; }
.lang-switch__btn .flag { display: inline-block; line-height: 1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; }
.lang-switch__btn:not(.is-active) { opacity: .45; filter: grayscale(1); }
.lang-switch__btn:hover { opacity: 1; filter: none; }
.lang-switch__btn.is-active { background: var(--ink); opacity: 1; filter: none; }
@media (max-width: 380px) {
  .lang-switch__btn { padding: 4px 6px; font-size: 0.95rem; }
  .header-actions { gap: 0.5rem; }
}

/* HERO */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(1200px 600px at 78% -10%, rgba(200, 162, 75, 0.16), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(181, 32, 44, 0.35), transparent 60%),
  var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 26px 26px; }
.hero .container { position: relative; z-index: 2; padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold-2); }
.hero .lead { font-size: 1.12rem; color: var(--muted-2); max-width: 34rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.hero-card {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; backdrop-filter: blur(6px);
}
.hero-card .kicker { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); font-family: var(--font-head); font-weight: 700; margin-bottom: 0.5rem; }
.hero-card p { margin: 0; color: var(--muted-2); font-size: 0.95rem; }

/* Mapa de presencia internacional en el hero */
.hero-map { display: flex; align-items: center; justify-content: center; }
.hero-map img {
  width: 100%;
  height: auto;
  max-width: 820px;
  display: block;
  filter: drop-shadow(0 0 34px rgba(200, 162, 75, 0.22));
}

/* Destacados del hero (Especialistas · Presencia global · Miembros de) */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

/* Barra de estadísticas */
.stats { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.75rem 1.5rem; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.1); }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat .num em { font-style: normal; color: var(--gold-2); }
.stat .label { font-size: 0.85rem; color: var(--muted-2); letter-spacing: 0.04em; }

/* Tarjetas de valores (Sobre nosotros) */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); opacity: 0; transition: opacity .2s ease; }
.value-card:hover::before { opacity: 1; }
.value-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--paper); color: var(--red); display: grid; place-items: center; margin-bottom: 1.25rem; }
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.value-card p { color: var(--muted); font-size: 0.96rem; }
.value-card p:last-child { margin-bottom: 0; }

/* Cita / frase destacada */
.quote-band { background: var(--red); color: #fff; text-align: center; }
.quote-band .quote { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.75rem; }
.quote-band .attr { color: rgba(255,255,255,0.82); font-family: var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; }
.quote-band--dark { background: var(--ink); }

/* Listado de características / pilares */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature {
  display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px; background: var(--paper); color: var(--red); display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Vacuno: imagen + texto en dos columnas */
.vacuno-split {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.vacuno-split__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--paper);
}
.vacuno-split__body h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.vacuno-split__body .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 680px) {
  .vacuno-split { grid-template-columns: 1fr; }
}

/* Tarjetas de términos y condiciones (enlaces a PDF) */
.feature.terms-card { color: var(--ink); }
.feature.terms-card .terms-more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 0.9rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  color: var(--red);
}
.feature.terms-card .terms-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.feature.terms-card:hover .terms-more svg { transform: translateY(2px); }

/* Tarjetas de divisiones de producto (tema oscuro) */
.division-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.division {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.division:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(224, 198, 133, 0.5); }
.division-media { position: relative; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, 0.03); overflow: hidden; display: grid; place-items: center; padding: 1rem; }
.division-media img { max-width: 260px; max-height: 100%; width: auto; height: auto; }
.division-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.division-body h3 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin: 0; color: #fff; }
.division-body h3 .accent { color: var(--gold-2); }
.division-body p { color: var(--muted-2); font-size: 0.92rem; margin: 0; flex: 1; }
.division-body .more { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--gold-2); display: inline-flex; align-items: center; gap: 0.4rem; }
.division-body .more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.division:hover .more svg { transform: translateX(3px); }
.division-num { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; color: var(--gold-2); font-size: 0.8rem; letter-spacing: 0.16em; }
.division-num__line { width: 44px; height: 1px; background: var(--gold-2); }
.division-media .division-num { position: absolute; top: 1rem; left: 1.1rem; z-index: 1; }

/* Tarjetas de producto (página Productos, tema oscuro) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; color: #fff; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(200, 162, 75, 0.55); background: rgba(255, 255, 255, 0.07); }
.product-num { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.16em; }
.product-icon { width: auto; height: auto; align-self: flex-start; }
.product-card h3 { font-size: 1.25rem; margin: 0; color: #fff; }
.product-card p { color: var(--muted-2); font-size: 0.92rem; margin: 0; flex: 1; }
.product-more { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--gold-2); display: inline-flex; align-items: center; gap: 0.4rem; }
.product-more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.product-card:hover .product-more svg { transform: translateX(3px); }

/* Chips de países */
.region-block { margin-bottom: 1.75rem; }
.region-block h4 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.4rem 0.85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink); transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); background: rgba(181,32,44,0.04); }

/* Tarjetas de contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: 0; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.95rem; margin: 0; }
.contact-card a:hover { color: var(--red); }

/* Formulario RFQ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; }
.field label em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(181,32,44,0.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-success { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px; background: #eef6ee; border: 1px solid #cde5cd; color: #2f7a33; font-size: 0.92rem; font-weight: 500; }
.form-success[hidden] { display: none; }
.form-error { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 10px; background: #fdeeee; border: 1px solid #f0c9c9; color: #b3261e; font-size: 0.92rem; font-weight: 500; }
.form-error[hidden] { display: none; }
/* Campo trampa anti-spam: oculto para usuarios, visible para bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* Pie de página */
.site-footer { background: var(--ink); color: var(--muted-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-logo { display: block; background: transparent; padding: 0; border-radius: 0; margin-bottom: 1.25rem; text-align: left; }
.footer-logo img { height: 34px; width: auto; display: block; }
.footer-brand .tagline { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: 0.01em; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.92rem; margin: 0; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer ul a { font-size: 0.94rem; transition: color .15s ease; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; font-size: 0.92rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-2); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line-2); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom .legal a:hover { color: #fff; }

/* Placeholder de imagen (mientras llegan las imágenes) */
.media-ph {
  position: relative; background: var(--paper-2); border: 1px dashed #d8d0c0; border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 2.5rem 1.5rem; overflow: hidden; color: #b3a98f;
}
.media-ph::before { content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.03) 75%, transparent 75%, transparent); background-size: 22px 22px; }
.media-ph svg { width: 44px; height: 44px; margin-bottom: 0.75rem; position: relative; }
.media-ph span { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; }
.media-ph--dark { background: var(--ink-2); border-color: var(--line-2); color: var(--muted-2); }
.media-ph--dark::before { background-image: linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.03) 75%, transparent 75%, transparent); }

/* Encabezado de página interior */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% -10%, rgba(200,162,75,0.18), transparent 60%), radial-gradient(700px 400px at -10% 120%, rgba(181,32,44,0.3), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.page-hero .lead { color: var(--muted-2); font-size: 1.1rem; max-width: 46rem; margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .lead { margin-inline: auto; }

/* Cabecera de división con imagen de fondo */
.section--cabecera { padding-top: 0; }
.cabecera {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 350px;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.cabecera::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 23, 29, 0.6), rgba(18, 23, 29, 0.78));
}
.cabecera .container {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.cabecera__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.cabecera__text {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #fff;
}

/* Migas de pan */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); padding-block: 1rem 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: var(--red); }

/* Lista de cortes / productos */
.cut-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.cut-group h4 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.cut-group h4 .badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; background: var(--paper); color: var(--red); padding: 0.2rem 0.6rem; border-radius: 999px; }
.cut-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cut-tag { padding: 0.35rem 0.8rem; border-radius: 8px; background: var(--paper); font-size: 0.82rem; font-family: var(--font-head); font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
.cut-tag.is-link { cursor: pointer; transition: background .15s ease, color .15s ease; }
.cut-tag.is-link:hover { background: var(--red); color: #fff; }
.cut-tag.is-link:focus-visible { background: var(--red); color: #fff; outline: 2px solid var(--gold); outline-offset: 2px; }
button.cut-tag { border: 0; }
.cuts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: start; }
.cuts-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cut-group--iberico { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 1.75rem; align-items: center; }
.cut-group--iberico .cut-img { margin-bottom: 0; }
.cut-list--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; align-items: stretch; }
.cut-list--3 .cut-tag { text-align: left; justify-content: flex-start; }
@media (max-width: 680px) {
  .cut-group--iberico { grid-template-columns: 1fr; }
  .cut-list--3 { grid-template-columns: repeat(2, 1fr); }
}
.cut-img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); margin-bottom: 1rem; background: var(--paper); }

/* Cerdo Blanco: oculta las etiquetas de cada corte y las muestra al pasar el cursor */
@media (hover: hover) {
  #cerdo-blanco .cut-group { position: relative; transition: border-color .2s ease, box-shadow .2s ease; }
  #cerdo-blanco .cut-group:hover,
  #cerdo-blanco .cut-group:focus-within { border-color: var(--red); box-shadow: var(--shadow-sm); }

  #cerdo-blanco .cut-group h4::after {
    content: "▾";
    margin-left: auto;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--red);
    transition: transform .25s ease;
  }
  #cerdo-blanco .cut-group:hover h4::after,
  #cerdo-blanco .cut-group:focus-within h4::after { transform: rotate(180deg); }

  /* Las etiquetas se muestran como panel superpuesto (sin desplazar el contenido inferior) */
  #cerdo-blanco .cut-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  #cerdo-blanco .cut-group:hover .cut-list,
  #cerdo-blanco .cut-group:focus-within .cut-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}


/* Detalle de etiqueta de producto */
.product-detail {
  margin-top: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; position: relative; scroll-margin-top: 90px;
}
.product-detail[hidden] { display: none; }
.product-detail__inner { display: grid; grid-template-columns: 1fr 1fr; }
.product-detail__media { display: flex; flex-direction: column; gap: 1rem; background: var(--paper); padding: 1.5rem; min-height: 360px; }
.product-detail__media .media-ph { width: 100%; flex: 1; }
.product-detail__img { width: 100%; flex: 1 1 auto; min-height: 260px; border-radius: var(--radius-sm); background: var(--paper-2); }
.product-detail__picto { width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-detail__picto .product-detail__label { display: block; margin-bottom: 0.5rem; }
.product-detail__picto-img { width: 100%; max-height: 180px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }
.product-detail__body { padding: clamp(1.25rem, 3vw, 2rem); }
.product-detail__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; margin-bottom: 1.1rem; }
.product-detail__name { font-size: 1.5rem; margin: 0 0 0.9rem; }
.product-detail__code { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--red); background: rgba(181,32,44,0.06); padding: 0.25rem 0.65rem; border-radius: 999px; }
.product-detail__table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; }
.product-detail__table th, .product-detail__table td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
.product-detail__table th { width: 42%; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-detail__table td { font-size: 0.95rem; color: var(--ink); }
.product-detail__table tr:last-child th, .product-detail__table tr:last-child td { border-bottom: 0; }
.product-detail__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.product-detail__related-list { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.5rem; }
.product-detail__related-item { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 96px; padding: 0; border: 0; background: none; appearance: none; -webkit-appearance: none; color: var(--ink); text-align: center; cursor: pointer; }
.product-detail__thumb { width: 96px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--paper-2); transition: transform .18s ease; }
.product-detail__thumb--ph { display: grid; place-items: center; color: #b3a98f; }
.product-detail__thumb--ph svg { width: 26px; height: 26px; }
.product-detail__related-name { font-size: 0.8rem; font-family: var(--font-head); font-weight: 500; color: var(--ink); line-height: 1.25; }
.product-detail__related-item:hover .product-detail__thumb { transform: translateY(-2px); }
.product-detail__related-item:hover .product-detail__related-name { color: var(--red); }
.product-detail__empty { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9rem; }
.product-detail__close { position: absolute; top: 0.85rem; right: 0.85rem; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.15rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.product-detail__close:hover { border-color: var(--red); color: var(--red); }
.product-detail__origin { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem; }
.product-detail__origin-label { font-family: var(--font-head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.product-detail__origin-flag { font-size: 1.35rem; line-height: 1; }
.product-detail__origin-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.product-detail__content { margin-bottom: 1.25rem; }
.product-detail__content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.product-detail__content th, .product-detail__content td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.product-detail__content th { width: 42%; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-detail__content td { color: var(--ink); }
.product-detail__content h2, .product-detail__content h3 { margin: 0.75rem 0 0.5rem; }
.product-detail__content p { margin: 0.5rem 0; }
.product-detail__content ul, .product-detail__content ol { margin: 0.5rem 0 0.5rem 1.25rem; }
.product-detail__cta { display: inline-block; margin-bottom: 1.25rem; }
@media (max-width: 680px) {
  .product-detail__inner { grid-template-columns: 1fr; }
}

/* Animaciones reveal */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .value-card, .division, .feature { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .division-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cuts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* Ocultar el CTA del header en escritorio; solo se muestra en pantallas muy anchas */
@media (min-width: 901px) and (max-width: 1440px) {
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .3s ease; overflow-y: auto; max-height: calc(100vh - 76px);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav-link { padding: 0.8rem 0.9rem; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 0.5rem 1rem; padding: 0.25rem 0; display: none; }
  .has-submenu.is-open .submenu { display: block; }
  .has-submenu.is-open .nav-caret { transform: rotate(180deg); }
  .nav-cta { margin: 0.75rem 0 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.1); }
  .values-grid, .features-grid, .cuts-grid, .form-grid, .hero-aside, .hero-highlights { grid-template-columns: 1fr; }
  .division-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Bloque destacado (calidad y confianza / membresías) */
.statement { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem); }
.statement .statement-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; margin: 0 0 1rem; color: #fff; }
.statement p { color: var(--muted-2); font-size: 0.98rem; }
.statement p:last-of-type { margin-bottom: 0; }
.statement .members { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.statement .members span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-head); font-weight: 700; color: var(--gold-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.4rem 0.9rem; }

/* Nota / aviso */
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.callout strong { color: var(--ink); }

/* CTA final */
.cta { text-align: center; background: var(--ink); color: #fff; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 760px; margin: 0 auto 1rem; }
.cta .lead { color: var(--muted-2); max-width: 620px; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }



