:root {
  --verde-noche: #10261c;
  --verde: #1f4d38;
  --verde-medio: #2f6b4f;
  --verde-claro: #e5f0e8;
  --crema: #f4efe4;
  --crema-oscura: #e6ddcc;
  --tinta: #1c2416;
  --texto: #2a3526;
  --texto-suave: #5c6a56;
  --azul: #2d86d4;
  --azul-oscuro: #1c6cb3;
  --cielo: #8ecbf5;
  --sombra: 0 18px 40px rgba(16, 38, 28, 0.12);
  --ancho: 1120px;
  --fuente-titulo: "Fraunces", Georgia, serif;
  --fuente-texto: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#modulos,
#agenda {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1.125rem;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--azul);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}

.saltar:focus {
  top: 1rem;
}

.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(10px);
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--fuente-titulo);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--verde-noche);
}

.marca-logo {
  height: 3.35rem;
  width: 3.35rem;
  object-fit: contain;
  flex: none;
}

.pie .marca-pie {
  color: #f4efe4;
}

.marca-pie .marca-logo {
  height: 2.75rem;
  width: 2.75rem;
  background: #fff;
  border-radius: 0.65rem;
}

.navegacion {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.navegacion a {
  text-decoration: none;
  font-weight: 600;
}

.navegacion a:hover {
  color: var(--azul);
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.boton:focus-visible,
.navegacion a:focus-visible,
.marca:focus-visible,
.pie a:focus-visible {
  outline: 3px solid var(--cielo);
  outline-offset: 3px;
}

.boton-principal {
  background: var(--azul);
  color: #fff;
}

.boton-principal:hover {
  background: var(--azul-oscuro);
}

.boton-secundario {
  background: transparent;
  color: #f4efe4;
  border-color: rgba(244, 239, 228, 0.7);
}

.boton-secundario:hover {
  background: rgba(244, 239, 228, 0.12);
}

.boton-compacto {
  min-height: 42px;
  background: var(--azul);
  color: #fff;
  padding: 0.45rem 0.95rem;
}

.boton-compacto:hover {
  background: var(--azul-oscuro);
  color: #fff;
}

.portada {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
  padding: 4.5rem 1.5rem 13rem;
  background:
    radial-gradient(circle at 85% 18%, rgba(232, 177, 90, 0.35), transparent 18%),
    linear-gradient(165deg, #1c6b3a 0%, #123d28 72%);
  color: #f7f3ea;
}

.portada-texto,
.ficha {
  position: relative;
  z-index: 1;
}

.portada-texto {
  max-width: 640px;
}

.portada {
  padding-left: max(1.5rem, calc((100% - var(--ancho)) / 2));
  padding-right: max(1.5rem, calc((100% - var(--ancho)) / 2));
}

.sobrelinea {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cielo);
}

h1,
h2,
h3 {
  font-family: var(--fuente-titulo);
  font-weight: 650;
  line-height: 1.15;
  color: inherit;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: -0.03em;
}

.bajada {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  font-size: 1.25rem;
  color: #efe7d6;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ficha {
  background: rgba(244, 239, 228, 0.96);
  color: var(--tinta);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 0.4rem;
  box-shadow: var(--sombra);
}

.ficha-titulo {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verde);
}

.ficha ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ficha li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--crema-oscura);
}

.ficha li span {
  font-weight: 700;
}

.ficha small {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.horizonte {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
}

.comun {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding: 0 max(1.25rem, calc((100% - var(--ancho)) / 2)) 1rem;
}

.comun ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.comun li {
  background: #fffdf8;
  border-radius: 1rem;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: var(--sombra);
}

.comun h2,
.seccion-encabezado h2,
.agenda h2 {
  color: var(--verde-noche);
}

.comun h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.comun p,
.agenda p,
.tarjeta li {
  margin: 0;
}

.modulos,
.agenda {
  padding: 3.5rem max(1.25rem, calc((100% - var(--ancho)) / 2));
}

.seccion-encabezado {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.seccion-encabezado h2,
.agenda h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.seccion-encabezado .sobrelinea,
.agenda .sobrelinea {
  color: var(--azul);
}

.grilla-modulos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.tarjeta {
  grid-column: span 2;
  background: #fffdf8;
  border-radius: 1.1rem;
  padding: 1.3rem 1.25rem 1.15rem;
  border-top: 6px solid var(--verde);
  box-shadow: 0 8px 24px rgba(16, 38, 28, 0.06);
}

.tarjeta:nth-child(4) {
  grid-column: 2 / span 2;
}

.tarjeta:nth-child(5) {
  grid-column: 4 / span 2;
}

.tarjeta[data-modulo="cultivos"] { border-top-color: #2f6b4f; }
.tarjeta[data-modulo="ganaderia"] { border-top-color: #8c5a2b; }
.tarjeta[data-modulo="porcinos"] { border-top-color: #c46a4a; }
.tarjeta[data-modulo="avicola"] { border-top-color: #c4a035; }
.tarjeta[data-modulo="lecheria"] { border-top-color: #3d6f8c; }

.tarjeta h3 {
  margin: 0;
  font-size: 1.7rem;
  color: var(--verde-noche);
}

.aclaracion {
  margin: 0.2rem 0 0;
  color: var(--texto-suave);
  font-weight: 600;
}

.tarjeta ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.tarjeta li + li {
  margin-top: 0.45rem;
}

.agenda {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
  background: #fffdf8;
  border-top: 1px solid var(--crema-oscura);
}

.agenda-texto p {
  margin: 1rem 0 1.4rem;
  max-width: 32rem;
}

.calendly-inline-widget {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--crema);
  min-height: 700px;
}

.pie {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem max(1.25rem, calc((100% - var(--ancho)) / 2));
  background: var(--verde-noche);
  color: #f4efe4;
}

.pie p {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-size: 1.25rem;
}

.pie a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .portada,
  .comun ul,
  .agenda,
  .grilla-modulos {
    grid-template-columns: 1fr;
  }

  .portada-texto,
  .ficha {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .tarjeta,
  .tarjeta:nth-child(4),
  .tarjeta:nth-child(5) {
    grid-column: auto;
  }

  .cabecera {
    align-items: flex-start;
  }

  .navegacion {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.05rem;
  }

  .cabecera {
    flex-direction: column;
  }

  .navegacion {
    width: 100%;
    justify-content: space-between;
  }

  .boton {
    width: 100%;
  }

  .navegacion .boton {
    width: auto;
  }

  .portada {
    padding-top: 2.4rem;
    padding-bottom: 13rem;
  }

  .bajada {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
