:root {
  --bs-body-font-family: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: 20px;
  --bs-body-line-height: 1.25em;
}

body {
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.btn-accent {
  border: 0;
  border-radius: 1em;
  padding: .5rem 2rem;
  font-weight: 500;
  letter-spacing: .02em 0.32px;
  font-family: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hero-split {
  min-height: 90vh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 30px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  background-color: #3b3b3b;
}

.hero-half {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.9);
}

.hero-half.left {
  background-image: url("../images/empleado-soldando-metal-fabrica-prodel-industrial.jpg");
}

.hero-half.right {
  background-image: url("../images/vista-aerea-de-un-campo-agricola-prodel.jpg");
}

.hero-divider {
  background: rgba(0, 0, 0, .28);
}

.hero-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}

.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-link {
  color: #fff;
  text-decoration: none;
  opacity: .96;
  font-size: clamp(.98rem, .5vw + .8rem, 1.125rem);
}

.hero-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.hero-social {
  color: #fff;
  opacity: .96;
  font-size: 1.15rem;
}

.hero-social:hover {
  opacity: 1;
}

.hero-center {
  position: relative;
  z-index: 1;
}

.hero-title {
  max-width: 1100px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  letter-spacing: .2px;
}

@media (min-width:992px) {
  .hero-title {
    margin-top: .75rem;
  }
}

@media (max-width:991.98px) {
  .hero-split {
    min-height: 70vh;
  }

  .hero-bg {
    grid-template-columns: 1fr;
  }

  .hero-half {
    height: 35vh;
  }

  .hero-divider {
    display: none;
  }

  .hero-dim {
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .55));
  }
}

/* ===============================
   Sección QUIÉNES SOMOS (scoped)
   =============================== */

#quienes.section-pad {
  padding-block: clamp(48px, 6vw, 88px);
}

.chip {
  background: #3f3f3f;
  border-radius: 1em;
  padding: .05em .5em;
  line-height: 1.1em;
  font-weight: 400;
  font-size: .9em;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  font-family: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Título y párrafos */
#quienes .section-title {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1em;
  color: #000;
  font-size: 45px;
}

#quienes p {
  color: #6c757d;
  /* text-muted Bootstrap */
}

/* ===== Tarjetas de métricas ===== */
#quienes .metric-card {
  position: relative;
  border-radius: 16px;
  padding: 1.1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

#quienes .metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

/* Números grandes */
#quienes .metric-card .display-4,
#quienes .metric-card .display-5 {
  position: relative;
  line-height: .9;
  letter-spacing: -.03em;
  color: #3b3b3b;
  margin: 0;
  padding: 0;
  margin-top: -1em;
  z-index: 1;
  text-shadow: 2px 2px white;
}

/* Subtítulos/ayudas */
#quienes .metric-card small.text-muted {
  color: #6c757d !important;
  font-weight: 600;
}

/* Miniatura */
#quienes .metric-thumb {
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 0 12px;
  margin-left: -.6em;
  z-index: 0;
}

/* Espaciado interno entre número y miniatura */
#quienes .metric-card .d-flex {
  gap: .5rem;
}

/* =========== Responsive =========== */
@media (min-width: 992px) {

  /* número del primer bloque más grande, como en el diseño */
  #quienes .metric-card:first-child .display-4 {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    font-weight: 800;
  }

  #quienes .metric-card .display-5 {
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 4rem);
    margin-right: -1em;
  }
}

@media (max-width: 1199.98px) {
  #quienes .metric-thumb {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 991.98px) {

  /* tablet y abajo */
  #quienes .section-title {
    font-size: clamp(1.6rem, 4.8vw, 2rem);
  }

  #quienes .metric-card {
    padding: 1rem;
    max-width: 200px;
    margin: auto;
  }

  #quienes .metric-card .d-flex {
    align-items: center;
  }
}

@media (max-width: 575.98px) {

  /* móvil */
  /* Mejor legibilidad en móvil */
  #quienes .metric-card .d-flex {
    flex-direction: row;
    gap: .85rem;
  }

  #quienes .metric-card .display-4 {
    font-size: 3rem;
  }

  #quienes .metric-card .display-5 {
    font-size: 2.25rem;
  }

  #quienes .metric-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
  }

  #quienes .row.g-4 {
    --bs-gutter-y: 1.25rem;
  }

  /* más aire entre tarjetas */
}

/* ===============================
   Sección PRODEL INDUSTRIAL (oscura)
   =============================== */
#industrial.section-dark {
  background: #0d0d0d;
  border-top: 8px solid #ff7a16;
  /* borde superior naranja */
  padding-block: clamp(56px, 7vw, 96px);
  border-radius: 0 50px 0 0;
  padding-bottom: 150px;
}


/* Imagen izquierda */
#industrial .object-cover {
  height: clamp(260px, 38vw, 420px);
  object-fit: cover;
  object-position: center;
  border-radius: 0 1rem;
}

/* Chip (pill) */
#industrial .chip {
  color: #0b0b0b;
  background: #fff;
}

#industrial .chip .chip-dark {
  background: #fff;
  color: #0b0b0b;
}

/* Texto y lista */
#industrial .text-light-70 {
  color: rgba(255, 255, 255, .78) !important;
  max-width: 66ch;
}

#industrial .text-accent {
  color: #ff7a16 !important;
}

#industrial ul.list-unstyled {
  margin-top: 1rem;
}

#industrial ul.list-unstyled li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .6rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

#industrial .bi-check2 {
  font-size: 1.05rem;
  margin-top: .15rem;
}

/* Botón */
#industrial .btn-accent {
  --btn-bg: #ff7a16;
  --btn-bg-h: #ff8f3a;
  background: var(--btn-bg);
  color: #0b0b0b;
}

#industrial .btn-accent:hover {
  background: var(--btn-bg-h);
  color: #0b0b0b;
}


/* ===============================
   Posición del logo y responsive
   =============================== */

/* Desktop: logo superpuesto en la columna derecha con tamaño exacto */
@media (min-width: 992px) {

  /* espacio para el logo encima del texto */
  #industrial .col-lg-6.text-white {
    position: relative;
  }

  #industrial .brand-logo {
    width: 239px;
    height: 170px;
    object-fit: contain;
    display: block;
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  #industrial .object-cover {
    height: 300px;
    margin-bottom: 3em;
  }

  #industrial .brand {
    position: static;
    margin-bottom: .5rem;
  }

  #industrial .brand-logo {
    width: min(239px, 70vw);
    height: auto;
  }

  #industrial .chip {
    position: static;
  }
}

/* Móvil */
@media (max-width: 575.98px) {
  #industrial .dark-card {
    padding: 18px;
  }

  #industrial .object-cover {
    height: 240px;
  }
}


/* ===== MAPA INDUSTRIAL (scoped) ===== */
.mapa-industrial {
  background: #292929;
  border-radius: 0 50px 0 0;
  margin-top: -50px;
  overflow: hidden;
}

/* Tarjeta dividida */
.mapa-industrial .map-card {
  background: #292929;
  border-color: #292929;
}

/* Tipografías auxiliares */
.mapa-industrial .section-subtitle {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.mapa-industrial .text-white-80 {
  color: rgba(255, 255, 255, .88) !important;
}

.mapa-industrial .text-white-60 {
  color: rgba(255, 255, 255, .64) !important;
}

/* Columna mapa */
.mapa-industrial .map-wrap {
  position: relative;
  background: #292929;
  min-height: clamp(260px, 42vw, 460px);
}

.mapa-industrial .object-cover {
  object-fit: cover;
  object-position: center;
  display: block;
}



/* Responsive spacing */
@media (max-width: 991.98px) {
  .mapa-industrial .map-card {
    border-radius: 16px;
  }

  .mapa-industrial .map-wrap {
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .mapa-industrial .map-wrap {
    min-height: 260px;
  }
}


/* ===============================
   Sección DESDE 1991 (sin subrayado)
   =============================== */
#since {
  background: #fff;
  padding: 3rem;
}

#since .section-subtitle {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
  color: #111;
}

#since .year-giant {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: .9;
  font-size: 10em;
  font-family: "Exo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 1400px) {
  #since .year-giant {
    font-size: clamp(12rem, 15vw, 20rem);
  }
}

@media (max-width: 575.98px) {
  #since .year-giant {
    font-size: clamp(4.8rem, 18vw, 8rem);
  }
}


/* Responsive */
@media (max-width: 991.98px) {
  #since .section-subtitle {
    margin-bottom: .35rem;
  }

  #since .year-giant {
    font-size: clamp(4.2rem, 16vw, 7rem);
  }
}

@media (max-width: 575.98px) {
  #since .section-subtitle {
    text-align: center;
  }

  #since .year-giant {
    display: block;
    text-align: center;
    margin-inline: auto;
  }
}


/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .since .section-subtitle {
    margin-bottom: .35rem;
  }

  .since .year-giant {
    font-size: clamp(4.2rem, 16vw, 7rem);
  }

  .since .year-giant::after {
    width: 60%;
    bottom: -6px;
  }
}

@media (max-width: 575.98px) {
  .since .section-subtitle {
    text-align: center;
  }

  .since .year-giant {
    display: block;
    text-align: center;
    margin-inline: auto;
  }

  .since .year-giant::after {
    left: 50%;
    transform: translateX(-50%);
    /* subrayado centrado bajo el número */
    width: 58%;
  }

  .since p.text-muted {
    text-align: left;
  }

  /* o center si te gusta más */
}


/* ===============================
   PRODEL AGRÍCOLA (toda la sección gris + borde arriba)
   =============================== */

#agricola.section-grey {
  background: #e0e0e0;
  /* gris en toda la franja */
  border-top: 10px solid #6aa245;
  /* borde superior verde */
  padding-block: clamp(48px, 6vw, 88px);
  border-radius: 0 50px 0 0;
  padding-bottom: 150px;
}

/* El container vuelve a ser transparente (sin card) */
#agricola>.container-xxl {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  /* confía en el padding del section */
}

/* Chip gris */
#agricola .chip .chip-grey {
  color: #2b2b2b;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, .08);
}

/* Logo / marca */
#agricola .brand {
  line-height: 1;
  margin: 16px 0 10px;
}

#agricola .brand-logo {
  width: clamp(220px, 28vw, 251px);
  height: auto;
  display: block;
}

/* Botón verde suave */
#agricola .btn-success-soft {
  background: #708B36;
  color: #FFF;
}

#agricola .btn-success-soft:hover {
  background: #1b1b1b;
}

/* Imagen derecha */
#agricola .object-cover {
  height: clamp(240px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  border-radius: 0 16px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  #agricola .brand {
    margin: 12px 0 8px;
  }

  #agricola .object-cover {
    height: 320px;
  }
}

@media (max-width: 575.98px) {
  #agricola .object-cover {
    height: 240px;
  }
}

/* ===============================
   MAPA AGRÍCOLA (footer oscuro)
   =============================== */

.footer-map {
  background: #292929;
  margin-top: -50px;
  border-radius: 0 50px 0 0;
  overflow: hidden;
}

.footer-map h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-bottom: 1rem !important;
}

/* Utilidades de color (por si no existen en tu CSS) */
.footer-map .text-white {
  color: #fff !important;
}

.footer-map .text-white-70 {
  color: rgba(255, 255, 255, .72) !important;
}

/* Iconos con acento verde */
.footer-map .bi {
  color: #6aa245;
  opacity: .95;
}

/* Columna del mapa */
.footer-map .object-cover {
  height: clamp(260px, 40vw, 460px);
  /* alto responsivo */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Pequeños ritmos tipográficos en la columna de texto */
.footer-map address {
  font-style: normal;
  line-height: 1.65;
}

.footer-map p {
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 991.98px) {
  .footer-map .object-cover {
    height: 340px;
    border-radius: 22px;
  }
}

@media (max-width: 575.98px) {
  .footer-map {
    padding-block: 36px;
  }

  .footer-map .object-cover {
    height: 260px;
    border-radius: 18px;
  }
}

/* ===============================
   Footer final (scope)
   =============================== */
.footer-final {
  background: #ffffff;
  color: #2b2b2b;
}

.footer-final .footer-logos {
  padding-block: clamp(48px, 6vw, 88px);
}

.footer-final .text-white-70 {
  color: rgba(255, 255, 255, .7) !important;
}

/* Col izquierda */
.footer-final .ff-logo-main {
  width: clamp(140px, 22vw, 190px);
  height: auto;
  display: block;
}

.footer-final .ff-vdiv {
  width: 1px;
  height: 60px;
  background: rgba(0, 0, 0, .2);
  margin-left: clamp(8px, 2vw, 20px);
}

/* Col centro */
.footer-final .ff-label {
  color: #666;
  font-size: .9rem;
  font-weight: 600;
}

.footer-final .ff-brand {
  height: clamp(36px, 6vw, 52px);
  width: auto;
  display: block;
  filter: none;
  /* respeta el color propio de cada marca */
}

.footer-final .ff-brand-link {
  opacity: .95;
  transition: opacity .2s ease;
}

.footer-final .ff-brand-link:hover {
  opacity: 1;
}

/* Col derecha (RRSS + agencia) */
.footer-final .ff-social {
  color: #333;
  font-weight: 600;
}

.footer-final .ff-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: .35rem;
  border-radius: 50%;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, .1);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.footer-final .ff-ico:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.footer-final .ff-ico i {
  font-size: 1rem;
}

.footer-final .ff-agency a {
  color: #555;
  text-decoration: none;
}

.footer-final .ff-agency {
  color: #777;
  font-size: .95rem;
}

.footer-final .ff-agency strong {
  color: #555;
}

.footer-final .ff-agency-logo {
  height: 18px;
  width: auto;
  margin-left: .4rem;
  vertical-align: middle;
  opacity: .8;
}

/* Franja negra inferior */
.footer-final .footer-bottom {
  background: #0b0b0b;
  padding: .6rem 0;
  margin-top: .75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.footer-final .footer-bottom .text-white-70, .footer-final .footer-bottom a {
  color: rgba(255, 255, 255, .68) !important;
  font-size: small;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .footer-final .ff-vdiv {
    display: none;
  }

  .footer-final .ff-logo-main {
    margin-inline: auto;
  }

  .footer-final .ff-social {
    margin-top: .5rem;
  }
}

@media (max-width: 575.98px) {
  .footer-final .ff-brand {
    height: 42px;
  }
}