/* GUIA DE ESTILOS
  Colores y tipografia: :root y body. Navegacion/logo: .site-header, .main-nav y .brand.
  Inicio: .hero-wrap, .index-page y sus secciones. Paginas: .services-page, .analysis-*,
  .training-*, .quote-page y .about-page. Componentes: modales, .chatbot y .bios-footer.
  Imagenes de fondo declaradas en CSS: buscar background-image o url(). Las fotos en <img>
  y los textos/nombres visibles se cambian en el HTML, no aqui. Responsive se divide en @media.
  Servicios: centros -> detail-page--centers; alimentos -> detail-page--food;
  plantas y agua/piscinas -> detail-page--water (sus nombres/textos estan en cada HTML).
*/
/* Ajustes heredados de prioridad alta para la portada de index.html. */
.index-page.index-page.index-page .hero-title-frame h1 { width: 400px !important; max-width: 400px !important; font-size: 60px !important; line-height: .82 !important; white-space: normal !important; }
.index-page.index-page.index-page .hero-title-frame p { width: 300px !important; max-width: 300px !important; font-size: .6rem !important; line-height: 1.25 !important; }
@media (min-width: 801px) {
  .index-page.index-page.index-page .hero-title-frame h1 { width: 420px !important; max-width: 420px !important; font-size: 68px !important; }
}
.index-page.index-page .hero-title-frame h1 {
  width: 280px !important;
  max-width: 280px !important;
  font-size: 2.7rem !important;
  line-height: .84 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
}

.index-page.index-page .hero-title-frame p {
  width: 230px !important;
  max-width: 230px !important;
  margin-top: 16px !important;
  font-size: .5rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 800px) {
  .index-page.index-page .hero-title-frame h1 {
    width: 250px !important;
    max-width: 250px !important;
    font-size: 2.35rem !important;
  }

  .index-page.index-page .hero-title-frame p {
    width: 210px !important;
    max-width: 210px !important;
    font-size: .5rem !important;
  }
}
.index-page.index-page .hero-title-frame {
  width: 360px !important;
  max-width: calc(100% - 110px) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

.index-page.index-page .hero-title-frame h1 {
  width: 300px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  font-size: 3.45rem !important;
  line-height: .82 !important;
  text-align: center !important;
}

.index-page.index-page .hero-title-frame p {
  width: 250px !important;
  max-width: 100% !important;
  margin: 18px auto 0 !important;
  font-size: .55rem !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
.index-page.index-page .hero-title-frame h1 {
  width: min(100%, 300px) !important;
  max-width: 300px !important;
  font-size: 3.9rem !important;
  line-height: .82 !important;
  text-align: center !important;
}

.index-page.index-page .hero-title-frame p {
  width: min(100%, 285px) !important;
  max-width: 285px !important;
  margin: 15px auto 0 !important;
  font-size: .62rem !important;
  line-height: 1.22 !important;
  text-align: center !important;
}

@media (max-width: 800px) {
  .index-page.index-page .hero-title-frame h1 {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    font-size: clamp(2.4rem, 11vw, 3.5rem) !important;
  }

  .index-page.index-page .hero-title-frame p {
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    font-size: .62rem !important;
  }
}
.index-page.index-page .hero-title-frame {
  padding-left: 54px !important;
  padding-right: 54px !important;
}

.index-page.index-page .hero-title-frame h1 {
  width: 100% !important;
  max-width: 500px !important;
  color: var(--primary) !important;
  text-align: center !important;
  overflow-wrap: normal;
}

.index-page.index-page .hero-title-frame p {
  width: 100% !important;
  max-width: 380px !important;
  color: #1f2e3d !important;
  text-align: center !important;
}
.index-page.index-page .hero-title-frame { align-items: center !important; }
.bios-footer.bios-footer { background-color: rgba(45, 43, 109, .08) !important; }
.bios-footer { background: rgba(45, 43, 109, .08) !important; }
@media (max-width: 700px) {
  .site-header .main-nav:not(.open) { opacity: 0 !important; visibility: hidden !important; transform: translateY(-6px) !important; }
  .chatbot-toggle.chatbot-toggle { width: 72px !important; height: 72px !important; right: 12px !important; bottom: 12px !important; }
  .chatbot-bee.chatbot-bee { width: 64px !important; height: 64px !important; }
}
.index-page .hero-copy > p { max-width: 100%; }

@media (max-width: 700px) {
  .site-header .main-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-6px) !important;
  }

  .site-header .main-nav.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .chatbot-toggle {
    width: 72px !important;
    height: 72px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .chatbot-bee {
    width: 64px !important;
    height: 64px !important;
  }

  .chatbot-hint {
    right: 78px !important;
    bottom: 26px !important;
    padding: 7px 10px !important;
    font-size: .7rem !important;
  }
}
.index-page.index-page .hero-copy { display: flex !important; flex-direction: column !important; height: 470px !important; }
.index-page.index-page .hero-title-frame { flex: 1 1 auto !important; align-items: flex-start !important; }
.index-page.index-page .hero-copy > p { margin-top: auto !important; margin-bottom: 32px !important; }
.index-page.index-page .analysis-preview__grid { gap: 18px !important; }
.index-page .analysis-preview__grid { gap: 18px !important; }
@media (min-width: 801px) { .index-page.index-page .hero-title-frame h1 { font-size: clamp(4rem, 7vw, 7rem) !important; line-height: .82 !important; } }
.index-page.index-page .hero-title-frame h1 { font-size: clamp(4.8rem, 7.5vw, 8rem) !important; line-height: .8 !important; }
.index-page.index-page .hero-copy > p { margin-top: 28px !important; font-size: .8rem !important; line-height: 1.45 !important; }
.index-page.index-page .hero-copy > p { font-size: .88rem !important; line-height: 1.5 !important; margin-top: 16px !important; }
.index-page.index-page .hero-title-frame { background-image: none !important; background-color: transparent !important; }
.bios-footer__brand > .site-logo { width: 200px; height: auto; padding: 0; background: transparent; object-fit: contain; }
.logo-liquid-wrap > .site-logo { display: block; width: 100%; height: auto; }
.index-page.index-page .hero-title-frame h1 {
  font-size: clamp(3.6rem, 6vw, 6.8rem) !important;
  line-height: .86 !important;
}
.index-page.index-page .hero-copy { width: 100% !important; }
.index-page.index-page .hero-title-frame { width: 100% !important; }
.hero-title-frame {
  width: 100%;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 30px 12px;
  background-color: rgba(255,255,255,.015);
  background-image: url("fondo2.webp");
  background-position: center;
  background-size: cover;
  background-blend-mode: screen;
  border: 1px solid rgba(123, 8, 129, .07);
}

.hero-title-frame h1 {
  margin: 0 !important;
  text-align: center;
}

.hero-title-frame p {
  max-width: 390px;
  margin: 20px 0 0;
  color: #536c78;
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
}

.index-page .hero-copy > p {
  margin-top: 16px;
  font-size: .88rem;
  line-height: 1.5;
}

.hero-title-accent {
  color: var(--primary) !important;
}

@media (max-width: 800px) {
  .hero-title-frame {
    width: 100%;
    min-height: 0;
    padding: 22px 20px 24px;
  }
}
.index-page.index-page .hero-copy h1 { color: var(--primary) !important; }
.index-page.index-page .hero-copy h1 em { color: #d35dde !important; }
.index-page.index-page .hero-wrap { background-image: url("fondo2.webp") !important; background-color: transparent !important; background-position: left center !important; background-size: 45% 100% !important; }
.index-page.index-page .hero-wrap {
  background: #fff !important;
  background-image: none !important;
}

.index-page.index-page .hero-wrap::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 45% !important;
  background: url("fondo2.webp") center / cover no-repeat !important;
  opacity: .1 !important;
  pointer-events: none !important;
}
.index-page.index-page .analysis-preview__grid article.analysis-preview__service::before { background: rgba(45, 43, 109, .28) !important; }
.index-page .analysis-preview__grid article::before { background: rgba(45, 43, 109, .28) !important; }
.index-page .hero-copy::before { display: none !important; content: none !important; }
/* COLORES Y VARIABLES GLOBALES */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --primary: #2d2b6d;
  --primary-2: #5b2d7d;
  --accent: #2aa8b5;
  --accent-2: #4eb0d3;
  --text: #1f2e3d;
  --muted: #5d6e7e;
  --line: rgba(20, 30, 45, 0.12);
  --shadow: 0 18px 42px rgba(19, 31, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

#inicio {
  scroll-margin-top: 140px;
}

/* TIPOGRAFIA BASE DEL SITIO: Arial/Helvetica; las reglas de cada pagina ajustan tamanos y pesos. */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #f8fafd 0%, var(--bg) 42%, #eef3f8 100%);
  color: var(--text);
  line-height: 1.65;
}

.welcome-alert {
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 45, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.welcome-alert.hidden {
  display: none;
}

.welcome-alert__content {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241,245,249,0.96));
  border: 1px solid rgba(45, 43, 109, 0.12);
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(19, 31, 45, 0.2);
  text-align: center;
  padding: 32px 28px 24px;
  width: min(90vw, 480px);
}

.welcome-alert__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.welcome-alert__close:hover {
  color: var(--primary);
}

.welcome-alert__content p {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--primary);
  font-weight: 900;
}

.welcome-alert__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(78, 53, 120, 0.18);
}

img {
  max-width: 100%;
  display: block;
  image-rendering: auto;
}

.text-reveal:not(.text-revealed) {
  opacity: 0;
  transform: translateY(10px);
}

.text-reveal.text-revealed {
  animation: biosTextReveal .48s ease-out both;
  animation-delay: var(--text-reveal-delay, 0ms);
}

@keyframes biosTextReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .text-reveal,
  .text-reveal.text-revealed {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-visual-card img,
.about-img img,
.team-slider__image,
.mv-visual img,
.service-page-hero__image,
.service-reference__image,
.analysis-preview__image {
  filter: contrast(1.04) saturate(1.04);
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(30, 39, 60, 0.08);
}

.site-header .nav {
  min-height: 120px;
}

.top-banner {
  background: linear-gradient(90deg, #7b1e8a, #5f2d86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  text-transform: uppercase;
}

.nav {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  min-width: 0;
  width: 310px;
  min-height: 112px;
}

.brand > .bios-wordmark,
.brand > .bios-tagline {
  display: none;
}

/* LOGOTIPO DE RESPALDO: esta imagen CSS solo aparece si el HTML no aporta un logo/video. */
.brand::before {
  content: "";
  display: block;
  width: 220px !important;
  height: 78px !important;
  background: url("bios.png") center / contain no-repeat;
}

.brand:has(.logo-liquid-wrap)::before {
  display: none;
}

.brand:has(.site-logo)::before {
  display: none;
}

.logo-liquid-wrap {
  display: block;
  width: 220px;
  margin: 0;
}

.logo-liquid-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.brand > .site-logo {
  display: block;
  width: 310px;
  height: 112px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.logo-fallback {
  display: block;
  width: 220px;
}

.bios-wordmark {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  line-height: 0.8;
  letter-spacing: -0.12em;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
  color: #7a1d8b;
  font-size: clamp(3.6rem, 5vw, 7rem);
}

.bios-letter {
  display: inline-block;
}

.bios-bi,
.bios-s {
  color: #7a1d8b;
}

.bios-o {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.04em;
  border-radius: 50%;
  overflow: hidden;
  border: 0.06em solid #7a1d8b;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 0.02em rgba(255,255,255,0.3);
}

.bios-liquid-core {
  --tx: 0px;
  --ty: 0px;
  --scale: 1;
  position: absolute;
  inset: 16% 18% 16% 18%;
  border-radius: 42% 58% 48% 52% / 52% 46% 54% 48%;
  background: linear-gradient(125deg,
    rgba(255,255,255,0.96) 0%,
    rgba(136, 243, 255, 0.95) 18%,
    rgba(76, 206, 255, 0.92) 32%,
    rgba(77, 214, 216, 0.9) 52%,
    rgba(36, 180, 236, 0.86) 72%,
    rgba(17, 118, 186, 0.82) 100%);
  filter: saturate(1.2) contrast(1.08);
  transform: translate(var(--tx), var(--ty)) scale(var(--scale));
  transition: transform 0.25s ease, filter 0.25s ease, background-position 0.25s ease;
  animation: liquidFlow 4.6s ease-in-out infinite alternate;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.68), 0 0 12px rgba(84, 206, 255, 0.12);
}

.bios-liquid-core::before,
.bios-liquid-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.bios-liquid-core::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.02) 60%, rgba(255,255,255,0.16));
  transform: translate(-10px, 6px) scale(1.18);
}

.bios-liquid-core::after {
  inset: 18% 14% 28% 16%;
  background: rgba(255,255,255,0.24);
  filter: blur(4px);
}

@keyframes liquidFlow {
  0% {
    border-radius: 42% 58% 48% 52% / 52% 46% 54% 48%;
    background-position: 12% 52%;
  }
  35% {
    border-radius: 58% 42% 54% 46% / 45% 55% 45% 55%;
    background-position: 48% 40%;
  }
  60% {
    border-radius: 46% 54% 60% 40% / 60% 40% 60% 40%;
    background-position: 70% 62%;
  }
  100% {
    border-radius: 54% 46% 44% 56% / 36% 64% 36% 64%;
    background-position: 86% 50%;
  }
}

.bios-tagline {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #5d2a82;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-phone {
  color: var(--primary-2);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 10px 8px;
  white-space: nowrap;
}

.header-phone::before {
  content: "\1F4DE";
  display: inline-block;
  margin-right: 9px;
  color: var(--primary);
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: .95rem;
  line-height: 1;
}

.header-contact {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 0.8rem;
  flex-wrap: wrap;
  text-transform: uppercase;
}

.menu a {
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
  padding: 10px 14px;
  border-radius: 8px;
}

.menu a:hover {
  color: var(--primary);
  opacity: 1;
  background: rgba(91, 45, 125, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
}

.pqr {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: white;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(34, 34, 64, 0.2);
}

.hero {
  padding: 0;
}

.hero-wrap {
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(20, 25, 60, 0.66) 0%, rgba(20, 25, 60, 0.34) 44%, rgba(20, 25, 60, 0.08) 100%),
    url("fondo (3).jpg?v=20260924-3") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.hero-layout {
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-callout-panel {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1120px);
  background: linear-gradient(135deg, #7a1f8d, #6a2a8b);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-align: center;
  border-radius: 18px 18px 0 0;
  box-shadow: inset 0 -5px 0 rgba(255,255,255,0.18);
  min-height: 160px;
  padding: 24px 24px 26px;
  font-size: clamp(2.2rem, 4vw, 5rem);
  line-height: 1.06;
}

.hero-callout-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: min(88%, 820px);
  height: 30px;
  background: linear-gradient(180deg, rgba(86, 214, 219, 0.95), rgba(86, 214, 219, 0.7));
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 18px rgba(52, 178, 196, 0.2);
}

.hero-cta-button-wrap {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.hero-cta-button-wrap .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 56px;
  background: linear-gradient(135deg, #5ec7d7, #49bed0);
  border-radius: 999px;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(62, 167, 180, 0.22);
}

.hero-visual-card {
  width: min(100%, 620px);
  justify-self: end;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 0;
  box-shadow: none;
}

.hero-visual-card img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: center bottom;
  background: #fff;
  border-radius: 0;
}

.hero-specialties {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 52px;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(123,8,129,.72);
  color: #fff;
  transform: translateX(-50%);
  animation: biosArrowBounce 1.8s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(18, 13, 54, .28), inset 0 0 0 5px rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.hero-scroll::before {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.hero-scroll:hover {
  background: rgba(95,46,133,.92);
  box-shadow: 0 14px 30px rgba(18, 13, 54, .36), inset 0 0 0 5px rgba(255,255,255,.12);
  transform: translateX(-50%) translateY(-3px);
}

.section-head h2,
.bios-description h2,
.analysis-preview h2,
.team-copy h3,
.service-modern-card h2,
.bakery-card h2 {
  color: #416a82;
}

h2,
h3,
h4 {
  color: #416a82;
}

.section-head p,
.bios-description p,
.analysis-preview p,
.detail-page__intro {
  color: #5f7280;
}

.hero-specialties span {
  flex: 1 1 0;
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hero-specialties span:last-child {
  border-right: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 30px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
  padding: 96px 0 76px;
}

.eyebrow {
  display: inline-block;
  background: rgba(42, 168, 181, 0.1);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #fff;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 620px;
}

.hero-copy .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.cta-button {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 18px 28px rgba(78, 53, 120, 0.18);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.hero-stats div {
  display: grid;
  gap: 4px;
}

.hero-stats strong {
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-visual-card img {
  position: relative;
  z-index: 0;
  width: 100%;
  display: block;
  border-radius: 0;
}

.who {
  padding: 72px 0 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 26px;
}

.section-badge {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(42, 168, 181, 0.12);
  color: var(--primary);
}

.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.about-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(19, 31, 45, 0.08);
  padding: 28px 24px;
  display: block;
  gap: 24px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-box:hover,
.mv-card:hover,
.dist-card:hover,
.team-copy:hover,
.info-card:hover,
.form-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(19, 31, 45, 0.1);
}

.about-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-img {
  display: flex;
  justify-content: center;
  max-height: 360px;
  border-radius: 0;
  overflow: visible;
  border: none;
}

.about-img img {
  width: 100%;
  height: 360px;
  object-fit: contain;
}

/* BIOS editorial refresh: spacious hero, soft type reveals and a moving lab ticker. */
body {
  background: #f5f6f2;
  color: #17242a;
}

/* ENCABEZADO COMPARTIDO: franja superior, logo, menu y boton de cotizacion. */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 36, 42, 0.1);
}

.top-banner {
  background: var(--dark);
  letter-spacing: .14em;
}

.site-header .nav {
  min-height: 104px;
}

.brand > .site-logo {
  width: 260px;
  height: 92px;
}

.main-nav .menu {
  gap: 24px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}

.header-contact,
.cta-button {
  background: var(--accent);
  border-radius: 2px;
  letter-spacing: .05em;
}

.hero {
  position: relative;
  min-height: 220px;
  padding: 30px 0 34px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: url("fondo (3).jpg") center / cover no-repeat;
  color: #fff;
}

#equipo .team-visual {
  min-height: 300px;
  padding: 20px 0;
  background: #eeeeee;
  border-top: 8px solid #7b0881;
  border-bottom: 8px solid #7b0881;
}

#equipo .container {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 42px;
}

#equipo .section-head {
  grid-column: 1;
  margin: 0;
  text-align: left;
}

#equipo .section-head h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

#equipo .team-grid {
  display: block;
  grid-column: 2;
}

#equipo .team-copy { display: none; }

#equipo .team-visual { width: 100%; }

#equipo .team-static-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

#equipo .team-static-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  filter: contrast(1.04) saturate(1.04);
}

#equipo .team-visual {
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #2e2a63;
}

@media (max-width: 700px) {
  #equipo .team-static-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #equipo .team-static-gallery__image { aspect-ratio: 4 / 3; }
}

#equipo .container {
  display: block;
}

#equipo .section-head {
  margin-bottom: 28px;
  text-align: center;
  width: 100%;
}

#equipo .section-head h2 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#equipo .team-grid {
  display: block;
}

#equipo .team-slider__track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  min-height: 260px;
  animation: biosPhotoTrain 30s linear infinite;
}

#equipo .team-slider__image {
  position: relative;
  inset: auto;
  flex: 0 0 270px;
  width: 270px;
  height: 340px;
  opacity: 1 !important;
  object-fit: cover;
  transform: none !important;
}

#equipo .team-slider__track:hover { animation-play-state: paused; }

.team-slider__image[src="IMG_7258.webp"],
.team-slider__image[src="IMG_7260.webp"] {
  display: none !important;
}

@keyframes biosPhotoTrain {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* PORTADA DE INICIO: aqui se declara su fondo; el titulo, tamano y color se ajustan en .hero-copy. */
.hero-wrap {
  min-height: 0;
  background: none !important;
  border-bottom: 0 !important;
  padding: 0;
}

.hero-layout {
  min-height: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 30, 45, .72);
}

.hero-wrap,
.hero-layout,
.hero-grid {
  width: 100%;
}

.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: .9;
  letter-spacing: -.07em;
  animation: biosReveal .9s ease both;
}

.hero-copy > p {
  max-width: 560px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.15rem;
  animation: biosReveal .9s .12s ease both;
}

.hero-copy > p,
.hero-stats,
.hero-specialties {
  color: #fff;
}

.cta-button,
.header-contact,
.primary,
.cta,
.services-page__back,
.detail-page__back,
.general-page__back {
  border-radius: 8px;
  color: #fff;
}

.secondary {
  border-radius: 8px;
}

.hero-actions {
  animation: biosReveal .9s .22s ease both;
}

.hero-stats {
  margin-top: 54px;
  color: rgba(255, 255, 255, .9);
  animation: biosReveal .9s .3s ease both;
}

.hero-specialties {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: biosTicker 22s linear infinite;
}

.bios-description,
.analysis-preview,
.certifications,
.team,
.contact,
.info {
  padding-top: 110px;
  padding-bottom: 110px;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.bios-description__grid,
.analysis-preview__grid,
.team-grid {
  gap: 48px;
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.07em;
}

.section-badge {
  background: #d9eee9;
  color: #286e6b;
  border-radius: 2px;
  letter-spacing: .16em;
}

.analysis-preview__grid article,
.cert-grid--full,
.team-visual,
.form-box {
  border-radius: 2px;
}

.analysis-preview__grid article {
  min-height: 220px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(23, 36, 42, .1);
  transition: transform .35s ease, box-shadow .35s ease;
}

.analysis-preview__grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 36px rgba(28, 47, 51, .12);
}

.team-slider__track {
  min-height: 430px;
}

.team-slider__image {
  object-fit: cover;
}

.cert-grid--full {
  background: #fff;
  padding: 30px;
}

.index-page .cert-grid--full {
  background: transparent;
  padding: 0;
}

.index-page .cert-grid--full img[src*="meta-cert"] {
  max-width: 180px;
  height: 120px;
}

.index-page {
  display: flex;
  flex-direction: column;
}

.index-page > .hero { order: 1; }
.index-page > .bios-description { order: 2; }
.index-page > .analysis-preview { order: 3; }
.index-page > .certifications { order: 4; }
.index-page > .team { order: 5; }
.index-page > .contact { order: 6; }
.index-page > .info { order: 7; }
.index-page > .contact,
.index-page > .info { display: none; }

.index-quote-banner {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 50px 20px;
  background: linear-gradient(rgba(21, 30, 42, .2), rgba(21, 30, 42, .2)), url("assets/muestra1.jpg") center / cover no-repeat;
}

.index-quote-banner__panel {
  position: absolute;
  z-index: 4;
  width: min(420px, 100%);
  top: 20px;
  right: 8%;
  margin: 0;
  padding: 24px 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 38px rgba(18, 31, 43, .18);
}

.index-quote-banner__panel h2 { margin: 0 0 12px; color: #416a82 !important; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.05; }
.index-quote-banner__panel p { margin: 0 0 24px; color: #6a7e89; line-height: 1.6; }
.index-quote-banner__panel a { display: inline-flex; padding: 14px 30px; border-radius: 8px; background: #7b0881; color: #fff; font-weight: 800; }

.bios-footer { padding: 54px 0 20px; background: #312d6f; color: #fff; }
.bios-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; align-items: start; }
.bios-footer__brand img { width: 230px; padding: 10px; background: #fff; }
.bios-footer strong { display: block; margin-bottom: 12px; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.bios-footer p, .bios-footer a { display: block; margin: 0 0 8px; color: rgba(255,255,255,.82); line-height: 1.6; }
.bios-footer__legal { max-width: 1200px; margin: 42px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); text-align: center; color: rgba(255,255,255,.7); font-size: .78rem; }

@media (max-width: 800px) {
  .index-quote-banner { min-height: 560px; }
  .index-quote-banner__panel {
    top: 20px;
    right: 20px;
    left: 20px;
    width: auto;
  }
  .bios-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .bios-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 500px) { .bios-footer__grid { grid-template-columns: 1fr; } }

@keyframes biosReveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes biosTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-32%); }
}

@keyframes biosArrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 700px) {
  #equipo .container { display: block; }
  #equipo .section-head { margin-bottom: 28px; text-align: center; }

  .site-header .nav { min-height: 84px; }
  .brand > .site-logo { width: 190px; height: 72px; }
  .hero { min-height: 270px; padding-top: 54px; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-specialties { gap: 28px; font-size: .64rem; }
  .bios-description,
  .analysis-preview,
  .certifications,
  .team,
  .contact,
  .info { padding-top: 76px; padding-bottom: 76px; }

  #equipo .team-slider__image {
    flex-basis: 270px;
    width: 270px;
    height: 200px;
  }
}

/* Exact service-row proportions from the requested reference. */
.index-page .analysis-preview__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: min(1148px, calc(100% - 32px)) !important;
  max-width: 1148px !important;
  margin: 0 auto !important;
  gap: 0 !important;
}

.index-page .analysis-preview__grid article {
  display: grid !important;
  grid-template-columns: 280px 300px minmax(280px, 1fr) 54px !important;
  align-items: center !important;
  column-gap: 28px !important;
  width: 100% !important;
  min-height: 224px !important;
  padding: 17px 0 !important;
  overflow: visible !important;
  background-size: 280px 190px !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #d9e3e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.index-page .analysis-preview__grid article::before {
  inset: 17px auto 17px 0 !important;
  width: 280px !important;
  height: 190px !important;
  z-index: 0 !important;
  background: rgba(15, 34, 48, .24) !important;
}

.index-page .analysis-preview__grid article strong,
.index-page .analysis-preview__grid article p {
  position: relative !important;
  inset: auto !important;
  grid-column: auto !important;
  grid-row: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

.index-page .analysis-preview__grid article strong {
  grid-column: 2 !important;
  color: #416a82 !important;
  font-size: 1.8rem !important;
  line-height: 1.08 !important;
}

.index-page .analysis-preview__grid article p {
  grid-column: 3 !important;
  color: #7893a5 !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

.index-page .analysis-preview__grid article::after {
  grid-column: 4 !important;
  grid-row: 1 !important;
  position: relative !important;
  inset: auto !important;
  width: 52px !important;
  height: 52px !important;
  border: 1px solid #d9e3e8 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #416a82 !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .index-page .analysis-preview__grid article {
    grid-template-columns: 260px 1fr 50px !important;
    column-gap: 20px !important;
    background-size: 260px 190px !important;
  }

  .index-page .analysis-preview__grid article::before { width: 260px !important; height: 190px !important; }
  .index-page .analysis-preview__grid article strong { grid-column: 2 !important; }
  .index-page .analysis-preview__grid article p { grid-column: 2 !important; grid-row: 2 !important; }
  .index-page .analysis-preview__grid article::after { grid-column: 3 !important; grid-row: 1 / span 2 !important; }
}

@media (max-width: 600px) {
  .index-page .analysis-preview__grid article {
    grid-template-columns: 1fr !important;
    min-height: 340px !important;
    padding: 190px 18px 24px !important;
    background-size: 100% 175px !important;
    background-position: top center !important;
  }

  .index-page .analysis-preview__grid article::before { inset: 0 0 auto !important; width: 100% !important; height: 175px !important; }
  .index-page .analysis-preview__grid article strong,
  .index-page .analysis-preview__grid article p { grid-column: 1 !important; grid-row: auto !important; }
  .index-page .analysis-preview__grid article strong { color: #416a82 !important; }
  .index-page .analysis-preview__grid article::after { display: none !important; }
}

/* DIRECTORIO DE SERVICIOS: fondo general y tarjetas con enlaces a las paginas detalladas. */
.services-page--directory {
  background-color: rgba(238, 242, 244, .9);
  background-image: url("assets/servicios-bios-microscopio.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: screen;
}

.services-page--directory > .container {
  padding-top: 42px;
  padding-bottom: 56px;
}

.services-page--directory .services-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: 28px;
  min-height: 370px;
  margin-bottom: 42px;
}

.services-page--directory .services-page__hero-copy { min-width: 0; }

.services-page--directory .services-page__hero-image {
  display: block;
  width: min(100%, 430px);
  height: 370px;
  justify-self: center;
  object-fit: contain;
}

.services-page--directory .section-head {
  max-width: 720px;
  margin-bottom: 18px;
  text-align: left;
}

.services-page--directory .section-head h1 {
  margin-top: 16px;
  color: var(--primary);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.services-page--directory .services-page__intro {
  max-width: 620px;
  margin: 0;
  color: #617985;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .services-page--directory .services-page__hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr);
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .services-page--directory .services-page__hero {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    margin-bottom: 30px;
  }

  .services-page--directory .services-page__hero-image {
    width: min(100%, 250px);
    height: 220px;
    justify-self: center;
  }
}

.services-page--directory .services-directory {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 24px;
  border-bottom: 1px solid #cbd8dc;
}

.services-page--directory .services-directory__card {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  column-gap: 24px;
  width: 100%;
  position: relative;
  min-height: 190px;
  border-top: 1px solid #cbd8dc;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.services-page--directory .services-directory__card::before {
  content: counter(service-row, decimal-leading-zero);
  counter-increment: service-row;
  position: absolute;
  top: 20px;
  left: 220px;
  z-index: 2;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.services-page--directory .services-directory__card::before,
.services-page--directory .services-directory__card::after {
  display: none !important;
  content: none !important;
}

.index-page .analysis-preview__grid article .analysis-preview__image {
  opacity: 1 !important;
}

.index-page .analysis-preview__grid article::before {
  background: rgba(45, 43, 109, .34) !important;
}

.services-page--directory .services-directory {
  counter-reset: service-row;
}

.services-page--directory .services-directory__image-wrap {
  height: 220px;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.services-page--directory .services-directory__image-wrap::after {
  display: none !important;
  content: none !important;
}

.services-page--directory .services-directory__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.services-page--directory .services-directory__content {
  align-self: center;
  padding: 28px 42px;
}

.top-banner,
.header-contact,
.cta-button,
.secondary-button,
.pqr,
.primary,
.cta,
.submit,
.floating-back-btn,
.services-modal__contact,
.general-page__back,
.detail-page__back,
.services-page__back,
.quote-back,
.about-page__back {
  background-image: none !important;
}

.top-banner {
  position: relative;
  display: flex;
  justify-content: center;
  padding-right: 130px;
  background-color: var(--primary) !important;
}

.top-banner__social {
  position: absolute;
  right: 28px;
  display: inline-flex;
  gap: 13px;
}

.top-banner__social a {
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.index-page .hero-copy h1 em {
  color: #d35dde;
  font-style: normal;
}

.index-page .hero-wrap::after {
  background-image: url("principal.webp");
}

.index-page .contact__layout {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.25fr) minmax(170px, .65fr);
  gap: 34px;
  align-items: center;
}

.index-page .contact__intro {
  text-align: left;
}

.index-page .contact__intro h2 {
  margin: 14px 0 10px;
  color: var(--primary);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: .95;
}

.index-page .contact__intro p {
  margin: 0;
  color: #617985;
  font-size: .82rem;
}

.index-page .contact__intro .section-badge {
  color: var(--primary);
}

.index-page .contact .form-box {
  width: 100%;
}

.index-page .contact .field input,
.index-page .contact .field textarea,
.index-page .contact .field select {
  width: 100%;
  border: 1px solid #cbd8dc;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
}

.index-page .contact__details {
  display: grid;
  gap: 13px;
  color: #617985;
  font-size: .8rem;
}

.index-page .contact__details strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.index-page .contact__details a {
  color: var(--primary-2);
}

.contact-form-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: .84rem;
  font-weight: 700;
}

.contact-form-status.is-success { color: #207354; }
.contact-form-status.is-error { color: #a33a45; }

.header-contact,
.cta-button,
.pqr,
.primary,
.cta,
.submit,
.floating-back-btn,
.services-modal__contact,
.general-page__back,
.detail-page__back,
.services-page__back,
.quote-back,
.about-page__back {
  background-color: var(--primary) !important;
}

.index-page .hero-wrap::after {
  background-image: url("principal.webp");
}

.centers-hero__shade,
.service-page-hero__shade {
  background: rgba(13, 26, 35, .54) !important;
}

.index-page .hero-wrap {
  min-height: 470px;
  background: #fff;
  border-bottom: 0;
}

.index-page .hero-wrap::after {
  width: 53%;
  background: url("principal.webp") center center / cover no-repeat !important;
  background-image: url("principal.webp") !important;
  filter: saturate(.9) contrast(1.05);
}

@media (min-width: 801px) {
  .index-page.index-page.index-page .hero-copy .hero-title-frame {
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: center !important;
  }
}

.index-page .hero-layout {
  min-height: 470px;
}

.index-page .hero-grid {
  width: 47%;
}

.index-page .hero-copy {
  width: 100%;
  padding: 54px 48px 58px 0;
}

.index-page .hero-copy::before {
  margin-bottom: 16px;
  color: #d95fe4;
  display: none;
}

.index-page .hero-copy h1 {
  max-width: 560px;
  color: var(--primary);
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: .9;
}

.index-page .hero-copy h1::first-line {
  color: #fff;
}

.index-page .hero-copy > p {
  color: #617985;
  font-size: .98rem;
}

.index-page .hero-actions .cta-button {
  background: var(--accent);
}

.index-page .hero-actions .secondary-button {
  border-color: var(--primary);
  color: var(--primary);
}

.index-page .hero-stats {
  display: none;
}

.index-page .bios-about-section {
  padding: 56px 0;
  background: #fff;
}

.index-page .bios-about-section__grid {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: 54px;
  align-items: center;
}

.index-page .bios-about-section__copy h2 {
  margin: 12px 0 10px;
  color: #161b20;
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  line-height: .98;
}

.index-page .bios-about-section__copy h2 em,
.index-page .bios-about-section__copy h2 + p strong {
  color: var(--primary);
  font-style: normal;
}

.index-page .bios-about-section__copy p {
  max-width: 480px;
  margin: 0;
  color: #627883;
  font-size: .9rem;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 11px 18px;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.index-page .bios-about-section__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.index-page .bios-about-section__features article {
  min-height: 150px;
  padding: 22px 16px;
  background: #f5f6f7;
  text-align: center;
}

.index-page .bios-about-section__features strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.index-page .bios-about-section__features h3 {
  margin: 14px 0 4px;
  color: #171c21;
  font-size: .95rem;
}

.index-page .bios-about-section__features p {
  margin: 0;
  color: #70838c;
  font-size: .72rem;
  line-height: 1.3;
}

.index-page .analysis-preview {
  padding: 62px 0 72px;
  background: #f4f5f6;
}

.index-page .analysis-preview .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.index-page .analysis-preview .section-head h2 {
  margin-top: 9px;
  color: #151b20;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}

.index-page .analysis-preview__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px;
  width: 100%;
  margin: 0;
}

.index-page .analysis-preview__grid article {
  display: flex !important;
  position: relative;
  min-height: 270px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: #252b30 !important;
}

.index-page .analysis-preview__image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: .72;
  filter: saturate(.9) contrast(1.06);
}

.index-page .analysis-preview__content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 24px 20px;
}

.index-page .analysis-preview__content strong {
  color: #fff !important;
  font-size: 1.45rem;
}

.index-page .analysis-preview__content p {
  max-width: 220px;
  margin: 6px 0 0 !important;
  color: rgba(255,255,255,.88) !important;
  font-size: .76rem;
}

.index-page .analysis-preview__grid article::after {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: #fff;
  color: var(--primary) !important;
  font-size: 1rem;
}

.bios-process {
  padding: 58px 0;
  background: #fff;
}

.bios-process__grid {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 54px;
  align-items: center;
}

.bios-process__intro h2 {
  margin: 12px 0 0;
  color: #151b20;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: .98;
}

.bios-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--primary);
}

.bios-process__steps li {
  position: relative;
  padding: 24px 14px 0 0;
}

.bios-process__steps li::before {
  content: counter(process-step);
  counter-increment: process-step;
  position: absolute;
  top: -14px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.bios-process__steps {
  counter-reset: process-step;
}

.bios-process__steps strong,
.bios-process__steps span {
  display: block;
}

.bios-process__steps strong {
  color: #171c21;
  font-size: .8rem;
}

.bios-process__steps span {
  margin-top: 7px;
  color: #70838c;
  font-size: .72rem;
  line-height: 1.35;
}

.bios-differences {
  padding: 54px 0;
  background: #f4f5f6;
}

.bios-differences .section-head {
  margin-bottom: 30px;
  text-align: left;
}

.bios-differences h2 em {
  color: var(--primary);
  font-style: normal;
}

.bios-differences__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.bios-differences__grid article {
  text-align: center;
}

.bios-differences__grid strong {
  display: block;
  color: var(--primary);
  font-size: 2.4rem;
}

.bios-differences__grid h3 {
  margin: 10px 0 0;
  color: #171c21;
  font-size: .8rem;
}

@media (max-width: 800px) {
  .index-page .hero-wrap,
  .index-page .hero-layout {
    min-height: 660px;
  }

  .index-page .hero-wrap::after {
    width: 100%;
    height: 42%;
    top: auto;
    bottom: 0;
  }

  .index-page .hero-grid {
    width: 100%;
  }

  .index-page.index-page.index-page.index-page .hero-copy {
    padding: 48px 0 0;
  }

  .top-banner {
    padding-right: 78px;
    font-size: .58rem;
  }

  .top-banner__social {
    right: 14px;
    gap: 8px;
  }

  .index-page .contact__layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .index-page .bios-about-section__grid,
  .bios-process__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .index-page .analysis-preview .section-head {
    display: block;
  }

  .index-page .analysis-preview__grid {
    grid-template-columns: 1fr !important;
  }

  .bios-process__steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
    border-top: 0;
  }

  .bios-process__steps li {
    padding-top: 20px;
    border-top: 2px solid var(--primary);
  }

  .bios-differences__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }
}

@media (max-width: 600px) {
  .index-page .bios-about-section__features {
    grid-template-columns: 1fr;
  }

  .bios-process__steps,
  .bios-differences__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.index-page .hero-wrap::after {
  background: url("principal.webp") center / cover no-repeat !important;
}

.index-page .hero,
.index-page .hero-wrap {
  background: rgba(123, 8, 129, .07) !important;
}

.index-page > .contact,
.index-page > .info {
  display: none !important;
}

.index-page .bios-line-icon {
  display: grid !important;
  place-items: center !important;
  width: 64px !important;
  height: 64px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  flex-basis: 64px !important;
}

.index-page .bios-line-icon svg {
  width: 52px !important;
  height: 52px !important;
}

.index-page h2 {
  color: #416a82 !important;
  font-size: clamp(2rem, 4vw, 4.2rem) !important;
  font-weight: 700 !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
}

.index-page p:not(.hero-title-frame p) {
  font-size: 1.02rem !important;
}

.index-page .hero-wrap {
  position: relative;
}

.index-page .hero-quote-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.index-page .hero-title-frame .hero-quote-button {
  display: flex;
  width: fit-content;
}

.index-page .hero-quote-button:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .index-page .hero-quote-button {
    margin-top: 14px;
  }
}

.index-page .hero-copy::before {
  display: none !important;
  content: none !important;
}

.services-page--directory .services-directory__card::before,
.services-page--directory .services-directory__card::after {
  display: none !important;
  content: none !important;
}

.chatbot-toggle {
  width: 112px !important;
  height: 112px !important;
  right: 14px !important;
  bottom: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  animation: chatbotAttention 3.6s ease-in-out infinite !important;
}

.chatbot-bee {
  width: 102px !important;
  height: 102px !important;
  filter: drop-shadow(0 10px 14px rgba(45, 43, 109, .28)) !important;
}

.chatbot-hint {
  right: 126px !important;
  bottom: 48px !important;
}

.bios-line-icon {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  color: var(--primary);
  overflow: visible;
  flex: 0 0 38px;
}

.bios-line-icon::before,
.bios-line-icon::after {
  display: none !important;
  content: none !important;
}

.bios-line-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bios-line-icon::before,
.bios-line-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.bios-line-icon--drop::before {
  top: 6px;
  left: 11px;
  width: 16px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 60% 60% 58% 58%;
  transform: rotate(45deg);
}

.bios-line-icon--shield::before {
  top: 5px;
  left: 8px;
  width: 22px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 12px 12px;
}

.bios-line-icon--shield::after {
  top: 13px;
  left: 13px;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.bios-line-icon--people::before,
.bios-line-icon--team::before {
  top: 4px;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bios-line-icon--people::after,
.bios-line-icon--team::after {
  left: 5px;
  bottom: 4px;
  width: 28px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 18px 18px 4px 4px;
}

.bios-line-icon--lab::before {
  top: 6px;
  left: 12px;
  width: 14px;
  height: 24px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  transform: rotate(0deg);
}

.bios-line-icon--lab::after {
  top: 3px;
  left: 9px;
  width: 20px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.bios-line-icon--report::before {
  top: 3px;
  left: 9px;
  width: 20px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.bios-line-icon--report::after {
  top: 12px;
  left: 14px;
  width: 11px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.bios-line-icon--clock::before {
  top: 4px;
  left: 7px;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bios-line-icon--clock::after {
  top: 10px;
  left: 18px;
  width: 2px;
  height: 9px;
  background: currentColor;
  box-shadow: 5px 7px 0 -0.5px currentColor;
  transform-origin: bottom center;
}

.bios-line-icon--care::before {
  top: 8px;
  left: 8px;
  width: 22px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px 12px 4px 12px;
  transform: rotate(-35deg);
}

.bios-line-icon--food::before {
  top: 7px;
  left: 8px;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.bios-line-icon--food::after {
  top: 2px;
  left: 18px;
  width: 2px;
  height: 10px;
  background: currentColor;
  box-shadow: 5px -1px 0 -0.5px currentColor;
}

.services-page--directory {
  background: #ffffff !important;
}

.index-page > .contact,
.index-page > .info {
  display: none !important;
}

.chatbot-toggle {
  width: 112px !important;
  height: 112px !important;
  right: 14px !important;
  bottom: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  animation: chatbotAttention 3.6s ease-in-out infinite !important;
}

.chatbot-bee {
  width: 102px !important;
  height: 102px !important;
  filter: drop-shadow(0 10px 14px rgba(45, 43, 109, .28)) !important;
}

.chatbot-hint {
  right: 126px !important;
  bottom: 48px !important;
  border-color: rgba(123, 8, 129, .28) !important;
  box-shadow: 0 12px 28px rgba(45, 43, 109, .2) !important;
}

@keyframes chatbotAttention {
  0%, 78%, 100% { transform: translateY(0) scale(1); }
  84% { transform: translateY(-4px) scale(1.05); }
  90% { transform: translateY(0) scale(1); }
}

.index-page .analysis-preview__grid article::after {
  display: none !important;
  content: none !important;
}

.index-page .analysis-preview__grid article::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: rgba(92, 229, 213, 0.72) !important;
}

.index-page .analysis-preview__content strong,
.index-page .analysis-preview__content p {
  position: relative !important;
  z-index: 2 !important;
  color: #fff !important;
}

.index-page article.analysis-preview__service .analysis-preview__content strong,
.index-page article.analysis-preview__service .analysis-preview__content p {
  color: #fff !important;
}

.chatbot-toggle {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  width: 86px;
  height: 86px;
  right: 18px;
  bottom: 18px;
  animation: chatbotAttention 3.6s ease-in-out infinite;
}

.chatbot-bee {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 10px 14px rgba(45, 43, 109, .28));
}

.chatbot-hint {
  right: 112px;
  bottom: 42px;
  border: 1px solid rgba(123, 8, 129, .28);
  box-shadow: 0 12px 28px rgba(45, 43, 109, .2);
}

@keyframes chatbotAttention {
  0%, 78%, 100% { transform: translateY(0) scale(1); }
  84% { transform: translateY(-4px) scale(1.05); }
  90% { transform: translateY(0) scale(1); }
}

.index-page .analysis-preview__grid article {
  background: transparent !important;
}

.index-page .analysis-preview__grid article .analysis-preview__image {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.index-page .hero::before {
  display: none !important;
  background: transparent !important;
}

.header-phone {
  display: none !important;
}

.index-page .location-bar {
  display: none !important;
}

.index-page .info {
  padding-bottom: 0;
}

.index-page > .hero { order: 1; }
.index-page > .bios-description { order: 2; }
.index-page > .analysis-preview { order: 3; }
.index-page > .bios-process { order: 4; }
.index-page > .bios-differences { order: 5; }
.index-page > .certifications { order: 6; }
.index-page > .contact { order: 7; display: block !important; }
.index-page > .info { order: 8; display: block !important; }

.index-page .hero-wrap,
.index-page .hero-layout,
.index-page .hero-grid,
.index-page .hero-copy {
  height: auto !important;
}

.index-page .hero-wrap,
.index-page .hero-layout {
  min-height: 470px !important;
}

.index-page .hero-copy {
  min-height: 470px;
  padding-top: 54px;
  padding-bottom: 58px;
}

@media (max-width: 800px) {
  .index-page .hero-wrap,
  .index-page .hero-layout {
    min-height: 660px !important;
  }

  .index-page .hero-copy {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 0;
  }
}

.services-page--directory .services-directory__content h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.05;
}

.services-page--directory .services-directory__content p {
  max-width: 560px;
  margin: 10px 0 16px;
  text-align: center;
  color: #617985;
}

.services-page--directory .services-directory__link {
  color: var(--primary-2);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.services-page--directory .service-detail {
  margin: 72px 0 0;
  padding: 42px 0 0;
  border-top: 1px solid #cbd8dc;
  background: transparent;
  box-shadow: none;
}

.services-page--directory .service-detail h2 {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--primary);
  font-size: clamp(1.7rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.services-page--directory .service-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #cbd8dc;
}

.services-page--directory .service-detail__grid > div {
  min-height: 150px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.services-page--directory .service-detail__grid h3 {
  margin: 0 0 10px;
  color: var(--primary-2);
  font-size: 1.05rem;
}

.services-page--directory .service-detail__grid ul {
  margin: 0;
  padding-left: 18px;
  color: #617985;
  font-size: .9rem;
}

@media (max-width: 700px) {
  .services-page--directory .services-directory__card {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    min-height: 150px;
  }

  .services-page--directory .services-directory__image-wrap {
    height: 150px;
  }

  .services-page--directory .services-directory__content {
    padding: 20px 18px;
  }

  .services-page--directory .services-directory__content h2 {
    font-size: 1.1rem;
  }

  .services-page--directory .services-directory__content p {
    margin: 7px 0 10px;
    font-size: .82rem;
    line-height: 1.4;
  }

  .services-page--directory .services-directory__card::before {
    left: 84px;
    top: 12px;
  }

  .services-page--directory .service-detail__grid {
    grid-template-columns: 1fr;
  }
}

/* Official BIOS palette from biosaguasyalimentos.com. */
:root {
  --bg: #eeeeee;
  --primary: #7b0881;
  --primary-2: #5f2e85;
  --accent: #7b0881;
  --text: #212226;
  --muted: #666666;
}

body { background: #eeeeee; color: #212226; }
.top-banner { background: #7b0881; }
.header-contact, .cta-button { background: #7b0881; }
.section-badge { background: rgba(123, 8, 129, .1); color: #7b0881; }
.hero::before { background: rgba(0, 0, 0, .58); }

main h2,
main h3,
main h4,
.section-head h2,
.bios-description h2,
.analysis-preview h2,
.team-copy h3,
.contact h2,
.service-modern-card h2,
.bakery-card h2 {
  color: #416a82 !important;
}

main .section-head p,
main .bios-description p,
main .analysis-preview p,
main .detail-page__intro {
  color: #5f7280 !important;
}

.quality {
  background: linear-gradient(135deg, rgba(45, 43, 109, 0.96), rgba(91, 45, 125, 0.96));
  color: white;
  padding: 34px 0 40px;
  margin-top: 32px;
}

.quality-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.quality-wrap h3 {
  margin: 0 0 16px;
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.quality-wrap p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}

.quality-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 22px;
}

.quality-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: white;
  font-weight: 600;
}

.quality-list li::before {
  content: '✓';
  color: #8de1ea;
  margin-right: 10px;
}

.mission-vision {
  padding: 72px 0 20px;
}

.mv-layout {
  display: block;
  gap: 24px;
  align-items: stretch;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 14px 30px rgba(19, 31, 45, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-visual {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.mv-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
}

.mv-visual__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 22px;
  background: transparent;
}

.mv-visual__caption strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.mv-visual__caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mv-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.mv-card p {
  margin: 0;
  color: var(--muted);
}

.team {
  padding: 72px 0 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.team-copy {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 14px 30px rgba(19, 31, 45, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-copy h3 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.team-copy p {
  margin: 0;
  color: var(--muted);
}

.team-visual {
  position: relative;
  min-height: 320px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  border: none;
}

.team-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding: 0;
}

.team-slider__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
  filter: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.team-slider__image.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.team-slider__image[src="IMG_7269.webp"] {
  display: none;
}

.distinguishes {
  padding: 72px 0 20px;
}

.dist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dist-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 12px 28px rgba(19, 31, 45, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dist-card h4 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--primary);
}

.dist-card p {
  margin: 0;
  color: var(--muted);
}

.transform {
  padding: 72px 0 20px;
}

.transform-box {
  background: linear-gradient(135deg, rgba(42, 168, 181, 0.12), rgba(123, 108, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.transform-box h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--primary);
  letter-spacing: -0.05em;
}

.certifications {
  padding: 24px 0 52px;
}

.certifications .section-head h2 {
  margin: 0 0 22px;
  text-align: center;
  color: var(--primary);
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-grid--full > * {
  animation: certReveal 0.55s ease both;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.cert-grid--full img {
  display: block;
  width: 100%;
  max-width: 110px;
  height: 72px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: none;
  margin: 0 auto;
  opacity: 1;
}

.cert-grid--full > *:hover {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.08);
}

.cert-bureau {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  max-width: 110px;
  width: 100%;
  margin: 0 auto;
  color: #d72d2d;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.3vw, 1.5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  background: transparent;
}

@keyframes certReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


@media (min-width: 901px) {
  .mv-layout {
    gap: 18px;
  }

  .mv-grid {
    gap: 16px;
  }

  .mv-card {
    padding: 20px 18px;
  }

  .mv-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
  }

  .mv-card p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .mv-visual img {
    height: 250px;
    min-height: 0;
  }

  .mv-visual__caption {
    padding: 12px 16px 14px;
  }
}
.cert-bureau__veritas {
  color: #c92525;
  font-weight: 900;
}

.transform-box p {
  margin: 18px auto 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.05rem;
}

.transform-box p + p {
  margin-top: 14px;
}

.contact {
  padding: 72px 0 20px;
}

.form-box {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 26px;
  padding: 28px 22px;
  box-shadow: 0 14px 30px rgba(19, 31, 45, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.submit {
  margin-top: 16px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  box-shadow: 0 16px 26px rgba(36, 40, 92, 0.2);
}

.info {
  padding: 72px 0 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 12px 28px rgba(19, 31, 45, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card h4 {
  margin: 0 0 10px;
  color: var(--primary);
}

.info-card p,
.info-card a {
  margin: 0 0 8px;
  color: var(--muted);
}

.info-card p:last-child,
.info-card a:last-child {
  margin-bottom: 0;
}

.services-section {
  padding: 64px 0 20px;
}

.bios-description {
  padding: 72px 0 20px;
}

.bios-description__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
  padding: 32px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(42, 168, 181, 0.12), rgba(123, 108, 255, 0.08));
  border: 1px solid var(--line);
}

.bios-description h2 {
  margin: 16px 0 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.bios-description p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.analysis-preview {
  padding: 52px 0 20px;
}

.analysis-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.analysis-preview__grid article {
  min-height: 170px;
  padding: 22px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(19, 31, 45, 0.06);
}

.analysis-preview__grid strong {
  color: var(--primary);
  font-size: 1.15rem;
}

.analysis-preview__grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.distinguishes {
  margin-top: 64px;
  padding: 64px 0 58px;
  background: linear-gradient(135deg, #0d5966, #168f9b 52%, #2aa8b5);
  color: #fff;
}

.distinguishes .section-head {
  max-width: 760px;
  margin: 0 auto 34px;
}

.distinguishes .section-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.distinguishes .section-head h2,
.distinguishes .section-head p {
  color: #fff;
}

.distinguishes .section-head p {
  max-width: 700px;
  margin: 16px auto 0;
}

.distinguishes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.distinguishes__grid article {
  padding: 0 8px;
}

.distinguishes__grid strong {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 1rem;
}

.distinguishes__grid .distinguishes__icon {
  font-size: 1.8rem;
  font-weight: 400;
}

.distinguishes__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.distinguishes__grid h3 {
  margin: 16px 0 10px;
  color: #fff;
  font-size: 1.05rem;
}

.distinguishes__grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.index-page .analysis-preview__grid article {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  min-height: 250px;
  padding: 28px 28px 28px 50%;
  color: #416a82;
  background-position: left center;
  background-size: 44% 100%;
  background-repeat: no-repeat;
  background-color: #fff;
}

.index-page .analysis-preview__grid {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}

.index-page .analysis-preview__grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  z-index: -1;
  background: rgba(19, 35, 48, .3);
}

.index-page .analysis-preview__grid article:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1560089000-7433a4ebbd64?auto=format&fit=crop&w=900&q=85");
}

.index-page .analysis-preview__grid article:nth-child(2) {
  background-image: url("assets/laboratirio.jpg");
}

.index-page .analysis-preview__grid article:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=900&q=85");
}

.index-page .analysis-preview__grid strong,
.index-page .analysis-preview__grid p {
  position: relative;
  z-index: 1;
  color: #5f7280;
}

.index-page .analysis-preview__grid strong {
  position: absolute;
  top: 22px;
  left: 22px;
  max-width: 34%;
  color: #fff;
  line-height: 1.1;
}

.index-page .analysis-preview__grid p {
  margin: 0;
  line-height: 1.6;
}

/* INICIO: filas de servicios en la vista previa. Los fondos por nth-child dependen del orden HTML. */
.index-page .analysis-preview__grid article {
  display: grid;
  grid-template-columns: 310px minmax(230px, .9fr) minmax(320px, 1.35fr) 54px;
  gap: 28px;
  align-items: center;
  min-height: 240px;
  padding: 0 24px 0 340px;
  background-size: 310px 206px;
  background-position: left center;
  border-bottom: 1px solid #cbd8de;
  border-radius: 0;
}

.index-page .analysis-preview__grid article::before {
  width: 310px;
  height: 206px;
  top: 17px;
  bottom: auto;
  background: linear-gradient(145deg, rgba(18, 35, 49, .16), rgba(18, 35, 49, .48));
}

.index-page .analysis-preview__grid strong,
.index-page .analysis-preview__grid p {
  position: relative;
  inset: auto;
  max-width: none;
}

.index-page .analysis-preview__grid strong {
  color: #416a82;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.index-page .analysis-preview__grid p {
  color: #6a7e89;
  font-size: .96rem;
}

.index-page .analysis-preview__grid article::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #cbd8de;
  border-radius: 50%;
  color: #416a82;
  font-size: 1.8rem;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.index-page .analysis-preview__grid article:hover::after {
  background: #7b0881;
  color: #fff;
  transform: translateY(-6px) rotate(-90deg) !important;
}

.index-page .analysis-preview__grid article { cursor: pointer; }

.services-directory__card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  transition: transform .25s ease, background-color .25s ease;
}

.services-directory__card:hover::after {
  background: #7b0881;
  transform: translateY(-6px) rotate(-90deg) !important;
}

@media (max-width: 900px) {
  .index-page .analysis-preview__grid article {
    grid-template-columns: minmax(180px, 260px) 1fr 48px;
    padding-left: 285px;
    gap: 20px;
    background-size: 260px 190px;
  }

  .index-page .analysis-preview__grid article::before { width: 260px; height: 190px; top: 25px; }
  .index-page .analysis-preview__grid p { grid-column: 2 / 3; }
}

@media (max-width: 700px) {
  .index-page .analysis-preview__grid article {
    grid-template-columns: 1fr 44px;
    gap: 14px;
    min-height: 340px;
    padding: 190px 18px 22px;
    background-size: 100% 175px;
    background-position: top center;
  }

  .index-page .analysis-preview__grid article::before {
    width: 100%;
    height: 175px;
  }

  .index-page .analysis-preview__grid strong,
  .index-page .analysis-preview__grid p { grid-column: 1 / 2; }
  .index-page .analysis-preview__grid article::after { grid-column: 2 / 3; grid-row: 1 / span 2; }
}

@media (max-width: 700px) {
  .index-page .analysis-preview__grid article {
    min-height: 330px;
    padding: 180px 22px 24px;
    background-size: 100% 48%;
    background-position: top center;
  }

  .index-page .analysis-preview__grid article::before {
    inset: 0 0 auto;
    width: 100%;
    height: 48%;
  }

  .index-page .analysis-preview__grid strong {
    top: 20px;
    left: 22px;
    max-width: 80%;
  }
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services-list__item {
  padding: 24px 22px;
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(19, 31, 45, 0.06);
}

.services-list__item h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.15rem;
}

.services-list__item p {
  margin: 0;
  color: var(--muted);
}

.services-list__item .services-modal__icon {
  display: block;
  margin-bottom: 12px;
}

.services-directory__card,
.service-detail,
.sector-card,
.catalog-item,
.services-modal__item,
.info-card,
.mv-card,
.team-copy,
.form-box,
.analysis-preview__grid article {
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, filter .25s ease;
}

.services-directory__card:hover,
.analysis-preview__grid article:hover {
  filter: brightness(1.12) saturate(1.12);
  transform: translateY(-3px);
}

.service-detail:hover,
.sector-card:hover,
.catalog-item:hover,
.services-modal__item:hover,
.info-card:hover,
.mv-card:hover,
.team-copy:hover,
.form-box:hover {
  background-color: rgba(231, 246, 246, 0.82);
  border-color: rgba(42, 168, 181, 0.55);
  box-shadow: 0 14px 30px rgba(42, 168, 181, 0.14);
  transform: translateY(-3px);
}

.services-page--directory {
  background: #ffffff;
}

.index-page .bios-description__grid,
.index-page .about-box,
.index-page .analysis-preview__grid article,
.index-page .team-copy,
.index-page .form-box,
.index-page .info-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.index-page .form-box {
  max-width: 1080px;
  margin: 0 auto;
}

.index-page .field input,
.index-page .field textarea {
  border: 1px solid #cbd8de;
  border-radius: 9px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(25, 49, 64, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.index-page .field input:focus,
.index-page .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 168, 181, 0.14);
}

.index-page .bios-description__grid {
  padding-left: 0;
  padding-right: 0;
}

.index-page .info-grid {
  grid-template-columns: 0.7fr 1.3fr;
}

.index-page .map-frame {
  min-height: 420px;
}

.index-page .info {
  padding: 56px 0 0;
}

.location-map {
  width: 100%;
}

.location-map .map-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  margin: 0;
  border-radius: 0;
}

.location-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 38px max(32px, calc((100% - 1100px) / 2));
  background: linear-gradient(135deg, #761080, #8e0b8f);
  color: #fff;
  text-align: center;
}

.location-bar h4 {
  margin: 0 0 10px;
  color: #fff;
  text-transform: uppercase;
}

.location-bar p {
  margin: 0;
  line-height: 1.6;
}

.location-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.location-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-weight: 800;
}

.location-social a:first-child {
  background: #e1306c;
}

.location-social__instagram::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: inset 0 0 0 3px transparent;
}

.location-social__instagram::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.location-social__instagram {
  position: relative;
}

.detail-page {
  position: relative;
  isolation: isolate;
}

.detail-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(243, 246, 249, 0.86), rgba(243, 246, 249, 0.96));
}

.map-card {
  min-height: 100%;
}

.map-frame {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 16px;
  margin-top: 10px;
}

.chatbot-hint {
  position: fixed;
  right: 102px;
  bottom: 40px;
  z-index: 119;
  padding: 9px 14px;
  border: 1px solid rgba(91, 45, 125, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 30, 45, 0.14);
  white-space: nowrap;
  pointer-events: none;
}

.chatbot-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8e8e8;
  color: #111;
  border: 3px solid var(--primary-2);
  font-size: 1.7rem;
  box-shadow: 0 18px 35px rgba(20, 30, 45, 0.2);
  cursor: pointer;
}

.chatbot-bee {
  display: block;
  width: 52px;
  height: 52px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.floating-back-btn {
  position: fixed;
  left: 22px;
  top: 140px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(20, 30, 45, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-back-btn:hover {
  transform: translateX(-4px);
  box-shadow: 0 14px 30px rgba(20, 30, 45, 0.28);
}
@media (max-width: 700px) {
  .floating-back-btn { left: 12px; top: 104px; width: 44px; height: 44px; font-size: 1.15rem; }
}

.service-modern-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(19,31,45,.08);
}
.service-modern-hero__copy { padding: 34px; }
.service-modern-hero__copy h2 { margin: 0 0 12px; color: var(--primary); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.service-modern-hero__copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.service-modern-hero__image { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.service-modern-card { max-width: 980px; margin: 0 auto 24px; padding: 28px; border: 1px solid rgba(20,30,45,.08); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 14px 30px rgba(19,31,45,.08); }
.service-modern-card h2 { margin: 0 0 20px; color: var(--primary); }
.service-modern-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.service-modern-item { padding: 20px; border-left: 4px solid var(--accent); background: #f8fafc; }
.service-modern-item h3 { margin: 0 0 10px; color: var(--primary-2); }
.service-modern-item ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.detail-page .service-detail__grid > div { padding: 20px; border-left: 4px solid var(--accent); background: #f8fafc; }
.detail-page .service-detail__grid > div h3 { margin: 0 0 10px; color: var(--primary-2); }
.detail-page .service-detail__grid > div ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.detail-page .service-detail > ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
@media (max-width:700px) { .service-modern-hero, .service-modern-grid { grid-template-columns: 1fr; } .service-modern-hero__copy { padding: 26px; } }

.services-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 20, 45, 0.52);
  backdrop-filter: blur(4px);
}

.services-modal.is-open {
  display: flex;
}

.services-modal__content {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(45, 43, 109, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(19, 31, 45, 0.24);
}

.services-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.services-modal__close:hover {
  color: var(--primary);
}

.services-modal h2 {
  margin: 16px 0 8px;
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.services-modal__intro {
  margin: 0 0 24px;
  color: var(--muted);
}

.services-modal__image {
  width: 100%;
  height: 180px;
  margin-bottom: 24px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

.services-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.services-modal__item {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.services-modal__icon {
  display: block;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.services-modal__item h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.1rem;
}

.services-modal__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.services-modal__item h4 {
  margin: 18px 0 6px;
  color: var(--primary);
  font-size: 0.92rem;
}

.services-modal__item ul {
  margin: 6px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.services-modal__item:nth-child(3) {
  grid-column: 1 / -1;
}

.services-modal__more {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.services-modal__contact {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  font-weight: 800;
}

.institution-modal .services-modal__content {
  padding: 34px 0 20px;
}

.institution-modal .services-modal__content > h2,
.institution-modal .services-modal__content > .section-badge,
.institution-modal .services-modal__content > .services-modal__intro {
  margin-left: 34px;
  margin-right: 34px;
}

.institution-modal .about-box,
.institution-modal .mission-vision,
.institution-modal .team {
  margin-left: 34px;
  margin-right: 34px;
}

.institution-modal .quality {
  margin-top: 32px;
}

.institution-modal .quality-wrap h3 {
  font-size: 0;
}

.institution-modal .quality-wrap h3::after {
  content: "Lo que nos distingue";
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.institution-modal .quality-wrap > div > p {
  font-size: 0;
}

.institution-modal .quality-wrap > div > p::after {
  content: "Confianza, precisión y acompañamiento técnico personalizado.";
  font-size: 1.04rem;
}

body.modal-open {
  overflow: hidden;
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: min(360px, calc(100vw - 28px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 30, 45, 0.08);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(19, 31, 45, 0.14);
  overflow: hidden;
  display: none;
  z-index: 120;
}

.chatbot.open {
  display: block;
}

.chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.chatbot__header strong {
  display: block;
  font-size: 0.96rem;
}

.chatbot__header span {
  display: block;
  font-size: 0.68rem;
  opacity: 0.8;
}

.chatbot__header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.chatbot__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 16px 14px;
  background: #f7f9fc;
}

.chatbot__bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chatbot__bubble--bot {
  background: #edf3ff;
  color: var(--text);
  align-self: flex-start;
}

.chatbot__bubble--user {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  align-self: flex-end;
}

.chatbot__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
  background: #f7f9fc;
}

.chatbot__chip {
  border: 1px solid rgba(45, 43, 109, 0.14);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.chatbot__whatsapp-link {
  display: inline-flex;
  align-self: flex-start;
  padding: 9px 12px;
  border-radius: 999px;
  background: #168c57;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.chatbot__composer {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border-top: 1px solid rgba(20, 30, 45, 0.06);
}

.chatbot__composer input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
}

.chatbot__composer button {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

/* SERVICIO CENTROS PENITENCIARIOS: estilos de tarjetas y vista movil. */
.detail-page--centers .service-modern-card {
  position: relative;
  min-height: 240px;
  padding-left: 38%;
  background-repeat: no-repeat !important;
  background-position: 24px center !important;
  background-size: 32% 190px !important;
  background-color: #fff !important;
}

.detail-page--centers .service-modern-card { background-image: url("assets/laboratirio.jpg") !important; }

@media (max-width: 700px) {
  .detail-page--centers .service-modern-card {
    padding: 210px 24px 26px;
    background-position: top 18px center !important;
    background-size: calc(100% - 48px) 165px !important;
  }
}

/* HERO DE PAGINAS DE SERVICIO: el archivo de imagen se elige en el src del HTML.
  Agua/piscinas: services-para-plantas-y-piscinas.html -> piscina2.webp
  Centros: services-para-centros.html -> centro2.webp
  Análisis de alimentos: services-para-industriales.html -> capacitacion.webp
  Plantas envasadoras/beneficio animal: services-para-plantas.html -> pancar2.webp
  Este bloque controla posicion, recorte y capa oscura, no el archivo de imagen. */
.centers-hero,
.service-page-hero {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #263b39;
}

.centers-hero__image,
.centers-hero__shade,
.service-page-hero__image,
.service-page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.centers-hero__image, .service-page-hero__image { object-fit: cover; object-position: center 45%; }
.service-page-hero--food .service-page-hero__image {
  image-rendering: auto;
  object-position: center 52%;
  filter: contrast(1.06) saturate(1.08);
}

.service-page-hero--food { min-height: 380px; }

.bios-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  margin-top: 10px;
  font-size: 0;
}

.bios-footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bios-footer__social a::before {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.bios-footer__social-icon {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.bios-footer__social a[href*="facebook"]::before {
  content: "";
  background-image: url("62c5f7a0-b74d-4b7d-8a29-12c43124af4a.webp");
}
.centers-hero__shade, .service-page-hero__shade { background: linear-gradient(90deg, rgba(13, 26, 35, .76), rgba(13, 26, 35, .12)); }
.centers-hero__content, .service-page-hero__content { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0; }
.centers-hero__content > p, .service-page-hero__content > p { margin: 0 0 18px; color: #fff; font-size: 1rem; font-weight: 700; }
/* LETRAS DE PORTADA DE SERVICIOS: color, tamano y grosor del titulo h1 sobre la foto. */
.centers-hero__content h1, .service-page-hero__content h1 { max-width: 840px; margin: 0 0 30px; color: #fff; font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 500; line-height: 1.08; }
.centers-hero__content a, .service-page-hero__content a { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.centers-hero__content a span, .service-page-hero__content a span { color: #20c8c3; font-size: 1.5rem; }
.detail-page--centers { min-height: auto; padding: 54px 0; background: #eef5f7; }
.detail-page--centers .service-modern-hero { max-width: 1120px; min-height: 330px; grid-template-columns: 1fr 1fr; border-radius: 0; background: #fff; box-shadow: none; }
.detail-page--centers .service-modern-hero__copy { align-self: center; padding: 42px; }
.detail-page--centers .service-modern-hero__copy h2 { margin-top: 20px; color: #111b79; font-size: clamp(2rem, 3.3vw, 3rem); }
.detail-page--centers .service-modern-hero__image { min-height: 330px; max-height: 380px; object-fit: cover; }
.detail-page--centers .service-modern-hero__image { grid-column: 1; grid-row: 1; }
.detail-page--centers .service-modern-hero__copy { grid-column: 2; grid-row: 1; }
.detail-page--centers .service-modern-card { min-height: 0; max-width: 1120px; padding: 34px; background: #fff !important; background-image: none !important; border: 0; border-radius: 0; box-shadow: none; }

@media (max-width: 700px) {
  .centers-hero, .service-page-hero { min-height: 360px; }
  .centers-hero__content { width: calc(100% - 40px); }
  .centers-hero__content h1 { font-size: 2.6rem; }
  .service-page-hero__content { width: calc(100% - 40px); }
  .service-page-hero__content h1 { font-size: 2.6rem; }
  .detail-page--centers { padding: 30px 0; }
  .detail-page--centers .service-modern-hero { grid-template-columns: 1fr; }
  .detail-page--centers .service-modern-hero__copy { padding: 28px; }
  .detail-page--centers .service-modern-hero__image { min-height: 230px; max-height: 260px; }
}

/* CUERPO DE SERVICIOS: food = análisis fisicoquímicos; water = plantas y agua/piscinas. */
.detail-page--bakery,
.detail-page--food,
.detail-page--water { min-height: auto; padding: 54px 0; background: #eef5f7; }
.detail-page--bakery > .container > .section-head,
.detail-page--bakery > .container > .detail-page__intro,
.detail-page--bakery .bakery-hero,
.detail-page--water > .container > .section-head,
.detail-page--water > .container > .detail-page__intro,
.detail-page--water .service-modern-hero { display: none; }
.detail-page--bakery .bakery-card,
.detail-page--food .service-detail,
.detail-page--water .service-detail { max-width: 1120px; margin: 0 auto 24px; padding: 34px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.detail-page--bakery .bakery-card h2,
.detail-page--food .service-detail h2,
.detail-page--water .service-detail h2 { margin-bottom: 24px; color: #111b79; font-size: 1.8rem; }
.detail-page--bakery .bakery-grid,
.detail-page--water .service-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-page--bakery .bakery-item,
.detail-page--food .service-detail__grid > div,
.detail-page--water .service-detail__grid > div { min-height: 150px; padding: 24px; border: 0; border-radius: 0; color: #fff; }
.detail-page--bakery .bakery-item:nth-child(4n + 1),
.detail-page--food .service-detail__grid > div:nth-child(4n + 1),
.detail-page--water .service-detail__grid > div:nth-child(4n + 1) { background: #2874b8; }
.detail-page--bakery .bakery-item:nth-child(4n + 2),
.detail-page--food .service-detail__grid > div:nth-child(4n + 2),
.detail-page--water .service-detail__grid > div:nth-child(4n + 2) { background: #76247d; }
.detail-page--water .service-detail__grid > div:nth-child(4n + 3) { background: #078b91; }
.detail-page--water .service-detail__grid > div:nth-child(4n + 4) { background: #185d78; }
.detail-page--bakery .bakery-item h3,
.detail-page--food .service-detail__grid > div h3,
.detail-page--water .service-detail__grid > div h3 { color: #fff; }
.detail-page--food .service-detail__grid > div p { color: rgba(255,255,255,.94); }
.detail-page--bakery .bakery-item ul,
.detail-page--food .service-detail__grid > div ul,
.detail-page--water .service-detail__grid > div ul { padding-left: 20px; color: rgba(255,255,255,.94); }
.detail-page--water .service-detail > ul { padding: 24px 24px 24px 44px; background: #078b91; color: #fff; line-height: 1.9; }
.detail-page--bakery .detail-page__back,
.detail-page--food .detail-page__back,
.detail-page--water .detail-page__back { margin-top: 10px; }

@media (max-width: 700px) {
  #equipo .team-slider__image--clone { display: none !important; }

  .detail-page--bakery,
  .detail-page--food,
  .detail-page--water { padding: 30px 0; }
  .detail-page--bakery .bakery-grid,
  .detail-page--water .service-detail__grid { grid-template-columns: 1fr; }
  .detail-page--bakery .bakery-card,
  .detail-page--food .service-detail,
  .detail-page--water .service-detail { padding: 24px; }
}

/* Each service concept uses its own image element only once. */
.index-page .analysis-preview__grid article {
  background-image: none !important;
}

.index-page .analysis-preview__grid article::before {
  display: none !important;
}

.index-page .analysis-preview__grid .analysis-preview__image {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
}

.detail-page .service-detail--panel,
.detail-page .service-detail--plain,
.detail-page .bakery-hero.service-detail--panel,
.detail-page .service-modern-item--panel,
.detail-page .service-modern-item--plain,
.detail-page .bakery-card.service-detail--panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1120px;
  min-height: 224px;
  margin: 0 auto 24px;
  padding: 17px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
}

.detail-page .service-detail--panel,
.detail-page .bakery-hero.service-detail--panel,
.detail-page .service-modern-item--panel { background: #2874b8; }
.detail-page .service-detail--plain,
.detail-page .bakery-card.service-detail--plain,
.detail-page .service-modern-item--plain { background: #fff; }

.detail-page--bakery .bakery-hero.service-detail--panel { display: grid; }
.detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__copy { grid-column: 2; grid-row: 1; padding: 18px; }
.detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__image { grid-column: 1; grid-row: 1; }

.detail-page .service-block__image {
  width: 280px;
  height: 190px;
  align-self: center;
  object-fit: cover;
}

.detail-page .service-block__content {
  align-self: center;
  min-width: 0;
}

.detail-page .service-detail--panel h2,
.detail-page .service-detail--panel h3,
.detail-page .service-modern-item--panel h3,
.detail-page .service-detail--panel p,
.detail-page .service-detail--panel li { color: #fff; }

.detail-page .service-detail--plain h2,
.detail-page .service-detail--plain h3,
.detail-page .service-modern-item--plain h3 { color: #416a82; }

.detail-page .service-detail--plain li,
.detail-page .service-modern-item--plain li { color: #7893a5; }

.detail-page .service-detail--panel .service-detail__grid,
.detail-page .service-detail--plain .service-detail__grid,
.detail-page .bakery-card.service-detail--panel .bakery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.detail-page .service-detail--panel .service-detail__grid > div,
.detail-page .service-detail--panel .bakery-item { padding: 18px; border: 0; background: rgba(255,255,255,.12); }
.detail-page .service-detail--plain .service-detail__grid > div { padding: 18px; border: 1px solid #d9e3e8; background: #f7fafb; }

.detail-page .service-modern-grid { align-items: stretch; }
.detail-page .service-modern-item--panel,
.detail-page .service-modern-item--plain { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; min-height: 224px; padding: 17px; }
.detail-page .service-modern-item--panel .service-block__image,
.detail-page .service-modern-item--plain .service-block__image { width: 280px; height: 190px; }
.detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__image { width: 280px; height: 190px; min-height: 190px; }

/* DETALLE DE SERVICIO: columnas para paneles, foto principal y texto del HTML. */
.detail-page .service-reference-layout {
  display: grid;
  grid-template-columns: 280px 300px minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto 28px;
}

.service-reference__panels {
  display: grid;
  grid-template-rows: 190px minmax(220px, 1fr);
  gap: 22px;
}

.service-reference__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: #fff;
}

.service-reference__panel--top { background: #2fbfc5; }
.service-reference__panel--bottom { background: #2874b8; }
.service-reference__panel strong { color: #fff; font-size: 1.25rem; line-height: 1.15; }
.service-reference__panel p { margin: 12px 0 0; color: rgba(255,255,255,.94); line-height: 1.4; }

.detail-page--water .service-reference__panels {
  grid-template-rows: 190px 230px;
  align-content: start;
}

.detail-page--water .service-reference__panel--bottom {
  padding: 18px 24px;
}

/* FOTO PRINCIPAL: el src del HTML define la imagen de cada servicio. */
.service-reference__image {
  width: 300px;
  height: 190px;
  align-self: start;
  object-fit: cover;
}

.detail-page--bakery .service-reference__image {
  content: url("pan-grande.webp");
}

.service-reference__content {
  min-width: 0;
  padding: 8px 0;
  color: #7893a5;
}

.service-reference__content h2 {
  margin: 0 0 16px;
  color: #111b79;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1.05;
}

.service-reference__content h3 { margin: 26px 0 8px; color: #111b79; font-size: 1.15rem; }
.service-reference__content h4 { margin: 16px 0 4px; color: #416a82; font-size: 1rem; }
.service-reference__content p { margin: 0 0 16px; color: #111b79; line-height: 1.5; }
.service-reference__content ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.65; }

@keyframes serviceTitleReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-page-hero__content h1,
.centers-hero__content h1,
.service-reference__content h2 {
  animation: serviceTitleReveal .7s ease-out both;
}

.service-reference__content > p,
.service-reference__content > h3,
.service-reference__content > h4,
.service-reference__content > ul {
  animation: serviceTitleReveal .65s ease-out both;
}

.service-reference__content > p { animation-delay: .12s; }
.service-reference__content > h3 { animation-delay: .2s; }
.service-reference__content > h4,
.service-reference__content > ul { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .service-page-hero__content h1,
  .centers-hero__content h1,
  .service-reference__content h2,
  .service-reference__content > p,
  .service-reference__content > h3,
  .service-reference__content > h4,
  .service-reference__content > ul { animation: none; }
}

@media (max-width: 900px) {
  .detail-page .service-reference-layout { grid-template-columns: 240px 260px minmax(260px, 1fr); }
  .service-reference__image { width: 260px; }
}

@media (max-width: 700px) {
  .detail-page .service-detail--panel,
  .detail-page .service-detail--plain,
  .detail-page .bakery-hero.service-detail--panel,
  .detail-page .service-modern-item--panel,
  .detail-page .service-modern-item--plain,
  .detail-page .bakery-card.service-detail--panel { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .detail-page .service-block__image,
  .detail-page .service-modern-item--panel .service-block__image,
  .detail-page .service-modern-item--plain .service-block__image { width: 100%; height: 190px; }
  .detail-page .service-detail--panel .service-detail__grid,
  .detail-page .service-detail--plain .service-detail__grid,
  .detail-page .bakery-card.service-detail--panel .bakery-grid { grid-template-columns: 1fr; }
  .detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__copy,
  .detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__image { grid-column: 1; }
  .detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__copy { grid-row: 2; }
  .detail-page--bakery .bakery-hero.service-detail--panel .bakery-hero__image { grid-row: 1; }

  .detail-page .service-reference-layout { grid-template-columns: 1fr; gap: 18px; }
  .service-reference__panels { grid-template-rows: 175px 175px; gap: 14px; }
  .detail-page--water .service-reference__panels { grid-template-rows: 175px 210px; }
  .service-reference__image { width: 100%; height: 190px; order: 2; }
  .service-reference__content { order: 3; padding: 0; }
}

#inicio .hero-wrap,
.index-quote-banner { position: relative; }

.index-quote-banner #equipo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.index-quote-banner #equipo .container {
  display: block;
  width: min(1200px, calc(100% - 32px));
}

.index-quote-banner #equipo .team-visual {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.index-quote-banner #equipo .container {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
}

.index-quote-banner #equipo .team-slider__track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 0;
  animation: biosPhotoTrain 32s linear infinite;
}

.index-quote-banner #equipo .team-slider__image {
  display: block !important;
  flex: 0 0 400px;
  width: 400px;
  height: 220px;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 12px 26px rgba(5, 10, 30, .24);
  opacity: 1 !important;
  transform: none !important;
}

.index-quote-banner #equipo .team-slider__image[src="22.webp"],
.index-quote-banner #equipo .team-slider__image[src="23.webp"],
.index-quote-banner #equipo .team-slider__image[src="IMG_7254.webp"] {
  flex-basis: 300px;
  width: 300px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

@media (max-width: 700px) {
  .index-quote-banner #equipo { bottom: 0; }
  .index-quote-banner #equipo .team-slider__image { flex-basis: 280px; width: 280px; height: 175px; max-height: none; }
}

footer {
  background: #edf2f7;
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
}

.small-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: var(--logo);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header .nav {
    min-height: 96px;
  }

  .brand::before {
    width: 190px !important;
    height: 68px !important;
  }

  .brand > .site-logo {
    width: 240px;
    height: 86px;
    padding: 6px 12px;
    transform: none;
  }

  .hero-wrap {
    min-height: 560px;
    padding-top: 0;
  }

  .hero-layout {
    min-height: 560px;
  }

  .hero-visual-card {
    justify-self: center;
  }

  .hero-visual-card img {
    height: 360px;
  }

  .hero-specialties {
    flex-wrap: wrap;
    margin-top: 36px;
  }

  .hero-specialties span {
    flex: 1 1 33.333%;
  }

  .services-modal__content {
    padding: 28px 20px 24px;
  }

  .services-modal__grid {
    grid-template-columns: 1fr;
  }

  .services-modal__item:nth-child(3) {
    grid-column: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-phone {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .menu a {
    width: 100%;
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .header-contact {
    padding: 10px 12px;
    font-size: .72rem;
  }

  .about-box,
  .quality-wrap,
  .mv-grid,
  .team-grid,
  .info-grid,
  .form-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .bios-description__grid,
  .analysis-preview__grid,
  .distinguishes__grid {
    grid-template-columns: 1fr;
  }

  .location-bar {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    row-gap: 18px;
  }

  .cert-grid--full img {
    max-width: 100%;
    width: 100%;
    height: 62px;
    aspect-ratio: 4 / 3;
  }

  .cert-bureau {
    max-width: 100%;
    min-height: 62px;
    font-size: 0.9rem;
  }

  .nav {
    min-height: 76px;
  }

  .bios-wordmark {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .bios-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header .nav {
    min-height: 82px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    width: 160px;
    min-height: 58px;
  }

  .brand > .site-logo {
    width: 160px;
    height: 58px;
    padding: 4px 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-contact {
    padding: 9px 10px;
    font-size: .68rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }
}

/* Visual system: a restrained editorial layout for the BIOS laboratory. */
body {
  background: #eef2f4;
  color: #1f2e3d;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #cfdadd;
  box-shadow: 0 8px 24px rgba(31, 46, 61, .06);
}

.top-banner {
  padding: 9px 20px;
  background: var(--primary);
  font-size: .68rem;
  letter-spacing: .16em;
}

.site-header .nav {
  min-height: 92px;
}

.brand {
  width: 250px;
  min-height: 80px;
  justify-content: center;
}

.brand > .site-logo {
  width: 210px;
  height: 76px;
  padding: 4px 12px;
  background: transparent;
}

.main-nav .menu {
  gap: 6px;
  color: var(--primary);
  font-size: .73rem;
  letter-spacing: .12em;
}

.main-nav .menu a {
  padding: 10px 12px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.main-nav .menu a:hover,
.main-nav .menu a:focus-visible {
  background: transparent;
  border-bottom-color: var(--accent);
}

.header-phone {
  color: var(--primary-2);
  font-size: .84rem;
}

.header-contact {
  border-radius: 999px !important;
  background: var(--primary);
  letter-spacing: .1em;
}

.index-page .hero {
  min-height: 0;
  padding: 0;
  background: #eef2f4;
}

.index-page .hero-wrap {
  min-height: 620px;
  overflow: hidden;
  background: #eef2f4;
  border-bottom: 1px solid #cfdadd;
}

.index-page .hero-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 43%;
  background: url("principal.webp") center / cover no-repeat;
  filter: saturate(.84) contrast(1.04);
}

.index-page .hero-layout {
  min-height: 620px;
  align-items: center;
}

.index-page .hero-grid {
  display: block;
  position: relative;
  z-index: 1;
}

.index-page .hero-copy {
  width: min(610px, 58%);
  padding: 70px 0 90px;
}

.index-page .hero-copy::before {
  content: "BIOS / LABORATORIO DE CONTROL";
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.index-page .hero-copy h1 {
  max-width: 580px;
  margin: 0 0 22px;
  color: var(--primary);
  font-size: clamp(3rem, 6vw, 6.6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.07em;
}

.index-page .hero-copy > p {
  max-width: 470px;
  margin: 0;
  color: #526b79;
  font-size: 1.08rem;
  line-height: 1.7;
}

.index-page .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.index-page .hero-actions a {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 2px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.index-page .hero-actions .cta-button {
  background: var(--primary);
}

.index-page .hero-actions .secondary-button {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.index-page .hero-stats {
  display: block;
  margin-top: 58px;
  padding-top: 18px;
  border-top: 1px solid #c5d2d6;
}

.index-page .hero-stats strong {
  color: var(--primary-2);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.index-page .hero-stats span {
  display: block;
  margin-top: 2px;
  color: #68808b;
  font-size: .82rem;
}

.index-page .hero-scroll,
.index-page .hero-specialties {
  display: none;
}

.index-page .bios-description,
.index-page .analysis-preview,
.index-page .certifications,
.index-page .contact {
  padding: 96px 0;
}

.index-page .bios-description {
  background: #fff;
  border-bottom: 1px solid #d5dfe2;
}

.index-page .bios-description__grid {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 72px;
  padding: 0;
  background: transparent;
  border: 0;
}

.index-page .section-head,
.index-page .bios-description__grid > div {
  text-align: left;
}

.index-page .section-badge {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: .7rem;
  letter-spacing: .2em;
}

.index-page .bios-description h2,
.index-page .section-head h2 {
  margin: 16px 0 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.index-page .bios-description p {
  max-width: 650px;
  margin: 0;
  color: #526b79;
  font-size: 1.02rem;
  line-height: 1.85;
}

.index-page .analysis-preview {
  background: #eef2f4;
}

.bios-method {
  padding: 106px 0;
  background: #eef2f4;
  border-top: 1px solid #cbd8dc;
}

.bios-method__grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 90px;
  align-items: start;
}

.bios-method__intro h2 {
  max-width: 440px;
  margin: 16px 0 18px;
  color: var(--primary);
  align-items: center;
  min-height: 190px !important;
  padding: 18px 0 !important;
  border: 0 !important;
  border-top: 1px solid #cbd8dc !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.index-page .analysis-preview__grid article:last-child {
  border-bottom: 1px solid #cbd8dc !important;
}

.index-page .analysis-preview__grid article::after {
  display: none !important;
  content: none !important;
}

.index-page .analysis-preview__grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(45, 43, 109, .72);
}

.index-page .analysis-preview__image {
  width: 250px !important;
  height: 154px !important;
  object-fit: cover;
  filter: saturate(.8) contrast(1.04);
}

.index-page .analysis-preview__content {
  grid-column: 2;
}

.index-page .analysis-preview__content strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: none !important;
  color: #fff !important;
  font-size: 1.6rem;
  line-height: 1.05;
}

.index-page .analysis-preview__content p {
  position: relative;
  z-index: 2;
  margin: 10px 0 0 !important;
  color: #fff !important;
  line-height: 1.55;
}

.index-page .certifications {
  background: #fff;
  border-bottom: 1px solid #d5dfe2;
}

.index-page .certifications .section-head {
  margin-bottom: 38px;
}

.index-page .cert-grid--full {
  display: flex;
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 9px;
  padding: 0;
  background: transparent;
}

.index-page .cert-grid--full img {
  flex: 0 0 auto;
  width: auto;
  max-width: 180px;
  height: 100px;
  object-fit: contain;
}

.index-page .cert-grid--full img[src*="meta-cert"] {
  max-width: 100px;
  height: 196px;
}

.index-page .contact {
  background: #f4f5f6;
}

.index-quote-banner {
  display: none !important;
}

.index-page .contact .form-box {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.index-page .contact .section-head h2,
.index-page .contact .section-badge {
  color: var(--primary);
}

.index-page .contact .field {
  color: #617985;
}

.index-page .contact .field input,
.index-page .contact .field textarea,
.index-page .contact .field select {
  border-color: #cbd8dc;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
}

.index-page .contact .submit {
  border-radius: 2px;
  background: var(--accent);
}

.bios-footer {
  padding: 58px 0 24px;
  background: #fff;
  color: var(--text);
  border-top: 1px solid #cbd8dc;
}

.bios-footer__grid {
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
}

.bios-footer__brand img {
  width: 200px;
  padding: 0;
  background: transparent;
}

.bios-footer strong {
  color: var(--primary);
  letter-spacing: .16em;
}

.bios-footer p,
.bios-footer a {
  color: #647b87;
}

.bios-footer__legal {
  border-top-color: #d5dfe2;
}

.general-page,
.detail-page,
.about-page,
.services-page {
  background: #eef2f4;
}

.general-page > .container,
.detail-page > .container,
.about-page > .container {
  padding-top: 82px;
  padding-bottom: 82px;
}

.general-page .section-head,
.detail-page .section-head,
.about-page .section-head {
  max-width: 900px;
  margin: 0 0 42px;
  text-align: left;
}

.general-page .section-head h1,
.detail-page .section-head h1,
.about-page h1 {
  color: var(--primary);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.07em;
}

.general-page .section-badge,
.detail-page .section-badge,
.about-page .section-badge {
  padding: 0;
  background: transparent;
  color: var(--accent);
  letter-spacing: .2em;
}

.sector-grid,
.catalog-grid,
.services-directory__grid,
.mv-grid,
.distinguishes__grid {
  gap: 0;
}

.sector-card,
.catalog-item,
.services-directory__card,
.mv-card,
.distinguishes__grid article {
  border: 0;
  border-top: 1px solid #cbd8dc;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sector-card:hover,
.catalog-item:hover,
.services-directory__card:hover,
.mv-card:hover,
.distinguishes__grid article:hover {
  transform: none;
  background: rgba(255,255,255,.45);
  box-shadow: none;
}

.general-page .sector-card__media img,
.services-directory__image,
.service-reference__image {
  filter: none;
}

.about-hero-card,
.service-modern-hero,
.service-modern-card,
.form-box {
  border-radius: 0;
  box-shadow: none;
}

.about-hero-card {
  margin: 0 0 52px;
  padding: 54px 0;
  background: transparent;
  color: var(--primary);
  border-top: 1px solid #cbd8dc;
  border-bottom: 1px solid #cbd8dc;
}

.about-hero-card h1,
.about-hero-card p {
  color: var(--primary);
}

.about-hero-card p {
  color: #607985;
}

.detail-page .service-reference-layout {
  gap: 28px;
}

.service-reference__panel--top,
.service-reference__panel--bottom {
  border-radius: 0;
}

@media (max-width: 800px) {
  .index-page .hero-wrap,
  .index-page .hero-layout {
    min-height: 700px;
  }

  .index-page .hero-wrap::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 42%;
    background: url("principal.webp") center / cover no-repeat;
  }

  .index-page .hero-copy {
    width: 100%;
    padding: 70px 0 0;
  }


  .index-page .analysis-preview__grid article {
    grid-template-columns: 190px minmax(0, 1fr) 40px !important;
    gap: 18px;
  }

  .index-page .analysis-preview__image {
    width: 190px !important;
    height: 130px !important;
  }

  .index-page .analysis-preview__content strong {
    font-size: 1.2rem;
  }

  .index-page .cert-grid--full {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    width: calc(100vw - 32px);
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .bios-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {
  .site-header .nav {
    min-height: 78px;
  }

  .brand {
    width: 150px;
    min-height: 56px;
  }

  .brand > .site-logo {
    width: 145px;
    height: 56px;
  }

  .index-page .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .index-page .bios-description__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .index-page .analysis-preview__grid article {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 22px 0 !important;
  }

  .index-page .analysis-preview__image {
    width: 100% !important;
    height: 170px !important;
  }

  .index-page .analysis-preview__content {
    grid-column: 1;
  }

  .index-page .analysis-preview__grid article::after {
    display: none;
  }

  .bios-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 801px) {
  .index-page .hero-wrap::after {
    width: 55%;
  }

  .index-page .hero-grid {
    width: 45%;
  }

  .index-page .hero-copy h1 {
    font-size: clamp(2.6rem, 4.2vw, 4.7rem);
  }

  .index-page .hero-wrap,
  .index-page .hero-layout,
  .index-page .hero-grid,
  .index-page .hero-copy {
    height: 470px !important;
    min-height: 470px !important;
  }

  .index-page .hero-copy {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .index-page .hero-copy h1 {
    font-size: clamp(3.2rem, 5.2vw, 6rem);
    line-height: .88;
  }
}

.index-page .hero,
.index-page .hero-wrap {
  background: rgba(123, 8, 129, .07) !important;
}

.index-page > .contact,
.index-page > .info {
  display: none !important;
}

/* ==========================================================================
   Tren continuo de imágenes (Photo Train) debajo de diferenciales
   ========================================================================== */
.photo-train-section {
  width: 100%;
  overflow: hidden;
  padding: 24px 0 50px;
  background: transparent;
  position: relative;
}

.photo-train__wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.photo-train__track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: photoTrainInfinite 32s linear infinite;
  will-change: transform;
}

.photo-train__track:hover {
  animation-play-state: paused;
}

.photo-train__group {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.photo-train__item {
  flex: 0 0 380px;
  width: 380px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 45, 0.08);
  box-shadow: 0 10px 26px rgba(19, 31, 45, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-train__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(19, 31, 45, 0.14);
}

.photo-train__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-train__item:hover img {
  transform: scale(1.04);
}

@keyframes photoTrainInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

@media (max-width: 900px) {
  .photo-train__item {
    flex: 0 0 300px;
    width: 300px;
    height: 210px;
    border-radius: 12px;
  }
  .photo-train__track,
  .photo-train__group {
    gap: 14px;
  }
  @keyframes photoTrainInfinite {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-50% - 7px));
    }
  }
}

@media (max-width: 600px) {
  .photo-train-section {
    padding: 16px 0 36px;
  }
  .photo-train__item {
    flex: 0 0 250px;
    width: 250px;
    height: 175px;
  }
}

/* ==========================================================================
   Diseño unificado para las secciones de información añadida en servicios
   ========================================================================== */
.service-detail--info { max-width: 980px; margin: 0 auto 24px; padding: 0; }
.service-detail--info h2 { margin: 0 0 20px; color: var(--primary); font-size: clamp(1.5rem,3vw,2.2rem); }
.service-detail--info .service-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.service-detail--info .service-detail__grid > div,
.service-detail--info .service-detail__grid > div:nth-child(4n + 1),
.service-detail--info .service-detail__grid > div:nth-child(4n + 2),
.service-detail--info .service-detail__grid > div:nth-child(4n + 3),
.service-detail--info .service-detail__grid > div:nth-child(4n + 4) { min-height: 0; padding: 20px; border: 0; border-left: 4px solid var(--accent); border-radius: 0; background: #f8fafc; color: inherit; }
.service-detail--info .service-detail__grid > div h3 { margin: 0 0 10px; color: var(--primary-2); }
.service-detail--info .service-detail__grid > div ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.service-detail--info > p { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
@media (max-width:700px) {
  .service-detail--info .service-detail__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Correccion del layout del hero en moviles (se desbordaba y se solapaba con la imagen)
   ========================================================================== */
@media (max-width: 800px) {
  .index-page.index-page.index-page.index-page .hero-wrap,
  .index-page.index-page.index-page.index-page .hero-layout {
    min-height: 0 !important;
    height: auto !important;
  }
  .index-page.index-page.index-page.index-page .hero-wrap::before {
    display: none !important;
  }
  .index-page.index-page.index-page.index-page .hero-wrap::after {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 230px !important;
    margin: 20px 0 0 !important;
    inset: auto !important;
  }
  .index-page.index-page.index-page.index-page .hero-grid {
    width: 100% !important;
    height: auto !important;
  }
  .index-page.index-page.index-page.index-page .hero-copy {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 32px 0 24px !important;
  }
}

@media (max-width: 640px) {
  .index-page.index-page.index-page.index-page .hero-title-frame {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .index-page.index-page.index-page.index-page .hero-title-frame h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.1rem, 9vw, 3rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
  }
  .index-page.index-page.index-page.index-page .hero-title-frame p {
    width: 100% !important;
    max-width: 100% !important;
    font-size: .95rem !important;
    line-height: 1.5 !important;
  }
  .index-page.index-page .hero-copy { height: auto !important; }
}

/* FICHAS DE SERVICIO | Misma jerarquía visual para agua, centros, alimentos y plantas. */
.centers-hero,
.service-page-hero {
  min-height: 390px;
}

.centers-hero__content h1,
.service-page-hero__content h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.detail-page--centers,
.detail-page--bakery,
.detail-page--food,
.detail-page--water {
  padding: 54px 0 72px;
  background: #f4f6f8;
}

.detail-page--centers > .container,
.detail-page--bakery > .container,
.detail-page--food > .container,
.detail-page--water > .container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.detail-page .service-reference-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 30px 42px;
  align-items: stretch;
  max-width: none;
  margin: 0 auto 44px;
}

.detail-page .service-reference__panels {
  display: none;
}

.detail-page .service-reference__panel,
.detail-page--water .service-reference__panel--bottom {
  min-height: 96px;
  padding: 20px 24px;
  justify-content: center;
  border: 1px solid #e0e5eb;
  border-left: 4px solid var(--accent);
  background: #fff;
  color: var(--text);
}

.detail-page .service-reference__panel--bottom {
  border-left-color: var(--primary-2);
}

.detail-page .service-reference__panel strong,
.detail-page .service-reference__panel p {
  color: var(--primary);
}

.detail-page .service-reference__panel strong {
  font-size: .95rem;
  line-height: 1.3;
}

.detail-page .service-reference__panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .9rem;
}

.detail-page .service-reference__image {
  grid-column: 1;
  grid-row: auto;
  align-self: start;
  width: 100% !important;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9eef2;
}

.detail-page .service-reference__content {
  grid-column: 2;
  grid-row: auto;
  align-self: stretch;
  padding: 26px 28px;
  border-top: 3px solid var(--primary);
  background: #fff;
  color: var(--muted);
}

.detail-page .service-reference__content .section-badge {
  margin-bottom: 14px;
}

.detail-page .service-reference__content h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.12;
}

.detail-page .service-reference__content > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-page .service-reference__content h3 {
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce3e8;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.3;
}

.detail-page .service-reference__content h4 {
  margin: 16px 0 0;
  padding: 11px 14px 5px;
  border-left: 3px solid var(--accent);
  background: #f4f7f9;
  color: var(--primary-2);
  font-size: .98rem;
}

.detail-page .service-reference__content ul {
  margin: 0 0 12px;
  padding: 8px 16px 14px 34px;
  border-left: 3px solid var(--accent);
  background: #f4f7f9;
  color: var(--muted);
  line-height: 1.7;
}

.detail-page .service-detail--info {
  max-width: none;
  margin: 0 auto 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-page .service-detail--info > h2 {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.detail-page .service-detail--info .service-detail__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-page .service-detail--info .service-detail__grid > div,
.detail-page--water .service-detail--info .service-detail__grid > div:nth-child(4n + 1),
.detail-page--water .service-detail--info .service-detail__grid > div:nth-child(4n + 2),
.detail-page--water .service-detail--info .service-detail__grid > div:nth-child(4n + 3),
.detail-page--water .service-detail--info .service-detail__grid > div:nth-child(4n + 4) {
  min-height: 0;
  padding: 22px 24px;
  border: 1px solid #e0e5eb;
  border-top: 3px solid var(--accent);
  border-radius: 0;
  background: #fff;
  color: var(--muted);
}

.detail-page .service-detail--info .service-detail__grid > div h3 {
  margin: 0 0 12px;
  color: var(--primary-2);
  font-size: 1.06rem;
}

.detail-page .service-detail--info .service-detail__grid > div ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-page .detail-page__back {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .centers-hero,
  .service-page-hero {
    min-height: 330px;
  }

  .centers-hero__content h1,
  .service-page-hero__content h1 {
    font-size: clamp(2.15rem, 8vw, 3.2rem);
  }

  .detail-page--centers,
  .detail-page--bakery,
  .detail-page--water {
    padding: 34px 0 48px;
  }

  .detail-page .service-reference-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .detail-page .service-reference__panels {
    grid-column: 1;
  }

  .detail-page .service-reference__image {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .detail-page .service-reference__content {
    grid-column: 1;
    grid-row: auto;
    padding: 22px 20px;
  }
}

@media (max-width: 560px) {
  .detail-page .service-reference__panels,
  .detail-page .service-detail--info .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .detail-page .service-reference__panel {
    min-height: 82px;
  }
}

.centers-hero,
.service-page-hero {
  isolation: isolate;
}

.centers-hero__image,
.service-page-hero__image {
  z-index: 0;
}

.centers-hero__shade,
.service-page-hero__shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(13, 26, 35, .68), rgba(13, 26, 35, .16)) !important;
}

.centers-hero__content,
.service-page-hero__content {
  z-index: 2;
}


/* NAVEGACION ENTRE SERVICIOS | Enlaces a los otros servicios al final de cada ficha (HTML: .service-next). */
.detail-page .service-next {
  margin: 8px 0 28px;
}

.detail-page .service-next h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 1.25rem;
}

.detail-page .service-next ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-page .service-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid #e0e5eb;
  border-left: 4px solid var(--primary-2);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.detail-page .service-next a:hover,
.detail-page .service-next a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(19, 31, 45, .1);
}

.detail-page .service-next a span {
  color: var(--accent);
  font-size: 1.3rem;
}

@media (max-width: 800px) {
  .detail-page .service-next ul { grid-template-columns: 1fr; }
}

/* LOGO EN VIDEO | Evita el boton flotante del navegador (pantalla completa/PiP) al pasar el cursor. */
.site-logo {
  pointer-events: none;
}

.index-page .bios-about-section__copy h2 {
  white-space: nowrap;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.bios-process__intro h2 .bios-process__how {
  color: #416a82;
}

.bios-process__intro h2 .bios-process__we {
  color: #7b0881;
}

.bios-process__steps li {
  padding-right: 10px;
  text-align: center;
}

.bios-process__steps li::before {
  top: -24px;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translateX(-50%);
  font-size: 1.4rem;
}

.bios-process__steps strong {
  font-size: 1rem;
}

.bios-process__steps span {
  font-size: .88rem;
}

.index-page .bios-process__steps li {
  padding-top: 34px;
}

.index-page .location-bar {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.index-page > .info {
  display: block !important;
  order: 8;
}

.location-bar__item h4,
.location-bar__email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.location-bar__icon,
.location-bar__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-bar__icon svg,
.location-bar__detail svg,
.location-bar__email svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.location-bar__detail {
  margin-bottom: 10px;
  line-height: 1.5;
}

.location-bar__email {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.services-page__hero .section-head h1 .services-heading__lead,
.services-modal__content h2 .services-heading__lead {
  color: #1d9a62;
}

.services-page__hero .section-head h1 .services-heading__need,
.services-modal__content h2 .services-heading__need {
  color: var(--primary-2);
}

.detail-page--plants .service-reference-layout--plants {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.detail-page--plants .service-reference__item {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.detail-page--plants .service-reference__item .service-reference__image {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 100% !important;
  height: 460px !important;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-position: center;
  object-fit: contain;
  background: transparent;
}

.detail-page--plants .service-reference__item .service-reference__content {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

@media (max-width: 800px) {
  .detail-page--plants .service-reference__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .detail-page--plants .service-reference__item .service-reference__image {
    grid-column: 1;
    grid-row: 1;
    height: 300px !important;
  }

  .detail-page--plants .service-reference__item .service-reference__content {
    grid-column: 1;
    grid-row: 2;
  }
}

.detail-page--food .service-reference__image {
  content: none;
  object-fit: cover;
  object-position: center;
}

.index-page :is(h1, h2, h3, h4, h5, h6) {
  color: #416a82 !important;
  -webkit-text-fill-color: #416a82 !important;
}

.index-page :is(h1, h2, h3, h4, h5, h6) em {
  font-style: normal !important;
}

.index-page :is(h1, h2, h3, h4, h5, h6) em,
.index-page :is(h1, h2, h3, h4, h5, h6) .bios-process__we,
.index-page :is(h1, h2, h3, h4, h5, h6) .services-heading__need {
  color: #7b0881 !important;
  -webkit-text-fill-color: #7b0881 !important;
}

.index-page :is(h1, h2, h3, h4, h5, h6) .services-heading__lead,
.index-page :is(h1, h2, h3, h4, h5, h6) .bios-process__how,
.index-page :is(h1, h2, h3, h4, h5, h6) .hero-title-accent {
  color: #416a82 !important;
  -webkit-text-fill-color: #416a82 !important;
}

:is(.services-page, .detail-page, .general-page, .about-page, .service-page-hero, .centers-hero) :is(h1, h2, h3, h4, h5, h6) {
  color: #416a82 !important;
  -webkit-text-fill-color: #416a82 !important;
}

:is(.services-page, .detail-page, .general-page, .about-page, .service-page-hero, .centers-hero) :is(h1, h2, h3, h4, h5, h6) :is(em, .service-heading__accent) {
  color: #7b0881 !important;
  -webkit-text-fill-color: #7b0881 !important;
  font-style: normal !important;
}

:is(.service-page-hero, .centers-hero) :is(h1, h2, h3, h4, h5, h6) {
  display: table;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
}

:is(.service-page-hero, .centers-hero) .service-page-hero__content h1,
:is(.service-page-hero, .centers-hero) .centers-hero__content h1,
:is(.service-page-hero, .centers-hero) .service-page-hero__content h1 :is(em, .service-heading__accent),
:is(.service-page-hero, .centers-hero) .centers-hero__content h1 :is(em, .service-heading__accent) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

@media (max-width: 900px) {
  .index-page .location-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .index-page .location-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .index-page .bios-process__steps li {
    padding-top: 34px;
  }
}

.index-page .location-bar {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 30px 24px;
  background: transparent;
  color: #416a82;
}

.index-page .location-bar__item h4 {
  color: #416a82;
}

.index-page .location-bar__item p,
.index-page .location-bar__email {
  color: #647b87;
}

.index-page .location-bar {
  display: none !important;
}

.bios-footer.bios-footer {
  padding: 38px 0 18px;
  border-top: 1px solid #d5dfe2;
  background-color: #fff !important;
  background: #fff !important;
  color: #647b87;
}

.bios-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1.25fr 1fr 1.55fr .65fr;
  gap: 28px;
  align-items: start;
}

.bios-footer__brand > .site-logo {
  width: 250px;
  height: 94px;
  object-fit: contain;
}

.bios-footer__grid > strong,
.bios-footer__grid > div > strong,
.bios-footer__grid > section > strong {
  display: block;
  margin: 4px 0 12px;
  color: #416a82;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bios-footer__heading {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

.bios-footer .bios-footer__heading,
.bios-footer .bios-footer__contact > strong {
  color: #7b0881;
}

.bios-footer__icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vertical-align: middle;
}

.bios-footer__location address,
.bios-footer__contact a {
  color: #647b87;
  font-size: .84rem;
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.bios-footer__contact a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 5px;
  text-decoration: none;
}

.bios-footer__contact .bios-footer__icon {
  margin-top: 3px;
}

.bios-footer__contact a:hover {
  color: #7b0881;
}

.bios-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bios-footer__social > strong {
  flex: 0 0 100%;
}

.bios-footer__social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin: 0;
}

.bios-footer__social-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.bios-footer__legal {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 14px;
  border-top: 1px solid #d5dfe2;
  color: #647b87;
  font-size: .76rem;
  text-align: center;
}

@media (max-width: 900px) {
  .bios-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .bios-footer__brand > .site-logo {
    width: 220px;
    height: 82px;
  }
}

@media (max-width: 600px) {
  .bios-footer {
    padding-top: 30px;
  }

  .bios-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .bios-footer__brand,
  .bios-footer__contact {
    grid-column: 1 / -1;
  }

  .bios-footer__brand > .site-logo {
    width: min(250px, 100%);
    height: 94px;
  }
}

@media (max-width: 380px) {
  .bios-footer__grid {
    grid-template-columns: 1fr;
  }

  .bios-footer__brand,
  .bios-footer__contact {
    grid-column: auto;
  }
}

body main :is(p, li, blockquote, dt, dd, figcaption) {
  text-align: justify !important;
}

body main:is(.services-page, .detail-page, .general-page) :is(p, li, blockquote, dt, dd, figcaption) {
  text-align: left !important;
}

:is(.services-page__hero, .service-page-hero, .centers-hero) :is(h1, h2, h3, h4, h5, h6, p) {
  text-align: left !important;
}

.detail-page.detail-page--centers .service-reference__image {
  align-self: center;
  margin-top: 0;
}

.detail-page--water:not(.detail-page--plants) .service-reference__image {
  align-self: center;
}

.detail-page--water:not(.detail-page--plants) .service-detail--info > .service-detail__note {
  margin: 32px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #2aa8b5;
  background: #f0f7f8;
  color: #666;
  line-height: 1.55;
}

.detail-page--food .service-reference__image {
  width: min(100%, 420px) !important;
  height: auto !important;
  aspect-ratio: auto !important;
  justify-self: center;
  object-fit: contain !important;
}

.index-page .bios-about-section__copy,
.index-page .bios-about-section__features article,
.index-page .bios-process__intro,
.index-page .bios-process__steps li,
.index-page .bios-about-section__copy p,
.index-page .bios-about-section__features p,
.index-page .bios-process__steps li span {
  text-align: center !important;
}

@media (min-width: 801px) {
  .index-page .hero-wrap,
  .index-page .hero-layout {
    min-height: 470px !important;
    height: 470px !important;
  }

  .index-page .hero-wrap::after {
    width: 55% !important;
  }

  .index-page .hero-grid {
    width: 45% !important;
  }

  .index-page.index-page.index-page.index-page .hero-copy {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame {
    width: 100% !important;
    max-width: 560px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: auto !important;
    padding: 28px 20px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame h1 {
    width: 100% !important;
    max-width: 420px !important;
    font-size: clamp(2.5rem, 5vw, 4.25rem) !important;
    line-height: .9 !important;
    text-align: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame p {
    width: 100% !important;
    max-width: 380px !important;
    margin: 18px auto 0 !important;
    font-size: clamp(.78rem, 1vw, .9rem) !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame .hero-quote-button {
    align-self: center !important;
    margin: 20px auto 0 !important;
  }
}

@media (max-width: 800px) {
  .index-page .hero-wrap,
  .index-page .hero-layout {
    min-height: 0 !important;
    height: auto !important;
  }

  .index-page .hero-grid,
  .index-page.index-page.index-page.index-page .hero-copy {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .index-page.index-page.index-page.index-page .hero-copy {
    padding: 28px 16px 22px !important;
    max-width: none !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame {
    width: 100% !important;
    max-width: 560px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 8px 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame h1 {
    width: 100% !important;
    max-width: 500px !important;
    font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame p {
    width: 100% !important;
    max-width: 480px !important;
    margin: 16px auto 0 !important;
    font-size: clamp(.9rem, 2.6vw, 1.05rem) !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-title-frame .hero-quote-button {
    align-self: center !important;
    margin: 20px auto 0 !important;
  }

  .index-page .hero-wrap::after {
    width: 100% !important;
    height: clamp(210px, 48vw, 320px) !important;
    margin: 12px 0 0 !important;
  }
}

@media (min-width: 801px) {
  .index-page.index-page.index-page.index-page .hero-wrap::before {
    width: 45% !important;
    background-position: center !important;
    background-size: cover !important;
  }

  .index-page.index-page.index-page.index-page .hero-grid {
    width: 45% !important;
  }

  .index-page.index-page.index-page.index-page .hero-copy {
    width: 100% !important;
    max-width: none !important;
    padding: 24px 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .index-page.index-page.index-page.index-page .hero-copy .hero-title-frame {
    width: calc(100% - 48px) !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

body main.services-page.services-page--directory .services-directory__content p {
  text-align: center !important;
}

.index-page.index-page.index-page.index-page .hero-wrap::after {
  background-position: 50% 12% !important;
}

@media (min-width: 901px) {
  .bios-footer .bios-footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) max-content minmax(0, .5fr);
    gap: 24px;
  }

  .bios-footer .bios-footer__contact a {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

@media (min-width:901px) {
  .main-nav .menu { flex-wrap: nowrap; gap: 0; letter-spacing: .06em; font-size: .8rem; }
  .main-nav .menu a { padding: 10px 7px; white-space: nowrap; }
  .site-header .brand { width: 200px; }
  .site-header .brand > .site-logo { width: 170px; }
}
@media (min-width:901px) and (max-width:1100px) {
  .main-nav .menu { letter-spacing: .03em; font-size: .72rem; }
  .main-nav .menu a { padding: 10px 5px; }
  .site-header .brand { width: 170px; }
  .site-header .brand > .site-logo { width: 150px; }
  .site-header .nav { gap: 12px; }
}
