/* ==========================================================================
   EntreQuesos — hoja de estilos propia, sin dependencias de WordPress/Elementor
   ========================================================================== */

@font-face {
  font-family: 'Asap';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/asap-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/mulish-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Mulish';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/mulish-latin-italic.woff2') format('woff2');
}

:root {
  --navy: #0A306C;
  --navy-dark: #072148;
  --gold: #E8BC5A;
  --gold-dark: #7D5A0E; /* dorado oscurecido: ~5.5:1 de contraste incluso sobre crema (cumple WCAG AA) */
  --cream: #F2F0EA;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #6b6b6b;
  --radius: 10px;
  --container: 1200px;
  --font-main: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-headers: 'Asap', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.25;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-headers);
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--gold-dark); color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: .5em;
  display: block;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-logo img { height: 48px; width: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--gold-dark); border-color: var(--gold); }
.main-nav span.no-link {
  font-family: var(--font-headers);
  font-weight: 600;
  color: var(--navy);
  opacity: .6;
  cursor: default;
}
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 100;
  display: none;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}
.mobile-nav__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 22px; }
.mobile-nav a, .mobile-nav span.no-link {
  font-family: var(--font-headers);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.mobile-nav a[aria-current="page"] { color: var(--gold); }

@media (min-width: 900px) {
  .mobile-nav, .menu-toggle { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,29,44,.3);
}
.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  z-index: 2;
  display: block;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 24px;
}
.hero__content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .2em;
}
.hero__content p {
  color: var(--gold);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  margin-bottom: .6em;
}
.hero__cta { color: rgba(255,255,255,.85); font-weight: 600; }
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
}
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__arrow:focus-visible { outline: 3px solid var(--gold); }

/* ---------- Welcome / checklist ---------- */
.welcome { display: grid; gap: 40px; align-items: center; }
.welcome__checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--navy);
}
.welcome__checklist .check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}
.welcome__img { position: relative; border-radius: var(--radius); overflow: visible; }
.welcome__img img { border-radius: var(--radius); }
.badge-km0 {
  position: absolute;
  right: -16px;
  bottom: -24px;
  max-width: 230px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(10,48,108,.2);
}
.badge-km0 strong { color: var(--navy); font-size: 1.6rem; }

@media (min-width: 860px) {
  .welcome { grid-template-columns: 1fr 1fr; }
}

/* ---------- Dark band (professionals) ---------- */
.band-dark {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 56px 0;
}
.band-dark h2 { color: var(--white); }

/* ---------- Category duo (quesos y lácteos / gourmet) ---------- */
.category-duo-wrap { background: var(--cream); }
.category-duo {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 28px rgba(10,48,108,.14);
  isolation: isolate;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,48,108,0) 45%, rgba(7,33,72,.88) 100%);
  z-index: 1;
}
.category-card:hover img,
.category-card:focus-visible img { transform: scale(1.06); }
.category-card__label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.25rem;
}
.category-card__label::after {
  content: "Ver productos →";
  display: block;
  margin-top: 4px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .8rem;
  color: var(--gold);
}
.category-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (min-width: 700px) {
  .category-duo { grid-template-columns: 1fr 1fr; gap: 32px; }
  .category-card__label { font-size: 1.5rem; }
}

/* ---------- Region block (ofrecer lo mejor / filosofía / features) ---------- */
.region-block { background: var(--cream); padding: 64px 0; }
.region-block__grid {
  display: grid;
  gap: 40px;
}
.region-block .accent { color: var(--gold-dark); }
.region-block__text p { color: var(--navy); }
.region-block__kicker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 .6em;
}
.region-block__kicker svg { flex: none; margin-top: 3px; }
.region-block__h5 {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.25;
}
.region-block__h4 {
  margin-top: 1.4em;
  font-size: 2rem;
}

.region-block__img {
  border-radius: 0;
  overflow: hidden;
}
.region-block__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.region-block__features { display: flex; flex-direction: column; gap: 36px; }
.region-feature { display: flex; gap: 18px; align-items: flex-start; }
.region-feature h3 { font-size: 1.15rem; margin-bottom: .35em; }
.region-feature p { color: var(--navy); margin: 0; font-size: .95rem; }
.region-feature__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gold-dark);
}
.region-feature__icon svg { width: 28px; height: 28px; }

@media (min-width: 900px) {
  .region-block__grid { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; gap: 48px; }
  .region-block__img { min-height: 100%; }
}

/* ---------- Experts split (foto + banda navy) ---------- */
.experts-split { display: grid; background: var(--navy); }
@media (min-width: 900px) {
  .experts-split { grid-template-columns: 1fr 1fr; }
}
.experts-split__img { min-height: 320px; }
.experts-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.experts-split__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}
.experts-split__inner { max-width: 540px; text-align: center; }
.experts-split__title { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.75rem); }
.experts-split__inner p { color: rgba(255,255,255,.9); }
.experts-split__inner p.experts-split__lead { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.experts-split .accent { color: var(--gold); }

.experts__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}
.badge-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-headers);
  font-size: .95rem;
  max-width: 140px;
}
.badge-mini svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.experts-split .btn { margin-top: 32px; }

/* ---------- Gallery strip (fotos + botón Productos) ---------- */
.gallery-strip__grid {
  display: flex;
  gap: 8px;
}
.gallery-strip__grid img {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.gallery-strip__cta { text-align: center; margin-top: 40px; }
@media (min-width: 760px) {
  .gallery-strip__grid { gap: 24px; }
}

/* ---------- Brand strip (slide infinito) ---------- */
.brands { background: var(--white); padding: 48px 0; }
.brands__viewport { overflow: hidden; }
.brands__track {
  display: flex;
  width: max-content;
  animation: brands-scroll 36s linear infinite;
}
.brands__group {
  display: flex;
  gap: 80px;
  align-items: center;
  flex: none;
  padding-right: 80px;
}
.brands__track img {
  height: 112px;
  width: auto;
  flex: none;
}
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none; }
  .brands__viewport { overflow-x: auto; }
  .brands__group[aria-hidden="true"] { display: none; }
}

/* ---------- Page hero (banner interior) ---------- */
.page-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 90px 24px;
  text-align: center;
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,48,108,.65), rgba(10,48,108,.82));
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.breadcrumbs { font-size: .95rem; font-weight: 600; }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Intro icons (envío / cuidado) ---------- */
.intro-heading { font-size: 2.25rem; margin-top: .5em; }
.intro-icons {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 560px;
  margin: 48px auto 0;
}
.intro-icons__item svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin: 0 auto 14px;
  display: block;
}
.intro-icons__item p {
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-headers);
  margin: 0;
}

/* ---------- Category split (8 categorías de quesos) ---------- */
.category-split { display: grid; gap: 8px; }
@media (min-width: 860px) {
  .category-split { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.category-item { text-align: center; padding: 32px 16px; }
.category-item img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 20px; }
.category-item h3 { font-size: 1.9rem; }
.category-item p { color: var(--navy); margin: 0; }

/* ---------- Variantes compactas (página Productos) ---------- */
.page-hero--compact { padding: 48px 24px; }
.intro-heading--compact { font-size: 1.7rem; margin-top: 0; }
.intro-icons--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  max-width: none;
  margin-top: 24px;
}
.intro-icons--row .intro-icons__item { max-width: 260px; }
.intro-icons--row svg { width: 34px; height: 34px; margin-bottom: 8px; }
.intro-icons--row p { font-size: .85rem; }

/* ---------- Producers grid (página Productos) ---------- */
.producers-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.producer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(10,48,108,.08);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.producer-card p { flex: 1 1 auto; }
.producer-card .producer-link { margin-top: auto; }
.producer-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.producer-card h3 { font-size: .95rem; margin-bottom: .15em; line-height: 1.3; }
.producer-loc {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: .5em;
}
.producer-card p {
  font-size: .78rem;
  color: var(--text-light);
  margin: 0 0 .7em;
  line-height: 1.4;
}
.producer-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}
.producer-link:hover { color: var(--gold-dark); }

/* ---------- CTA row (no te quedes con la duda) ---------- */
.cta-row {
  display: grid;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 760px) {
  .cta-row { grid-template-columns: 2fr 1fr; }
}

/* ---------- Contact info row ---------- */
.contact-info {
  display: grid;
  gap: 32px;
  text-align: center;
}
@media (min-width: 760px) {
  .contact-info { grid-template-columns: repeat(3, 1fr); }
}
.contact-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  margin: 0 auto 14px;
}
.contact-info__icon svg { width: 24px; height: 24px; }
.contact-info h3 { font-size: 1.1rem; margin-bottom: .2em; }
.contact-info p { margin: 0; color: var(--text-light); }
.contact-info a { color: var(--text-light); }
.contact-info a:hover { color: var(--gold-dark); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 820px; margin: 32px auto 0; text-align: left; }
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .form-row:not(.form-row--single) { grid-template-columns: 1fr 1fr; }
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.contact-form .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 24px;
  cursor: pointer;
}
.contact-form .checkbox input { margin-top: 3px; flex: none; }
.contact-form .checkbox a { color: var(--gold-dark); text-decoration: underline; }
.contact-form .honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}
.form-response {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
  font-weight: 600;
}
.form-response.ok { background: #e4f6e8; color: #1f7a3a; display: block; }
.form-response.error { background: #fde8e8; color: #b42318; display: block; }

/* ---------- Legal / contenido largo ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 1.8em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-content p { color: var(--text); margin: 0 0 1em; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.legal-content li { margin-bottom: .5em; }
.legal-content a { color: var(--gold-dark); text-decoration: underline; }
.legal-content a:hover { color: var(--navy); }
.legal-content em { color: var(--text-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}
.site-footer a { color: var(--gold); }
.footer-top { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.footer-top img { height: 70px; width: auto; margin: 0 auto 20px; }
.footer-cols {
  display: grid;
  gap: 32px;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 760px;
}
@media (min-width: 760px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
.footer-cols__title {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-headers);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .5em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-social {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom {
  background: var(--navy-dark);
  text-align: center;
  padding: 18px 0;
  font-size: .85rem;
}
.footer-bottom a { text-decoration: underline; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
