/* CERA · hoja de estilos v1 */
:root {
  --navy: #0b2239;
  --navy-2: #123452;
  --teal: #157a8c;
  --teal-soft: #e3f1f3;
  --accent: #f2a541;
  --ink: #17232f;
  --ink-2: #4a5866;
  --line: #d9e1e8;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --radius: 14px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
ul { padding-left: 1.2em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #dbe6ee; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--accent); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8em;
}
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #f6b85f; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--teal-soft); }
.btn--small { padding: 9px 18px; font-size: .95rem; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; }
.nav__list { list-style: none; display: flex; gap: 28px; align-items: center; margin: 0; padding: 0; }
.nav__list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__list a:not(.btn):hover { color: var(--teal); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Portada */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, var(--teal-soft), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f7fafb 100%);
  padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__facts dt { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.hero__facts dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Rejillas y tarjetas */
.grid { display: grid; gap: 22px; margin-top: 36px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(11,34,57,.08); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card__list { margin: auto 0 0; padding-left: 1.1em; color: var(--ink); font-size: .93rem; }
.card__list li { margin: .3em 0; }
.card__list li::marker { color: var(--accent); }

/* Método */
.step { position: relative; padding-top: 8px; }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--teal); opacity: .35; line-height: 1; display: block; margin-bottom: 10px; }
.step p { color: var(--ink-2); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.about .video { position: sticky; top: 92px; }
.about__text p { color: var(--ink-2); font-size: 1.05rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.contact p { color: #b9c9d6; }
.contact__box {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px;
}
.contact__mail { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; text-decoration: none; margin-bottom: 6px; }
.contact__note { font-size: .95rem; margin-bottom: 22px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: .9rem; color: var(--ink-2); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Móvil */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .grid--4 { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .nav__toggle { display: block; }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { width: 100%; padding: 10px 0; }
}

/* v2: portada con mapa, franja de cultivos, gráficas y teléfono */
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__copy h1 { margin-bottom: .4em; }
.eyebrow--alert { display: inline-flex; align-items: center; gap: 10px; color: #b3261e; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #d1495b; box-shadow: 0 0 0 0 rgba(209,73,91,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(209,73,91,.5); } 70% { box-shadow: 0 0 0 10px rgba(209,73,91,0); } 100% { box-shadow: 0 0 0 0 rgba(209,73,91,0); } }
.hero__proof { list-style: none; padding: 24px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-2); font-size: .97rem; }
.hero__proof strong { color: var(--navy); font-family: var(--font-head); }
.hero__map { margin: 0; }
.hero__map img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 24px 60px rgba(11,34,57,.18); display: block; }
.hero__map figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 10px; }

.strip { background: var(--navy); color: #dbe6ee; padding: 14px 0; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .9rem; }
.strip__inner > span { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; color: var(--accent); }
.strip__inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.strip__inner li { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); }

.lead--center { max-width: 70ch; }
.card__hook { font-family: var(--font-head); font-weight: 700; color: var(--navy) !important; font-size: 1rem !important; margin-bottom: .5em; }

.charts { display: grid; gap: 24px; margin-top: 36px; }
.chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.chart figcaption { font-size: .95rem; color: var(--ink-2); margin-bottom: 8px; }
.chart figcaption strong { color: var(--navy); }
.chart object, .chart img { width: 100%; height: auto; display: block; aspect-ratio: 960 / 340; }
.chart:nth-child(2) object, .chart:nth-child(2) img { aspect-ratio: 960 / 320; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 22px 26px; background: var(--teal-soft); border-radius: var(--radius); }
.cta-inline p { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }

.alerta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.alerta__copy p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.phone { max-width: 380px; margin: 0 auto; background: #e5ddd5; border-radius: 28px; padding: 0 0 12px; box-shadow: 0 24px 60px rgba(11,34,57,.18); overflow: hidden; }
.phone__top { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 16px 18px; }
.phone__top small { display: block; font-size: .75rem; color: #b9c9d6; }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--navy); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; }
.phone__body { padding: 18px 14px 6px; display: grid; gap: 10px; }
.msg { position: relative; background: #fff; border-radius: 12px; padding: 10px 12px 22px; font-size: .9rem; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg p { margin: 0 0 .5em; }
.msg p:last-of-type { margin-bottom: 0; }
.msg--me { background: #dcf8c6; margin-left: auto; max-width: 70%; }
.msg__meta { font-size: .78rem; color: var(--ink-2); }
.msg__time { position: absolute; right: 10px; bottom: 6px; font-size: .7rem; color: #7b8a96; }
.phone__note { text-align: center; font-size: .75rem; color: #7b8a96; margin: 10px 0 0; }

@media (max-width: 1000px) {
  .hero__grid, .alerta { grid-template-columns: 1fr; gap: 32px; }
}

/* Entrevista en video (carga el reproductor solo al pulsar) */
.about__cite { font-size: .98rem !important; color: var(--ink) !important; border-left: 3px solid var(--accent); padding-left: 14px; }
.video { margin: 0; }
.video__play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--navy); border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; box-shadow: 0 24px 60px rgba(11,34,57,.18); }
.video__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: transform .3s ease; }
.video__play:hover img { transform: scale(1.03); }
.video__btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.video__btn::after { content: ""; position: absolute; left: 30px; top: 23px; border-left: 24px solid var(--navy); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(11,34,57,.18); display: block; }
.video__cap { font-size: .85rem; color: var(--ink-2); margin: 12px 0 0; }
.creds { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.creds li { padding-left: 14px; border-left: 2px solid var(--line); }
.creds strong { color: var(--navy); font-family: var(--font-head); margin-right: 6px; }
.about--second { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.about__name { font-size: 1.5rem; margin-bottom: .1em; }
.about__role { font-family: var(--font-head); font-weight: 700; color: var(--teal); margin-bottom: 1.2em; }
.about__aside { position: sticky; top: 92px; }
.quote { background: var(--navy); color: #dbe6ee; border-radius: var(--radius); padding: 32px; font-size: 1.15rem; line-height: 1.5; }
.quote p { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: 1em; }
.quote footer { font-size: .9rem; color: var(--accent); }
.hero__brand { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .14em; color: var(--navy); margin-bottom: 1.2em; }
.hero__brand span { display: block; font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.hero__copy .eyebrow--alert { margin: 4px 0 0; }
.hero__copy h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
