/* ==========================================================================
   AGRO VITALIS
   Estilos de la landing (/agro-vitalis) y del bloque de acceso en Packaging.
   Separado de main.css a proposito: todo va prefijado .av- y no afecta al
   resto del sitio. Se carga solo en las paginas que lo declaran, via
   $page_css en lib/scripts.php.
   ========================================================================== */

/* --- Landing --------------------------------------------------------- */
.av-section      { padding: 70px 0; }
.av-section-alt  { background: #f7f7f7; }
/* Hero compacto: sin fotografia de fondo no hace falta la altura de banner del sitio,
   y con el boton dentro el bloque no queda flotando en blanco. */
.av-hero-plano   { background: #ffffff; padding: 45px 0 50px; }
.av-hero-btn     { margin-top: 28px; }
/* El logo del expediente es casi cuadrado (454x473). Se dimensiona por altura para
   controlar cuanto ocupa en pantalla; object-fit evita cualquier deformacion si
   el ancho disponible obliga a recortar. Nunca alterar sus proporciones. */
.av-logo         { height: 340px; width: auto; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
.av-h1-logo      { margin: 0; }
@media (max-width: 767px) {
    .av-logo { height: 230px; }
}
.av-h1           { font-family: 'Raleway', sans-serif; font-size: 42px; font-weight: 700; letter-spacing: 3px; color: #4a4a4a; margin-bottom: 15px; }
.av-lead         { font-family: 'Lato', sans-serif; font-size: 20px; font-weight: 300; color: #707070; max-width: 760px; margin: 0 auto 30px; line-height: 1.5; }
.av-h2           { font-family: 'Raleway', sans-serif; font-size: 30px; font-weight: 600; letter-spacing: 2px; color: #4a4a4a; text-align: center; margin-bottom: 12px; }
.av-h3           { font-family: 'Raleway', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #8DC63F; margin-bottom: 8px; }
.av-sub          { font-family: 'Lato', sans-serif; font-size: 17px; color: #707070; text-align: center; max-width: 800px; margin: 0 auto 45px; line-height: 1.6; }
.av-p            { font-family: 'Lato', sans-serif; font-size: 16px; color: #707070; line-height: 1.6; }
.av-feature      { margin-bottom: 32px; }
.av-btn          { display: inline-block; background: #8DC63F; color: #fff; font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 15px 42px; border: 0; border-radius: 3px; text-decoration: none; transition: background .2s; cursor: pointer; }
.av-btn:hover    { background: #6FA82F; color: #fff; text-decoration: none; }
.av-figure       { margin: 0 0 25px; text-align: center; }
.av-photo        { width: 100%; height: auto; border-radius: 3px; }
.av-figure figcaption { font-family: 'Lato', sans-serif; font-size: 14px; color: #909090; margin-top: 10px; }
.av-photo-missing{ display: flex; flex-direction: column; align-items: center; justify-content: center; height: 240px; border: 2px dashed #d0021b; border-radius: 3px; background: #fff5f5; }
.av-photo-missing span  { font-family: 'Raleway', sans-serif; font-weight: 700; letter-spacing: 2px; color: #d0021b; font-size: 15px; }
.av-photo-missing small { font-family: monospace; color: #a06060; margin-top: 6px; font-size: 12px; }
.av-callout      { background: #8DC63F; color: #fff; text-align: center; padding: 32px 20px; border-radius: 4px; margin-top: 20px; }
.av-callout p    { font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: 1px; margin: 0 0 6px; }
.av-callout small{ font-family: 'Lato', sans-serif; font-size: 15px; opacity: .95; }
.av-contact-box  { text-align: center; margin-bottom: 40px; font-family: 'Lato', sans-serif; font-size: 18px; color: #4a4a4a; }
.av-contact-box a{ color: #6FA82F; font-weight: 700; }
.av-form label   { font-family: 'Lato', sans-serif; font-size: 14px; color: #4a4a4a; font-weight: 700; margin-bottom: 4px; }
.av-form .form-control { border-radius: 3px; font-family: 'Lato', sans-serif; }
.av-form .form-group   { margin-bottom: 18px; }
.av-required     { color: #d0021b; }
.av-msg          { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 3px; font-family: 'Lato', sans-serif; font-size: 16px; }
.av-msg-ok       { background: #eaf6dd; color: #4a7d16; border: 1px solid #8DC63F; }
.av-msg-err      { background: #fdecea; color: #a12622; border: 1px solid #d0021b; }
.av-logo-missing { max-width: 460px; margin: 0 auto 25px; height: 180px; }
.av-countries    { text-align: center; }
.av-country      { display: inline-block; font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: 2px; color: #4a4a4a; padding: 14px 34px; margin: 8px; border: 2px solid #8DC63F; border-radius: 3px; }
@media (max-width: 767px) {
    .av-h1   { font-size: 30px; }
    .av-h2   { font-size: 24px; }
    .av-lead { font-size: 17px; }
}

/* --- Bloque de acceso en Packaging ----------------------------------- */
.av-promo         { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 30px; border: 2px solid #8DC63F; border-radius: 6px; padding: 28px 34px; text-decoration: none; transition: box-shadow .2s; }
.av-promo:hover   { text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.av-promo-logo img{ height: 110px; width: auto; display: block; }
.av-promo-texto   { flex: 1 1 320px; }
.av-promo-titulo  { font-family: 'Raleway', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: 2px; color: #4a4a4a; margin: 0 0 6px; }
.av-promo-bajada  { font-family: 'Lato', sans-serif; font-size: 16px; color: #707070; line-height: 1.5; margin: 0; }
.av-promo-cta     { background: #8DC63F; color: #fff; font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 2px; padding: 14px 32px; border-radius: 3px; white-space: nowrap; }
.av-promo:hover .av-promo-cta { background: #6FA82F; }
@media (max-width: 767px) {
    .av-promo        { text-align: center; padding: 24px 18px; }
    .av-promo-titulo { font-size: 20px; }
}

/* ==========================================================================
   Bloques del mockup "Bolsa Vitalis", adaptados a la landing.
   Todas las clases van prefijadas .av- para no chocar con Bootstrap ni con
   main.css, y las variables con --av- por el mismo motivo.
   ========================================================================== */
:root{
  --av-ink:#33322c;
  --av-body:#6d6c62;
  --av-paper:#ffffff;
  --av-paper-alt:#f5f8ee;
  --av-line:#e7e5da;
  --av-green-800:#3f6b1a;
  --av-green-700:#5e9a28;
  --av-green-600:#79b432;
  --av-green-500:#8dc63f;
  --av-green-300:#c3e29b;
  --av-green-100:#edf6de;
  --av-frost-200:#dcedf1;
  --av-shadow:0 18px 40px -22px rgba(51,50,44,.35);
}

.av-wrap        { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.av-sec         { padding: 88px 0; }
.av-sec-alt     { background: var(--av-paper-alt); }

.av-eyebrow     { display: inline-flex; align-items: center; gap: 8px; font-family: 'Raleway', sans-serif;
                  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
                  color: var(--av-green-700); }
.av-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--av-green-500); display: inline-block; }

.av-sec-head    { max-width: 640px; margin: 0 0 44px; display: flex; flex-direction: column; gap: 14px; }
.av-sec-head.av-center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.av-sec-head h2 { font-family: 'Raleway', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: .02em;
                  text-transform: uppercase; color: var(--av-ink); margin: 0; text-wrap: balance; }
.av-lede        { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; color: var(--av-body); margin: 0; }
.av-txt         { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.65; color: var(--av-body); margin: 0; }

/* tarjetas de beneficio */
.av-grid5       { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.av-bcard       { background: var(--av-paper); border: 1px solid var(--av-line); border-radius: 18px;
                  padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--av-shadow); }
.av-bcard h3    { font-family: 'Raleway', sans-serif; text-transform: uppercase; font-size: 15.5px;
                  letter-spacing: .03em; font-weight: 700; color: var(--av-ink); margin: 0; }
.av-bcard p     { font-family: 'Lato', sans-serif; font-size: 14.5px; line-height: 1.6; color: var(--av-body); margin: 0; }
.av-icon        { width: 52px; height: 52px; border-radius: 14px; background: var(--av-green-100);
                  display: flex; align-items: center; justify-content: center; color: var(--av-green-700); flex: none; }

/* bloques en detalle */
.av-dd          { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.av-dd + .av-dd { margin-top: 86px; }
.av-dd-media    { background: var(--av-paper); border-radius: 22px; border: 1px solid var(--av-line);
                  padding: 34px; display: flex; align-items: center; justify-content: center;
                  min-height: 280px; box-shadow: var(--av-shadow); }
.av-dd-copy     { display: flex; flex-direction: column; gap: 16px; }
.av-dd-copy h2  { font-family: 'Raleway', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: .02em;
                  text-transform: uppercase; color: var(--av-ink); margin: 0; text-wrap: balance; }
.av-dd-rev .av-dd-media { order: 2; }
.av-dd-rev .av-dd-copy  { order: 1; }
.av-kicker      { font-family: 'Raleway', sans-serif; font-size: 12.5px; font-weight: 700;
                  letter-spacing: .16em; color: var(--av-green-600); }
.av-check       { list-style: none; margin: 8px 0 0; padding: 0; display: grid;
                  grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.av-check li    { display: flex; align-items: center; gap: 10px; font-family: 'Lato', sans-serif;
                  font-size: 14.5px; font-weight: 700; color: var(--av-ink); }
.av-check li svg{ flex: none; }
.av-recycle     { display: flex; align-items: center; gap: 18px; }
.av-recycle-num { font-family: 'Raleway', sans-serif; font-size: 44px; font-weight: 800;
                  color: var(--av-green-700); line-height: 1; }
.av-recycle-lbl { font-family: 'Raleway', sans-serif; font-size: 12.5px; font-weight: 700;
                  letter-spacing: .1em; text-transform: uppercase; color: var(--av-body); }
.av-dd-sub      { font-family: 'Raleway', sans-serif; font-weight: 700; color: var(--av-ink);
                  text-transform: uppercase; letter-spacing: .03em; font-size: 14px; margin: 0; }

/* aplicaciones y flujo */
.av-apps        { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
.av-app         { background: var(--av-paper); border: 1px solid var(--av-line); border-radius: 16px;
                  padding: 24px 20px; text-align: center; display: flex; flex-direction: column;
                  align-items: center; gap: 12px; }
.av-app h3      { font-family: 'Raleway', sans-serif; font-size: 13.5px; letter-spacing: .04em;
                  text-transform: uppercase; font-weight: 700; color: var(--av-ink); margin: 0; }
.av-flow        { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.av-flow::before{ content: ""; position: absolute; left: 44px; right: 44px; top: 34px; height: 2px;
                  background: repeating-linear-gradient(90deg, var(--av-green-500) 0 10px, transparent 10px 20px); }
.av-flow-node   { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; }
.av-flow-dot    { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--av-green-500);
                  display: flex; align-items: center; justify-content: center; color: var(--av-green-700);
                  position: relative; z-index: 2; }
.av-flow-label  { font-family: 'Raleway', sans-serif; font-size: 12.5px; font-weight: 700; text-align: center;
                  letter-spacing: .02em; color: var(--av-ink); text-transform: uppercase; }

/* frutas */
.av-fruits      { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.av-fruit       { border-radius: 18px; padding: 26px 18px 22px; text-align: center; display: flex;
                  flex-direction: column; align-items: center; gap: 14px; border: 1px solid var(--av-line); }
.av-fruit-icon  { width: 78px; height: 78px; border-radius: 50%; background: #fff;
                  display: flex; align-items: center; justify-content: center; }
.av-fruit h3    { font-family: 'Raleway', sans-serif; font-size: 15px; text-transform: uppercase;
                  letter-spacing: .02em; font-weight: 700; color: var(--av-ink); margin: 0; }
.av-fruit .av-sci { font-family: 'Lato', sans-serif; font-size: 12px; color: var(--av-body);
                  font-style: italic; display: block; margin-top: -8px; }
.av-fruit p     { font-family: 'Lato', sans-serif; font-size: 12.5px; line-height: 1.5; color: var(--av-body); margin: 0; }

/* disponibilidad */
.av-avail       { background: linear-gradient(180deg, var(--av-green-800) 0%, #2c4c14 100%);
                  border-radius: 26px; padding: 58px 48px; color: #fff; position: relative; overflow: hidden; }
.av-avail::after{ content: ""; position: absolute; inset: 0;
                  background: radial-gradient(60% 90% at 90% -10%, rgba(255,255,255,.10), transparent 60%); }
.av-avail .av-sec-head h2 { color: #fff; }
.av-avail .av-lede        { color: rgba(255,255,255,.78); }
.av-avail .av-eyebrow     { color: var(--av-green-300); }
.av-avail .av-eyebrow::before { background: var(--av-green-300); }
.av-avail-row   { position: relative; display: flex; justify-content: space-between; gap: 8px; margin-top: 52px; }
.av-avail-row::before { content: ""; position: absolute; left: 38px; right: 38px; top: 38px; height: 2px;
                  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 10px, transparent 10px 20px); }
.av-avail-node  { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; }
.av-avail-flag  { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.08);
                  border: 2px solid rgba(255,255,255,.4); display: flex; align-items: center;
                  justify-content: center; font-size: 30px; position: relative; z-index: 2; }
.av-avail-label { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700;
                  letter-spacing: .03em; text-transform: uppercase; }

@media (max-width: 940px) {
    .av-grid5   { grid-template-columns: repeat(2, 1fr); }
    .av-dd, .av-dd-rev { grid-template-columns: 1fr; gap: 34px; }
    .av-dd-rev .av-dd-media, .av-dd-rev .av-dd-copy { order: 0; }
    .av-apps    { grid-template-columns: repeat(2, 1fr); }
    .av-fruits  { grid-template-columns: repeat(2, 1fr); }
    .av-flow    { flex-wrap: wrap; row-gap: 34px; }
    .av-flow::before { display: none; }
    .av-avail-row { flex-wrap: wrap; row-gap: 28px; }
    .av-avail-row::before { display: none; }
}
@media (max-width: 520px) {
    .av-grid5, .av-apps, .av-fruits { grid-template-columns: 1fr; }
    .av-check   { grid-template-columns: 1fr; }
    .av-avail   { padding: 40px 22px; }
    .av-sec     { padding: 56px 0; }
    .av-sec-head h2 { font-size: 25px; }
    .av-dd-copy h2  { font-size: 23px; }
}
