/* ===========================================================
   Sajara Vending — Boceto de propuesta
   Estilos. Paleta: teal/verde (frescura, sostenibilidad)
   + naranja cálido (apetito, CTA) + grises neutros.
   =========================================================== */

:root {
  --teal-900: #3a1d0b; /* espresso cálido para secciones oscuras */
  --teal-700: #d9560a; /* naranja base — botones, enlaces, iconos */
  --teal-600: #f2701a; /* naranja hover, más brillante */
  --teal-50:  #fff0e3; /* tinte naranja muy claro */
  --green:    #ffb066; /* acento naranja claro (sobre fondo oscuro) */
  --accent:   #f97316; /* CTA naranja fuerte */
  --accent-d: #e25e08;
  --ink:      #102a33;
  --muted:    #5a6b70;
  --line:     #e4ebec;
  --bg:       #ffffff;
  --bg-alt:   #fdf6f0;
  --white:    #ffffff;
  --radius:   16px;
  --radius-s: 10px;
  --shadow:   0 18px 40px -18px rgba(16, 42, 51, .25);
  --shadow-s: 0 8px 24px -12px rgba(16, 42, 51, .22);
  --maxw:     1180px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --head:     'Plus Jakarta Sans', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

h1, h2, h3, h4, h5 { font-family: var(--head); line-height: 1.15; color: var(--ink); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.02em; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-family: var(--head);
  font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--teal-600); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,138,61,.7); }
.btn--accent:hover { background: var(--accent-d); }
.btn--ghost { background: transparent; border-color: rgba(16,42,51,.18); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn--block { width: 100%; }

/* ===== Topbar ===== */
.topbar { background: var(--teal-900); color: #f5dcc6; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 24px; justify-content: center; padding: 9px 24px; flex-wrap: wrap; }
.topbar__phone { margin-left: auto; font-weight: 600; color: #fff; }
.topbar__phone:hover { color: var(--accent); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: 0 6px 24px -16px rgba(16,42,51,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.3rem; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-700), var(--green)); color: #fff; font-weight: 800;
}
.logo__text strong { color: var(--teal-700); font-weight: 800; }
.logo--light .logo__text, .logo--light .logo__text strong { color: #fff; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-weight: 500; color: var(--muted); position: relative; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--teal-700); transition: width .2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__cta { background: var(--teal-700); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-family: var(--head); }
.nav__cta:hover { background: var(--teal-600); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(249,115,22,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(217,86,10,.12), transparent 60%),
    var(--bg-alt);
  padding: 72px 0 84px;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-block; background: var(--teal-50); color: var(--teal-700);
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.025em; }
.hero__title span { color: var(--teal-700); }
.hero__text { margin: 22px 0 30px; font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero__text strong { color: var(--ink); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--teal-700); font-weight: 600; font-size: .9rem; }

.hero__card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border: 1px solid var(--line); }
.hero__card-head h3 { font-size: 1.25rem; }
.hero__card-head p { color: var(--muted); font-size: .92rem; margin-top: 6px; }

.miniform { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.miniform label, .contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.miniform input, .miniform select,
.contact__form input, .contact__form textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.miniform input:focus, .miniform select:focus,
.contact__form input:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(249,115,22,.15);
}
.miniform__note { font-size: .76rem; color: var(--muted); text-align: center; font-weight: 400; }

/* ===== Stats ===== */
.stats { background: var(--teal-900); color: #fff; padding: 48px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 8px; }
.stat__num { font-family: var(--head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.stat__plus { font-family: var(--head); font-size: 1.6rem; font-weight: 800; color: var(--green); }
.stat p { color: #e8cbb0; font-size: .9rem; margin-top: 4px; }

/* ===== Secciones genéricas ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(135deg, var(--teal-900), var(--teal-700)); color: #fff; }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section--dark .section__head p { color: #f3d9c5; }

.eyebrow { display: inline-block; color: var(--teal-700); font-weight: 700; font-family: var(--head); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow--light { color: var(--green); }

/* ===== Cards de servicios ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-50); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ===== Máquinas ===== */
.machines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.machine { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--line); display: flex; flex-direction: column; }
.machine__media { height: 230px; position: relative; display: flex; align-items: flex-end; padding: 18px; }
.machine__media--combi { background: linear-gradient(150deg, #f97316, #ffc078); }
.machine__media--modular { background: linear-gradient(150deg, #d9560a, #3a1d0b); }
.machine__media::after {
  content: '🧃'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 4.6rem; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.machine__media--combi::after { content: '☕'; }
.machine__media--modular::after { content: '🥪'; }
.machine__tag { background: rgba(255,255,255,.95); color: var(--ink); font-weight: 700; font-family: var(--head); font-size: .78rem; padding: 6px 14px; border-radius: 999px; position: relative; z-index: 1; }
.machine__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.machine__body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.machine__body p { color: var(--muted); }

.ticks { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: .96rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal-700); font-weight: 800; }
.ticks--light li { color: #fff1e6; }
.ticks--light li::before { color: var(--green); }

.link-arrow { margin-top: auto; color: var(--teal-700); font-weight: 700; font-family: var(--head); }
.link-arrow:hover { color: var(--accent-d); }

/* ===== Sectores ===== */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.sector:hover { transform: translateY(-5px); box-shadow: var(--shadow-s); }
.sector span { font-size: 2rem; display: block; margin-bottom: 12px; }
.sector h4 { font-size: 1.12rem; }
.sector p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ===== Split (saludable) ===== */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split__content h2 { color: #fff; }
.split__content p { color: #f3d9c5; margin: 16px 0 22px; font-size: 1.05rem; }
.split__visual { display: grid; place-items: center; }
.healthy-badge {
  width: 260px; height: 260px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, #fb923c, #d9560a);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); color: #fff;
}
.healthy-badge__num { font-family: var(--head); font-size: 4.4rem; font-weight: 800; line-height: 1; }
.healthy-badge__label { font-weight: 600; margin-top: 6px; }

/* ===== Pasos ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; position: relative; }
.step__num { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-700); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h4 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ===== Features / Por qué ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 16px; }
.feature__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-s); display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 16px; }
.feature h4 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ===== Testimonios ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-s); }
.quote blockquote { font-size: 1.04rem; color: var(--ink); position: relative; padding-top: 30px; }
.quote blockquote::before { content: '“'; position: absolute; top: -10px; left: -4px; font-family: var(--head); font-size: 4rem; color: var(--teal-50); line-height: 1; }
.quote figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.quote figcaption strong { font-family: var(--head); }
.quote figcaption span { color: var(--muted); font-size: .86rem; }
.disclaimer { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 28px; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 4px 22px; }
.faq__item summary { cursor: pointer; font-family: var(--head); font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--teal-700); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 18px; }

/* ===== Contacto ===== */
.contact { background: linear-gradient(135deg, var(--teal-900), #5a2e0e); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__intro h2 { color: #fff; }
.contact__intro p { color: #f3d9c5; margin: 16px 0 26px; font-size: 1.05rem; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; }
.contact__list li span { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.contact__list a:hover { color: var(--green); }

.contact__form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact__form label { color: var(--ink); margin-bottom: 16px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 400 !important; font-size: .85rem !important; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.contact__feedback { background: var(--teal-50); color: var(--teal-700); padding: 14px; border-radius: var(--radius-s); text-align: center; font-weight: 600; margin-top: 14px; }

/* ===== Footer ===== */
.footer { background: var(--teal-900); color: #e8cbb0; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 16px; font-size: .92rem; max-width: 320px; }
.footer__col h5 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: .92rem; transition: color .15s ease; }
.footer__col a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.footer__draft { color: var(--accent); }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Animaciones reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .machines, .split, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .sectors, .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .split__visual { order: -1; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 14px; text-align: center; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .topbar__item { display: none; }
  .topbar__phone { margin: 0 auto; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .cards, .quotes, .sectors, .steps, .features, .contact__row { grid-template-columns: 1fr; }
  .footer__inner, .footer__bottom-inner { grid-template-columns: 1fr; text-align: left; }
  .hero__actions .btn { width: 100%; }
}
