/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark : #0d47a1;
  --blue      : #1565c0;
  --blue-mid  : #1976d2;
  --blue-light: #b3d4f5;
  --blue-pale : #e8f4fd;
  --white     : #ffffff;
  --gray-50   : #f5f5f5;
  --gray-100  : #eeeeee;
  --gray-200  : #e0e0e0;
  --gray-500  : #757575;
  --gray-800  : #212121;
  --font      : 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h     : 60px;
  --radius    : 10px;
  --tr        : .28s ease;
  --shadow-card: 0 1px 6px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: var(--nav-h);
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--tr); gap: 12px;
}
.nav.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.1); }
.nav-logo-link { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img  { height: 36px; width: auto; object-fit: contain; }
#navMenu { display: none; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-link {
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--blue);
  position: relative; padding-bottom: 2px; transition: opacity var(--tr);
}
.nav-link:hover { opacity: .7; }
.nav-right  { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-social { display: flex; align-items: center; gap: 10px; }
.nav-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; color: var(--blue); transition: opacity var(--tr);
}
.nav-social-icon:hover { opacity: .65; }
.nav-social-icon svg { width: 18px; height: 18px; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--blue); border-radius: 2px; transition: all var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── SEC HEADER ── */
.sec-header { text-align: center; margin-bottom: 36px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(18px, 4vw, 24px); font-weight: 900;
  color: var(--blue); text-transform: uppercase; letter-spacing: .8px;
}
.sec-sub { font-size: 13px; color: var(--gray-500); margin-top: 6px; }

/* ── FOOTER ── */
.footer { background: var(--blue); padding: 48px 0 0; color: var(--white); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; text-align: center;
}
.footer-logo    { height: 38px; width: auto; object-fit: contain; margin: 0 auto 12px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.65; max-width: 240px; margin: 0 auto; }
.footer-col-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--white); margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.7); transition: color var(--tr); }
.footer-links a:hover { color: var(--white); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-contact li {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 7px; font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.4;
}
.footer-contact svg { flex-shrink: 0; margin-top: 1px; color: rgba(255,255,255,.7); }
.footer-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); transition: opacity var(--tr);
}
.footer-social-btn:hover { opacity: .8; }
.footer-bottom {
  margin-top: 36px; border-top: 1px solid rgba(255,255,255,.15);
  padding: 18px 20px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.55);
}

/* ── RESPONSIVE NAV ── */
@media (min-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 32px; }
  .nav-toggle { display: none; }
  #navMenu { display: block; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.6fr 1fr; gap: 40px; text-align: left; }
  .footer-logo    { margin: 0 0 12px; }
  .footer-tagline { margin: 0; }
  .footer-contact li  { justify-content: flex-start; }
  .footer-social      { justify-content: flex-start; }
}
/* ── HERO ── */
.dist-hero {
  position: relative;
  height: 420px;
  background-image: url('https://heladosfrutifresca.com/wp-content/uploads/2021/07/camion.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--blue);
}
.dist-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,.80) 0%, rgba(13,90,181,.55) 100%);
}
.dist-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.dist-hero__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 12px;
}
.dist-hero__title {
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
  margin-bottom: 16px;
}
.dist-hero__line {
  width: 56px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 0 auto 16px;
  opacity: .7;
}
.dist-hero__sub {
  font-size: 15px;
  font-weight: 500;
  opacity: .9;
  letter-spacing: .3px;
}
.dist-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 3;
}

/* ── CAMIÓN ── */
.dist-truck {
  background: var(--gray-50);
  padding: 56px 0 0;
}
.dist-truck__img {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

/* ── SUPERMERCADOS ── */
.dist-supers {
  padding: 56px 0 64px;
  background: var(--gray-50);
}
.dist-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dist-logo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--tr), box-shadow var(--tr);
  min-height: 90px;
}
.dist-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.dist-logo-card img {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--tr);
}
.dist-logo-card:hover img { filter: grayscale(0%); }

/* ── ESTADOS ── */
.dist-estados {
  padding: 56px 0;
  background: var(--blue);
}
.dist-estados .sec-eyebrow { color: var(--white); }
.dist-estados .sec-sub { color: rgba(255,255,255,.75); }
.dist-estados__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.dist-estado {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 10px 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dist-estado__icon { font-size: 16px; }

/* ── MAPA ── */
.dist-mapa {
  padding: 64px 0 80px;
  background: var(--gray-50);
}
.dist-mapa__wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  margin-bottom: 32px;
}
.dist-mapa__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.dist-mapa__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-800);
}
.dist-mapa__item svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.dist-mapa__item a { color: var(--blue); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .dist-logos { grid-template-columns: repeat(3, 1fr); }
  .dist-mapa__info { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .dist-hero { height: 480px; }
  .dist-logos { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .dist-logo-card { min-height: 100px; }
  .dist-logo-card img { max-height: 64px; }
  .dist-mapa__info { grid-template-columns: repeat(4, 1fr); }
}

/* ── SUBMENU (heredado de página raíz) ── */
.nav-item--has-sub { position: relative; }

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  list-style: none;
  min-width: 180px;
  z-index: 400;
  overflow: hidden;
}

.nav-item--has-sub:hover .nav-submenu { display: block; }

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--blue);
  transition: background var(--tr);
}

.nav-submenu a:hover { background: var(--blue-pale); }