/* 
==========================================================
DISEÑO VISUAL - Vital Buen Sabor
Si solo querés cambiar distribuidores, editá datos.js
==========================================================
*/

:root {
  --green: #587B3F;
  --green-dark: #345329;
  --green-deep: #1F3118;
  --green-soft: #EAF2E2;
  --cream: #FFF8EB;
  --cream-2: #F6EEDB;
  --brown: #3E2D20;
  --muted: #75685A;
  --white: #FFFFFF;
  --line: #E6DCC6;
  --shadow: 0 18px 40px rgba(52, 83, 41, 0.12);
  --shadow-strong: 0 24px 54px rgba(52, 83, 41, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--brown);
  background:
    radial-gradient(circle at 10% 5%, rgba(234, 242, 226, .9) 0 180px, transparent 181px),
    radial-gradient(circle at 90% 8%, rgba(246, 238, 219, .95) 0 200px, transparent 201px),
    linear-gradient(180deg, #FFFDF7 0%, #FFF8EB 100%);
}

.page {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(250, 246, 236, .97));
  border: 1px solid rgba(88, 123, 63, .12);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  width: 300px;
  height: 300px;
  background: rgba(234, 242, 226, .75);
  border-radius: 50%;
  position: absolute;
  right: -120px;
  bottom: -120px;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.logo {
  width: 118px;
  background: white;
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 12px 26px rgba(62, 45, 32, .08);
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  padding: 9px 14px;
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: .96;
  margin: 0 0 14px;
  color: var(--green-dark);
  letter-spacing: -1.8px;
}

.subtitle {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 18px;
  line-height: 1.5;
  max-width: 650px;
  font-weight: 700;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 700px;
}

.buttons,
.expansion-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover,
.small-btn:hover,
.zone-buttons a:hover,
.quick-actions a:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--green-dark);
  color: white;
  box-shadow: 0 12px 24px rgba(52, 83, 41, .18);
}

.secondary {
  background: white;
  color: var(--green-dark);
  border: 1px solid rgba(88, 123, 63, .15);
}

.light {
  background: white;
  color: var(--green-dark);
}

.ghost {
  background: rgba(255,255,255,.10);
  color: white;
  border: 1px solid rgba(255,255,255,.28);
}

.hero-card {
  display: grid;
  gap: 14px;
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-images img {
  width: 100%;
  min-height: 240px;
  object-fit: contain;
  background: white;
  border-radius: 24px;
  padding: 14px;
  border: 1px solid rgba(88, 123, 63, .10);
  box-shadow: 0 14px 28px rgba(62, 45, 32, .08);
}

.hero-note {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(88, 123, 63, .12);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 4px;
}

.hero-note strong {
  color: var(--green-dark);
}

.hero-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.quick-actions a {
  text-decoration: none;
  color: var(--brown);
  background: white;
  border: 1px solid rgba(88, 123, 63, .12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(62, 45, 32, .06);
  transition: transform .18s ease;
}

.quick-actions strong {
  display: block;
  color: var(--green-dark);
  font-size: 18px;
  margin-bottom: 5px;
}

.quick-actions span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.distribution-box {
  margin: 22px 0;
  background: linear-gradient(135deg, #5E8244 0%, #3D612F 100%);
  color: white;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 38px rgba(52, 83, 41, .20);
}

.truck svg {
  width: 110px;
  display: block;
}

.distribution-box h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.distribution-box p {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  line-height: 1.45;
}

.finder {
  scroll-margin-top: 20px;
}

.zone-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.zone-buttons a {
  text-decoration: none;
  background: white;
  border: 1px solid rgba(88, 123, 63, .12);
  color: var(--green-dark);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(62, 45, 32, .05);
  transition: transform .18s ease;
}

.section-title {
  margin: 34px 0 16px;
}

.section-title small {
  display: block;
  color: var(--green);
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -1px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.search-box {
  background: white;
  border: 1px solid rgba(88, 123, 63, .12);
  border-radius: 22px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(62, 45, 32, .06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--brown);
  background: transparent;
}

.search-box button {
  border: 0;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 15px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.zone-card {
  background: white;
  border: 1px solid rgba(88, 123, 63, .10);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

.zone-header {
  padding: 22px 24px;
  background: linear-gradient(180deg, white, #FEFBF5);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.zone-header h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 28px;
}

.zone-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.zone-header span {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.distributor {
  padding: 18px 24px;
  border-bottom: 1px dashed rgba(88, 123, 63, .18);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.distributor:last-child {
  border-bottom: none;
}

.distributor strong {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
}

.distributor span {
  color: var(--muted);
  font-size: 14px;
}

.coverage {
  display: block;
  color: var(--green-dark);
  background: var(--green-soft);
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  margin-top: 10px;
  font-weight: 700;
}

.distributor-info {
  width: 100%;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background: #FEFBF5;
  border: 1px solid rgba(88, 123, 63, .10);
  border-radius: 18px;
  padding: 12px;
}

.contact-label {
  display: block;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.external-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.link-btn {
  text-decoration: none;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(88, 123, 63, .14);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  transition: transform .18s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-btn {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(88, 123, 63, .14);
  background: white;
  color: var(--green-dark);
  transition: transform .18s ease;
}

.small-btn.whatsapp {
  background: var(--green-dark);
  color: white;
  border-color: transparent;
}

.empty-state {
  background: white;
  border: 1px solid rgba(88, 123, 63, .12);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.empty-state strong {
  display: block;
  color: var(--green-dark);
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.expansion {
  margin-top: 34px;
  background: linear-gradient(135deg, #385B2C 0%, #5A7B44 100%);
  color: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-strong);
}

.light-badge {
  background: rgba(255,255,255,.14);
  color: white;
  border: 1px solid rgba(255,255,255,.22);
}

.expansion h2 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: .95;
  letter-spacing: -1.2px;
}

.expansion p {
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 16px;
  line-height: 1.55;
  max-width: 880px;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 26px 0 10px;
  font-size: 13px;
}

footer strong {
  color: var(--green-dark);
  display: block;
  margin-bottom: 4px;
}

footer span {
  display: block;
  margin-bottom: 4px;
}

footer a {
  color: var(--green-dark);
  font-weight: 800;
}

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

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .distribution-box {
    align-items: flex-start;
  }

  .distributor {
    grid-template-columns: 1fr;
  }

  .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .hero {
    border-radius: 26px;
  }

  .hero-images {
    grid-template-columns: 1fr 1fr;
  }

  .hero-images img {
    min-height: 160px;
  }

  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .subtitle {
    font-size: 16px;
  }

  .buttons,
  .expansion-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .distribution-box {
    flex-direction: column;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    padding: 12px 16px;
  }

  .zone-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .zone-header h3 {
    font-size: 24px;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .contact-actions .small-btn {
    flex: 1;
    text-align: center;
  }


  .expansion {
    padding: 24px;
  }

  .expansion h2 {
    font-size: 32px;
  }
}
