/* ===== Variables (ajusta aquí la colorimetría) ===== */
:root {
  --tf-green-dark: #4a5a2e;   /* tono oscuro derivado del primario */
  --tf-green: #687c41;        /* COLOR PRIMARIO */
  --tf-green-light: #8fa365;
  --tf-earth: #b5894a;
  --tf-cream: #f6f3ec;
  --tf-text: #3a3a3a;
  --tf-white: #ffffff;
  --nav-h: 80px;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: 'Montserrat', sans-serif; color: var(--tf-text); line-height: 1.7; background: var(--tf-white); }
img { max-width: 100%; height: auto; }
a { transition: color .2s ease, background-color .2s ease; }
:focus-visible { outline: 3px solid var(--tf-earth); outline-offset: 2px; }

.titulo-seccion {
  font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .04em; color: var(--tf-green-dark); margin-bottom: 1.5rem;
}

/* ===== Logo (texto) ===== */
.brand-logo { font-weight: 300; letter-spacing: .25em; color: var(--tf-white); text-decoration: none; font-size: 1.4rem; }
.brand-logo span { font-weight: 700; }
.brand-logo:hover { color: var(--tf-white); }

/* ===== Navbar ===== */
#mainNav { min-height: var(--nav-h); background: transparent; transition: background-color .3s ease, box-shadow .3s ease; }
#mainNav.scrolled, #mainNav.menu-open { background: var(--tf-green); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
#mainNav .nav-link { color: var(--tf-white); font-weight: 500; padding: .5rem 1.1rem; position: relative; }
#mainNav .nav-link::after {
  content: ''; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .2rem;
  height: 2px; background: var(--tf-earth); transform: scaleX(0); transition: transform .25s ease;
}
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border-color: rgba(255,255,255,.6); }
.navbar-toggler-icon { filter: invert(1); }
.dropdown-menu { border: 0; border-radius: 0; background: var(--tf-green-dark); }
.dropdown-item { color: var(--tf-white); }
.dropdown-item:hover { background: var(--tf-green); color: var(--tf-white); }
.btn-contacto { background: var(--tf-earth); color: var(--tf-white); border-radius: 0; padding: .45rem 1.4rem; font-weight: 600; }
.btn-contacto:hover { background: var(--tf-white); color: var(--tf-green-dark); }
.nav-tel { color: var(--tf-white); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.nav-tel:hover { color: var(--tf-earth); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; position: relative; color: var(--tf-white);
  background: var(--tf-green-dark); /* color de respaldo mientras carga el video */
  overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; }
.hero .container { z-index: 4; }
/* Difuminado en #687c41 en la parte superior para suavizar el video */
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 0%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, #687c41 0%, rgba(104,124,65,.65) 60%, rgba(104,124,65,0) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
}
.hero-logo { font-weight: 300; letter-spacing: .3em; font-size: clamp(2.2rem, 7vw, 5rem); margin: 0; }
.hero-logo span { font-weight: 700; }
.hero-sub { letter-spacing: .35em; text-transform: uppercase; margin-top: .75rem; }
.scroll-down { display: inline-block; margin-top: 3rem; color: var(--tf-white); font-size: 1.8rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ===== Empresas ===== */
.empresa-texto { display: flex; align-items: center; }
.texto-inner { padding: clamp(1rem, 1vw, 1rem); max-width: 640px; margin: 0 auto; }
.empresa-nombre { font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
.empresa-img { min-height: 340px; overflow: hidden; }
.empresa-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empresa-1 .empresa-texto { background: var(--tf-green-dark); color: #000; text-align: right; background-color: #ffffff;}
.empresa-2 .empresa-texto { background: var(--tf-cream); color: #000; background-color: #ffffff; }
.empresa-2 .empresa-nombre { color: var(--tf-green-dark); }
.empresa-3 .empresa-texto { background: var(--tf-green); color: #000; background-color: #ffffff; text-align: right;  }

/* ===== Botones ===== */
.btn-ver-mas { border: 2px solid currentColor; border-radius: 0; padding: .55rem 1.8rem; font-weight: 600; color: inherit; background: transparent; }
.empresa-2 .btn-ver-mas, .lideres .btn-ver-mas, .modal .btn-ver-mas { color: var(--tf-green-dark); }
.btn-ver-mas:hover { background: var(--tf-earth); border-color: var(--tf-earth); color: var(--tf-white) !important; }

/* ===== Líderes ===== */
.lideres { padding: clamp(3.5rem, 8vw, 6rem) 0; background: #515d37; color: #ffffff; }
.lideres p { font-size: 1.05rem; }

/* ===== Certificaciones ===== */
.certificaciones { 
  padding: clamp(3.5rem, 8vw, 6rem) 0; 
  background-color: #ffffff; /* Es recomendable separar el color por si acaso */
  background-image: url('../img/mv20.webp'); 
  background-repeat: no-repeat;
  background-position: right center; /* La coloca a la derecha y centrada verticalmente */
  background-attachment: fixed;    /* Hace que la imagen se quede fija al hacer scroll */
  background-size: contain;         /* Opcional: ajusta si quieres que se vea completa (puedes cambiarlo a 'cover') */
}
.logos-cert { margin-top: 2rem; }
.logos-cert img { max-height: 110px; width: auto; object-fit: contain; }
.img-frutas { max-height: 520px; object-fit: contain; }

/* ===== Colabora ===== */
.colabora {
  min-height: 460px; position: relative;
  background: url('../img/mv21.webp') center/cover no-repeat fixed, var(--tf-green-dark);
}
.colabora-overlay { position: absolute; inset: 0; background: rgba(74,90,46,.01); }
.colabora-texto { max-width: 680px; }
.btn-contactar { background: var(--tf-earth); color: var(--tf-white); border-radius: 0; padding: .7rem 2.4rem; font-weight: 600; margin-top: 1rem; }
.btn-contactar:hover { background: var(--tf-white); color: var(--tf-green-dark); }

/* ===== Footer ===== */
.footer { background: #667647; color: rgba(255,255,255,.85); font-size: .95rem; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--tf-earth); }
.footer-titulo { font-size: .95rem; font-weight: 700; letter-spacing: .12em; color: var(--tf-white); margin-bottom: 1rem; }
.footer ul li { margin-bottom: .4rem; }
.footer address { margin-bottom: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; font-size: .85rem; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-down { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  #mainNav { background: var(--tf-green); }
  #mainNav .nav-link::after { display: none; }
  .colabora { background-attachment: scroll; }
  .nav-tel { margin: .5rem 0 1rem; }
}

/* =====================================================================
   PÁGINAS INTERNAS
   ===================================================================== */
body[data-page="inner"] #mainNav { background: var(--tf-green); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
body[data-page="inner"] main { padding-top: var(--nav-h); }
.btn-contacto.active { background: var(--tf-white); color: var(--tf-green-dark); }
a.btn-contactar { display: inline-block; }
.titulo-xl { font-size: clamp(2rem, 4.5vw, 3.2rem); }

/* Encabezado de página (legales y empresas) */
.page-hero { background: var(--tf-green); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 { font-weight: 700; letter-spacing: .04em; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; }
.page-hero-sub { margin: .75rem 0 0; opacity: .85; letter-spacing: .05em; }

/* ---------- Nosotros ---------- */
.somos, .historia, .aliado { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.somos{background-color: #697948; color: #FFF;}
.historia { background: var(--tf-cream); }
.img-redonda { width: 100%; max-height: 520px; object-fit: cover; border-radius: 0 60px 0 60px; box-shadow: 0 12px 30px rgba(0,0,0,.12); background-color:#7c9055 }
.mvv { background: #687257; padding: clamp(3rem, 7vw, 5rem) 0; }
.mvv-card { border: 0px solid rgba(255,255,255,.25); padding: 2.25rem 1.75rem; color: var(--tf-white); }
.mvv-card h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; color: #fff; margin-bottom: 1rem; }
.mvv-card p { margin: 0; }
.valores li { padding: .3rem 0; }
.valores li + li { border-top: 1px solid rgba(255,255,255,.12); }


.card-aliado {
  position: relative;
  overflow: hidden;
  border-radius: 16px; /* Ajusta las esquinas redondeadas según prefieras */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px; /* Asegura una altura uniforme para las tarjetas */
}

/* La imagen ocupa todo el fondo de la tarjeta */
.card-aliado img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Capa de texto y degradado superpuesto */
.card-aliado-body {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  color: #fff; /* Texto en blanco para que contraste */
  text-align: center;
  /* Creamos un degradado oscuro/verdoso en la parte inferior para que el texto sea legible */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.card-aliado-body h3 {
  font-weight: bold;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.card-aliado-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ---------- Empresas ---------- */
.empresa-detalle.fondo-claro { background: var(--tf-white); }
.empresa-detalle.fondo-crema { background: var(--tf-cream); }
.banner-empresa {
  position: relative; min-height: 580px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-color: var(--tf-green-dark);
}
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74,90,46,.75), rgba(74,90,46,.3)); }
.banner-nombre { position: relative; color: var(--tf-white); font-weight: 700; letter-spacing: .08em; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.empresa-parrafo { font-size: 1.05rem; }
.fotos-par { position: relative; min-height: 340px; }
.fotos-par img { object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.foto-a { width: 62%; aspect-ratio: 1; border-radius: 50%; }
.foto-b { width: 52%; aspect-ratio: 1; border-radius: 50%; position: absolute; right: 0; bottom: 0; border: 6px solid var(--tf-white); }
.fondo-crema .foto-b { border-color: var(--tf-cream); }
.lista-titulo { font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; color: var(--tf-green-dark); margin-bottom: 1rem; }
.lista-cultivos { list-style: none; padding: 0; margin: 0; }
.lista-cultivos li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.lista-cultivos li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--tf-green-light); }
.cert-logos img { height: 90px; width: auto; object-fit: contain; }
.nota-agave { margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--tf-earth); background: var(--tf-cream); font-weight: 500; }

/* ---------- Contacto ---------- */
/* Sección general a pantalla completa o fluida */
.contacto-sec {
  width: 100%;
}

/* Columna izquierda: Fondo verde institucional de Terrafranca */
.contacto-info-col {
  background-color: #637354; /* Ajusta este código al tono exacto de verde de tu marca */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4rem 3rem;
}

.contacto-info-inner {
  max-width: 550px;
  width: 100%;
}

/* Columna derecha con posición relativa para contener la capa de fondo */
.contacto-form-col {
  position: relative;
  display: flex;
  align-items: left;
  justify-content: left;
  padding: 4rem 3rem;
  overflow: hidden; /* Oculta cualquier exceso del desenfoque */
}

/* Capa independiente para la imagen de fondo, blur y oscurecimiento */
.contacto-form-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('../img/mv22.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05); /* Evita los bordes blancos típicos que genera el filtro blur */
  z-index: 1;
}

/* Aseguramos que el formulario esté por encima de la capa de fondo */
.contacto-form-col .form-contacto {
  position: relative;
  z-index: 2;
}


/* Estilo del formulario para que luzca limpio sobre la imagen */
.form-contacto {
  max-width: 550px;
  width: 100%;
}

/* Etiquetas del formulario en color blanco para contraste */
.form-contacto .form-label {
  color: #fff;
  font-weight: 500;
}

/* Campos de texto semi-transparentes o sólidos claros */
.form-contacto .form-control, 
.form-contacto .form-select {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
}

/* Botón de enviar */
.btn-contactar {
  background-color: #fff;
  color: #333;
  padding: 0.5rem 2rem;
  border: none;
  font-weight: 500;
  border-radius: 4px;
}

.btn-contactar:hover {
  background-color: #f0f0f0;
}

/* ---------- Legales ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h2 { font-size: 1.35rem; font-weight: 700; color: var(--tf-green-dark); margin: 2.25rem 0 .9rem; }
.legal p, .legal li { text-align: justify; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--tf-green); }

/* ===== Logo (imagen SVG) ===== */
.logo-img { display: block; height: 36px; width: auto; }
.navbar-brand { padding: .25rem 0; }
.footer-logo { display: inline-block; }
.footer-logo .logo-img { height: 46px; }
@media (max-width: 575.98px) {
  .logo-img { height: 30px; }
  .footer-logo .logo-img { height: 38px; }
}

/* =====================================================================
   MEJORAS: NAV DINÁMICO, EFECTOS DE CARGA Y RESPONSIVE
   ===================================================================== */
html, body { overflow-x: hidden; }

/* ---------- Nav: color según el contenido (páginas internas) ---------- */
body[data-page="inner"] #mainNav {
  background: var(--nav-bg, var(--tf-green));
  transition: background-color .45s ease, box-shadow .3s ease;
}
#mainNav .nav-link, #mainNav .nav-tel { color: var(--nav-fg, var(--tf-white)); transition: color .3s ease; }
#mainNav .logo-img { transition: filter .3s ease; }
#mainNav.nav-light { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
#mainNav.nav-light .logo-img { filter: brightness(0); }
#mainNav.nav-light .navbar-toggler { border-color: rgba(0,0,0,.4); }
#mainNav.nav-light .navbar-toggler-icon { filter: none; }

/* ---------- Efectos de carga ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.6rem;
  background: var(--tf-green-dark);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader img { height: 46px; width: auto; animation: pre-in .8s ease both; }
.preloader-bar { width: 140px; height: 2px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.preloader-bar::after {
  content: ''; position: absolute; inset: 0; width: 40%; background: var(--tf-earth);
  animation: pre-slide 1.1s ease-in-out infinite;
}
.preloader.hide { opacity: 0; visibility: hidden; }
@keyframes pre-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pre-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
body.is-loading { overflow: hidden; }

/* Entrada orquestada del encabezado al terminar la carga */
body:not(.is-loading) #mainNav { animation: nav-in .7s ease both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Imágenes: aparecen suavemente al cargar */
img.img-loading { opacity: 0; }
img.img-fade { transition: opacity .6s ease; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.ready { opacity: 1; }

/* Aparición al hacer scroll */
.reveal { transition-delay: var(--d, 0s); }

/* Botón de envío con indicador de carga */
.btn-contactar { position: relative; }
.btn-spinner {
  display: none; width: 1em; height: 1em; margin-right: .5rem; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-contactar.loading { pointer-events: none; opacity: .85; }
.btn-contactar.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .preloader, .preloader img, .preloader-bar::after, #mainNav, .hero-video, img.img-fade { animation: none !important; transition: none !important; }
  .hero-video { opacity: 1; }
}

/* ---------- Footer (idéntico en todas las páginas) ---------- */
.footer-arte { display: block; margin-left: auto; width: min(500px, 100%); height: auto; }

/* ---------- Responsive: tablet y escritorio chico ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .empresa-texto > div[style] { right: -60px !important; }
  .empresa-img img[style*="right"] { right: -120px !important; }
  .lideres .empresa-img img, .somos .row[style] { right: -60px !important; }
  .historia .col-lg-7[style] { max-width: 48% !important; left: 40px !important; }
  .certificaciones .row > div[style] { max-width: 55% !important; right: -40px !important; }
}

/* ---------- Responsive: móvil y tablet vertical ---------- */
@media (max-width: 991.98px) {
  :root { --nav-h: 68px; }
  .hero { min-height: 100svh; }
  #mainNav .navbar-collapse { padding: .5rem 0 1.25rem; }
  #mainNav .nav-link { padding: .65rem .25rem; }
  #mainNav .nav-link::after { left: .25rem; right: auto; width: 2rem; }
  #mainNav .dropdown-menu { background: rgba(0,0,0,.18); padding: 0 0 0 1rem; }
  #mainNav .btn-contacto { display: block; text-align: center; width: 100%; }
  #mainNav .nav-item.ms-lg-2 { margin-top: .75rem; }

  /* Bloques con desplazamientos en línea del diseño de escritorio */
  .empresa[style] { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
  .empresa-texto > div[style], .lideres .empresa-texto > div,
  .empresa-detalle .col-lg-6[style], .somos .row[style], .historia .col-lg-7[style],
  .certificaciones .row > div[style] {
    max-width: 100% !important; width: 100% !important; right: 0 !important; left: 0 !important;
  }
  .empresa-texto { padding: 2rem 1.5rem; justify-content: center; }
  .empresa-1 .empresa-texto, .empresa-3 .empresa-texto, .empresa-detalle .col-lg-6.text-end { text-align: center !important; }
  .empresa-texto > div[style] img, .lideres .empresa-texto img { margin: 0 auto; }
  .empresa-img { min-height: 0; padding: 1rem 0; text-align: center; }
  .empresa-img img, .empresa-img img[style] {
    position: static !important; right: auto !important; width: auto !important; height: auto !important;
    max-width: 80% !important; max-height: 340px; margin: 0 auto; object-fit: contain; display: block;
  }
  .lideres .empresa-img img[style] { max-width: 85% !important; max-height: none; }
  .lideres .empresa-texto { align-items: center !important; text-align: center; }
  .lideres .empresa-texto > div { max-width: 100%; }

  .certificaciones {
    background-attachment: scroll; background-size: cover; background-position: center;
    background-image: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)),
      url('../img/mv20.webp');
  }
  .certificaciones .container { padding: 3rem 1rem !important; text-align: center; }
  .logos-cert img { max-height: 70px; }

  .colabora { padding: 5rem 0 !important; min-height: 0; background-attachment: scroll; }

  /* Nosotros */
  .somos .row { margin: 0 !important; text-align: center; }
  .somos .col-lg-6[style] { bottom: 0 !important; }
  .historia .col-lg-5 { text-align: center !important; }
  .historia .col-lg-5 img { right: 0 !important; width: 90% !important; position: static !important; }
  .historia .col-lg-7 img { max-width: 100%; }
  .mvv-card { padding: 1.5rem 1rem; }
  .aliado .empresa-texto { padding: 1rem 0; text-align: center; align-items: center !important; }
  .card-aliado { min-height: 340px; }

  /* Empresas (detalle) */
  .banner-empresa { min-height: 240px; }
  .fotos-par { min-height: 0; text-align: center; }
  .fotos-par .foto-b { position: static; display: block; width: 70%; max-width: 300px; margin: 0 auto; }
  .empresa-detalle .row.align-items-center { --bs-gutter-y: 1.5rem; }
  .empresa-detalle .foto-a { max-width: 70% !important; max-height: 260px !important; }
  .empresa-detalle .col-md-6 { text-align: center; }
  .empresa-detalle .lista-cultivos { display: inline-block; text-align: left; }
  .empresa-detalle .mt-4.text-end { text-align: center !important; margin-left: auto; margin-right: auto; }
  .cert-logos { justify-content: center; }
  .empresa-detalle p[style] { margin-left: auto; margin-right: auto; }

  /* Contacto */
  .contacto-info-col { justify-content: center; padding: 3rem 1.5rem; }
  .contacto-form-col { justify-content: center; padding: 3rem 1.5rem; }

  /* Legales */
  .legal p, .legal li { text-align: left; }

  /* Footer */
  .footer .row { text-align: center; }
  .footer .offset-lg-2 { margin-left: 0; }
  .footer-arte { margin: 1.5rem auto 0; width: min(280px, 70%); }
  .footer .footer-logo { margin: 0 auto; }
  .footer img[src$="cebolla.svg"] { display: block; margin: 1rem auto 0; max-width: 110px !important; }
}

@media (max-width: 575.98px) {
  body { line-height: 1.6; }
  .empresa-img img, .empresa-img img[style] { max-width: 90% !important; }
  .btn-ver-mas, .btn-contactar { width: 100%; max-width: 320px; }
  .form-contacto .btn-contactar { max-width: none; }
  .logos-cert .col-4 { padding: 0 .25rem; }
  .logos-cert img { max-height: 54px; }
  .page-hero { padding: 2.5rem 0; }
  .legal { padding: 2rem 0; }
  .titulo-xl { font-size: 1.9rem; }
}
