/* Página principal de AgroVoz. Las páginas legales siguen usando estilo.css. */
:root {
  --verde: #2D4A2B;
  --verde-profundo: #183B2B;
  --crema: #F4E7CB;
  --papel: #FBF6EA;
  --tinta: #1f2a22;
  --tinta-suave: #4b5a4f;
  --naranja: #B5541F;
  --naranja-claro: #E87A34;
  --borde: #e2d5b8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; height: auto; }
body { overflow-x: hidden; }
a { color: inherit; }

.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Barra superior */
.barra { background: var(--verde-profundo); position: sticky; top: 0; z-index: 10; }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.marca img { width: 36px; height: 36px; border-radius: 9px; }
.barra-enlace { color: var(--crema); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 16px; border: 2px solid rgba(244,231,203,0.45); border-radius: 999px; }

/* Portada */
.portada { background: linear-gradient(180deg, var(--verde) 0%, var(--verde-profundo) 100%); color: #fff; overflow: hidden; }
.portada .contenedor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 0; }
.portada h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.06; letter-spacing: -1.5px; margin: 0; }
.portada h1 span { color: var(--naranja-claro); }
.portada .bajada { font-size: 20px; color: var(--crema); margin: 18px 0 28px; max-width: 520px; }
.portada .prueba { font-size: 16px; color: rgba(244,231,203,0.85); margin-top: 14px; }
.portada-telefono { justify-self: center; width: min(78vw, 340px); margin-bottom: -60px; }

.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.boton {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 60px; padding: 10px 26px; border-radius: 16px;
  text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.2;
}
.boton small { font-weight: 500; font-size: 14px; opacity: 0.85; }
.boton-principal { background: var(--naranja-claro); color: #fff; }
.boton-secundario { background: transparent; color: #fff; border: 2px solid rgba(244,231,203,0.55); }
.boton:focus-visible, .barra-enlace:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }

/* Teléfono con captura */
.telefono { background: #0E1410; padding: 8px; border-radius: 42px; box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.telefono img { width: 100%; border-radius: 34px; }

/* Secciones */
section { padding: 72px 0; }
.titulo-seccion { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 12px; color: var(--verde-profundo); }
.titulo-seccion span { color: var(--naranja); }
.intro { color: var(--tinta-suave); font-size: 19px; margin: 0 0 40px; max-width: 640px; }
.espacio-portada { padding-top: 110px; }

.pasos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.paso { display: grid; gap: 18px; justify-items: center; text-align: center; }
.paso .numero { width: 56px; height: 56px; border-radius: 50%; background: var(--naranja); color: #fff; font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.paso h3 { margin: 0; font-size: 24px; color: var(--verde-profundo); }
.paso p { margin: 0; color: var(--tinta-suave); }
.paso .telefono { width: min(70vw, 260px); }

.oscuro { background: var(--verde-profundo); color: #fff; }
.oscuro .titulo-seccion { color: #fff; }
.oscuro .titulo-seccion span { color: var(--naranja-claro); }
.oscuro .intro { color: var(--crema); }

.publicos { display: grid; gap: 22px; }
.publico { background: rgba(255,255,255,0.07); border: 1px solid rgba(244,231,203,0.18); border-radius: 24px; padding: 28px; }
.publico h3 { margin: 0 0 14px; font-size: 26px; }
.publico ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.publico li { padding-left: 34px; position: relative; color: var(--crema); }
.publico li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--naranja-claro); }
.publico li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }

.funciones { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.funcion { background: #fff; border: 1px solid var(--borde); border-radius: 22px; padding: 24px; }
.funcion .icono { width: 48px; height: 48px; border-radius: 14px; background: var(--crema); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.funcion svg { width: 26px; height: 26px; stroke: var(--verde); }
.funcion h3 { margin: 0 0 6px; font-size: 21px; color: var(--verde-profundo); }
.funcion p { margin: 0; color: var(--tinta-suave); font-size: 17px; }

.galeria { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.galeria .telefono { flex: 0 0 min(62vw, 230px); scroll-snap-align: start; }

.video-bloque { display: grid; gap: 32px; align-items: center; }
.video-bloque video { width: min(80vw, 340px); justify-self: center; border-radius: 28px; box-shadow: 0 30px 70px rgba(0,0,0,0.25); background: #000; }

.preguntas details { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
.preguntas summary { font-weight: 700; font-size: 19px; cursor: pointer; color: var(--verde-profundo); }
.preguntas details p { margin: 12px 0 0; color: var(--tinta-suave); }

.final { background: linear-gradient(180deg, var(--verde) 0%, var(--verde-profundo) 100%); color: #fff; text-align: center; }
.final img.icono-grande { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; }
.final .titulo-seccion { color: #fff; }
.final .intro { color: var(--crema); margin-left: auto; margin-right: auto; }
.final .botones { justify-content: center; }

.pie { background: #111d16; color: rgba(244,231,203,0.8); font-size: 15px; padding: 32px 0; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.pie a { color: var(--crema); }

@media (min-width: 860px) {
  .portada .contenedor { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; padding-top: 72px; }
  .portada-telefono { margin-bottom: -90px; width: 340px; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .publicos { grid-template-columns: 1fr 1fr; }
  .video-bloque { grid-template-columns: 1fr 1fr; }
  .galeria { overflow: visible; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .galeria .telefono { flex: none; }
}

/* ¿Qué es AgroVoz? */
.intro.grande { font-size: 21px; color: var(--tinta); max-width: 760px; }
.problema { display: grid; gap: 18px; margin-bottom: 26px; }
.problema > div { background: #fff; border: 1px solid var(--borde); border-radius: 22px; padding: 24px; }
.problema h3 { margin: 0 0 8px; font-size: 21px; color: var(--naranja); }
.problema p { margin: 0; color: var(--tinta-suave); }
.datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.datos li { background: var(--crema); border-radius: 14px; padding: 14px 18px; color: var(--tinta); }
.datos strong { color: var(--verde-profundo); }

/* Videos */
.videos { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.video { margin: 0; }
.video video { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.video figcaption { margin-top: 12px; }
.video figcaption strong { display: block; font-size: 19px; color: var(--verde-profundo); }
.video figcaption span { display: block; color: var(--tinta-suave); font-size: 16px; }

@media (min-width: 860px) {
  .problema { grid-template-columns: 1fr 1fr; }
  .datos { grid-template-columns: 1fr 1fr; }
}

/* Secciones por rol */
.saltos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.saltos a { color: #fff; font-weight: 700; font-size: 17px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(244,231,203,0.5); }
.rol { scroll-margin-top: 70px; }
.etiqueta-rol { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--naranja); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.oscuro .intro.grande { color: var(--crema); }
.rol-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.subtitulo-rol { margin: 0 0 14px; font-size: 22px; color: var(--verde-profundo); }
.oscuro .subtitulo-rol { color: #fff; }
.pasos-rol { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.pasos-rol li { display: flex; gap: 14px; align-items: flex-start; }
.pasos-rol li > span { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--naranja); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pasos-rol strong { display: block; font-size: 18px; color: var(--verde-profundo); }
.oscuro .pasos-rol strong { color: #fff; }
.pasos-rol div { color: var(--tinta-suave); font-size: 17px; }
.oscuro .pasos-rol div { color: var(--crema); }
.beneficios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.beneficios li { padding-left: 32px; position: relative; color: var(--tinta); font-size: 17px; }
.oscuro .beneficios li { color: var(--crema); }
.beneficios li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--naranja-claro); }
.beneficios li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.video-rol { max-width: 340px; width: 100%; justify-self: center; }
.oscuro .video figcaption strong { color: #fff; }
.pantallas-rol { display: flex; gap: 16px; overflow-x: auto; margin-top: 40px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.pantallas-rol .telefono { flex: 0 0 min(55vw, 210px); scroll-snap-align: start; }
@media (min-width: 860px) {
  .rol-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .pantallas-rol { overflow: visible; justify-content: center; }
}
