/* =====================================================================
   LAFAR UI (2026-10): rediseño del inicio y microinteracciones globales.
   Solo se animan transform/opacity (no afecta el scroll) y todo se
   desactiva si el sistema pide "reducir movimiento".
   ===================================================================== */
:root {
  /* Paleta oficial: Manual de Identidad Visual Corporativa LAFAR 2021 */
  --lx-cyan: #009de0;      /* Primario: Process Cyan C */
  --lx-cyan-700: #0074a6;  /* Cian oscurecido: texto y botones con texto blanco (≥4.5:1 en todos los fondos claros) */
  --lx-cyan-800: #005f88;  /* Hover de botones sobre --lx-cyan-700 */
  --lx-navy: #294a96;      /* Secundario: Pantone 7687 C */
  --lx-navy-900: #172a57;  /* Fondo oscuro derivado del azul corporativo */
  --lx-lime: #a2c037;      /* Secundario: Pantone 375 C */
  --lx-lime-700: #86a21f;  /* Solo íconos; para texto usar --lx-lime-ink */
  --lx-lime-ink: #56690f;  /* Verde corporativo oscurecido para texto (≥4.5:1 sobre su tinte) */
  --lx-yellow: #eab817;    /* Secundario: Pantone 7549 C */
  /* Alias usados en el resto de la hoja */
  --lx-blue: var(--lx-cyan);
  --lx-blue-600: var(--lx-cyan-700);
  --lx-green: var(--lx-lime);
  --lx-green-600: var(--lx-lime-700);
  --lx-ink: #16213a;
  --lx-text: #4a5568;
  --lx-muted: #5f6a84;
  --lx-soft: #f2f7fb;
  --lx-line: #e3e9f1;
  --lx-white: #ffffff;
  --lx-radius: 18px;
  --lx-radius-sm: 12px;
  --lx-shadow: 0 10px 30px rgba(23, 42, 87, 0.08);
  --lx-shadow-hover: 0 18px 40px rgba(23, 42, 87, 0.16);
  --lx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Utilidades ---------- */
.lx-section { padding: 96px 0; background: var(--lx-white); }
.lx-section--soft { background: var(--lx-soft); }
.lx-center { text-align: center; margin-top: 40px; }
/* Antetítulo */
.lx-eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--lx-cyan-700);
}
.lx-eyebrow--light { color: #7fd0f5; }
.lx-title {
  margin: 0 0 18px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.75rem); line-height: 1.15;
  font-weight: 700; color: var(--lx-ink); letter-spacing: -0.01em;
}
.lx-title--light { color: var(--lx-white); }
.lx-lead { font-size: 1.15rem; line-height: 1.65; color: var(--lx-text); margin: 0 0 28px; }
.lx-section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px;
}
.lx-section__head--center { justify-content: center; text-align: center; }

/* ---------- Botones y enlaces ---------- */
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--lx-ease), box-shadow .2s var(--lx-ease), background-color .2s, color .2s, border-color .2s;
}
.lx-btn:active { transform: translateY(1px) scale(.98); }
/* Botón principal en cian corporativo (antes verde esmeralda, fuera de la paleta) */
.lx-btn--primary { background: var(--lx-cyan-700); color: var(--lx-white); box-shadow: 0 8px 20px rgba(0, 116, 166, .3); }
.lx-btn--primary:hover, .lx-btn--primary:focus-visible { background: var(--lx-cyan-800); color: var(--lx-white); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 157, 224, .45); }
.lx-btn--outline { border-color: var(--lx-navy); color: var(--lx-navy); background: transparent; }
.lx-btn--outline:hover, .lx-btn--outline:focus-visible { background: var(--lx-navy); color: var(--lx-white); transform: translateY(-2px); }
.lx-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lx-cyan-700); text-decoration: none;
}
.lx-link .fa-arrow-right { transition: transform .25s var(--lx-ease); }
.lx-link:hover { color: var(--lx-navy); }
.lx-link:hover .fa-arrow-right { transform: translateX(4px); }
.lx-link--light { color: #7fd0f5; }
.lx-link--light:hover { color: var(--lx-white); }
.lx-btn:focus-visible, .lx-link:focus-visible, .lx-chip:focus-visible, .lx-product:focus-visible,
.lx-post:focus-visible, .lx-path:focus-visible, .lx-carousel__btn:focus-visible {
  outline: 3px solid #8fd6ff; outline-offset: 3px;
}

/* ---------- Portada ---------- */
.lx-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  align-items: flex-start; min-height: min(calc(100vh - 140px), 860px); padding: 64px 0 200px; color: var(--lx-white);
  background: var(--lx-navy-900);
}
.lx-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 60%;
  scale: 1.02; animation: lx-kenburns 18s cubic-bezier(.2, .6, .3, 1) both; will-change: scale, translate;
}
@keyframes lx-kenburns { from { scale: 1.14; } to { scale: 1.02; } }
/* Arriba oscuro (tapa el logo de la fachada detrás del título), abajo despejado (se ve al equipo) */
.lx-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 42, 87, .95) 0%, rgba(30, 55, 115, .84) 34%, rgba(41, 74, 150, .22) 64%, rgba(41, 74, 150, 0) 80%),
    linear-gradient(90deg, rgba(23, 42, 87, .55) 0%, rgba(23, 42, 87, 0) 55%);
}
.lx-hero__inner { position: relative; z-index: 1; }
.lx-hero__content { max-width: 620px; }
.lx-hero__eyebrow { color: #7fd0f5; }
.lx-hero__title {
  margin: 0 0 18px; color: var(--lx-white); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05;
}
.lx-hero__lead { margin: 0 0 32px; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, .88); }
.lx-search {
  display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 20px;
  background: var(--lx-white); border-radius: 999px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.lx-search__icon { color: var(--lx-muted); }
.lx-search__input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  font-size: 1.05rem; color: var(--lx-ink);
}
.lx-search__input::placeholder { color: var(--lx-muted); }
.lx-hero__profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.lx-hero__profiles-label { font-weight: 700; color: rgba(255, 255, 255, .8); margin-right: 4px; }
.lx-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px;
  color: var(--lx-white); text-decoration: none; font-weight: 700;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, transform .2s var(--lx-ease), border-color .2s;
}
.lx-chip:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .6); color: var(--lx-white); transform: translateY(-2px); }
.lx-hero__scroll {
  position: absolute; left: 50%; bottom: 82px; z-index: 1; width: 44px; height: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--lx-white); border: 1px solid rgba(255, 255, 255, .45); text-decoration: none;
  animation: lx-bob 2.4s ease-in-out infinite;
}
.lx-hero__scroll:hover { color: var(--lx-white); background: rgba(255, 255, 255, .15); }
@keyframes lx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Íconos dentro de recuadros ---------- */
.lx-stat__icon > span, .lx-pillar__icon > span, .lx-glass__icon > span, .lx-card__icon > span {
  display: block; line-height: 1; font-size: inherit; color: inherit;
}

/* ---------- Portada con la foto del edificio ----------
   Degradado azul corporativo a la izquierda (texto blanco con buen contraste), acotado
   al 70% del ancho para que el video de la planta se vea en el resto;
   el edificio (o el video de la planta) se ve a la derecha. Ocupa toda la primera
   pantalla menos el menú (70px bajo 1200px; desde 1200px el menú va encima, ver más abajo). */
.lx-hero--edificio {
  align-items: center;
  min-height: max(560px, calc(100vh - 70px));
  min-height: max(560px, calc(100svh - 70px));
  padding: 48px 0 104px;
}
.lx-hero--edificio .lx-hero__bg { background-position: right center; }
.lx-hero--edificio .lx-hero__overlay {
  background:
    /* Paradas ancladas al centro (el texto termina cerca de él en cualquier ancho), no a porcentajes.
       Caída suave en varias paradas para que no se perciba una línea vertical */
    linear-gradient(90deg,
      rgba(20, 37, 80, .92) 0,
      rgba(24, 45, 98, .86) calc(50% + 20px),
      rgba(27, 50, 108, .76) calc(50% + 110px),
      rgba(31, 57, 120, .6) calc(50% + 200px),
      rgba(35, 64, 132, .42) calc(50% + 290px),
      rgba(38, 69, 141, .26) calc(50% + 380px),
      rgba(40, 72, 146, .12) calc(50% + 470px),
      rgba(41, 74, 150, .04) calc(50% + 560px),
      rgba(41, 74, 150, 0) calc(50% + 640px)),
    linear-gradient(0deg, rgba(20, 37, 80, .45) 0%, rgba(20, 37, 80, 0) 22%);
}
.lx-hero--edificio .lx-hero__content { max-width: 700px; }
.lx-hero--edificio .lx-hero__title { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.08; margin-bottom: 14px; }
.lx-hero--edificio .lx-hero__lead { margin-bottom: 24px; max-width: 34em; }
/* Título en dos líneas y texto angosto: así quedan dentro de la zona oscura del degradado */
.lx-hero--edificio .lx-hero__title { max-width: 12em; text-wrap: balance; }
.lx-hero--edificio .lx-search { max-width: 600px; }

/* Accesos por perfil: tarjetas blancas destacadas */
.lx-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; max-width: 700px; }
.lx-profile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--lx-white); color: var(--lx-navy); text-decoration: none;
  box-shadow: 0 12px 28px rgba(10, 20, 50, .28);
  transition: transform .25s var(--lx-ease), background-color .25s, color .25s, box-shadow .25s var(--lx-ease);
}
.lx-profile__icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #e3f4fc; color: var(--lx-cyan); font-size: 1.1rem; transition: background-color .25s, color .25s;
}
.lx-profile__icon > span { display: block; line-height: 1; }
.lx-profile__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lx-profile__text strong { font-size: 1.02rem; font-weight: 700; }
.lx-profile__text small { font-size: .82rem; color: var(--lx-muted); margin-top: 3px; transition: color .25s; }
.lx-profile__arrow { margin-left: auto; font-size: .9rem; opacity: .55; transition: transform .25s var(--lx-ease), opacity .25s; }
.lx-profile:hover, .lx-profile:focus-visible {
  background: var(--lx-cyan-700); color: var(--lx-white); transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 116, 166, .4);
}
.lx-profile:hover .lx-profile__icon, .lx-profile:focus-visible .lx-profile__icon { background: rgba(255, 255, 255, .2); color: var(--lx-white); }
.lx-profile:hover small, .lx-profile:focus-visible small { color: rgba(255, 255, 255, .85); }
.lx-profile:hover .lx-profile__arrow, .lx-profile:focus-visible .lx-profile__arrow { opacity: 1; transform: translateX(3px); }
.lx-profile:focus-visible { outline: 3px solid #7fd0f5; outline-offset: 3px; }

/* Pantallas de notebook bajas (p. ej. 1366x768): todo más compacto para que la portada entre completa */
@media (min-width: 992px) and (max-height: 840px) {
  .lx-hero--edificio { padding: 26px 0 88px; }
  .lx-hero--edificio .lx-hero__title { font-size: clamp(2rem, 1rem + 2.2vw, 2.7rem); }
  .lx-hero--edificio .lx-hero__lead { font-size: 1.02rem; margin-bottom: 18px; }
  .lx-hero--edificio .lx-search__input { height: 44px; }
  .lx-profiles { margin-top: 16px; }
  .lx-profile { padding: 10px 14px; }
  .lx-profile__icon { flex-basis: 38px; width: 38px; height: 38px; }
}
@media (max-width: 991.98px) {
  .lx-profile .lx-profile__arrow { display: none !important; }
}
@media (max-width: 767.98px) {
  .lx-hero.lx-hero--edificio { min-height: calc(100svh - 70px); padding: 40px 0 84px; } /* gana a ".lx-hero { min-height: auto }" de más abajo */
  .lx-hero--edificio .lx-hero__bg { background-position: 80% center; }
  /* Móvil: el pasillo se ve arriba y abajo; detrás del texto el azul es más denso */
  .lx-hero--edificio .lx-hero__overlay {
    background: linear-gradient(180deg, rgba(20, 37, 80, .45) 0%, rgba(24, 45, 98, .8) 24%, rgba(26, 48, 104, .84) 72%, rgba(20, 37, 80, .6) 100%);
  }
  /* En móvil: tres botones en fila, ícono arriba y texto abajo */
  .lx-profiles { gap: 8px; }
  .lx-profile { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; }
  .lx-profile__text strong { font-size: .88rem; }
  .lx-profile__text small { display: none; }
}

/* ---------- Cifras ---------- */
.lx-stats { position: relative; z-index: 2; margin-top: -64px; }
.lx-stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0;
  background: var(--lx-white); border-radius: var(--lx-radius); box-shadow: var(--lx-shadow-hover); overflow: hidden;
}
.lx-stat { display: flex; align-items: center; gap: 18px; padding: 24px 28px; }
.lx-stat + .lx-stat { border-left: 1px solid var(--lx-line); }
.lx-stat__icon {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--lx-cyan); background: #e3f4fc;
}
.lx-stat:nth-child(2) .lx-stat__icon { color: var(--lx-navy); background: #e8edf7; }
.lx-stat:nth-child(3) .lx-stat__icon { color: var(--lx-lime-700); background: #f1f6e1; }
.lx-stat:nth-child(4) .lx-stat__icon { color: #b88d00; background: #fcf4d9; }
.lx-stat__value { font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--lx-ink); font-variant-numeric: tabular-nums; }
.lx-stat__label { margin-top: 6px; font-size: .95rem; color: var(--lx-muted); }
@media (min-width: 992px) {
  .lx-stat { padding: 22px 26px; }
  .lx-stat__value { font-size: 1.9rem; }
  .lx-stat__label { white-space: nowrap; font-size: .93rem; }
}

/* ---------- Quiénes somos ---------- */
.lx-about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.lx-about__media { position: relative; padding: 0 0 60px 0; isolation: isolate; }
.lx-about__badge { z-index: 3; }
.lx-about__img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--lx-radius); }
.lx-about__img--main { aspect-ratio: 4 / 3.2; box-shadow: var(--lx-shadow); }
.lx-about__img--small {
  position: absolute; right: -24px; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
  border: 6px solid var(--lx-white); box-shadow: var(--lx-shadow-hover);
}
.lx-about__badge {
  position: absolute; left: 20px; bottom: 24px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px; background: var(--lx-white); box-shadow: var(--lx-shadow-hover);
  color: var(--lx-ink); line-height: 1.25; font-size: .92rem;
}
.lx-about__badge .fa-award { font-size: 1.6rem; color: var(--lx-yellow); }
.lx-pillars { display: grid; gap: 18px; margin-bottom: 28px; }
.lx-pillar { display: flex; gap: 16px; align-items: flex-start; }
.lx-pillar__icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--lx-cyan); background: #e3f4fc; font-size: 1.1rem;
}
.lx-pillar__title { margin: 2px 0 4px; font-size: 1.15rem; font-weight: 700; color: var(--lx-ink); }
.lx-pillar__text { margin: 0; color: var(--lx-text); line-height: 1.55; font-size: 1rem; text-align: left; }

/* ---------- Carrusel (productos y testimonios) ---------- */
.lx-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 24px;
  scrollbar-width: thin; scrollbar-color: #c6d3e3 transparent; overscroll-behavior-x: contain;
}
.lx-carousel > * { scroll-snap-align: start; }
.lx-carousel--wide { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
.lx-carousel:focus-visible { outline: 3px solid #8fd6ff; outline-offset: 4px; border-radius: var(--lx-radius); }
.lx-carousel__nav { display: flex; gap: 10px; }
.lx-carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--lx-line); background: var(--lx-white);
  color: var(--lx-ink); cursor: pointer; box-shadow: var(--lx-shadow);
  transition: background-color .2s, color .2s, transform .2s var(--lx-ease), opacity .2s;
}
.lx-carousel__btn:hover { background: var(--lx-blue); color: var(--lx-white); transform: translateY(-2px); }
.lx-carousel__btn[disabled] { opacity: .35; cursor: default; transform: none; background: var(--lx-white); color: var(--lx-ink); }

/* ---------- Tarjeta de producto ---------- */
.lx-product {
  display: flex; flex-direction: column; background: var(--lx-white); border-radius: var(--lx-radius);
  text-decoration: none; color: inherit; box-shadow: var(--lx-shadow); overflow: hidden;
  transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease);
}
.lx-product:hover { transform: translateY(-6px); box-shadow: var(--lx-shadow-hover); color: inherit; }
.lx-product__img { aspect-ratio: 1 / 1; background: #eef1f4; overflow: hidden; }
.lx-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--lx-ease); }
.lx-product:hover .lx-product__img img { transform: scale(1.06); }
.lx-product__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lx-product__name { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--lx-ink); text-transform: uppercase; letter-spacing: .01em; }
.lx-product__desc {
  margin: 0; font-size: .95rem; color: var(--lx-muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-product__more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .95rem; color: var(--lx-cyan-700); }
.lx-product__more .fa-arrow-right, .lx-post__more .fa-arrow-right, .lx-path__cta .fa-arrow-right { transition: transform .25s var(--lx-ease); }
.lx-product:hover .lx-product__more .fa-arrow-right, .lx-post:hover .lx-post__more .fa-arrow-right, .lx-path:hover .lx-path__cta .fa-arrow-right { transform: translateX(4px); }

/* ---------- Calidad / certificaciones ---------- */
.lx-quality { position: relative; overflow: hidden; padding: 110px 0; background: var(--lx-navy-900); color: var(--lx-white); }
.lx-quality__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.lx-quality::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(23, 42, 87, .96) 0%, rgba(41, 74, 150, .85) 45%, rgba(0, 157, 224, .6) 100%);
}
.lx-quality__inner { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.4fr; gap: 56px; align-items: center; }
.lx-quality__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.lx-glass {
  padding: 32px; border-radius: var(--lx-radius); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--lx-ease), background-color .3s;
}
.lx-glass:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .13); }
.lx-glass__icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--lx-navy-900); background: var(--lx-lime); margin-bottom: 20px;
}
.lx-glass__title { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; color: var(--lx-white); }
.lx-glass__text { margin: 0 0 18px; color: rgba(255, 255, 255, .82); line-height: 1.6; font-size: 1rem; }

/* ---------- Servicios ---------- */
.lx-services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.lx-card {
  position: relative; padding: 36px; border-radius: var(--lx-radius); background: var(--lx-white);
  border: 1px solid var(--lx-line); box-shadow: var(--lx-shadow); overflow: hidden;
  transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease), border-color .3s;
}
.lx-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--lx-cyan), var(--lx-navy) 50%, var(--lx-lime) 80%, var(--lx-yellow)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--lx-ease);
}
.lx-card:hover { transform: translateY(-6px); box-shadow: var(--lx-shadow-hover); border-color: transparent; }
.lx-card:hover::after { transform: scaleX(1); }
.lx-card__icon {
  width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--lx-cyan); background: #e3f4fc; margin-bottom: 22px;
}
.lx-card__title { margin: 0 0 10px; font-size: 1.35rem; font-weight: 700; color: var(--lx-ink); }
.lx-card__text { margin: 0; color: var(--lx-text); line-height: 1.6; text-align: left; }

/* ---------- Noticias ---------- */
.lx-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lx-post {
  display: flex; flex-direction: column; border-radius: var(--lx-radius); overflow: hidden; background: var(--lx-white);
  text-decoration: none; color: inherit; box-shadow: var(--lx-shadow);
  transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease);
}
.lx-post:hover { transform: translateY(-6px); box-shadow: var(--lx-shadow-hover); color: inherit; }
.lx-post__img { aspect-ratio: 16 / 10; overflow: hidden; background: #e8edf3; }
.lx-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--lx-ease); }
.lx-post:hover .lx-post__img img { transform: scale(1.06); }
.lx-post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lx-post__date { font-size: .9rem; color: var(--lx-muted); }
.lx-post__title { margin: 0; font-size: 1.2rem; line-height: 1.35; font-weight: 700; color: var(--lx-ink); }
.lx-post__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--lx-cyan-700); font-size: .95rem; }

/* ---------- Testimonios ---------- */
.lx-quote {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 34px 30px 28px;
  border-radius: var(--lx-radius); background: var(--lx-soft); border: 1px solid var(--lx-line);
  transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease), background-color .3s;
}
.lx-quote:hover { transform: translateY(-4px); background: var(--lx-white); box-shadow: var(--lx-shadow-hover); }
.lx-quote__mark { position: absolute; top: 6px; right: 22px; font-size: 5rem; line-height: 1; color: var(--lx-yellow); opacity: .45; font-family: Georgia, serif; }
.lx-quote__text { margin: 0 0 24px; font-size: 1.08rem; line-height: 1.6; color: var(--lx-ink); }
.lx-quote__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.lx-quote__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lx-white); box-shadow: 0 4px 12px rgba(15, 37, 82, .15); }
.lx-quote__author strong { display: block; color: var(--lx-ink); font-size: 1rem; line-height: 1.3; }
.lx-quote__author small { display: block; color: var(--lx-muted); font-size: .88rem; }

/* ---------- Accesos por perfil ---------- */
.lx-paths { padding-top: 0; }
.lx-paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lx-path {
  position: relative; display: block; min-height: 340px; border-radius: var(--lx-radius); overflow: hidden;
  text-decoration: none; color: var(--lx-white); isolation: isolate; box-shadow: var(--lx-shadow);
}
.lx-path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--lx-ease); }
.lx-path::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23, 42, 87, .05) 20%, rgba(23, 42, 87, .92) 100%);
  transition: background-color .3s;
}
.lx-path:hover { color: var(--lx-white); }
.lx-path:hover img { transform: scale(1.07); }
.lx-path__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.lx-path__kicker { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lx-yellow); }
.lx-path__title { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.lx-path__cta { margin-top: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Valores (manual de marca) ---------- */
.lx-values { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.lx-values li {
  padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--lx-navy);
  background: var(--lx-white); border: 1px solid var(--lx-line);
}
.lx-values li:nth-child(4n+1) { border-color: rgba(0, 157, 224, .45); }
.lx-values li:nth-child(4n+2) { border-color: rgba(41, 74, 150, .45); }
.lx-values li:nth-child(4n+3) { border-color: rgba(162, 192, 55, .7); }
.lx-values li:nth-child(4n+4) { border-color: rgba(234, 184, 23, .7); }

/* ---------- Aparición al hacer scroll ---------- */
.lx-js .lx-reveal { opacity: 0; transform: translateY(24px); }
.lx-js .lx-reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--lx-ease), transform .7s var(--lx-ease);
  transition-delay: var(--d, 0ms);
}
/* Una vez visible, el hover de las tarjetas no debe heredar el retraso de entrada */
.lx-js .lx-reveal.is-done { transition-delay: 0ms; }
.lx-js .lx-product.is-done, .lx-js .lx-post.is-done, .lx-js .lx-card.is-done,
.lx-js .lx-glass.is-done, .lx-js .lx-quote.is-done {
  transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease), background-color .3s, border-color .3s;
}

/* ---------- Marca en todo el sitio ---------- */
/* Menú (escritorio): una sola barra blanca con el logo en cian (la franja superior con redes
   y teléfono se retiró en 2026-10). Blanco porque el manual pide el logo sobre blanco o cyan. */
.rd-navbar-fullwidth.navbar-event, .rd-navbar-fullwidth.navbar-event .navbar-section { background-color: var(--lx-white); }
.rd-navbar.rd-navbar-fullwidth.navbar-event .navbar-section { border-top: 0; box-shadow: 0 1px 0 var(--lx-line); }
/* La plantilla fija la primera sección en 60px (era la franja superior); ahora la primera es el menú */
.rd-navbar.rd-navbar-fullwidth.navbar-event .navbar-section, .rd-navbar.rd-navbar-fullwidth.navbar-event .navbar-section:first-child { height: 80px; }
.rd-navbar.rd-navbar-fullwidth.navbar-event .navbar-section > .navbar-container { height: 100%; align-items: center; }
/* Logo dentro de la barra, en su cian original. La plantilla lo fijaba a la pantalla (position: fixed;
   top/left a mano en but-fl.css) contando con la franja superior: se devuelve al flujo normal. */
.rd-navbar-fullwidth .mainImage1 {
  position: static !important; transform: none; top: auto !important; left: auto; filter: none;
  display: block; height: 62px !important; width: auto !important;
}
.rd-navbar-fullwidth.rd-navbar--is-stuck .mainImage1 { height: 56px !important; }
.rd-navbar-fullwidth .navbar-logo-link { margin-top: 0; } /* la plantilla le daba 21px y lo bajaba del centro */

/* ---------- Microinteracciones globales del sitio ---------- */
/* Barra fija con sombra al hacer scroll */
.rd-navbar--is-stuck .navbar-section:not(.navbar-non-stuck) { box-shadow: 0 6px 24px rgba(15, 37, 82, .18); }
/* Tarjetas de productos del catálogo y LafarVet */
.thumbnail-janes { transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease); border-radius: 6px; }
.thumbnail-janes:hover { transform: translateY(-6px); box-shadow: var(--lx-shadow-hover); }
.thumbnail-janes-img img { transition: transform .5s var(--lx-ease); }
.thumbnail-janes:hover .thumbnail-janes-img img { transform: scale(1.05); }
/* Entradas del blog */
.post-img-link img { transition: transform .6s var(--lx-ease); }
.post-img-link:hover img { transform: scale(1.04); }
/* Botones de la plantilla */
.btn { transition: transform .2s var(--lx-ease), box-shadow .2s var(--lx-ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .lx-carousel { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .lx-carousel--wide { grid-auto-columns: calc((100% - 24px) / 2); }
  .lx-about__grid { gap: 48px; }
  .lx-quality__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 991.98px) {
  .lx-section { padding: 72px 0; }
  .lx-about__grid { grid-template-columns: 1fr; }
  .lx-about__img--small { right: 0; }
  .lx-news__grid { grid-template-columns: 1fr 1fr; }
  .lx-paths__grid { grid-template-columns: 1fr; }
  .lx-path { min-height: 240px; }
  .lx-stat + .lx-stat { border-left: 0; border-top: 1px solid var(--lx-line); }
  .lx-stats__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .lx-hero { min-height: auto; padding: 56px 0 104px; }
  .lx-hero__bg { background-position: 58% center; }
  .lx-hero__overlay { background: linear-gradient(180deg, rgba(23, 42, 87, .9) 0%, rgba(41, 74, 150, .84) 60%, rgba(23, 42, 87, .92) 100%); }
  .lx-hero__scroll { display: none; }
  .lx-search { flex-wrap: wrap; padding: 8px; border-radius: 22px; }
  .lx-search .lx-search__icon { display: none !important; }
  .lx-search__input { flex: 1 1 100%; padding: 0 12px; }
  .lx-search .lx-btn { flex: 1 1 100%; }
  .lx-section__head { flex-direction: column; align-items: flex-start; }
  .lx-carousel { grid-auto-columns: 78%; }
  .lx-carousel--wide { grid-auto-columns: 88%; }
  .lx-carousel__nav { display: none; }
  .lx-news__grid { grid-template-columns: 1fr; }
  /* Certificaciones: una por fila, ícono a la izquierda */
  .lx-stats { margin-top: -56px; }
  .lx-stats__grid { grid-template-columns: 1fr; }
  .lx-stat { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 12px 18px; }
  .lx-stat + .lx-stat { border-left: 0; border-top: 1px solid var(--lx-line); }
  .lx-stat__icon { flex-basis: auto; width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
  .lx-stat__value { font-size: 1.45rem; }
  .lx-stat__label { font-size: .8rem; margin-top: 4px; }
  .lx-about__media { padding-bottom: 40px; }
  .lx-about__badge { left: 12px; bottom: 12px; }
}

/* =====================================================================
   PÁGINAS INTERNAS (Nosotros, Productos, LafarVet, Blog, Contacto,
   Paciente, Médico): componentes compartidos
   ===================================================================== */

/* ---------- Cabecera de página ---------- */
.lx-page-hero {
  position: relative; overflow: hidden; color: var(--lx-white); background: var(--lx-navy-900);
  padding: 64px 0 72px;
}
.lx-page-hero__bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center; scale: 1.02; animation: lx-kenburns 16s cubic-bezier(.2, .6, .3, 1) both; will-change: scale, translate; }
.lx-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20, 37, 80, .95) 0%, rgba(28, 52, 110, .86) 40%, rgba(41, 74, 150, .45) 75%, rgba(41, 74, 150, .25) 100%);
}
.lx-page-hero .container { position: relative; z-index: 2; }
.lx-page-hero__title { margin: 6px 0 12px; color: var(--lx-white); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.1; max-width: 820px; }
.lx-page-hero__lead { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .86); font-size: 1.1rem; line-height: 1.55; }
.lx-page-hero .lx-eyebrow { color: #7fd0f5; margin-bottom: 4px; }
.lx-page-hero--tall { padding: 88px 0 104px; }

/* Migas de pan */
.lx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .9rem; }
.lx-crumbs li { color: rgba(255, 255, 255, .7); }
.lx-crumbs li + li::before { content: "›"; margin-right: 6px; color: rgba(255, 255, 255, .5); }
.lx-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lx-crumbs a:hover { color: var(--lx-white); text-decoration: underline; }
.lx-crumbs--dark li { color: var(--lx-muted); }
.lx-crumbs--dark li + li::before { color: #a3adc2; }
.lx-crumbs--dark a { color: var(--lx-cyan-700); }

/* ---------- Barra de búsqueda y filtros (sobre la cabecera) ---------- */
.lx-toolbar {
  position: relative; z-index: 3; margin-top: -40px; padding: 18px; border-radius: var(--lx-radius);
  background: var(--lx-white); box-shadow: var(--lx-shadow-hover);
}
.lx-toolbar .lx-search { max-width: none; box-shadow: none; border: 1px solid var(--lx-line); background: var(--lx-soft); }
.lx-toolbar .lx-search__input { background: transparent; }
.lx-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.lx-chips a {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 700; text-decoration: none;
  color: var(--lx-navy); background: var(--lx-white); border: 1px solid var(--lx-line); transition: background-color .2s, color .2s, border-color .2s;
}
.lx-chips a:hover { border-color: var(--lx-cyan); color: var(--lx-cyan-700); }
.lx-chips a.is-active { background: var(--lx-navy); border-color: var(--lx-navy); color: var(--lx-white); }
.lx-results { margin: 28px 0 18px; color: var(--lx-muted); font-size: .95rem; }
.lx-results strong { color: var(--lx-ink); }

/* ---------- Grilla de productos ---------- */
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.lx-empty {
  padding: 48px 24px; text-align: center; border-radius: var(--lx-radius); background: var(--lx-soft);
  border: 1px dashed #c9d5e4; color: var(--lx-text);
}
.lx-empty .fa-solid { font-size: 2rem; color: var(--lx-cyan); margin-bottom: 12px; display: block; }

/* ---------- Paginación ---------- */
.lx-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 48px 0 0; padding: 0; list-style: none; }
.lx-pagination .fa-solid { font-size: .8rem; }
.lx-pagination > li > a, .lx-pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; font-size: .92rem; font-weight: 700; line-height: 1; text-decoration: none; color: var(--lx-navy); background: var(--lx-white);
  border: 1px solid var(--lx-line); transition: background-color .2s, color .2s, border-color .2s;
}
.lx-pagination a:hover { border-color: var(--lx-cyan); color: var(--lx-cyan-700); }
.lx-pagination .is-current { background: var(--lx-navy); border-color: var(--lx-navy); color: var(--lx-white); }

/* ---------- Ficha de producto ---------- */
.lx-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.lx-detail__media {
  position: sticky; top: 110px; border-radius: var(--lx-radius); overflow: hidden; background: #eef1f4; box-shadow: var(--lx-shadow);
}
.lx-detail__media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.lx-detail__name { margin: 0 0 8px; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 700; color: var(--lx-navy); line-height: 1.1; }
.lx-detail__sub { margin: 0 0 24px; font-size: 1.15rem; color: var(--lx-text); }
.lx-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--lx-cyan-700); background: #e3f4fc;
}
.lx-specs { margin: 0 0 28px; border-top: 1px solid var(--lx-line); }
.lx-spec { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--lx-line); }
.lx-spec__icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--lx-cyan); background: #e3f4fc; font-size: 1.05rem;
}
.lx-spec__icon > span { display: block; line-height: 1; }
.lx-spec dt { margin: 0 0 2px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-muted); }
.lx-spec dd { margin: 0; font-size: 1.05rem; color: var(--lx-ink); line-height: 1.5; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lx-btn--whatsapp { background: #15803d; color: var(--lx-white); }
.lx-btn--whatsapp:hover { background: #116632; color: var(--lx-white); transform: translateY(-2px); }
.lx-note { margin-top: 20px; font-size: .88rem; color: var(--lx-muted); }

/* ---------- Bloques alternados imagen / texto ---------- */
.lx-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lx-feature + .lx-feature { margin-top: 96px; }
.lx-feature--reverse .lx-feature__media { order: 2; }
.lx-feature__media { position: relative; }
.lx-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lx-radius); box-shadow: var(--lx-shadow); }
.lx-feature__media--contain img { object-fit: contain; background: var(--lx-white); padding: 24px; }
.lx-feature__text p, .lx-feature__text li { color: var(--lx-text); line-height: 1.65; font-size: 1.05rem; }
.lx-feature__text h2 { margin-bottom: 6px; }
.lx-feature__text > h3 { margin: 0 0 18px; font-size: 1.2rem; font-weight: 400; color: var(--lx-muted); }

/* ---------- Tarjetas de información (contacto) ---------- */
.lx-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lx-info {
  padding: 26px; border-radius: var(--lx-radius); background: var(--lx-white); border: 1px solid var(--lx-line); box-shadow: var(--lx-shadow);
}
.lx-info__icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--lx-cyan); background: #e3f4fc; font-size: 1.15rem; margin-bottom: 16px;
}
.lx-info__icon > span { display: block; line-height: 1; }
.lx-info h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--lx-ink); }
.lx-info p, .lx-info a, .lx-info li { margin: 0; color: var(--lx-text); font-size: 1rem; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.lx-info a:hover { color: var(--lx-cyan-700); }
.lx-info ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Mapa de puntos de venta ---------- */
.lx-map { display: grid; grid-template-columns: 320px 1fr; gap: 0; border-radius: var(--lx-radius); overflow: hidden; box-shadow: var(--lx-shadow); background: var(--lx-white); }
.lx-map__side { padding: 28px; background: var(--lx-navy); color: var(--lx-white); }
.lx-map__side h2 { color: var(--lx-white); font-size: 1.5rem; margin: 0 0 10px; }
.lx-map__side p { color: rgba(255, 255, 255, .8); margin: 0 0 18px; }
.lx-map__select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 0; font-size: 1rem; font-weight: 700;
  color: var(--lx-navy); background: var(--lx-white); cursor: pointer;
}
.lx-map__frame { min-height: 360px; background: #e8eef5; }
.lx-map__frame #map { margin: 0 !important; left: 0 !important; }
.lx-map__frame iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Formularios (respetan la validación de la plantilla) ---------- */
.lx-form-card {
  padding: 40px; border-radius: var(--lx-radius); background: var(--lx-white); border: 1px solid var(--lx-line); box-shadow: var(--lx-shadow-hover);
}
.lx-form-card__title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 700; color: var(--lx-ink); }
.lx-form-card__lead { margin: 0 0 26px; color: var(--lx-text); }
.lx-form-card .form-group { margin-bottom: 18px; }
.lx-form-card label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 700; color: var(--lx-ink); }
.lx-form-card .form-control {
  min-height: 48px; border-radius: 12px; border: 1px solid #d5deea; background: var(--lx-soft); color: var(--lx-ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.lx-form-card textarea.form-control { min-height: 130px; }
.lx-form-card .form-control:focus { border-color: var(--lx-cyan); background: var(--lx-white); box-shadow: 0 0 0 4px rgba(0, 157, 224, .15); outline: 0; }
.lx-form-card .select2-container .select2-selection { min-height: 48px; border-radius: 12px; border-color: #d5deea; background: var(--lx-soft); }
.lx-form-card input[type="file"] { padding: 10px; border: 1px dashed #b9c7da; border-radius: 12px; background: var(--lx-soft); width: 100%; }
.lx-form-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.lx-form-card__legal { font-size: .85rem; color: var(--lx-muted); max-width: 420px; }
.lx-form-card__legal a { color: var(--lx-cyan-700); }
.lx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* ---------- Carrusel de banners (reemplaza Revolution Slider) ---------- */
.lx-slider { position: relative; overflow: hidden; background: var(--lx-navy-900); color: var(--lx-white); min-height: clamp(420px, 62vh, 620px); }
.lx-slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--lx-ease), visibility 0s linear .9s;
}
.lx-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--lx-ease); }
.lx-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease-out; }
.lx-slide.is-active .lx-slide__bg { transform: scale(1); }
.lx-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20, 37, 80, .94) 0%, rgba(28, 52, 110, .82) 42%, rgba(41, 74, 150, .25) 75%, rgba(41, 74, 150, .1) 100%);
}
.lx-slide .container { position: relative; z-index: 2; }
.lx-slide__content { max-width: 620px; padding-bottom: 40px; }
.lx-slide__title { margin: 0 0 14px; color: var(--lx-white); font-size: clamp(2rem, 1.3rem + 2.5vw, 3.2rem); line-height: 1.1; font-weight: 700; }
.lx-slide__text { margin: 0 0 26px; color: rgba(255, 255, 255, .86); font-size: 1.12rem; line-height: 1.55; }
.lx-slider__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; gap: 10px; }
.lx-slider__dot {
  width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .8); background: transparent; cursor: pointer;
  transition: width .3s var(--lx-ease), background-color .3s;
}
.lx-slider__dot.is-active { width: 32px; background: var(--lx-white); }
.lx-slider__dot:focus-visible { outline: 3px solid #7fd0f5; outline-offset: 3px; }

/* ---------- Franja de llamada a la acción ---------- */
.lx-cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 40px 44px; border-radius: var(--lx-radius);
  background: linear-gradient(110deg, var(--lx-navy-900) 0%, var(--lx-navy) 60%, var(--lx-cyan) 130%); color: var(--lx-white);
  box-shadow: var(--lx-shadow-hover);
}
.lx-cta-band h2 { margin: 0 0 6px; color: var(--lx-white); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.lx-cta-band p { margin: 0; color: rgba(255, 255, 255, .82); }

/* ---------- Artículo (blog y boletín) ---------- */
.lx-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.lx-article { font-size: 1.12rem; line-height: 1.75; color: #334058; }
.lx-article p { margin: 0 0 1.2em; }
.lx-article img, .lx-article iframe { max-width: 100%; border-radius: var(--lx-radius-sm); }
.lx-article img { height: auto; display: block; margin: 8px 0 28px; }
.lx-article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 8px 0 28px; }
.lx-article h3 { margin: 1.6em 0 .5em; font-size: 1.45rem; font-weight: 700; color: var(--lx-ink); }
.lx-aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.lx-aside__box { padding: 24px; border-radius: var(--lx-radius); background: var(--lx-soft); border: 1px solid var(--lx-line); }
.lx-aside__box h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-muted); }
.lx-aside__box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lx-aside__box a { color: var(--lx-navy); font-weight: 700; text-decoration: none; }
.lx-aside__box a:hover { color: var(--lx-cyan-700); }
.lx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-tags span { padding: 6px 12px; border-radius: 999px; font-size: .88rem; background: var(--lx-white); border: 1px solid var(--lx-line); color: var(--lx-navy); }
.lx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.lx-meta .lx-tag { background: rgba(255, 255, 255, .15); color: var(--lx-white); }

/* Tarjeta de entrada (lista del blog y boletines) */
.lx-post__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-post__excerpt {
  margin: 0; color: var(--lx-text); font-size: .98rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lx-posts--featured .lx-post:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.lx-posts--featured .lx-post:first-child .lx-post__img { aspect-ratio: auto; min-height: 340px; }
.lx-posts--featured .lx-post:first-child .lx-post__body { padding: 36px; justify-content: center; }
.lx-posts--featured .lx-post:first-child .lx-post__title { font-size: 1.7rem; }

/* ---------- Cargos disponibles (trabaja con nosotros) ---------- */
.lx-jobs { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.lx-job { padding: 18px 20px; border-radius: 14px; background: var(--lx-white); border: 1px solid var(--lx-line); border-left: 4px solid var(--lx-cyan); }
.lx-job h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--lx-ink); }
.lx-job p { margin: 0; font-size: .95rem; color: var(--lx-text); line-height: 1.5; }

/* ---------- Responsive páginas internas ---------- */
@media (max-width: 1199.98px) {
  .lx-info-grid { grid-template-columns: repeat(2, 1fr); }
  .lx-article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}
@media (max-width: 991.98px) {
  .lx-detail, .lx-feature, .lx-article-layout { grid-template-columns: 1fr; gap: 32px; }
  .lx-feature--reverse .lx-feature__media { order: 0; }
  .lx-feature + .lx-feature { margin-top: 64px; }
  .lx-detail__media, .lx-aside { position: static; }
  .lx-map { grid-template-columns: 1fr; }
  .lx-posts { grid-template-columns: 1fr 1fr; }
  .lx-posts--featured .lx-post:first-child { grid-template-columns: 1fr; }
  .lx-posts--featured .lx-post:first-child .lx-post__img { min-height: 0; aspect-ratio: 16 / 10; }
  .lx-cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .lx-page-hero { padding: 44px 0 60px; }
  .lx-page-hero::before { background: linear-gradient(180deg, rgba(20, 37, 80, .9) 0%, rgba(28, 52, 110, .85) 100%); }
  .lx-toolbar { margin-top: -32px; padding: 12px; }
  .lx-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lx-grid .lx-product__body { padding: 12px 12px 16px; }
  .lx-grid .lx-product__name { font-size: .95rem; }
  .lx-grid .lx-product__desc { font-size: .85rem; }
  .lx-info-grid, .lx-posts, .lx-two { grid-template-columns: 1fr; }
  .lx-form-card { padding: 24px 18px; }
  .lx-slider { min-height: 480px; }
  .lx-slide::before { background: linear-gradient(180deg, rgba(20, 37, 80, .88) 0%, rgba(28, 52, 110, .86) 100%); }
  .lx-cta-band { padding: 28px 22px; }
  .lx-map__frame iframe { height: 320px; }
}

/* =====================================================================
   ANIMACIÓN DE IMÁGENES
   ===================================================================== */
/* El banner del inicio sobresale un poco para que el parallax no deje bordes */
.lx-hero__bg { inset: -6% 0; }

/* Parallax ligado al scroll: lo calcula el navegador, sin JavaScript (no afecta la fluidez) */
@supports (animation-timeline: view()) {
  /* overflow:hidden crea un contenedor de scroll y "congela" view(); clip recorta igual sin crearlo */
  .lx-hero, .lx-page-hero, .lx-quality, .lx-slider { overflow: clip; }
  @keyframes lx-parallax { from { translate: 0 -5%; } to { translate: 0 5%; } }
  .lx-hero__bg, .lx-page-hero__bg {
    animation: lx-kenburns 18s cubic-bezier(.2, .6, .3, 1) both, lx-parallax linear both;
    animation-timeline: auto, view();
    animation-range: normal, exit;
  }
  .lx-quality__bg { inset: -12% 0; animation: lx-parallax linear both; animation-timeline: view(); }
  .lx-slide__bg { inset: -6% 0; animation: lx-parallax linear both; animation-timeline: view(); animation-range: exit; }
}

/* Fotos de contenido: se "destapan" con un barrido al aparecer */
.lx-js .lx-reveal .lx-wipe, .lx-js .lx-reveal.lx-wipe-box img, .lx-js .lx-about__media.lx-reveal > img {
  clip-path: inset(0 100% 0 0 round var(--lx-radius));
  scale: 1.08;
}
.lx-js .lx-reveal.is-visible .lx-wipe, .lx-js .lx-reveal.is-visible.lx-wipe-box img, .lx-js .lx-about__media.lx-reveal.is-visible > img {
  clip-path: inset(0 0 0 0 round var(--lx-radius));
  scale: 1;
  transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) var(--d, 0ms), scale 1.6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.lx-js .lx-about__media.lx-reveal.is-visible > .lx-about__img--small { transition-delay: 350ms, 350ms; }

/* Zoom suave al pasar el mouse sobre fotos de contenido */
.lx-feature__media { overflow: hidden; border-radius: var(--lx-radius); }
.lx-feature__media img { transition: transform .8s var(--lx-ease); }
.lx-feature__media:hover img { transform: scale(1.04); }

/* ---------- Reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .lx-hero__bg, .lx-hero__scroll { animation: none !important; }
  .lx-slide, .lx-slide__bg { transition: none !important; }
  .lx-slide__bg { transform: none !important; }
  .lx-quality__bg, .lx-slide__bg { animation: none !important; translate: none !important; }
  .lx-js .lx-reveal .lx-wipe, .lx-js .lx-reveal.lx-wipe-box img, .lx-js .lx-about__media.lx-reveal > img { clip-path: none !important; scale: 1 !important; }
  .lx-feature__media:hover img { transform: none !important; }
  .lx-hero__bg, .lx-page-hero__bg { scale: 1 !important; translate: none !important; }
  .lx-js .lx-reveal { opacity: 1; transform: none; transition: none; }
  .lx-carousel { scroll-behavior: auto; }
  .lx-product, .lx-post, .lx-card, .lx-glass, .lx-quote, .lx-path img, .thumbnail-janes, .btn, .lx-btn, .lx-chip,
  .lx-product__img img, .lx-post__img img, .thumbnail-janes-img img, .post-img-link img { transition: none !important; }
  .lx-product:hover, .lx-post:hover, .lx-card:hover, .lx-glass:hover, .lx-quote:hover, .thumbnail-janes:hover, .btn:hover,
  .lx-product:hover .lx-product__img img, .lx-post:hover .lx-post__img img, .lx-path:hover img { transform: none !important; }
}

/* =====================================================================
   PANTALLA DE CARGA con el logo de LAFAR
   (la plantilla la oculta con .page-loaded; luego 7_script_page_view la elimina)
   ===================================================================== */
.page-loader.lx-loader {
  z-index: 9999;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 157, 224, .35) 0%, rgba(0, 157, 224, 0) 60%),
    linear-gradient(160deg, var(--lx-navy-900) 0%, var(--lx-navy) 55%, #1d6fb8 100%);
  transition: opacity .45s ease .1s, visibility 0s linear .55s;
}
.page-loaded .page-loader.lx-loader { opacity: 0; visibility: hidden; }
.lx-loader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.lx-loader__logo {
  display: block; width: 200px; height: auto;
  animation: lx-loader-in .7s cubic-bezier(.2, .7, .2, 1) both, lx-loader-pulse 2.4s ease-in-out .7s infinite;
}
.page-loaded .lx-loader__logo { transform: scale(1.06); transition: transform .45s ease; }
@keyframes lx-loader-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes lx-loader-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
/* Barra con los colores del manual: cian, azul, verde y amarillo */
.lx-loader__bar { position: relative; width: 180px; height: 4px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.lx-loader__bar span {
  position: absolute; inset: 0; width: 45%; border-radius: inherit;
  background: linear-gradient(90deg, var(--lx-cyan), #ffffff 40%, var(--lx-lime) 70%, var(--lx-yellow));
  animation: lx-loader-bar 1.3s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes lx-loader-bar { from { transform: translateX(-110%); } to { transform: translateX(250%); } }
@media (max-width: 767.98px) { .lx-loader__logo { width: 160px; } .lx-loader__bar { width: 140px; } }
@media (prefers-reduced-motion: reduce) {
  .lx-loader__logo, .lx-loader__bar span { animation: none !important; }
  .lx-loader__bar span { width: 100%; transform: none; }
}

/* =====================================================================
   MENÚ PRINCIPAL
   ===================================================================== */
/* --- Escritorio: enlaces blancos legibles, subrayado animado --- */
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item { padding: 0 14px; }
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-link {
  color: var(--lx-navy); font-weight: 600; font-size: 1.02rem; padding: 10px 0;
}
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-link::before {
  top: auto; bottom: 2px; left: 0; width: 100%; height: 2px; border-radius: 2px; opacity: 1;
  background: var(--lx-cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--lx-ease);
}
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-link:hover,
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item.focus > .navbar-navigation-root-link,
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item.opened > .navbar-navigation-root-link { color: var(--lx-cyan-700); }
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-link:hover::before,
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item.focus > .navbar-navigation-root-link::before,
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item.opened > .navbar-navigation-root-link::before { width: 100%; transform: scaleX(1); }
/* Sección actual: barra amarilla de marca */
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item.active > .navbar-navigation-root-link { color: var(--lx-navy); font-weight: 700; }
.rd-navbar-fullwidth.navbar-event .navbar-navigation-root-item.active > .navbar-navigation-root-link::before {
  width: 100%; transform: scaleX(1); height: 3px; background: var(--lx-yellow);
}
/* Flecha de submenú */
.rd-navbar-fullwidth.navbar-event .rd-navbar-submenu > .navbar-navigation-root-link::after {
  content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7em; margin-left: 6px;
  display: inline-block; transition: transform .25s var(--lx-ease); opacity: .85;
}
.rd-navbar-fullwidth.navbar-event .rd-navbar-submenu.focus > .navbar-navigation-root-link::after,
.rd-navbar-fullwidth.navbar-event .rd-navbar-submenu.opened > .navbar-navigation-root-link::after { transform: rotate(180deg); }
.rd-navbar-fullwidth.navbar-event .rd-navbar-submenu-toggle { display: none !important; }

/* --- Submenús: tarjeta blanca con íconos --- */
.rd-navbar-fullwidth .navbar-navigation-dropdown.lx-menu {
  left: -16px; min-width: 330px; padding: 10px; border-radius: 16px; background: var(--lx-white);
  box-shadow: 0 20px 50px rgba(23, 42, 87, .22); border: 1px solid var(--lx-line);
  transform: translateY(8px); transition: opacity .2s ease, transform .25s var(--lx-ease), visibility 0s linear .25s;
}
.rd-navbar-fullwidth .rd-navbar-submenu.focus > .navbar-navigation-dropdown.lx-menu,
.rd-navbar-fullwidth .rd-navbar-submenu.opened > .navbar-navigation-dropdown.lx-menu { transform: translateY(0); transition: opacity .2s ease, transform .25s var(--lx-ease); }
.rd-navbar-fullwidth .navbar-navigation-dropdown.lx-menu--right { left: auto; right: 0; } /* -16px desbordaba 11px a la derecha */
.rd-navbar-fullwidth .lx-menu .navbar-navigation-dropdown-item + .navbar-navigation-dropdown-item { margin-top: 2px; }
.lx-menu .navbar-navigation-dropdown-link.lx-menu-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--lx-ink); transition: background-color .2s;
}
.lx-menu .navbar-navigation-dropdown-link.lx-menu-item::before { display: none; }
.lx-menu .navbar-navigation-dropdown-link.lx-menu-item:hover,
.lx-menu .navbar-navigation-dropdown-link.lx-menu-item:focus-visible { background: var(--lx-soft); color: var(--lx-ink); }
.lx-menu-item__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: var(--lx-cyan); background: #e3f4fc; font-size: 1rem; transition: background-color .2s, color .2s;
}
.lx-menu-item__icon > span { display: block; line-height: 1; }
.lx-menu-item:hover .lx-menu-item__icon { background: var(--lx-cyan); color: var(--lx-white); }
.lx-menu-item__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lx-menu-item__text strong { font-size: .98rem; font-weight: 700; color: var(--lx-ink); }
.lx-menu-item__text small { margin-top: 2px; font-size: .84rem; color: var(--lx-muted); }

/* --- Barra superior: redes y teléfono --- */
.rd-navbar-fullwidth .navbar-info .list-inline-item a { opacity: .9; transition: opacity .2s, transform .2s var(--lx-ease); display: inline-block; }
.rd-navbar-fullwidth .navbar-info .list-inline-item a:hover { opacity: 1; transform: translateY(-2px); }

/* --- Celular --- */
.lx-logo-movil { display: block; width: 150px; height: auto; }
.lx-menu-movil { display: none; }
.rd-navbar-fixed .lx-menu-movil { display: flex; gap: 10px; padding: 20px 20px 8px; margin-top: 12px; border-top: 1px solid var(--lx-line); }
.rd-navbar-fixed .lx-menu-movil .lx-btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: .95rem; }
.rd-navbar-fixed .navbar-navigation-root-item.active > .navbar-navigation-root-link { color: var(--lx-cyan-700); font-weight: 700; }
.rd-navbar-fixed .lx-menu { padding: 4px 0 8px; }
.rd-navbar-fixed .lx-menu .lx-menu-item { padding: 8px 6px; }
.rd-navbar-fixed .lx-menu-item__icon { flex-basis: 34px; width: 34px; height: 34px; font-size: .9rem; }
.rd-navbar-fixed .lx-menu-item__text strong { font-size: .95rem; }
.rd-navbar-fixed .lx-menu-item__text small { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rd-navbar-fullwidth.navbar-event .navbar-navigation-root-link::before, .navbar-navigation-dropdown.lx-menu { transition: none !important; }
}
/* Celular: botón "Atrás" y hamburguesa con el cian de marca (antes verde de la plantilla) */
.rd-navbar.rd-navbar-fixed .navbar-navigation-back-btn, .rd-navbar.rd-navbar-fixed .navbar-navigation-back-btn::before { color: var(--lx-cyan-700); }
.rd-navbar.rd-navbar-fixed .navbar-switch, .rd-navbar.rd-navbar-fixed .navbar-switch:hover, .rd-navbar.rd-navbar-fixed .navbar-switch.active,
.rd-navbar.rd-navbar-fixed .navbar-info-button, .rd-navbar.rd-navbar-fixed .navbar-info-button:hover, .rd-navbar.rd-navbar-fixed .navbar-info-button.active { color: var(--lx-navy); }

/* =====================================================================
   FORMULARIOS: tamaño compacto, Select2 con el mismo estilo y campo de archivo
   ===================================================================== */
.lx-form-card .form-group + .form-group, .lx-two .form-group { margin-top: 0; }
.lx-form-card .form-group { margin-bottom: 16px; }
.lx-form-card label, .lx-label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; color: var(--lx-ink); }
.lx-optional { font-weight: 400; color: var(--lx-muted); }
.lx-form-card .form-control {
  min-height: 0; height: 46px; padding: 0 14px; border-radius: 10px; font-size: .95rem; line-height: 1.3;
}
.lx-form-card textarea.form-control { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.lx-form-card .form-control::placeholder { color: var(--lx-muted); }
.lx-form-card__title { font-size: 1.45rem; }
.lx-form-card__lead { font-size: .95rem; margin-bottom: 22px; }
.lx-form-card--compact { padding: 32px; }

/* Select2 igual a los demás campos */
.lx-form-card .select2-container { width: 100% !important; }
.lx-form-card .select2-container--default .select2-selection--single {
  box-sizing: border-box; height: 46px; min-height: 0; padding: 0; border: 1px solid #d5deea; border-radius: 10px; background: var(--lx-soft);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.lx-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 44px; padding: 0 40px 0 14px; line-height: 44px; font-size: .95rem; color: var(--lx-ink); border: 0; border-radius: 10px;
}
.lx-form-card .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--lx-muted); }
.lx-form-card .select2-container--default .select2-selection--single .select2-selection__arrow { right: 12px; width: 16px; height: 16px; }
.lx-form-card .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23294a96' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform .2s;
}
.lx-form-card .select2-container--open .select2-selection--single .select2-selection__arrow b { transform: rotate(180deg); }
.lx-form-card .select2-container--focus .select2-selection--single,
.lx-form-card .select2-container--open .select2-selection--single {
  border-color: var(--lx-cyan); background: var(--lx-white); box-shadow: 0 0 0 4px rgba(0, 157, 224, .15);
}
/* Lista desplegable (Select2 la agrega al final del body) */
.select2-container--default .select2-dropdown {
  margin-top: 6px; border: 1px solid var(--lx-line) !important; border-radius: 12px !important; overflow: hidden;
  box-shadow: 0 16px 40px rgba(23, 42, 87, .18); background: var(--lx-white);
}
.select2-container--default .select2-results__option { padding: 10px 14px; font-size: .95rem; color: var(--lx-ink); line-height: 1.3; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted { background: var(--lx-soft) !important; color: var(--lx-ink) !important; }
.select2-container--default .select2-results__option[aria-selected="true"] { background: #e3f4fc !important; color: var(--lx-cyan-700) !important; font-weight: 700; }

/* Campo de archivo con zona para arrastrar */
.lx-file {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
  border: 1.5px dashed #b9c7da; border-radius: 12px; background: var(--lx-soft); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lx-form-card .lx-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; border: 0; padding: 0; }
.lx-file:hover, .lx-file.is-drag, .lx-file:focus-within { border-color: var(--lx-cyan); background: #eef8fd; }
.lx-file:focus-within { box-shadow: 0 0 0 4px rgba(0, 157, 224, .15); }
.lx-file__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #e3f4fc; color: var(--lx-cyan); font-size: 1.05rem;
}
.lx-file__icon > span { display: block; line-height: 1; }
.lx-file__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lx-file__text strong { font-size: .92rem; font-weight: 600; color: var(--lx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-file__text strong u { color: var(--lx-cyan-700); text-underline-offset: 2px; }
.lx-file__text small { font-size: .82rem; color: var(--lx-muted); margin-top: 2px; }
.lx-file__clear {
  position: relative; z-index: 2; margin-left: auto; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--lx-white); color: var(--lx-muted); cursor: pointer; box-shadow: 0 2px 6px rgba(23, 42, 87, .12);
}
.lx-file__clear:hover { color: #c0392b; }
.lx-file.is-filled { border-style: solid; border-color: #9fd38a; background: #f3faef; }
.lx-file.is-filled .lx-file__icon { background: #e1f2d6; color: var(--lx-lime-700); }
.lx-file.is-error { border-style: solid; border-color: #e5a29a; background: #fdf3f2; }
.lx-file.is-error .lx-file__icon { background: #f9dedb; color: #c0392b; }
.lx-file.is-error small { color: #c0392b; }

/* =====================================================================
   TRABAJA CON NOSOTROS: cargos y pasos
   ===================================================================== */
.lx-jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
/* Con una sola vacante, tarjeta más ancha para que la descripción se lea completa */
.lx-jobs-grid:has(> .lx-job-card:only-child) { grid-template-columns: minmax(0, 640px); }
.lx-jobs-grid:has(> .lx-job-card:only-child) .lx-job-card__text { -webkit-line-clamp: unset; }
.lx-job-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--lx-radius);
  background: var(--lx-white); border: 1px solid var(--lx-line); box-shadow: var(--lx-shadow);
  transition: transform .3s var(--lx-ease), box-shadow .3s var(--lx-ease), border-color .3s;
}
.lx-job-card:hover { transform: translateY(-4px); box-shadow: var(--lx-shadow-hover); border-color: rgba(0, 157, 224, .35); }
.lx-job-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lx-job-card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: #e3f4fc; color: var(--lx-cyan); font-size: 1.1rem;
}
.lx-job-card__icon > span { display: block; line-height: 1; }
.lx-job-card__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--lx-lime-ink); background: #f1f6e1;
}
.lx-job-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lx-lime); box-shadow: 0 0 0 3px rgba(162, 192, 55, .25); }
.lx-job-card__title { margin: 4px 0 0; font-size: 1.2rem; font-weight: 700; color: var(--lx-ink); line-height: 1.3; }
.lx-job-card__text {
  margin: 0; font-size: .95rem; line-height: 1.55; color: var(--lx-text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-job-card__btn { margin-top: auto; align-self: flex-start; min-height: 42px; padding: 0 18px; font-size: .92rem; }

.lx-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 14px; }
.lx-steps li { position: relative; padding-left: 52px; counter-increment: paso; display: flex; flex-direction: column; min-height: 38px; justify-content: center; }
.lx-steps li::before {
  content: counter(paso); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--lx-white); background: var(--lx-navy);
}
.lx-steps strong { font-size: 1rem; color: var(--lx-ink); }
.lx-steps span { font-size: .92rem; color: var(--lx-muted); }

@media (max-width: 767.98px) {
  .lx-form-card--compact { padding: 22px 16px; }
  .lx-jobs-grid { grid-template-columns: 1fr; }
}

/* Tarjeta "Postula en nuestra plataforma" (Trabaja con nosotros) */
.lx-apply { text-align: left; }
.lx-apply__icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: #e3f4fc; color: var(--lx-cyan); font-size: 1.4rem; margin-bottom: 18px;
}
.lx-apply__icon > span { display: block; line-height: 1; }
.lx-apply__btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
.lx-apply__list { margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--lx-line); display: grid; gap: 10px; }
.lx-apply__list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--lx-text); }
.lx-apply__list .fa-check { color: var(--lx-lime-700); }

/* ---------- Móvil: tamaños mínimos de texto ----------
   Bajo 768px la hoja heredada fija la raíz en 13px y los textos en rem
   bajaban a 10–12px. Se fijan mínimos legibles sin tocar escritorio. */
@media (max-width: 767px) {
  .lx-btn { font-size: 15px; }
  .lx-profile__text strong { font-size: 13.5px; }
  .lx-eyebrow, .lx-tag, .lx-job-card__badge, .lx-stat__label, .lx-spec dt { font-size: 12.5px; }
  .lx-profile__text small, .lx-file__text small, .lx-menu-item__text small, .lx-quote__author small,
  .lx-note, .lx-form-card__legal, .lx-form-card label, .lx-label, .lx-tags span,
  .lx-crumbs, .lx-product__desc, .lx-grid .lx-product__desc, .lx-toolbar p, .lx-chips a, .lx-post__date { font-size: 13.5px; }
}

/* Títulos de menú con submenú: son botones, no enlaces */
.lx-menu-parent { cursor: pointer; user-select: none; }

/* ---------- Contacto: oficinas por regional ----------
   Sin JS se listan todas las ciudades; con JS (.is-ready) funcionan como pestañas. */
.lx-offices__tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.lx-offices.is-ready .lx-offices__tabs { display: flex; }
.lx-offices__tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 700; color: var(--lx-navy); background: var(--lx-white);
  border: 1px solid var(--lx-line); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.lx-offices__tabs [role="tab"]:hover { border-color: var(--lx-cyan); color: var(--lx-cyan-700); }
.lx-offices__tabs [role="tab"][aria-selected="true"] { background: var(--lx-navy); border-color: var(--lx-navy); color: var(--lx-white); }
.lx-offices__tabs [role="tab"]:focus-visible { outline: 3px solid var(--lx-cyan); outline-offset: 2px; }
.lx-offices__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: .78rem; line-height: 22px; text-align: center;
  background: #e3f4fc; color: var(--lx-cyan-700);
}
[aria-selected="true"] > .lx-offices__count { background: rgba(255, 255, 255, .18); color: var(--lx-white); }

/* Lista angosta + mapa grande que acompaña el scroll (patrón de localizador de oficinas) */
.lx-offices__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.lx-offices__panels, .lx-offices__panel { display: grid; gap: 16px; }
.lx-offices__panels { gap: 32px; }
.lx-offices.is-ready .lx-offices__panels { gap: 0; }
.lx-offices__panel[hidden] { display: none; }
.lx-offices__city { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--lx-ink); }
.lx-offices.is-ready .lx-offices__city { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lx-office {
  padding: 20px 22px; border-radius: var(--lx-radius); background: var(--lx-white); border: 1px solid var(--lx-line);
  box-shadow: var(--lx-shadow); transition: border-color .2s, box-shadow .2s, transform .2s var(--lx-ease);
}
/* Con varias oficinas en la ciudad, toda la tarjeta lleva el mapa a esa oficina */
.lx-offices__panel--many .lx-office { cursor: pointer; }
.lx-offices__panel--many .lx-office:not(.is-current):hover { border-color: #9fd9f3; transform: translateY(-2px); }
.lx-office.is-current { border-color: var(--lx-cyan); box-shadow: 0 0 0 1px var(--lx-cyan), var(--lx-shadow); }
.lx-office__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.lx-office__name { margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 700; color: var(--lx-ink); }
.lx-office__type {
  padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--lx-navy); background: #e8edf7;
}
.lx-office__data { display: grid; gap: 10px; margin: 0; }
.lx-office__data > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.lx-office__data dt { margin: 0; padding-top: 2px; font-size: .85rem; font-weight: 700; color: var(--lx-muted); }
.lx-office__data dt .fa-solid { width: 16px; color: var(--lx-cyan-700); }
.lx-office__data dd { margin: 0; font-size: 1rem; color: var(--lx-text); line-height: 1.55; overflow-wrap: anywhere; }
.lx-office__data a { color: var(--lx-navy); font-weight: 700; text-decoration: none; }
.lx-office__data a:hover { color: var(--lx-cyan-700); text-decoration: underline; }
.lx-office__actions .lx-link { font-size: 1rem; }
.lx-office__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lx-line); }
.lx-office__show {
  padding: 0; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 700; color: var(--lx-muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.lx-office__show:hover { color: var(--lx-cyan-700); }
.lx-office__show:focus-visible { outline: 3px solid var(--lx-cyan); outline-offset: 2px; border-radius: 4px; }
.lx-office.is-current .lx-office__show { display: none; }
.lx-office__here { display: none; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--lx-cyan-700); }
.lx-office.is-current .lx-office__here { display: inline-flex; }
.lx-btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

.lx-offices__map {
  position: sticky; top: 110px; border-radius: var(--lx-radius); overflow: hidden; background: #e8eef5; box-shadow: var(--lx-shadow);
}
.lx-offices__map iframe { display: block; width: 100%; height: clamp(420px, calc(100vh - 150px), 640px); border: 0; }
.lx-offices.is-single .lx-offices__map iframe { height: 440px; }
.lx-offices__help { margin: 28px 0 0; color: var(--lx-text); }

@media (max-width: 991.98px) {
  .lx-offices__body { grid-template-columns: 1fr; }
  .lx-offices__map { position: static; }
  .lx-offices__map iframe, .lx-offices.is-single .lx-offices__map iframe { height: 320px; }
  .lx-offices__map { order: -1; } /* En móvil el mapa va primero, visible al elegir la ciudad */
}
@media (max-width: 767px) {
  /* Una sola fila deslizable de ciudades */
  .lx-offices.is-ready .lx-offices__tabs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 20px; padding-bottom: 6px; scrollbar-width: thin; }
  .lx-offices__tabs [role="tab"] { flex: 0 0 auto; font-size: 14px; }
  .lx-office { padding: 18px; }
  .lx-office__name { font-size: 17px; }
  .lx-office__data dd, .lx-office__actions .lx-link, .lx-office__show { font-size: 15px; }
  .lx-office__data > div { grid-template-columns: 1fr; gap: 2px; }
  .lx-office__data dt { font-size: 13px; }
  .lx-office__type { font-size: 12.5px; }
}

/* ---------- Pie de página ----------
   Fondo claro y logotipo a color (Manual 2021: logo sobre blanco o cyan);
   franja inferior en azul corporativo con © y redes. */
.lx-foot { background: var(--lx-soft); border-top: 1px solid var(--lx-line); color: var(--lx-text); }
.lx-foot__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr);
  gap: 40px; padding: 64px 0 56px;
}
.lx-foot__logo { display: inline-block; }
.lx-foot__logo img { display: block; width: 200px; height: auto; }
.lx-foot__claim { margin: 18px 0 20px; max-width: 34ch; font-size: 1rem; line-height: 1.6; color: var(--lx-text); }
.lx-foot__seal {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  font-size: .92rem; color: var(--lx-ink); text-decoration: none; background: var(--lx-white); border: 1px solid var(--lx-line);
  transition: border-color .2s, color .2s;
}
.lx-foot__seal .fa-solid { color: var(--lx-yellow); font-size: 1.1rem; }
.lx-foot__seal:hover { border-color: var(--lx-cyan); color: var(--lx-cyan-700); }
.lx-foot__title {
  margin: 4px 0 16px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-navy);
}
.lx-foot__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lx-foot__col a { font-size: 1rem; color: var(--lx-text); text-decoration: none; transition: color .2s; }
.lx-foot__col a:hover { color: var(--lx-cyan-700); text-decoration: underline; text-underline-offset: 3px; }
.lx-foot__contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.lx-foot__contact .fa-solid { color: var(--lx-cyan-700); font-size: .9rem; }
.lx-foot__contact a { color: var(--lx-ink); font-weight: 700; }
.lx-foot a:focus-visible { outline: 3px solid var(--lx-cyan); outline-offset: 2px; border-radius: 4px; }

.lx-foot__bar { background: var(--lx-navy-900); color: #c9d4ea; }
.lx-foot__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.lx-foot__bar p { margin: 0; font-size: .92rem; color: #c9d4ea; }
.lx-foot__social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lx-foot__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; color: var(--lx-white); text-decoration: none; background: rgba(255, 255, 255, .1); transition: background-color .2s, color .2s;
}
.lx-foot__social a:hover { background: var(--lx-cyan-700); color: var(--lx-white); }
.lx-foot__social a:focus-visible { outline: 3px solid #7fd0f5; outline-offset: 2px; }

/* Botón "volver arriba" (plantilla): azul corporativo y apilado sobre el de WhatsApp */
html .to-top { right: 24px !important; bottom: 104px; border-radius: 50%; background: var(--lx-navy); box-shadow: var(--lx-shadow); }
html .to-top:hover, html .to-top.active { background: var(--lx-cyan-700); }

/* Los botones flotantes (WhatsApp y volver arriba) ocupan la esquina inferior derecha */
@media (min-width: 768px) and (max-width: 1399.98px) { .lx-foot__social { margin-right: 64px; } }
@media (max-width: 991.98px) {
  .lx-foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; padding: 48px 0 40px; }
  .lx-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .lx-foot__grid { grid-template-columns: 1fr 1fr; }
  .lx-foot__contact { grid-column: 1 / -1; }
  .lx-foot__claim, .lx-foot__col a, .lx-foot__contact li { font-size: 15px; }
  .lx-foot__title { font-size: 12.5px; }
  .lx-foot__seal, .lx-foot__bar p { font-size: 13.5px; }
  .lx-foot__bar-inner { flex-direction: column-reverse; align-items: flex-start; padding-bottom: 24px; }
  .lx-foot__bar p { padding-right: 72px; }
  html .to-top { right: 16px !important; bottom: 76px; }
}

/* ---------- Inicio: video de fondo de la portada ----------
   Tomas de la planta (13,5 s en bucle). Aparece con un fundido cuando ya se reproduce;
   mientras tanto, o si no se carga (móvil, ahorro de datos, reducir movimiento), queda la foto. */
.lx-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  opacity: 0; transition: opacity 1.2s var(--lx-ease); pointer-events: none;
}
.lx-hero__video.is-playing { opacity: 1; }
.lx-hero__toggle {
  position: absolute; z-index: 2; right: 96px; bottom: 34px; width: 44px; height: 44px; border-radius: 50%; /* a la izquierda del botón flotante de WhatsApp */
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(20, 37, 80, .55); color: var(--lx-white); font-size: .95rem; cursor: pointer;
  backdrop-filter: blur(6px); transition: background-color .2s, border-color .2s;
}
.lx-hero__toggle:hover { background: rgba(20, 37, 80, .85); border-color: var(--lx-white); }
.lx-hero__toggle:focus-visible { outline: 3px solid #7fd0f5; outline-offset: 3px; }
.lx-hero__toggle[hidden] { display: none; }

/* Indicador para bajar al contenido, al pie de la portada */
.lx-hero__next {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 700; letter-spacing: .04em; color: var(--lx-white); text-decoration: none;
  text-shadow: 0 1px 8px rgba(10, 20, 50, .6);
}
.lx-hero__next .fa-solid { font-size: 1rem; animation: lx-bajar 2.2s var(--lx-ease) infinite; }
.lx-hero__next:hover { color: #bfe9fb; }
.lx-hero__next:focus-visible { outline: 3px solid #7fd0f5; outline-offset: 4px; border-radius: 6px; }
@keyframes lx-bajar { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .lx-hero__next .fa-solid { animation: none; } }
@media (max-width: 767px) { .lx-hero__next { bottom: 20px; font-size: 14px; } }

/* El menú queda fijo al bajar: "Conoce LAFAR" lleva a #nosotros justo debajo del menú, sin
   que asome el borde de la portada. Igual al alto del menú fijo: 70px (barra móvil) y 80px (escritorio) */
#nosotros { scroll-margin-top: 70px; }
@media (min-width: 1200px) { #nosotros { scroll-margin-top: 80px; } }

/* ---------- Inicio: menú sobre el video (solo menú de escritorio, ≥1200px) ----------
   La portada sube hasta el borde superior y el menú queda encima, transparente, con el logo
   horizontal blanco del Manual 2021 (versión para fondos oscuros) y enlaces blancos. Un degradado
   azul marino arriba asegura el contraste aunque el cuadro del video sea claro.
   Al bajar, el menú fijo vuelve a ser blanco con el logo cian. */
.lx-logo-blanco { display: none; }
@media (min-width: 1200px) {
  .lx-header--sobre-video { position: absolute; top: 0; left: 0; right: 0; z-index: 30; height: auto !important; }
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck),
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-section {
    background-color: transparent;
  }
  /* Sin fondo propio: el oscurecido de arriba es parte de la capa de la portada (abajo), así no
     hay un corte en el borde del menú y usa el mismo azul y la misma caída que el resto */
  .lx-header--sobre-video .rd-navbar.rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-section {
    background: transparent; box-shadow: none;
  }
  .lx-hero--edificio .lx-hero__overlay {
    background:
      /* Arriba: sombra detrás del menú, con caída larga y gradual (sin borde visible) */
      linear-gradient(180deg,
        rgba(20, 37, 80, .62) 0,
        rgba(20, 37, 80, .5) 60px,
        rgba(20, 37, 80, .34) 120px,
        rgba(20, 37, 80, .18) 180px,
        rgba(20, 37, 80, .07) 240px,
        rgba(20, 37, 80, 0) 300px),
      linear-gradient(90deg,
        rgba(20, 37, 80, .92) 0,
        rgba(24, 45, 98, .86) calc(50% + 20px),
        rgba(27, 50, 108, .76) calc(50% + 110px),
        rgba(31, 57, 120, .6) calc(50% + 200px),
        rgba(35, 64, 132, .42) calc(50% + 290px),
        rgba(38, 69, 141, .26) calc(50% + 380px),
        rgba(40, 72, 146, .12) calc(50% + 470px),
        rgba(41, 74, 150, .04) calc(50% + 560px),
        rgba(41, 74, 150, 0) calc(50% + 640px)),
      linear-gradient(0deg, rgba(20, 37, 80, .45) 0%, rgba(20, 37, 80, 0) 22%);
  }
  /* Logo: blanco sobre el video, cian en el menú fijo */
  .lx-header--sobre-video .rd-navbar-fullwidth:not(.rd-navbar--is-stuck) .mainImage1 { display: none; }
  .lx-header--sobre-video .rd-navbar-fullwidth:not(.rd-navbar--is-stuck) .lx-logo-blanco { display: block; height: 62px; width: auto; }
  /* Enlaces blancos; al pasar el mouse, cian claro. La sección actual mantiene la barra amarilla */
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-link,
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-item.active > .navbar-navigation-root-link {
    color: var(--lx-white); text-shadow: 0 1px 6px rgba(10, 20, 50, .45);
  }
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-link:hover,
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-item.focus > .navbar-navigation-root-link,
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-item.opened > .navbar-navigation-root-link { color: #9fdcf7; }
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-link::before { background: #9fdcf7; }
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-item.active > .navbar-navigation-root-link::before { background: var(--lx-yellow); }
  .lx-header--sobre-video .rd-navbar-fullwidth.navbar-event:not(.rd-navbar--is-stuck) .navbar-navigation-root-link:focus-visible { outline: 2px solid var(--lx-white); outline-offset: 4px; }
  /* La portada (solo existe en el inicio) ocupa toda la pantalla y deja libre el alto del menú */
  .lx-hero.lx-hero--edificio {
    min-height: max(600px, 100vh); min-height: max(600px, 100svh);
    padding-top: calc(80px + 48px);
  }
}
@media (min-width: 1200px) and (max-height: 840px) {
  .lx-hero.lx-hero--edificio { padding-top: calc(80px + 26px); }
}

/* Imagen fija de la portada: cuadro del video de la planta (WebP 31 KB, JPG de respaldo) */
.lx-hero--edificio .lx-hero__bg--planta { /* más específico que las posiciones pensadas para la foto del edificio */
  background-image: url("../video/lafar-planta.jpg");
  background-image: image-set(url("../video/lafar-planta.webp") type("image/webp"), url("../video/lafar-planta.jpg") type("image/jpeg"));
  background-position: center 40%;
}

/* Tablet (768–1199px): el texto ocupa casi todo el ancho, así que el degradado es vertical como en móvil */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .lx-hero--edificio .lx-hero__overlay {
    background: linear-gradient(180deg, rgba(20, 37, 80, .5) 0%, rgba(24, 45, 98, .82) 22%, rgba(26, 48, 104, .84) 74%, rgba(20, 37, 80, .6) 100%);
  }
}

/* ---------- Barra de desplazamiento de la página (escritorio) ----------
   Fina y en azul marino de la marca, sobre un riel gris claro. En celular el sistema usa su
   barra flotante y esto no aplica. Chrome/Edge/Safari usan ::-webkit-scrollbar (permite el
   redondeo y el ancho); Firefox, que no lo soporta, usa scrollbar-width/color. */
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: #eef2f8; }
html::-webkit-scrollbar-thumb {
  background-color: rgba(41, 74, 150, .55); border-radius: 10px;
  border: 2px solid #eef2f8; /* separa la barra del riel: se ve más fina sin ser difícil de agarrar */
}
html::-webkit-scrollbar-thumb:hover { background-color: var(--lx-navy); }
html::-webkit-scrollbar-thumb:active { background-color: #1e3a7a; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(41, 74, 150, .55) #eef2f8; }
}
