/* ============================================================
   MELY PACKAGING — SISTEMA DE DISEÑO v2
   Estilo editorial basado en la Presentación Institucional 2026.
   Serif display + sans secundaria, fondo crema, regla naranja.
   ============================================================ */

:root {
  --orange: #FD6B00;
  --orange-bright: #FF8C33;
  --orange-soft: #FFE9D6;
  --stone: #7F7770;
  --stone-light: #E4E0DA;
  --ink: #1A1814;
  --ink-soft: #3a352f;
  --paper: #F5F2EE;
  --paper-2: #EFEBE5;
  --white: #FFFFFF;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Raleway', -apple-system, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(22px, 5vw, 72px);
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(26,24,20,0.06);
  --nav-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.62;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.accent { color: var(--orange); font-style: italic; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

/* Eyebrow: punto naranja + label sans en mayúsculas */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.eyebrow--rule { display: block; padding-bottom: 12px; border-bottom: 2px solid var(--orange); width: fit-content; }
.eyebrow--rule::before { display: none; }
.secnum { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; color: var(--orange); letter-spacing: 0.12em; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 56ch; line-height: 1.6; }
.muted { color: var(--stone); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8vw, 104px); }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #cfc8bf; }
.section-head { max-width: 64ch; margin-bottom: clamp(34px, 5vw, 54px); }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; }
.center .eyebrow, .center .eyebrow--rule { margin-inline: auto; }
.divider { height: 1px; background: var(--stone-light); border: 0; margin: 0; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(245,242,238,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-light);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; height: 100%; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-weight: 600; font-size: 0.92rem; color: var(--ink); position: relative; padding: 4px 0; letter-spacing: 0.01em; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--orange); transition: width 0.2s; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--orange); }
.nav__right { display: flex; align-items: center; gap: 18px; }

.lang { display: inline-flex; border: 1px solid var(--stone-light); border-radius: 100px; overflow: hidden; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.lang button { background: transparent; border: none; cursor: pointer; padding: 6px 12px; color: var(--stone); transition: all 0.15s; }
.lang button.active { background: var(--orange); color: var(--white); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.nav__toggle span + span { margin-top: 6px; }
.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); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem;
  padding: 13px 26px; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.2s; letter-spacing: 0.01em;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-bright); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: translateY(-1px); background: #2a2620; }

/* ---------- Hero (editorial, claro, 2 columnas) ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--stone-light); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 6vw, 80px); align-items: center;
  padding-block: clamp(50px, 8vw, 96px); }
.hero h1 { letter-spacing: -0.02em; }
.hero__sub { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--stone-light); }
.hero__sub .label { color: var(--orange); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero__sub p { margin-top: 10px; font-size: 1.08rem; max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero__panel { background: var(--paper-2); border: 1px solid var(--stone-light); border-radius: 10px;
  min-height: 340px; position: relative; overflow: hidden; }
.hero__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats serif ---------- */
.stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); }
.stat .num { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--orange); line-height: 1; font-weight: 600; }
.stat .num small { font-size: 0.92rem; color: var(--stone); font-family: var(--font-sans); font-weight: 600; margin-left: 4px; }
.stat .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 8px; font-weight: 700; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.gap { gap: 22px; }

/* feature list (2x2 estilo presentación) */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.feature .ft-label { color: var(--orange); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.feature p { font-size: 0.98rem; }

/* ---------- Tarjeta base ---------- */
.card { background: var(--white); border: 1px solid var(--stone-light); border-radius: 6px; padding: 30px; transition: transform 0.2s, box-shadow 0.2s; }
.card__media { margin: -30px -30px 20px; border-radius: 6px 6px 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26,24,20,0.08); }
.card .ft-label { color: var(--orange); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card h3 { margin: 12px 0 10px; }
.card p { font-size: 0.97rem; }
.card .spec { margin-top: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }

/* ---------- Tres modos (pieza central) ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode {
  position: relative; background: var(--paper); border: 1px solid var(--stone-light);
  border-radius: 8px; padding: 30px 28px; display: flex; flex-direction: column;
}
.mode__tag { color: var(--orange); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mode h3 { margin: 14px 0 10px; }
.mode__body { font-size: 0.96rem; flex-grow: 0; }
.mode__req { margin-top: 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); line-height: 1.4; }
.mode__list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--stone-light); display: grid; gap: 10px; }
.mode__list li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.mode__list li::before { content: '—'; color: var(--orange); flex: none; }
.mode--dark { background: var(--ink); border-color: var(--ink); }
.mode--dark h3 { color: var(--white); }
.mode--dark .mode__body { color: #cfc8bf; }
.mode--dark .mode__list { border-top-color: rgba(245,242,238,0.18); }
.mode--dark .mode__list li { color: #e4ded5; }
.mode__badge { position: absolute; top: 16px; right: 16px; background: var(--orange); color: var(--white);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; }

/* ---------- Contraste competencia vs Mely (iceberg) ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.vs-col h4 { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; font-weight: 400; margin-bottom: 4px; }
.vs-col .vs-sub { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--stone); padding-bottom: 14px; border-bottom: 1px solid var(--stone-light); margin-bottom: 14px; }
.vs-col--mely .vs-sub { color: var(--orange); border-bottom-color: var(--orange); }
.vs-list li { padding: 9px 0; font-size: 0.97rem; border-bottom: 1px solid var(--stone-light); }
.vs-col--comp .vs-list li { color: var(--stone); }
.vs-col--mely .vs-list li { color: var(--ink); position: relative; padding-left: 18px; }
.vs-col--mely .vs-list li::before { content: '•'; color: var(--orange); position: absolute; left: 0; }
.pull { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink); max-width: 30ch; line-height: 1.3; }
.pull .accent { font-style: italic; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 13px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; }
.checklist li::before { content: '→'; color: var(--orange); font-weight: 700; flex: none; }
.section--ink .checklist li { color: #e4ded5; }

/* numbered list (modelo operativo) */
.numlist { display: grid; gap: 26px; }
.numlist .item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.numlist .n { font-family: var(--font-serif); font-size: 1.7rem; color: var(--orange); line-height: 1; }
.numlist h3 { font-size: 1.15rem; margin-bottom: 4px; }
.numlist p { font-size: 0.96rem; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); }
.cta h2 { color: var(--white); max-width: 22ch; }
.cta p { color: #cfc8bf; max-width: 52ch; margin-top: 16px; }
.cta .hero__cta { margin-top: 30px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact-info { display: grid; gap: 24px; }
.contact-item .ci-label { color: var(--orange); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; }
.contact-item a, .contact-item span { font-size: 1.02rem; color: var(--ink); }
.contact-item a:hover { color: var(--orange); }
.form { background: var(--white); border: 1px solid var(--stone-light); border-radius: 8px; padding: 32px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin-bottom: 7px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; font-family: var(--font-sans); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--stone-light); border-radius: 5px; background: var(--paper); color: var(--ink); transition: border 0.15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237F7770' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.map-embed { border: 0; width: 100%; height: 300px; border-radius: 8px; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b3aca2; padding-block: 54px 28px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid rgba(245,242,238,0.12); }
.footer__logo img { height: 40px; margin-bottom: 16px; }
.footer p { color: #b3aca2; font-size: 0.92rem; max-width: 36ch; }
.footer h4 { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: 15px; font-weight: 700; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 0.93rem; color: #b3aca2; transition: color 0.15s; }
.footer__links a:hover { color: var(--orange); }
.footer__socials { display: flex; gap: 11px; margin-top: 16px; }
.footer__socials a { width: 36px; height: 36px; border-radius: 7px; border: 1px solid rgba(245,242,238,0.18); display: grid; place-items: center; color: var(--paper); font-size: 0.82rem; font-weight: 700; transition: all 0.15s; }
.footer__socials a:hover { background: var(--orange); border-color: var(--orange); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.8rem; }
.footer__bottom a:hover { color: var(--orange); }

/* ---------- Page hero interior ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--stone-light); padding-block: clamp(44px, 6vw, 78px); }
.page-hero h1 { max-width: 17ch; }
.page-hero p { margin-top: 16px; max-width: 56ch; font-size: 1.08rem; }

/* ---------- Callout de stock ---------- */
.stock-callout { display: flex; gap: 22px; align-items: flex-start; background: var(--orange-soft);
  border: 1px solid #f6d3b3; border-radius: 10px; padding: clamp(22px, 3vw, 34px); }
.stock-callout__mark { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--orange);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.stock-callout h3 { color: var(--ink); }
.stock-callout p { color: #6a4a2c; max-width: 70ch; }

/* ---------- Empaque por cultivo ---------- */
.cropgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: clamp(24px, 4vw, 40px); }
@media (max-width: 760px) { .cropgrid { grid-template-columns: 1fr; } }
.cropcard { display: flex; gap: 0; background: var(--white); border: 1px solid var(--stone-light); border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.cropcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26,24,20,0.08); }
.cropcard__media { flex: none; width: 150px; background: var(--paper-2); }
.cropcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cropcard__body { padding: 18px 20px; }
.cropcard__body h3 { margin-bottom: 8px; }
.cropcard__specs { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 420px) { .cropcard__media { width: 110px; } }

/* ---------- Confianza / Respaldo ---------- */
.trust { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(26px, 4vw, 44px); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
.trust--solo { grid-template-columns: 1fr; justify-items: center; }
.trust--solo .trust__cert { max-width: 560px; }
.trust__cert { display: flex; gap: 22px; align-items: center; }
.trust__photo { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--stone-light); height: 100%; min-height: 240px; }
.trust__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust__seal { width: 120px; height: 120px; flex: none; object-fit: contain; }
.trust__cert h3 { color: var(--ink); margin: 4px 0 8px; }
.trust__cert p { color: var(--ink-soft); max-width: 38ch; }
.testimonial { background: var(--paper); border-left: 3px solid var(--orange); border-radius: 8px; padding: clamp(22px, 3vw, 32px); margin: 0; }
.testimonial blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink); font-style: italic; }
.testimonial figcaption { margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.trust__segments { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.chip { border: 1px solid var(--stone-light); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; color: var(--ink); background: var(--white); }

/* ---------- Texto legal (Aviso de Privacidad) ---------- */
.legal { max-width: 72ch; }
.legal .legal__meta { color: var(--stone); font-size: 0.9rem; margin-bottom: clamp(28px, 4vw, 40px); }
.legal section { margin-bottom: clamp(26px, 3.5vw, 38px); }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--ink); margin-bottom: 10px; }
.legal p { color: var(--ink-soft); line-height: 1.7; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 720px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* ---------- Mensaje de éxito del formulario ---------- */
.form__ok { display: none; }
.form__ok.show { display: block; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { order: -1; min-height: 200px; }
  .modes { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__right .btn { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--stone-light);
    padding: 6px var(--gutter) 18px; transform: translateY(-130%); transition: transform 0.3s ease;
    box-shadow: 0 18px 30px rgba(26,24,20,0.1); max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--stone-light); }
  .nav__links a::after { display: none; }
  .features, .versus, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
