/* =============================================
   PALETA DE AVOCADO
   ============================================= */
:root {
  --green: #4e7336;
  --green-dark: #3b5a29;
  --green-soft: #6b8f4b;
  --cream: #e8eaa1;
  --cream-light: #f4f5cf;
  --ink: #2c4420;
  --white: #fbfbe6;
  --shadow: 0 12px 28px rgba(40,62,26,.15);
  --radius: 22px;

  --bg-alt: #eff1c0;
  --bg-custom: #d8de8c;
  --bg-photo: #cdd582;
  --text-soft: #4a6b33;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: 'Nunito',sans-serif;
  color: var(--ink);
  background: var(--cream-light);
}

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }
button { font: inherit; }

.container {
  width: min(1160px,calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green);
  color: var(--cream-light);
  box-shadow: 0 4px 14px rgba(30,48,20,.18);
}

.nav-wrap {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:76px;
  gap:20px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}

.brand-icon {
  height:46px;
  width:auto;
  display:block;
}

.brand-text {
  height:24px;
  width:auto;
  display:block;
}

.nav-links {
  display:flex;
  align-items:center;
  gap:20px;
  font-weight:800;
  font-size:.9rem;
}

.nav-links a,.dropdown-toggle {
  opacity:.9;
  transition:.2s;
}

.nav-links a:hover,.dropdown-toggle:hover {
  opacity:1;
  color:var(--cream);
}

.nav-dropdown { position:relative; }

.dropdown-toggle {
  border:0;
  background:none;
  color:inherit;
  cursor:pointer;
  font-weight:800;
  padding:10px 0;
}

.dropdown-menu {
  display:none;
  position:absolute;
  top:100%;
  left:-14px;
  min-width:205px;
  padding:10px;
  background:var(--green-dark);
  border-radius:12px;
  box-shadow:var(--shadow);
}

.dropdown-menu.open {
  display:grid;
  gap:3px;
}

.dropdown-menu a {
  padding:9px 10px;
  border-radius:8px;
}

.dropdown-menu a:hover {
  background:rgba(255,255,255,.1);
}

.nav-cta,.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:999px;
  padding:13px 22px;
  font-weight:900;
  border:0;
  cursor:pointer;
  transition:transform .2s,background .2s;
}

.nav-cta {
  border:1.5px solid var(--cream);
  color:var(--cream);
  white-space:nowrap;
}

.nav-cta:hover {
  background:var(--cream);
  color:var(--green);
}

.menu-toggle {
  display:none;
  border:0;
  background:transparent;
  color:var(--cream);
  font-size:1.7rem;
  cursor:pointer;
}

/* ---------- PORTADA ---------- */
.hero {
  overflow:hidden;
  background:var(--cream);
  position:relative;
}

.hero::before {
  content:'';
  position:absolute;
  inset:0;
  background:url("../assets/img/marca/patron-avocado.png") center/cover no-repeat;
  opacity:.25;
  pointer-events:none;
}

.hero-inner {
  position:relative;
  z-index:1;
  min-height:390px;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:center;
  gap:30px;
  padding-block:40px;
}

.hero-copy {
  position:relative;
  z-index:2;
  padding-left:25px;
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:.78rem;
  font-weight:900;
  color:var(--green-soft);
}

.hero h1 {
  margin:0;
  font-size:clamp(3rem,6vw,5.2rem);
  letter-spacing:-4px;
  line-height:.95;
  color:var(--green);
  font-weight:900;
}

.hero-subtitle {
  font-size:clamp(1.3rem,2.2vw,1.8rem);
  line-height:1.08;
  font-weight:800;
  margin:10px 0 26px;
}

.btn-primary {
  background:var(--green);
  color:var(--cream-light);
  box-shadow:0 6px 15px rgba(40,62,26,.2);
}

.btn-primary:hover {
  background:var(--green-dark);
  transform:translateY(-2px);
}

.hero-image {
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-image img {
  width:100%;
  max-width:340px;
  height:auto;
  max-height:370px;
  object-fit:contain;
  display:block;
}

.decor {
  position:absolute;
  border-radius:50%;
  background:var(--green);
  opacity:.95;
  pointer-events:none;
}

.decor-left {
  width:150px;
  height:150px;
  left:-86px;
  bottom:-95px;
}

/* ---------- SECCIONES ---------- */
.section { padding:56px 0 48px; }

.section-title {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0 0 28px;
  color:var(--green);
  font-size:clamp(1.7rem,3vw,2.4rem);
  font-weight:900;
  text-align:center;
}

.section-title::before,.section-title::after {
  content:'';
  height:2px;
  flex:1;
  max-width:150px;
  background:var(--green-soft);
  opacity:.8;
}

.section-heading {
  color:var(--green);
  font-size:clamp(1.8rem,3vw,2.5rem);
  line-height:1.05;
  margin:0 0 14px;
  font-weight:900;
}

.section-note {
  text-align:center;
  margin:-14px auto 28px;
  max-width:560px;
  color:var(--text-soft);
}

/* ---------- PRODUCTOS ---------- */
.product-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.product-card {
  background:var(--cream);
  border-radius:19px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .25s;
  display:flex;
  flex-direction:column;
}

.product-card:hover { transform:translateY(-5px); }

.product-photo {
  height:178px;
  overflow:hidden;
  background:var(--bg-photo);
}

.product-photo img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s;
}

.product-card:hover .product-photo img { transform:scale(1.04); }

.product-info {
  padding:15px 15px 17px;
  text-align:center;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.product-info h3 {
  margin:0 0 3px;
  font-size:1.15rem;
  font-weight:900;
}

.product-info p {
  margin:0 0 13px;
  font-size:.92rem;
  color:var(--text-soft);
  min-height:42px;
}

.price {
  display:inline-block;
  border-radius:999px;
  padding:7px 19px;
  background:var(--green);
  color:white;
  font-weight:900;
  margin-top:auto;
  min-width:112px;
}

.btn-order {
  margin-top:12px;
  background:transparent;
  color:var(--green);
  border:1.5px solid var(--green);
  padding:8px 15px;
  font-size:.85rem;
}

.btn-order:hover {
  background:var(--green);
  color:white;
}

/* ---------- BENEFICIOS ---------- */
.benefits {
  background:var(--green);
  color:var(--cream-light);
  border-radius:30px;
  padding:22px 30px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:6px auto 50px;
}

.benefit {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  padding:5px 12px;
  min-height:58px;
}

.benefit:not(:last-child) {
  border-right:1px solid rgba(244,255,209,.45);
}

.benefit-icon { font-size:1.8rem; }

.benefit span:last-child {
  font-size:.9rem;
  line-height:1.25;
  font-weight:800;
}

/* ---------- OTRAS SECCIONES ---------- */
.section-alt { background:var(--bg-alt); }

.reason-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.reason-card,.story-card {
  background:var(--cream-light);
  padding:28px;
  border-radius:22px;
  box-shadow:var(--shadow);
}

.reason-card>span { font-size:2rem; }

.reason-card h3 {
  color:var(--green);
  margin:10px 0 7px;
}

.reason-card p,.story-card p {
  line-height:1.6;
  margin-bottom:0;
}

.story-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.story-card { scroll-margin-top:100px; }

.story-card-dark {
  background:var(--green);
  color:var(--cream-light);
}

.story-card-dark .section-heading { color:var(--cream); }
.story-card-dark .eyebrow { color:var(--cream); }
.pending-copy { opacity:.85; }

/* ---------- PERSONALIZADOS ---------- */
.custom-section {
  background:var(--bg-custom);
  padding:50px 0;
}

.custom-wrap {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:38px;
  align-items:center;
}

.custom-img {
  display:flex;
  align-items:center;
  justify-content:center;
}

.custom-img img {
  width:100%;
  max-width:360px;
  height:auto;
  max-height:380px;
  object-fit:contain;
  display:block;
}

.custom-copy h2 {
  color:var(--green);
  font-size:2.3rem;
  line-height:1;
  margin:0 0 14px;
  font-weight:900;
}

.custom-copy p {
  line-height:1.6;
  margin:0 0 22px;
  max-width:470px;
}

/* ---------- REDES SOCIALES ---------- */
.social-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  max-width:700px;
  margin:0 auto;
}

.social-card {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--cream);
  padding:19px 20px;
  border-radius:15px;
  font-weight:900;
  box-shadow:var(--shadow);
  transition:transform .2s,background .2s;
}

.social-card:hover {
  transform:translateY(-3px);
  background:var(--bg-custom);
}

.social-name {
  display:flex;
  align-items:center;
  gap:12px;
}

.social-icon {
  width:25px;
  height:25px;
  flex-shrink:0;
}

/* ---------- UBICACIÓN ---------- */
.location-wrap {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:30px;
}

.map-placeholder {
  min-height:300px;
  background:var(--cream-light);
  border:2px dashed var(--green-soft);
  border-radius:22px;
  padding:8px;
  overflow:hidden;
}

.map-placeholder iframe {
  display:block;
  width:100%;
  height:300px;
  border:0;
  border-radius:16px;
}

/* ---------- HORARIOS ---------- */
.hours-section { max-width:800px; }

.hours-card {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  background:var(--cream);
  border-radius:18px;
  padding:20px;
  font-weight:800;
  text-align:center;
}

.hours-card span { font-size:1.8rem; }

/* ---------- CONTACTO ---------- */
.contact-section { padding:46px 0; }

.contact-panel {
  background:var(--green);
  color:var(--cream-light);
  padding:32px;
  border-radius:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
}

.contact-panel h2 {
  margin:0 0 7px;
  font-size:1.8rem;
  font-weight:900;
}

.contact-panel p { margin:0; opacity:.9; }

.btn-light {
  background:var(--cream);
  color:var(--green);
  white-space:nowrap;
}

.btn-light:hover {
  transform:translateY(-2px);
  background:white;
}

/* ---------- FOOTER ---------- */
footer {
  background:var(--green-dark);
  color:var(--cream-light);
  padding:25px 0;
}

.footer-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.footer-brand {
  display:flex;
  align-items:center;
}

.footer-meta {
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  font-size:.9rem;
  opacity:.92;
}

.copyright {
  width:100%;
  text-align:center;
  font-size:.78rem;
  opacity:.7;
  padding-top:18px;
}

/* ---------- WHATSAPP ---------- */
.wa-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:21px;
  height:21px;
  flex-shrink:0;
}

.wa-icon svg {
  width:100%;
  height:100%;
  fill:currentColor;
}

.floating-wa {
  position:fixed;
  bottom:19px;
  left:18px;
  right:auto;
  z-index:30;
  display:grid;
  place-items:center;
  width:57px;
  height:57px;
  border-radius:50%;
  background:#25d366;
  color:white;
  box-shadow:0 6px 20px rgba(0,0,0,.2);
  transition:transform .2s;
}

.floating-wa:hover { transform:scale(1.08); }

.floating-wa svg {
  width:34px;
  height:34px;
  fill:currentColor;
}

/* ---------- SELECTOR DE CANTIDAD ---------- */
.qty {
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-top:12px;
  padding:4px;
  border:1.5px solid var(--green);
  border-radius:999px;
}

.qty-btn {
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:var(--green);
  color:var(--cream-light);
  font-size:1.25rem;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  transition:background .2s;
}

.qty-btn:hover { background:var(--green-dark); }

.qty-value {
  min-width:26px;
  text-align:center;
  font-weight:900;
  font-size:1.05rem;
}

/* ---------- BARRA DEL PEDIDO ---------- */
.order-bar {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px max(20px,calc((100% - 1160px) / 2));
  background:var(--green-dark);
  color:var(--cream-light);
  box-shadow:0 -6px 20px rgba(30,48,20,.25);
}

.order-info {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 12px;
}

.order-info strong {
  font-size:1.2rem;
}

.order-info small {
  width:100%;
  opacity:.85;
  font-size:.9rem;
}

.order-actions {
  display:flex;
  align-items:center;
  gap:16px;
}

.order-actions .btn {
  min-height:48px;
  padding:13px 24px;
  font-size:1rem;
}

.order-clear {
  border:0;
  background:none;
  color:var(--cream);
  font-weight:800;
  text-decoration:underline;
  cursor:pointer;
  font-size:.95rem;
}

/* Espacio para que la barra no tape el contenido */
body.has-order { padding-bottom:120px; }
body.has-order .floating-wa { display:none; }

/* ---------- ANIMACIONES ---------- */
.fade-in {
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease,transform .6s ease;
}

.fade-in.visible {
  opacity:1;
  transform:translateY(0);
}

/* ---------- TABLET ---------- */
@media(max-width:1000px) {
  .nav-links { gap:12px; font-size:.82rem; }
  .nav-cta { padding:10px 14px; }
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .benefits { grid-template-columns:repeat(2,1fr); }

  .benefit:nth-child(2) { border-right:0; }

  .benefit:nth-child(1),.benefit:nth-child(2) {
    border-bottom:1px solid rgba(244,255,209,.4);
    padding-bottom:15px;
  }
}

/* ---------- CELULARES ---------- */
@media(max-width:760px) {
  .nav-wrap { min-height:68px; }
  .brand-icon { height:38px; }
  .brand-text { height:20px; }
  .menu-toggle { display:block; }
  .nav-cta { display:none; }

  .nav-links {
    display:none;
    position:absolute;
    top:68px;
    left:0;
    right:0;
    padding:15px 22px 20px;
    background:var(--green);
    flex-direction:column;
    align-items:stretch;
    gap:9px;
    box-shadow:0 10px 15px rgba(0,0,0,.12);
  }

  .nav-links.open { display:flex; }
  .nav-dropdown { width:100%; }
  .dropdown-toggle { padding:8px 0; }

  .dropdown-menu {
    position:static;
    box-shadow:none;
    margin:4px 0 5px 12px;
  }

  .hero-inner {
    grid-template-columns:1fr;
    gap:25px;
    padding-block:36px;
  }

  .hero-copy {
    padding:0 4px;
    text-align:center;
  }

  .hero h1 {
    letter-spacing:-2px;
    font-size:clamp(3rem,14vw,4.4rem);
  }

  .hero-image img { max-width:260px; max-height:290px; }

  .section { padding:42px 0 35px; }

  .section-title {
    gap:9px;
    font-size:1.65rem;
  }

  .section-title:before,.section-title:after { max-width:55px; }

  .product-grid { gap:14px; }
  .product-photo { height:145px; }

  .product-info { padding:13px 10px 15px; }
  .product-info h3 { font-size:1.05rem; }
  .product-info p { font-size:.82rem; }

  .benefits {
    padding:15px;
    gap:4px;
    border-radius:22px;
    margin-bottom:35px;
  }

  .benefit {
    padding:10px 6px;
    gap:9px;
    justify-content:flex-start;
  }

  .benefit span:last-child { font-size:.78rem; }
  .benefit-icon { font-size:1.45rem; }

  .reason-grid,.story-grid,.custom-wrap,.location-wrap {
    grid-template-columns:1fr;
  }

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

  .custom-section { padding:36px 0; }
  .custom-img img { max-width:250px; max-height:280px; }
  .custom-copy h2 { font-size:1.9rem; }

  .map-placeholder iframe { height:270px; }

  .contact-panel {
    flex-direction:column;
    text-align:center;
    padding:26px 20px;
  }

  .footer-inner {
    justify-content:center;
    text-align:center;
  }

  .footer-meta { justify-content:center; }

  /* Barra del pedido en celulares */
  .order-bar {
    bottom:0;
    min-height:0;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    gap:12px;
    padding:18px 16px 80px; /* 80px abajo: espacio para el badge */
  }

  .order-info {
    justify-content:center;
    text-align:center;
    gap:4px;
  }

  .order-info strong {
    font-size:1.15rem;
  }

  .order-actions {
    justify-content:space-between;
    align-items:center;
    gap:12px;
  }

  .order-send {
    flex:1;
    min-height:46px;
    padding:12px 14px;
    font-size:.95rem;
  }

  .order-clear {
    font-size:.85rem;
  }

  body.has-order { padding-bottom:200px; }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media(max-width:390px) {
  .container { width:min(100% - 28px,1160px); }
  .product-photo { height:125px; }
  .price { min-width:95px; padding:7px 13px; }
  .btn-order { padding:7px 11px; font-size:.78rem; }
}