/* =========================================================
   Berries Company — Landing page
   Tipografía: Arimo
   ========================================================= */

:root {
  --green-900: #0f5e26;
  --green-800: #157a31;
  --green-700: #1f8a3e;
  --green-600: #2aa84a;
  --green-500: #4cc04a;
  --green-400: #7ed321;
  --green-300: #a8e063;
  --gray-900: #1a1a1a;
  --gray-700: #333;
  --gray-600: #555;
  --gray-500: #777;
  --gray-300: #d8d8d8;
  --gray-200: #ececec;
  --gray-100: #f5f7f4;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 94, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 94, 38, 0.12);
  --shadow-lg: 0 18px 48px rgba(15, 94, 38, 0.18);
  --grad: linear-gradient(135deg, var(--green-700) 0%, var(--green-400) 100%);
  --grad-soft: linear-gradient(135deg, #e9f7e3 0%, #d6f1c5 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Arimo', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.98); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-800);
}
.nav__brand img {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav__menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__menu a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 8px 0;
  transition: color .2s;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .3s;
}
.nav__menu a:hover { color: var(--green-700); }
.nav__menu a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-900);
  margin: 5px auto;
  transition: transform .3s, opacity .3s;
}
.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); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,94,38,0.85) 0%, rgba(126,211,33,0.78) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 40px 24px;
  max-width: 800px;
}
.hero__logo {
  width: 120px; height: 120px;
  margin: 0 auto 28px;
  background: var(--white);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 36px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
  font-family: inherit;
}
.btn--primary {
  background: var(--white);
  color: var(--green-800);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--wide { display: block; text-align: center; margin-top: 12px; }

.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt {
  background: var(--gray-100);
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-700);
  background: var(--grad-soft);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.section__head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 18px;
}
.section__head h2 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.huge {
  display: inline-block;
  font-size: 1.4em;
  font-weight: 700;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  vertical-align: middle;
}
.section__lead {
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* ============ NOSOTROS ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.about-card--map img { object-fit: contain; background: var(--white); padding: 20px; }
.about-card__label {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--grad);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* ============ CIRCLES (almacén / producción) ============ */
.circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
.circles--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
}
.circle-card {
  text-align: center;
}
.circle {
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 10px;
  background: var(--grad);
  box-shadow: var(--shadow-md);
  transition: transform .4s;
}
.circle:hover { transform: scale(1.04) rotate(2deg); }
.circle img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
}
.circle-card figcaption {
  margin-top: 18px;
  font-weight: 600;
  color: var(--gray-700);
}

/* ============ DISTRIBUCIÓN ============ */
.distri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.distri-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.distri-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-400);
}
.distri-card__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--grad-soft);
  border-radius: 50%;
}
.distri-card h3 {
  color: var(--gray-900);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ============ ORGANIGRAMA ============ */
.org {
  max-width: 1100px;
  margin: 0 auto;
}

.node {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-600);
  position: relative;
  z-index: 2;
  transition: transform .2s, box-shadow .2s;
}
.node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.node__name {
  font-weight: 700;
  color: var(--white);
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .95rem;
  display: inline-block;
  margin-bottom: 6px;
  font-style: italic;
}
.node__role {
  font-size: .85rem;
  color: var(--gray-600);
  font-weight: 600;
  padding-left: 4px;
}
.node--root .node__name { font-size: 1.05rem; padding: 8px 18px; }

/* Org desktop layout */
.org__root {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  position: relative;
}
.org__root::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 3px;
  height: 50px;
  background: var(--green-600);
  transform: translateX(-50%);
}

.org__branches {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  position: relative;
}
/* Línea horizontal que une las 3 ramas */
.org__branches::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 16.66%;
  right: 16.66%;
  height: 3px;
  background: var(--green-600);
}

.branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
/* Línea vertical desde la línea horizontal a cada nodo medio */
.branch::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  width: 3px;
  height: 50px;
  background: var(--green-600);
  transform: translateX(-50%);
}

.branch__mid {
  margin-bottom: 30px;
  position: relative;
}
/* línea desde mid a leaves */
.branch__mid::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 3px;
  height: 30px;
  background: var(--green-600);
  transform: translateX(-50%);
}

.branch__leaves {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: stretch;
  position: relative;
  padding-left: 30px;
}
/* línea vertical que recorre todas las hojas */
.branch__leaves::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 22px;
  left: 14px;
  width: 3px;
  background: var(--white);
}

.node--leaf {
  position: relative;
  margin-left: 0;
}
/* línea horizontal a cada hoja */
.node--leaf::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -16px;
  width: 16px;
  height: 3px;
  /**background: var(--green-600);**/
}
.node--leaf::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  width: 10px;
  height: 10px;
  /**background: var(--green-600);**/
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px var(--white);
}

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-grid--centered {
  grid-template-columns: minmax(0, 600px);
  justify-content: center;
}
.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: var(--grad-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contact-item h3 {
  color: var(--gray-900);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.contact-item p { color: var(--gray-600); font-size: .95rem; }
.phone-link {
  color: var(--green-700);
  font-weight: 700;
  font-size: 1.15rem;
  transition: color .2s;
}
.phone-link:hover { color: var(--green-500); }

.contact-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.contact-map img { width: 100%; height: auto; }

/* ============ FOOTER ============ */
.footer {
  background: var(--green-400);
  color: var(--gray-300);
  padding: 40px 0;
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-800);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer__brand img {
  width: 36px; height: 36px;
  border-radius: 6px;
}
.footer p { font-size: .9rem; color:white}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform .35s ease;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }
  .nav__menu a::after { display: none; }

  .section { padding: 70px 0; }
  .section__head { margin-bottom: 40px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-card img { min-height: 280px; }

  .circles { grid-template-columns: 1fr; gap: 30px; }
  .circles--two { grid-template-columns: 1fr; }
  .circle { max-width: 240px; }

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

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 28px; }

  /* ===== Organigrama responsive: vertical stack ===== */
  .org__root { margin-bottom: 30px; }
  .org__root::after { height: 30px; }

  .org__branches {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .org__branches::before { display: none; }

  .branch::before {
    top: -30px;
    height: 30px;
  }

  .branch__mid { margin-bottom: 20px; }
  .branch__mid::after { height: 20px; }

  .branch__leaves {
    padding-left: 28px;
  }
  .branch__leaves::before { left: 12px; }
  .node--leaf::before { left: -16px; width: 16px; }
  .node--leaf::after { left: -20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__logo { width: 96px; height: 96px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .contact-info { padding: 24px; }
  .contact-item { gap: 14px; }
  .contact-item__icon { width: 44px; height: 44px; font-size: 1.2rem; }

  .node { padding: 12px 14px; }
  .node__name { font-size: .88rem; }
  .node__role { font-size: .78rem; }
}
