:root {
  /* Paleta (captura) */
  --pal-white: #ffffff;
  --pal-black: #000000;

  --pal-navy-900: #03182b;
  --pal-maroon-900: #2b0305;

  --pal-gray-100: #ececec;
  --pal-gray-900: #231f20;

  --pal-navy-700: #0f3c70;
  --pal-red-900: #76090e;

  --pal-gray-400: #b3b3b3;
  --pal-gray-600: #656263;

  /* Marca */
  --brand-primary: #ed1c24;
  --brand-secondary: #1f77de;

  /* Bootstrap override */
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 237, 28, 36;

  --bs-secondary: var(--brand-secondary);
  --bs-secondary-rgb: 31, 119, 222;

  --bs-link-color: var(--bs-secondary);
  --bs-link-hover-color: #1c6bc8;

  --bs-primary-bg-subtle: rgba(237, 28, 36, 0.10);
  --bs-primary-border-subtle: rgba(237, 28, 36, 0.25);
  --bs-secondary-bg-subtle: rgba(31, 119, 222, 0.10);
  --bs-secondary-border-subtle: rgba(31, 119, 222, 0.25);
  --text-dark: #232129;
  --text-muted: #3d5168;
  --text-muted-strong: #32465d;
  --text-soft: #53667d;
  --text-soft-strong: #62758a;
  --surface-soft: #ffffff;
  --surface-border: rgba(35, 33, 41, 0.08);
  --footer-bg: #111827;
  --footer-surface: rgba(255, 255, 255, 0.08);
  --footer-text: rgba(255, 255, 255, 0.76);
  --footer-title: #ffffff;
  --mobile-page-gutter: 1.65rem;
  --navbar-height: 10vh;
  --mobile-navbar-height: 5.25rem;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}

/* =========================
   Global / Page Transition
   Spinner visual para cambios de pagina
========================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-transition.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-transition__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-transition__logo {
  width: clamp(11rem, 20vw, 16rem);
  height: auto;
  animation: pageTransitionPulse 1.35s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pageTransitionPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.94;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* =========================
   Botones Globales
   Base visual reutilizable para toda la web
========================= */
.btn {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-family: "Poppins", sans-serif;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 0.95rem;
  transition: all 0.25s ease;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #d51920;
  --bs-btn-hover-border-color: #c9181f;
  --bs-btn-focus-shadow-rgb: 237, 28, 36;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c9181f;
  --bs-btn-active-border-color: #be161d;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
  /* box-shadow: 0 12px 24px rgba(237, 28, 36, 0.18); */
}

/* .btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 16px 28px rgba(237, 28, 36, 0.24);
} */

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: 237, 28, 36;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c9181f;
  --bs-btn-active-border-color: #be161d;
  --bs-btn-border-width: 2px;
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1c6bc8;
  --bs-btn-hover-border-color: #1a65bd;
  --bs-btn-focus-shadow-rgb: 31, 119, 222;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1a65bd;
  --bs-btn-active-border-color: #195fb2;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-secondary);
  --bs-btn-disabled-border-color: var(--bs-secondary);
}

.btn-outline-secondary {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: var(--bs-secondary);
  --bs-btn-focus-shadow-rgb: 31, 119, 222;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1a65bd;
  --bs-btn-active-border-color: #195fb2;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}
.text-shadow{
    text-shadow: 2 2 3 5px rgba(0, 0, 0, 0.234);
}
.box-shadow{
    text-shadow: 2 2 3 5px rgba(0, 0, 0, 0.234);
}
.pointer{
    cursor: pointer;
}

a[href^="mailto:"],
.budget-modal-info__contact span,
.services-highlight__contact-list span,
.contact-card__meta-item span,
.contact-card__quick-data span,
.faq-side-card__list span,
.faq-accordion__body,
.praxis-footer__text,
.praxis-footer__contact a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services-highlight__contact-list li > span,
.contact-card__quick-data li > span,
.faq-side-card__list li > span,
.budget-modal-info__contact span,
.praxis-footer__contact li > a {
  flex: 1 1 auto;
}


/* =========================
   Header / Navbar
   Navegacion principal del sitio
========================= */

.praxis-navbar {
  position: fixed;
  width: 100%;
  height: var(--navbar-height);
  top: 0;
  z-index: 30;
  background-color: var(--pal-white);
  border-bottom: 1px solid var(--surface-border);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.95s ease;
}

.praxis-navbar:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

.praxis-navbar__container {
  position: relative;
  height: 100%;
  max-width: 1920px;
  padding-left: clamp(1.2rem, 3vw, 3rem);
  padding-right: clamp(1.2rem, 3vw, 3rem);
}

.praxis-navbar__reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease;
}

.praxis-navbar.is-visible .praxis-navbar__reveal {
  opacity: 1;
  transform: translateY(0);
}

.praxis-navbar.is-visible .praxis-navbar__reveal--brand {
  transition-delay: 0.12s;
}

.praxis-navbar.is-visible .praxis-navbar__reveal--menu {
  transition-delay: 0.2s;
}

.praxis-navbar.is-visible .praxis-navbar__reveal--cta {
  transition-delay: 0.28s;
}

.praxis-navbar__brand {
  margin-right: 0;
}

.praxis-navbar__logo {
  width: auto;
  height: min(58px, calc(10vh - 1.8rem));
  object-fit: contain;
  display: block;
}

.praxis-navbar__collapse {
  align-items: center;
}

.praxis-navbar__menu {
  gap: clamp(0.4rem, 1.4vw, 1.75rem);
}

.praxis-navbar .nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.25s ease;
}

.praxis-navbar .nav-link:hover,
.praxis-navbar .nav-link.active {
  color: var(--brand-primary);
}

.praxis-navbar .nav-link:focus {
  color: var(--text-dark);
}

.praxis-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.praxis-navbar .nav-link:hover::after,
.praxis-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.praxis-navbar__cta {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  min-width: 210px;
}

.praxis-navbar__button {
  min-width: 168px;
  border: 0;
  --bs-btn-padding-x: 1.7rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-size: 1.05rem;
  --bs-btn-font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(237, 28, 36, 0.18);
}

.praxis-navbar__button--ghost {
  min-width: 152px;
}

.praxis-navbar__button:hover,
.praxis-navbar__button:focus-visible {
  box-shadow: 0 16px 28px rgba(237, 28, 36, 0.24);
}

.praxis-navbar__toggler {
  border: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.85rem;
}

.praxis-navbar__toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(237, 28, 36, 0.15);
}

@media (max-width: 991.98px) {
  .praxis-navbar {
    height: var(--mobile-navbar-height);
  }

  .praxis-navbar__logo {
    height: 2.35rem;
  }

  .praxis-navbar__container {
    padding-left: var(--mobile-page-gutter);
    padding-right: var(--mobile-page-gutter);
  }

  .praxis-navbar__collapse {
    position: fixed;
    top: var(--mobile-navbar-height);
    left: 0;
    right: 0;
    width: 100vw;
    max-height: calc(100vh - var(--mobile-navbar-height));
    overflow-y: auto;
    margin-top: 0;
    padding: 1.2rem clamp(1.2rem, 5vw, 2rem) 1.5rem;
    border-top: 1px solid var(--surface-border);
    background-color: var(--pal-white);
    box-shadow: 0 18px 36px rgba(12, 25, 47, 0.08);
    transform-origin: top;
  }

  .praxis-navbar__collapse.collapse.show {
    opacity: 1;
    transform: translateY(0);
  }

  .praxis-navbar__collapse.collapsing {
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition: height 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
  }

  .praxis-navbar__collapse.is-closing {
    opacity: 0;
    transform: translateY(-0.35rem);
  }

  .praxis-navbar__menu {
    gap: 0.25rem;
  }

  .praxis-navbar .nav-link {
    padding: 0.75rem 0;
  }

  .praxis-navbar .nav-link::after {
    left: 0;
    right: auto;
    width: 42px;
    bottom: 0.35rem;
    transform-origin: left;
  }

  .praxis-navbar__cta {
    min-width: auto;
    width: 100%;
    flex-direction: column;
    margin-top: 0.8rem;
  }

  .praxis-navbar__button {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .praxis-navbar__collapse {
    display: flex;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .praxis-navbar,
  .praxis-navbar__reveal {
    transition: none;
    transform: none;
  }

  .praxis-navbar:not(.is-visible),
  .praxis-navbar__reveal {
    opacity: 1;
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-sm,
  .container-fluid,
  .praxis-navbar__container,
  .praxis-footer__container,
  .services-dynamic__container,
  .services-guides__container,
  .analysis-matrix__container,
  .services-scope__container,
  .services-methods__container,
  .legal-matrix__container,
  .about-hero__container,
  .about-story__container,
  .about-clients__container,
  .about-interlab__container,
  .contact-page-section__container,
  .contact-page-intro__container {
    padding-left: var(--mobile-page-gutter);
    padding-right: var(--mobile-page-gutter);
  }
}

/* =========================
   Presupuesto Modal
   Formulario emergente disponible desde el navbar
========================= */
.praxis-modal__content {
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.praxis-modal__body {
    overflow-y: auto;
}
.praxis-modal__dialog {
  max-width: min(1100px, calc(100vw - 2rem));
}

.praxis-modal__content {
  border: 0;
  border-radius: 1.8rem;
  box-shadow: 0 28px 70px rgba(8, 28, 52, 0.22);
}

.praxis-modal__header {
  align-items: flex-start;
  padding: 1.6rem 1.6rem 0;
  border-bottom: 0;
}

.praxis-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.praxis-modal__title {
  color: #10233a;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
}

.praxis-modal__description {
  max-width: 42rem;
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.praxis-modal__close {
  margin-left: 1rem;
}

.praxis-modal__body {
  padding: 1.6rem;
}

.contact-form__help {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.budget-form__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.budget-form__check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1rem;
  background: rgba(31, 119, 222, 0.03);
  color: #22364c;
  font-size: 0.95rem;
}

.budget-form__check input {
  accent-color: var(--brand-primary);
}

.budget-modal-info {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.budget-modal-info__title {
  margin: 0;
  color: #10233a;
  font-size: 1.35rem;
  font-weight: 700;
}

.budget-modal-info__text {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.budget-modal-info__list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.budget-modal-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted-strong);
  line-height: 1.65;
}

.budget-modal-info__list i {
  color: var(--brand-primary);
  margin-top: 0.18rem;
}

.budget-modal-info__contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(15, 60, 112, 0.08);
}

.budget-modal-info__contact strong {
  color: #10233a;
  font-weight: 700;
}

.budget-modal-info__contact span {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  .budget-form__checks {
    grid-template-columns: 1fr;
  }

  .praxis-modal__header,
  .praxis-modal__body {
    padding: 1.25rem;
  }
}

/* =========================
   Home / Hero Section
   Video de fondo + overlay institucional
========================= */
.hero-section {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3c70;
  margin-top: 10vh;
}

.hero-section__video,
.hero-section__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section__video {
  object-fit: cover;
}

.hero-section__overlay {
  background: rgba(15, 60, 112, 0.78);
}

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

.hero-section__content {
  max-width: 58rem;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  color: #ffffff;
}

.hero-section__bubble {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.2s ease;
  will-change: transform, opacity;
}

.hero-section__bubble-group.is-visible .hero-section__bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-section__bubble-group.is-visible .hero-section__bubble--title {
  transition-delay: 0.08s;
}

.hero-section__bubble-group.is-visible .hero-section__bubble--subtitle {
  transition-delay: 0.2s;
}

.hero-section__bubble-group.is-visible .hero-section__bubble--actions {
  transition-delay: 0.32s;
}

.hero-section__title {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-section__subtitle {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.25;
  font-weight: 400;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-section__button {
  min-width: 190px;
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-font-size: 1.2rem;
  --bs-btn-font-weight: 500;
}

.hero-section__button--ghost {
  --bs-btn-color: #ffffff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.82);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-border-color: #ffffff;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-active-border-color: #ffffff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.hero-section__button--ghost:hover,
.hero-section__button--ghost:focus {
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .hero-section {
    height: auto;
    min-height: calc(100svh - 80px);
    margin-top: var(--mobile-navbar-height);
  }

  .hero-section__content {
    text-align: left;
    max-width: 100%;
    padding: 2rem 0;
  }

  .hero-section__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-section__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section__bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   Home / Section Intro
   Patron reutilizable de bajada de linea para secciones
========================= */
.section-intro {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-intro__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
}

.section-intro__description {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-intro--fade {
  transition: opacity 1.15s ease, transform 1.15s ease;
}

/* =========================
   Home / Servicios Principales
   Cards de servicios + bloque institucional
========================= */
.services-section {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(4.5rem, 8vw, 7rem);
  background-image: url('/static/images/bg-moleculas.jpg'); 
  background-size: cover;
  background-position: center;
  /* background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%); */
}

.services-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 92px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 251, 254, 0) 0%,
    rgba(248, 251, 254, 0.35) 44%,
    rgba(248, 251, 254, 0.78) 74%,
    rgba(248, 251, 254, 0.96) 100%
  );
}

.services-section__container {
  position: relative;
}

.servicios-cont{
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-highlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-highlight__eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--brand-primary);
}

/* Cards minimalistas con lectura rapida y CTA directo */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.7rem 1.55rem;
  /* border: 1px solid rgba(15, 60, 112, 0.08); */
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 34, 58, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 34, 58, 0.08);
}

.service-card--featured {
  border-color: rgba(15, 60, 112, 0.12);
}

/* Cabecera compacta con icono y titulo en la misma linea */
.service-card__head {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.35rem;
  min-height: 74px;
}

.service-card__icon {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* background: rgba(31, 119, 222, 0.08); */
  /* background: #ed1c230b; */
  /* color: #0f3c70; */
  color: var(--brand-primary);
  font-size: 2.45rem;
}

.service-card__title {
  margin: 0;
  /* color: #0f3c70; */
  color: var(--text-dark);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
}

.service-card__text {
  margin: 0 0 1.5rem;
  color: var(--text-muted-strong);
  font-size: 1rem;
  line-height: 1.8;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-size: 0.95rem;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--brand-primary);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--brand-primary);
  --bs-btn-hover-border-color: var(--brand-primary);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #d51920;
  --bs-btn-active-border-color: #d51920;
  --bs-btn-focus-shadow-rgb: 237, 28, 36;
  --bs-btn-border-width: 2px;
  box-shadow: none;
}

.service-card__link:hover,
.service-card__link:focus {
  transform: translateY(-2px);
  box-shadow: none;
}

/* Bloque complementario con narrativa institucional y datos de contacto */
.services-highlight {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3.2rem, 2vw, 1.6rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, #0f3c70 0%, #144f93 55%, #0f3c70 100%);
  box-shadow: 0 30px 60px rgba(15, 60, 112, 0.18);
}

.services-highlight__content {
  padding: clamp(1.2rem, 3vw, 2rem);
  color: #ffffff;
}

.services-highlight__title {
  /* max-width: 15ch; */
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
}

.services-highlight__text {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
}

.services-highlight__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  align-items: start;
}

.services-highlight__stat {
  padding: 1rem;
  /* border: 1px solid rgba(255, 255, 255, 0.12); */
  border-radius: 1.2rem;
  /* background: rgba(255, 255, 255, 0.08); */
  backdrop-filter: blur(12px);
}

.services-highlight__stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
}

.services-highlight__stat span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

.services-highlight__stat--wide {
  grid-column: 1 / -1;
  max-width: 34rem;
}

.services-highlight__panel {
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(8, 28, 52, 0.18);
}

.services-highlight__panel-title {
  margin: 0 0 1rem;
  color: #11263f;
  font-size: 1.35rem;
  font-weight: 700;
}

.services-highlight__contact-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.services-highlight__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(17, 38, 63, 0.08);
  color: var(--text-soft);
  line-height: 1.65;
}

.services-highlight__contact-list li:last-child {
  border-bottom: 0;
}

.services-highlight__contact-list i {
  color: var(--brand-primary);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.services-highlight__panel-button {
  width: 100%;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-font-weight: 600;
}

.services-highlight__bubble-group {
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991.98px) {
  .services-highlight__title {
    max-width: 100%;
  }

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

  .services-highlight__stat--wide {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 767.98px) {
  .services-section {
    padding: 3rem 0 4rem;
    overflow: hidden;
  }

  .service-card {
    padding: 1.5rem 1.3rem;
  }


  .service-card__link {
    width: 100%;
  }

  .praxis-footer__button {
    width: 100%;
  }

  .services-highlight {
    border-radius: 1.5rem;
  }
}

/* =========================
   Motion / Scroll Reveal
   Animaciones suaves activadas por viewport
========================= */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-reveal="fade-in"] {
  transform: translateY(22px);
  transition: opacity 1.15s ease, transform 1.15s ease;
}

[data-reveal="slide-right"] {
  transform: translateX(56px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767.98px) {
  [data-reveal="slide-right"] {
    transform: translateY(22px);
  }
}

[data-reveal="bubble"] {
  transform: translateY(22px) scale(0.97);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   Home / Publicaciones Destacadas
   Cards tipo feed con carousel por publicacion
========================= */
.posts-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at top right, rgba(31, 119, 222, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 42%, #f6f9fc 100%);
}

.posts-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  pointer-events: none;
}

.posts-section::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 251, 254, 0.88) 18%,
    rgba(248, 251, 254, 0.45) 52%,
    rgba(248, 251, 254, 0) 100%
  );
}

.posts-section__container {
  width: 100%;
}

.posts-section__grid {
  align-items: stretch;
}

/* Card editorial preparada para mapear futuras publicaciones desde la DB */
.post-card {
  width: min(100%, 25rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.07);
}

.post-card__carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.6rem 1.6rem 0 0;
  background: linear-gradient(135deg, rgba(15, 60, 112, 0.12), rgba(31, 119, 222, 0.06));
}

.post-card__inner {
  height: 100%;
  border-bottom: 1px solid rgba(15, 60, 112, 0.06);
}

.post-card__inner .carousel-item {
  height: 100%;
}

.post-card__image {
  height: 100%;
  object-fit: cover;
  border-radius: 1.6rem 1.6rem 0 0;
  background: linear-gradient(135deg, rgba(15, 60, 112, 0.12), rgba(31, 119, 222, 0.06));
}

.post-card__indicators {
  margin-bottom: 0.9rem;
}

.post-card__indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  margin-right: 0.3rem;
  margin-left: 0.3rem;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
}

.post-card__indicators .active {
  background-color: #ffffff;
}

.post-card__control {
  width: 14%;
  opacity: 1;
}

.post-card__control-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: rgba(15, 60, 112, 0.55);
  background-size: 42%;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem 3.2rem;
  flex: 1 1 auto;
  position: relative;
}

.post-card__date {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.6rem;
  color: var(--text-soft-strong);
  font-size: 0.85rem;
}

.post-card__tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 119, 222, 0.08);
  color: #0f3c70;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.post-card__tag:hover {
  background: rgba(31, 119, 222, 0.15);
  color: #1f77de;
  transform: translateY(-2px);
}

.post-card__tag:active {
  transform: translateY(0);
}

.post-card__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
}

.post-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.post-card__title-link {
  color: inherit;
  text-decoration: none;
}

.post-card__title-link:hover,
.post-card__title-link:focus {
  color: var(--brand-primary);
}

@media (max-width: 991.98px) {
  .posts-section {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .posts-section {
    padding: 3.5rem 0;
  }

  .post-card {
    width: 100%;
  }

}

/* =========================
   Publicacion Detail
   Vista de detalle para publicaciones destacadas
========================= */
.post-detail-hero {
  position: relative;
  min-height: clamp(380px, 60vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3c70;
}

.compartir-column{
  position: sticky;
  top: 12vh;
}

.post-detail-hero__media,
.post-detail-hero__overlay {
  position: absolute;
  inset: 0;
}

.post-detail-hero__media {
  background:
    linear-gradient(135deg, rgba(15, 60, 112, 0.16), rgba(31, 119, 222, 0.12)),
    url("/static/images/bg-moleculas.jpg") center/cover no-repeat;
  transform: scale(1.03);
}

.post-detail-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 28, 52, 0.82) 0%, rgba(15, 60, 112, 0.64) 58%, rgba(15, 60, 112, 0.48) 100%);
}

.post-detail-hero__container {
  position: relative;
  z-index: 1;
}

.post-detail-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.post-detail-hero__content {
  max-width: 56rem;
  color: #ffffff;
}

.post-detail-hero__tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-detail-hero__title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.03;
  font-weight: 700;
}

.post-detail-hero__description {
  max-width: 46rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.8;
}

.post-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.76);
}

.post-detail-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.post-detail-section,
.related-posts {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.post-detail-section {
  background:
    radial-gradient(circle at top right, rgba(31, 119, 222, 0.06), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.related-posts {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.post-detail-card,
.post-detail-side__card {
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.75rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.06);
}

.post-detail-card {
  overflow: hidden;
}

.post-detail-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.75rem 1.75rem 0 0;
  background: #eef5fb;
}

.post-detail-carousel__indicators {
  margin-bottom: 1rem;
}

.post-detail-carousel__indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin-right: 0.35rem;
  margin-left: 0.35rem;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

.post-detail-carousel__indicators .active {
  background-color: #ffffff;
}

.post-detail-carousel__inner,
.post-detail-carousel__inner .carousel-item {
  height: 100%;
}

.post-detail-carousel__zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.post-detail-carousel__zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 52, 0);
  transition: background 0.24s ease;
  pointer-events: none;
}

.post-detail-carousel__zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: rgba(15, 60, 112, 0.82);
  color: #ffffff;
  font-size: 1.35rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.post-detail-carousel__zoom:hover::after,
.post-detail-carousel__zoom:focus-visible::after {
  background: rgba(8, 28, 52, 0.22);
}

.post-detail-carousel__zoom:hover .post-detail-carousel__zoom-icon,
.post-detail-carousel__zoom:focus-visible .post-detail-carousel__zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.post-detail-carousel__image {
  height: 100%;
  object-fit: cover;
  border-radius: 1.75rem 1.75rem 0 0;
  transition: transform 0.3s ease;
}

.post-detail-carousel__zoom:hover .post-detail-carousel__image,
.post-detail-carousel__zoom:focus-visible .post-detail-carousel__image {
  transform: scale(1.025);
}

.post-detail-carousel__control {
  width: 14%;
  opacity: 1;
}

.post-detail-carousel__control-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: rgba(15, 60, 112, 0.55);
  background-size: 42%;
}

.post-detail-card__body {
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.post-detail-card__lead p,
.post-detail-card__copy p {
  color: var(--text-muted-strong);
  line-height: 1.9;
}

.post-detail-card__lead p {
  margin-bottom: 1.2rem;
  color: var(--text-muted-strong);
  font-size: 1.08rem;
  font-weight: 500;
}

.post-detail-side {
  display: grid;
  gap: 1.2rem;
}

.post-detail-side__card {
  padding: 1.45rem;
}

.post-detail-side__eyebrow {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-detail-side__title {
  margin: 0;
  color: #10233a;
  font-size: 1.3rem;
  font-weight: 700;
}

.post-detail-side__text {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.post-detail-side__meta {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.post-detail-side__meta li {
  display: grid;
  gap: 0.2rem;
}

.post-detail-side__meta strong {
  color: #10233a;
  font-weight: 700;
}

.post-detail-side__meta span {
  color: var(--text-muted);
  line-height: 1.7;
}

.post-detail-side__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

@media (max-width: 767.98px) {
  .post-detail-section,
  .related-posts {
    padding: 3.5rem 0;
  }

  .post-detail-hero {
    min-height: 360px;
  }

  .post-detail-side__actions {
    flex-direction: column;
  }

  .post-detail-side__actions .btn {
    width: 100%;
  }
}

.post-lightbox__content {
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 60, 112, 0.28), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(237, 28, 36, 0.12), transparent 30%),
    #03070d;
  color: #ffffff;
}

.post-lightbox__close {
  position: fixed;
  top: clamp(1rem, 2vw, 1.6rem);
  right: clamp(1rem, 2vw, 1.6rem);
  z-index: 5;
  width: 2rem;
  height: 2rem;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.post-lightbox__close:hover,
.post-lightbox__close:focus {
  opacity: 1;
  transform: scale(1.05);
}

.post-lightbox__body {
  display: flex;
  min-height: 0;
  padding: 0;
}

.post-lightbox__carousel,
.post-lightbox__inner,
.post-lightbox__inner .carousel-item {
  width: 100%;
  height: 100vh;
}

.post-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(0.35rem, 1.4vw, 1rem);
  object-fit: contain;
}

.post-lightbox__control {
  width: clamp(3.5rem, 9vw, 6rem);
  opacity: 1;
}

.post-lightbox__control-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(15, 60, 112, 0.64);
  background-size: 42%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.post-lightbox__control:hover .post-lightbox__control-icon,
.post-lightbox__control:focus .post-lightbox__control-icon {
  background-color: rgba(237, 28, 36, 0.72);
  transform: scale(1.04);
}

/* =========================
   Home / Contacto
   Ubicacion con mapa + formulario simple reutilizable
========================= */
.contact-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at top left, rgba(237, 28, 36, 0.06), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.contact-section::before {
  background: linear-gradient(
    180deg,
    rgba(246, 249, 252, 0.96) 0%,
    rgba(248, 251, 254, 0.82) 22%,
    rgba(255, 255, 255, 0.4) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

.contact-section__container {
  position: relative;
}

/* Tarjeta base para las dos columnas principales de contacto */
.contact-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.75rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.07);
}

.contact-card__head {
  margin-bottom: 1.4rem;
}

.contact-card__eyebrow {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.contact-card__description {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact-card__map-wrap {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(15, 60, 112, 0.08);
}

.contact-card__map {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

.contact-card__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-card__meta-item,
.contact-card__quick-data li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-card__meta-item {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(31, 119, 222, 0.04);
}

.contact-card__meta-item i,
.contact-card__quick-data i {
  color: var(--brand-primary);
  font-size: 1rem;
  margin-top: 0.22rem;
}

.contact-card__meta-item strong {
  display: block;
  color: #10233a;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-card__meta-item span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Formulario base para reciclar luego en contacto.html */
.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form__field {
  display: grid;
  gap: 0.45rem;
}

.contact-form__label {
  color: #10233a;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form__input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 60, 112, 0.12);
  border-radius: 1rem;
  outline: none;
  background: #ffffff;
  color: #1f3147;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder {
  color: var(--text-soft-strong);
}

.contact-form__input:focus {
  border-color: rgba(31, 119, 222, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(31, 119, 222, 0.1);
}

.contact-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form__submit {
  width: 100%;
  --bs-btn-padding-y: 0.95rem;
}

.ajax-success-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 36, 72, 0.35);
  padding: 1.5rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ajax-success-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ajax-success-modal__panel {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(16, 35, 58, 0.15);
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ajax-success-modal.is-visible .ajax-success-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.ajax-success-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(31, 119, 222, 0.12);
  color: var(--brand-primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.ajax-success-modal__message {
  margin: 0;
  color: #10233a;
  font-weight: 700;
  font-size: 1rem;
}

.contact-form__status {
  padding: 1rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.contact-form__status--success {
  background: rgba(29, 113, 60, 0.12);
  color: #1e462b;
  border: 1px solid rgba(29, 113, 60, 0.18);
}

.contact-form__error {
  color: #b7281f;
  font-size: 0.9rem;
  margin-top: 0.45rem;
}

.contact-form.is-sending .contact-form__submit {
  opacity: 0.7;
  pointer-events: none;
}

.contact-card__quick-data {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.contact-card__quick-data li {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .contact-card__meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .contact-section {
    padding: 3.5rem 0;
  }

  .contact-card__map {
    height: 320px;
  }
}

/* =========================
   Home / Reseñas
   Resumen reputacional + opiniones destacadas
========================= */
.reviews-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at top center, rgba(31, 119, 222, 0.06), transparent 26%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.reviews-section__container {
  position: relative;
}

.reviews-section__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(15, 34, 58, 0.06);
}

.reviews-section__rating-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.reviews-section__score {
  color: #10233a;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 700;
}

.reviews-section__stars,
.review-card__stars {
  display: inline-flex;
  gap: 0.2rem;
  color: #f4b400;
}

.reviews-section__rating-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.reviews-section__link {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.85rem;
}

/* Tarjeta de reseña con look editorial sobrio */
.review-card {
  width: min(100%, 24rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 34, 58, 0.06);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.review-card__avatar {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 119, 222, 0.08);
  color: #0f3c70;
  font-size: 1rem;
  font-weight: 700;
  flex: 0 0 3.2rem;
}

.review-card__person {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.review-card__name {
  color: #10233a;
  font-size: 1rem;
  font-weight: 700;
}

.review-card__text {
  margin: 0;
  color: var(--text-muted-strong);
  font-size: 1.02rem;
  line-height: 1.85;
}

.review-card__source {
  color: var(--text-soft-strong);
  font-size: 0.88rem;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .reviews-section__summary {
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .reviews-section {
    padding: 3.5rem 0;
  }

  .review-card {
    width: 100%;
  }
}

/* =========================
   Nosotros
   Pagina institucional del laboratorio
========================= */
.section-intro--left {
  max-width: 100%;
  margin: 0 0 1.5rem;
  text-align: left;
}

.section-intro--left .section-intro__description {
  margin-left: 0;
}

.about-hero {
  position: relative;
  margin-top: 10vh;
  height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3c70;
}

.about-hero__media,
.about-hero__overlay {
  position: absolute;
  inset: 0;
}

.about-hero__media {
  background:
    linear-gradient(135deg, rgba(15, 60, 112, 0.669), rgba(31, 120, 222, 0.602)),
    url("/static/images/bg-moleculas.jpg") center/cover no-repeat;
  transform: scale(1.04);
}

.about-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 28, 52, 0.613) 0%, rgba(6, 33, 63, 0.8) 55%, rgba(0, 20, 42, 0.514) 100%);
}

.about-hero__container {
  position: relative;
  z-index: 1;
}

.about-hero__content {
  max-width: 52rem;
  color: #ffffff;
}

.about-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  /* color: rgba(255, 255, 255, 0.78); */
  color:  var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
}

.about-hero__description {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.8;
}

.about-story,
.about-commitment,
.about-values,
.about-team,
.about-clients,
.about-interlab,
.about-cta {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.about-story {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.about-commitment {
  background:
    radial-gradient(circle at top left, rgba(31, 119, 222, 0.06), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.about-values {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(31, 119, 222, 0.28), transparent 30%),
    linear-gradient(135deg, #0f3c70 0%, #144f93 55%, #0f3c70 100%);
}
/* 
.about-team {
  background:
    radial-gradient(circle at top center, rgba(237, 28, 36, 0.05), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
} */

.about-panel,
.about-metric-card,
.about-feature-card,
.team-card,
.about-cta__panel {
  /* border: 1px solid rgba(15, 60, 112, 0.08); */
  border-radius: 1.75rem;
  /* background: #ffffff; */
  /* box-shadow: 0 18px 40px rgba(15, 34, 58, 0.06); */
}

.about-panel,
.about-metric-card,
.about-cta__panel {
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.about-copy,
.about-copy__single {
  color: var(--text-muted-strong);
  line-height: 1.9;
}

.about-copy p:last-child,
.about-copy__single:last-child {
  margin-bottom: 0;
}

.about-metric-card {
  height: 100%;
  display: grid;
  gap: 1rem;
  background: linear-gradient(135deg, #0f3c70 0%, #144f93 55%, #0f3c70 100%);
}

.about-metric-card__item {
  padding: 1rem;
  border-radius: 1.2rem;
  /* background: rgba(255, 255, 255, 0.08); */
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.about-metric-card__item strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
}

.about-metric-card__item span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.about-feature-card {
  height: 100%;
  padding: 1.7rem 1.5rem;
}

.about-feature-card i {
  color: #0f3c70;
  font-size: 1.6rem;
}

.about-feature-card h3 {
  margin: 1rem 0 0.7rem;
  color: #10233a;
  font-size: 1.25rem;
  font-weight: 700;
}

.about-feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-panel--values {
  height: 100%;
}

.about-values__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.about-value-chip {
  display: inline-flex;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(31, 119, 222, 0.08);
  color: #0f3c70;
  font-weight: 600;
}

/* =========================
   Nosotros / Documentos
   Dos columnas simples con enlaces institucionales
========================= */
.about-documents-simple {
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(7, 25, 48, 0.18);
}

.about-documents-simple__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.about-documents-simple__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* background: rgba(237, 28, 36, 0.08); */
  color: var(--brand-primary);
  font-size: 3rem;
  flex: 0 0 3rem;
}

.about-documents-simple__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.15;
  font-weight: 700;
}

.about-documents-simple__links {
  display: grid;
  gap: 0.85rem;
}

.about-documents-simple__link {
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  /* border-bottom: 1px solid rgba(15, 60, 112, 0.1); */
  color: var(--text-muted-strong);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s ease, transform 0.2s ease;
}

.about-documents-simple__link:hover,
.about-documents-simple__link:focus {
  transform: translateY(-2px);
  color: var(--brand-primary);
}

.about-documents-simple__link--static {
  cursor: default;
}

.about-documents-simple__link--static:hover,
.about-documents-simple__link--static:focus {
  transform: none;
  color: var(--text-muted-strong);
}

.about-documents-simple__link-text {
  line-height: 1.6;
}

.about-documents-simple__link i {
  flex: 0 0 auto;
  color: var(--brand-primary);
  font-size: 1rem;
}

.team-card {
  width: 100%;
  padding: 2.15rem 1.5rem 1.9rem;
  text-align: center;
  border-radius: 1.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
  box-shadow: 0 20px 42px rgba(15, 34, 58, 0.08);
}

.team-card__avatar {
  width: 198px;
  height: 198px;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
  transform-origin: center center;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(31, 119, 222, 0.12),
    0 22px 40px rgba(15, 34, 58, 0.14);
}

.team-card__name {
  margin: 0;
  color: #10233a;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.22;
}

.team-card__role {
  margin: 0 0 0.55rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.team-card__text {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-clients {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.about-interlab {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.about-interlab__intro {
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.about-interlab__eyebrow {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-interlab__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
}

.about-interlab__copy {
  max-width: 38rem;
}

.about-interlab__panel {
  padding: 1.4rem 1.5rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 60, 112, 0.08);
}

.about-interlab__panel-title {
  margin: 0 0 1rem;
  color: #10233a;
  font-size: 1.2rem;
  font-weight: 700;
}

.about-interlab__list {
  display: grid;
  gap: 0.8rem;
}

.about-interlab__item-group {
  display: grid;
  gap: 0.55rem;
}

.about-interlab__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--text-muted-strong);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.about-interlab__item:hover,
.about-interlab__item:focus {
  transform: translateY(-2px);
  color: var(--brand-primary);
}

.about-interlab__item--static {
  cursor: default;
}

.about-interlab__item--static:hover,
.about-interlab__item--static:focus {
  transform: none;
  color: var(--text-muted-strong);
}

.about-interlab__item-text {
  line-height: 1.6;
}

.about-interlab__item i {
  flex: 0 0 auto;
  color: var(--brand-primary);
  font-size: 1rem;
}

.about-interlab__sublist {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.2rem;
}

.about-interlab__subitem {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted-strong);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.about-interlab__subitem:hover,
.about-interlab__subitem:focus {
  color: var(--brand-primary);
  transform: translateX(3px);
}

.about-interlab__subitem i {
  color: var(--brand-primary);
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.about-clients__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.about-clients__logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 60, 112, 0.08);
  box-shadow: 0 14px 30px rgba(15, 34, 58, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-clients__logo-card:hover,
.about-clients__logo-card:focus {
  transform: translateY(-3px);
  border-color: rgba(237, 28, 36, 0.22);
  box-shadow: 0 18px 34px rgba(15, 34, 58, 0.08);
}

.about-clients__logo {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.98);
}

@media (max-width: 767.98px) {
  .team-card__avatar {
    width: 176px;
    height: 176px;
  }
}

.about-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.about-cta__panel {
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(31, 119, 222, 0.08), transparent 24%),
    #ffffff;
}

.about-cta__title {
  max-width: 20ch;
  margin: 0 auto;
  color: #10233a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
}

.about-cta__text {
  max-width: 44rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

@media (max-width: 767.98px) {
  .about-story,
  .about-commitment,
  .about-values,
  .about-team,
  .about-clients,
  .about-interlab,
  .about-cta {
    padding: 3.5rem 0;
  }

  .about-hero {
    min-height: 400px;
  }

  .about-documents-simple {
    padding: 1.85rem 1.65rem;
  }

  .about-documents-simple__head {
    gap: 0.9rem;
    margin-bottom: 1.4rem;
  }

  .about-documents-simple__link {
    gap: 0.55rem;
    padding: 0.95rem 0;
  }

  .about-cta__actions {
    flex-direction: column;
  }

  .about-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 1199.98px) {
  .about-clients__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .about-clients__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .about-clients__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-clients__logo-card {
    min-height: 102px;
    padding: 1rem;
  }

  .about-clients__logo {
    max-height: 48px;
  }
}

/* =========================
   Servicios Page
   Pagina de servicios, sectores, calidad y certificaciones
========================= */
.services-page-hero {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3c70;
}

.services-page-hero__media,
.services-page-hero__overlay {
  position: absolute;
  inset: 0;
}

.services-page-hero__media {
  background:
    linear-gradient(135deg, rgba(15, 60, 112, 0.15), rgba(31, 119, 222, 0.12)),
    url("/static/images/bg-moleculas.jpg") center/cover no-repeat;
  transform: scale(1.03);
}

.services-page-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 28, 52, 0.8) 0%, rgba(15, 60, 112, 0.62) 56%, rgba(15, 60, 112, 0.46) 100%);
}

.services-page-hero__container {
  position: relative;
  z-index: 1;
}

.services-page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.services-page-hero__content {
  max-width: 54rem;
  color: #ffffff;
}

.services-page-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-page-hero__title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.03;
  font-weight: 700;
}

.services-page-hero__description {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  line-height: 1.8;
}

.services-page-intro,
.services-dynamic,
.services-guides,
.analysis-matrix,
.services-scope,
.services-methods,
.legal-matrix,
.served-sectors,
.services-trust-strip,
.quality-section,
.certifications-section,
.documents-section,
.services-page-cta {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.services-page-intro {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.services-dynamic {
  background: #f2f2f2;
}

#servicios-dynamic {
  min-height: auto;
  max-height: calc(100svh - var(--navbar-height));
  padding: clamp(1.6rem, 3vh, 2.4rem) 0;
  overflow: hidden;
}

.services-guides {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.analysis-matrix {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.services-scope {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(31, 119, 222, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(237, 28, 36, 0.07), transparent 26%),
    linear-gradient(180deg, #eef6fd 0%, #f8fbfe 100%);
}

.services-methods {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(31, 119, 222, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(237, 28, 36, 0.07), transparent 26%),
    linear-gradient(180deg, #eef6fd 0%, #f8fbfe 100%);
}

.legal-matrix {
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.services-guides__container {
  max-width: 1240px;
}

.services-guide-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.2rem 1.15rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 60, 112, 0.07);
  box-shadow: 0 10px 24px rgba(15, 34, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.services-guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 60, 112, 0.12);
  box-shadow: 0 14px 28px rgba(15, 34, 58, 0.06);
}

.services-guide-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  border-radius: 50%;
  background: rgba(237, 28, 36, 0.06);
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.services-guide-card__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.15;
  font-weight: 700;
}

.services-guide-card__text {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.services-guide-card__actions {
  margin-top: auto;
  padding-top: 1rem;
}

.services-guide-card__button {
  width: 100%;
  --bs-btn-padding-y: 0.72rem;
  --bs-btn-font-size: 0.92rem;
  --bs-btn-font-weight: 600;
}

.analysis-matrix__container {
  max-width: 1240px;
}

.analysis-matrix__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(15, 60, 112, 0.1);
  box-shadow: 0 18px 42px rgba(15, 34, 58, 0.08);
}

.analysis-matrix__search,
.analysis-matrix-modal__search {
  position: relative;
  z-index: 3;
  padding: 1.15rem 1.2rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 60, 112, 0.08);
}

.analysis-matrix__search {
  display: grid;
  gap: 0.55rem;
}

.analysis-matrix__search-label {
  color: #10233a;
  font-size: 0.86rem;
  font-weight: 700;
}

.analysis-matrix__search-field {
  position: relative;
}

.analysis-matrix__search-field i {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--brand-primary);
  font-size: 0.95rem;
  transform: translateY(-50%);
}

.analysis-matrix__search-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 1rem 0.78rem 2.75rem;
  border: 1px solid rgba(15, 60, 112, 0.14);
  border-radius: 999px;
  background: #f8fbfe;
  color: #10233a;
  font: inherit;
  font-size: 0.94rem;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.analysis-matrix__search-input:focus {
  border-color: rgba(237, 28, 36, 0.48);
  background: #ffffff;
  box-shadow: 0 0 0 0.22rem rgba(237, 28, 36, 0.1);
}

.analysis-matrix__preview {
  max-height: 50vh;
  min-height: 22rem;
  overflow: hidden;
}

.analysis-matrix__table-wrap {
  overflow-x: auto;
}

.analysis-matrix__table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #17283c;
  font-size: 0.94rem;
}

.analysis-matrix__table th,
.analysis-matrix__table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(15, 60, 112, 0.08);
  vertical-align: top;
}

.analysis-matrix__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0f3c70;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-matrix__table tbody tr:nth-child(even) {
  background: #f8fbfe;
}

.analysis-matrix__table tbody tr:hover {
  background: rgba(237, 28, 36, 0.045);
}

.analysis-matrix__table th:first-child,
.analysis-matrix__table td:first-child {
  width: 16rem;
  min-width: 16rem;
  white-space: nowrap;
}

.analysis-matrix__table td:first-child {
  color: #0f3c70;
  font-weight: 700;
}

.analysis-matrix__table td:last-child {
  color: var(--text-muted-strong);
}

.analysis-matrix__fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8.5rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 72%);
}

.analysis-matrix__actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.4rem;
  margin-top: -3.15rem;
}

.analysis-matrix__button {
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: 0.78rem;
  --bs-btn-font-weight: 700;
  box-shadow: 0 12px 26px rgba(237, 28, 36, 0.18);
}

.analysis-matrix__status {
  margin: 0;
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
}

.analysis-matrix__empty-row td {
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  white-space: normal;
}

.analysis-matrix-modal__dialog {
  max-width: min(1180px, calc(100vw - 1.4rem));
}

.analysis-matrix-modal__content {
  max-height: 90vh;
  overflow: hidden;
  border: 0;
  border-radius: 1.35rem;
  box-shadow: 0 28px 70px rgba(8, 28, 52, 0.24);
}

.analysis-matrix-modal__header {
  align-items: flex-start;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(15, 60, 112, 0.08);
}

.analysis-matrix-modal__search {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.analysis-matrix-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-matrix-modal__title {
  color: #10233a;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
}

.analysis-matrix-modal__body {
  padding: 0;
  overflow: auto;
}

.analysis-matrix-modal__body .analysis-matrix__table-wrap {
  min-width: 48rem;
}

.services-scope__container {
  max-width: 1240px;
}

.services-scope__intro {
  max-width: 820px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.services-scope__description {
  margin: 1rem auto 0;
  color: var(--text-muted-strong);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}

.services-scope__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.services-scope-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
  border: 1px solid rgba(15, 60, 112, 0.12);
  box-shadow: 0 22px 46px rgba(15, 34, 58, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.services-scope-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 60, 112, 0.2);
  box-shadow: 0 28px 58px rgba(15, 34, 58, 0.2);
}

.services-scope-card__title {
  position: relative;
  margin: 0;
  color: #10233a;
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
  line-height: 1.18;
  font-weight: 700;
}

.services-scope-card__list {
  position: relative;
  display: grid;
  gap: 0.62rem;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.52;
  list-style: none;
}

.services-scope-card__list li {
  position: relative;
  padding-left: 1.1rem;
}

.services-scope-card__list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-primary);
}

.services-methods__container {
  max-width: 1240px;
}

.services-methods__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.services-methods__panel {
  min-height: 100%;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  border-radius: 1.15rem;
  background: #ffffff;
  border: 1px solid rgba(15, 60, 112, 0.12);
  box-shadow: 0 22px 46px rgba(15, 34, 58, 0.16);
}

.services-methods__title {
  margin: 0.45rem 0 0;
  color: #10233a;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
  font-weight: 700;
}

.services-methods__definitions {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0 0;
}

.services-methods__definitions div {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(15, 60, 112, 0.08);
}

.services-methods__definitions div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.services-methods__definitions dt {
  color: #0f3c70;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.services-methods__definitions dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.services-methods__equipment {
  display: grid;
  gap: 0.72rem;
  margin: 1.25rem 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  list-style: none;
}

.services-methods__equipment li {
  position: relative;
  padding-left: 1.15rem;
}

.services-methods__equipment li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-primary);
}

.legal-matrix__container {
  max-width: 1240px;
}

.legal-matrix__panel .analysis-matrix__table th:last-child,
.legal-matrix__panel .analysis-matrix__table td:last-child {
  width: 10rem;
  text-align: left;
}

.legal-matrix__panel .analysis-matrix__table th:first-child,
.legal-matrix__panel .analysis-matrix__table td:first-child,
#legalMatrixModal .analysis-matrix__table th:first-child,
#legalMatrixModal .analysis-matrix__table td:first-child {
  width: auto;
  min-width: 12rem;
  white-space: normal;
}

.analysis-matrix__table a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

.analysis-matrix__table a:hover {
  text-decoration: underline;
}

.served-sectors {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.served-sectors__container {
  max-width: 1240px;
}

.served-sectors__layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.served-sectors__intro {
  position: sticky;
  top: 7rem;
}

.served-sectors__intro .section-intro__description {
  margin-left: 0;
  margin-right: 0;
  max-width: 31rem;
}

.served-sectors__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* border-top: 1px solid rgba(15, 60, 112, 0.12); */
}

.served-sector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  /* border-bottom: 1px solid rgba(15, 60, 112, 0.12); */
}

.served-sector:nth-child(odd) {
  padding-right: 1.5rem;
  /* border-right: 1px solid rgba(15, 60, 112, 0.1); */
}

.served-sector:nth-child(even) {
  padding-left: 1.5rem;
}

.served-sector i {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(237, 28, 36, 0.08);
  color: var(--brand-primary);
  font-size: 1rem;
}

.served-sector h3 {
  margin: 0 0 0.4rem;
  color: #10233a;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.served-sector p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .served-sectors__layout {
    grid-template-columns: 1fr;
  }

  .served-sectors__intro {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .served-sectors__list {
    grid-template-columns: 1fr;
  }

  .served-sector,
  .served-sector:nth-child(odd),
  .served-sector:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

.quality-section {
  background:
    radial-gradient(circle at top right, rgba(31, 119, 222, 0.06), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.certifications-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.documents-section {
  background:
    radial-gradient(circle at top center, rgba(237, 28, 36, 0.05), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.services-page-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.services-dynamic__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.services-filter {
  --bs-btn-padding-x: 1.2rem;
  --bs-btn-padding-y: 0.8rem;
}

.services-filter.is-active {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
}

.services-dynamic__item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.services-dynamic__item.is-hidden {
  display: none;
}

.services-dynamic__container {
  width: 100%;
  max-width: none;
}

#servicios-dynamic .services-dynamic__container {
  min-height: calc(100svh - var(--navbar-height) - clamp(3.2rem, 6vh, 4.8rem));
  display: flex;
  flex-direction: column;
}

.services-dynamic__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: min(100%, 980px);
  margin: 0 auto clamp(2.2rem, 5vw, 3.6rem);
  padding: 0.45rem;
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 34, 58, 0.08);
}

#servicios-dynamic .services-dynamic__tabs {
  flex: 0 0 auto;
  margin-bottom: clamp(1rem, 2.4vh, 1.8rem);
}

.services-dynamic__tab {
  position: relative;
  flex: 1 1 160px;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f3c70;
  font: inherit;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.services-dynamic__tab::after {
  content: none;
}

.services-dynamic__tab:hover,
.services-dynamic__tab:focus-visible {
  color: var(--brand-primary);
  background: rgba(237, 28, 36, 0.07);
}

.services-dynamic__tab.is-active {
  color: #ffffff;
  background: var(--brand-primary);
  box-shadow: 0 10px 22px rgba(237, 28, 36, 0.24);
}

.services-dynamic__panel[hidden] {
  display: none;
}

#servicios-dynamic .services-dynamic__panels,
#servicios-dynamic .services-dynamic__panel,
#servicios-dynamic .services-carousel {
  min-height: 0;
}

#servicios-dynamic .services-dynamic__panels {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
}

#servicios-dynamic .services-dynamic__panel {
  flex: 1 1 auto;
  width: 100%;
}

#servicios-dynamic .services-dynamic__panel:not([hidden]) {
  display: flex;
}

.services-dynamic__panel.is-entering .services-carousel__slide {
  animation: servicesPanelReveal 0.42s ease;
}

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

.services-carousel {
  position: relative;
  width: min(100%, 86vw);
  margin: 0 auto;
}

#servicios-dynamic .services-carousel {
  height: 100%;
}

.services-carousel,
.services-carousel .carousel-inner {
  border-radius: clamp(1.8rem, 5vw, 3.5rem);
}

.services-carousel .carousel-inner {
  overflow: hidden;
}

.services-carousel .carousel-item,
.services-carousel__slide {
  border-radius: 0;
}

.services-carousel--single {
  overflow: hidden;
}

.services-carousel__slide {
  position: relative;
  min-height: clamp(23rem, 42vw, 38rem);
  display: flex;
  align-items: center;
  padding: clamp(2.2rem, 6vw, 4.2rem) clamp(2.5rem, 8vw, 5.2rem);
  overflow: hidden;
  background-image: var(--service-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#servicios-dynamic .services-carousel__slide {
  min-height: 0;
  height: 100%;
}

.services-carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #04182ca4;
  z-index: 0;
}

.services-carousel__content {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  color: #ffffff;
}

.services-carousel__title {
  margin: 0 0 0.8rem;
  /* color: var(--brand-primary); */
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
}

.services-carousel__content p,
.services-carousel__list {
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  line-height: 1.25;
}

.services-carousel__content p + p,
.services-carousel__content p + .services-carousel__list,
.services-carousel__list + p {
  margin-top: 0.65rem;
}

.services-carousel__list {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.15rem;
}

.services-carousel__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 4.5rem;
  border: 0;
  background: transparent;
  opacity: 1;
  transform: translateY(-50%);
}

.services-carousel__control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.services-carousel__control--prev {
  left: 0.2rem;
}

.services-carousel__control--next {
  right: 0.2rem;
}

@media (max-width: 767.98px) {
  #servicios-dynamic {
    max-height: calc(100svh - var(--mobile-navbar-height));
    padding: 1.2rem 0;
  }

  #servicios-dynamic .services-dynamic__container {
    min-height: calc(100svh - var(--mobile-navbar-height) - 2.4rem);
  }

  .services-dynamic__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    max-width: 24rem;
    padding: 0.45rem;
    margin-bottom: 1.8rem;
    border-radius: 1.35rem;
    box-shadow: 0 12px 28px rgba(15, 34, 58, 0.08);
  }

  #servicios-dynamic .services-dynamic__tabs {
    margin-bottom: 1rem;
  }

  .services-dynamic__tab {
    flex: none;
    min-height: 2.55rem;
    padding: 0.62rem 0.55rem;
    border-radius: 0.95rem;
    font-size: 0.86rem;
  }

  .services-dynamic__tab:last-child {
    grid-column: 1 / -1;
    width: min(100%, 12rem);
    justify-self: center;
  }

  .services-dynamic__tab.is-active {
    box-shadow: 0 8px 18px rgba(237, 28, 36, 0.18);
  }

  .services-carousel__slide {
    min-height: 33rem;
    align-items: flex-end;
    padding: 4.5rem 1.45rem 3.8rem;
  }

  #servicios-dynamic .services-carousel__slide {
    min-height: 0;
    padding: 3.2rem 1.35rem 2.4rem;
  }

  .services-carousel__content {
    width: 100%;
  }

  .services-carousel__title {
    font-size: 1.9rem;
  }

  .services-carousel__content p,
  .services-carousel__list {
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .services-carousel__control {
    width: 3rem;
  }

  .services-carousel__control-icon {
    font-size: 2rem;
  }

  .analysis-matrix__panel,
  .analysis-matrix-modal__content {
    border-radius: 1rem;
  }

  .analysis-matrix__preview {
    min-height: 20rem;
  }

  .analysis-matrix__table {
    min-width: 44rem;
    font-size: 0.88rem;
  }

  .analysis-matrix__table th,
  .analysis-matrix__table td {
    padding: 0.82rem 0.85rem;
  }

  .analysis-matrix-modal__header {
    padding: 1.15rem 1.1rem 0.9rem;
  }

  .services-scope__intro {
    text-align: left;
  }

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

  .services-scope-card {
    border-radius: 1rem;
  }

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

  .services-methods__panel {
    border-radius: 1rem;
  }

  .services-methods__definitions div {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }
}

.services-dynamic-card,
.sector-card,
.quality-panel,
.quality-highlight,
.certification-card,
.document-card,
.services-page-cta__panel {
  /* border: 1px solid rgba(15, 60, 112, 0.08); */
  border-radius: 1.7rem;
    background:
    radial-gradient(circle at top right, rgba(31, 119, 222, 0.08), transparent 24%),
    #ffffff;
  /* background: #ffffff; */
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.06);
}

.services-dynamic-card,
.sector-card,
.quality-panel,
.certification-card,
.document-card,
.services-page-cta__panel {
  height: 100%;
  padding: 1.7rem 1.5rem;
}

.services-dynamic-card__icon,
.sector-card i,
.document-card i {
  width: 3.4rem;
  height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(31, 119, 222, 0.08);
  color: #0f3c70;
  font-size: 1.2rem;
}

.services-dynamic-card__title,
.sector-card h3,
.certification-card h3,
.document-card h3 {
  margin: 0 0 0.7rem;
  color: #10233a;
  font-size: 1.25rem;
  font-weight: 700;
}

.services-dynamic-card__text,
.sector-card p,
.certification-card p,
.document-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.services-trust-strip {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(rgba(4, 24, 44, 0.683), rgba(4, 24, 44, 0.707)), url("/static/images/team/team.png");
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.services-trust-strip__container {
  position: relative;
  z-index: 1;
}

.services-trust-strip__text {
  max-width: 64rem;
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.25;
  font-weight: 700;
}

.quality-panel__copy {
  color: var(--text-muted-strong);
  line-height: 1.9;
}

.quality-highlights {
  display: grid;
  gap: 1rem;
}

.quality-highlight {
  padding: 1.15rem 1.2rem;
}

.quality-highlight strong {
  display: block;
  color: #10233a;
  font-size: 1rem;
  font-weight: 700;
}

.quality-highlight span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.certification-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.certification-card h3 {
  font-size: 2rem!important;
  color: var(--pal-navy-700);
}

.certification-card__badge {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 119, 222, 0.14), rgba(237, 28, 36, 0.12));
  color: #0f3c70;
  font-size: 1.15rem;
  font-weight: 700;
}

.document-card__button {
  margin-top: 1.2rem;
}

.services-page-cta__panel {
  text-align: center;
}

.services-page-cta__title {
  max-width: 20ch;
  margin: 0 auto;
  color: #10233a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
}

.services-page-cta__text {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.services-page-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

@media (max-width: 767.98px) {
  .services-page-intro,
  .services-dynamic,
  .services-guides,
  .served-sectors,
  .quality-section,
  .certifications-section,
  .documents-section,
  .services-page-cta {
    padding: 3.5rem 0;
  }

  .services-page-hero {
    min-height: 400px;
  }

  .services-page-cta__actions {
    flex-direction: column;
  }

  .services-page-cta__actions .btn,
  .document-card__button {
    width: 100%;
  }
}

/* =========================
   FAQ Page
   Preguntas frecuentes con acordeon y recursos
========================= */
.faq-hero {
  position: relative;
  min-height: clamp(380px, 60vh, 580px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3c70;
}

.faq-hero__media,
.faq-hero__overlay {
  position: absolute;
  inset: 0;
}

.faq-hero__media {
  background:
    linear-gradient(135deg, rgba(15, 60, 112, 0.18), rgba(31, 119, 222, 0.12)),
    url("/static/images/bg-moleculas.jpg") center/cover no-repeat;
  transform: scale(1.03);
}

.faq-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 28, 52, 0.8) 0%, rgba(15, 60, 112, 0.64) 58%, rgba(15, 60, 112, 0.48) 100%);
}

.faq-hero__container {
  position: relative;
  z-index: 1;
}

.faq-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.faq-hero__content {
  max-width: 54rem;
  color: #ffffff;
}

.faq-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-hero__title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.03;
  font-weight: 700;
}

.faq-hero__description {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.faq-intro,
.faq-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.faq-intro {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.faq-section {
  background:
    radial-gradient(circle at top right, rgba(31, 119, 222, 0.05), transparent 24%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.faq-side-card,
.faq-accordion-wrap,
.faq-documents,
.faq-document-card {
  /* border: 1px solid rgba(15, 60, 112, 0.08); */
  border-radius: 1.75rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.06);
}

.faq-side-card,
.faq-accordion-wrap,
.faq-documents {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.faq-side-card__eyebrow {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-side-card__title,
.faq-documents__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.faq-side-card__text {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-side-card__list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.faq-side-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-side-card__list i {
  color: var(--brand-primary);
  margin-top: 0.2rem;
}

.faq-side-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.faq-accordion__item {
  border: 0;
  border-bottom: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 0;
  background: transparent;
}

.faq-accordion__item:last-child {
  border-bottom: 0;
}

.faq-accordion__button {
  padding: 1.3rem 0;
  color: #10233a;
  font-size: 1.05rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.faq-accordion__button:not(.collapsed) {
  color: var(--brand-primary);
  background: transparent;
  box-shadow: none;
}

.faq-accordion__button::after {
  width: 1.1rem;
  height: 1.1rem;
  background-size: 1.1rem;
}

.faq-accordion__body {
  padding: 0 0 1.35rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.faq-documents {
  margin-top: 1.5rem;
}

.faq-document-card {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
}

.faq-document-card i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 119, 222, 0.08);
  color: #0f3c70;
  font-size: 1.1rem;
}

.faq-document-card h4 {
  margin: 0;
  color: #10233a;
  font-size: 1rem;
  font-weight: 700;
}

.faq-document-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-document-card__button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.3rem;
}

@media (max-width: 767.98px) {
  .faq-intro,
  .faq-section {
    padding: 3.5rem 0;
  }

  .faq-hero {
    min-height: 360px;
  }

  .faq-side-card__actions {
    flex-direction: column;
  }

  .faq-side-card__actions .btn,
  .faq-document-card__button {
    width: 100%;
  }

  .faq-document-card {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Contacto Page
   Pagina de contacto con vistas dinamicas
========================= */
.contact-page-hero {
  position: relative;
  min-height: clamp(380px, 60vh, 580px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f3c70;
}

.contact-page-hero__media,
.contact-page-hero__overlay {
  position: absolute;
  inset: 0;
}

.contact-page-hero__media {
  background:
    linear-gradient(135deg, rgba(15, 60, 112, 0.18), rgba(31, 119, 222, 0.12)),
    url("/static/images/bg-moleculas.jpg") center/cover no-repeat;
  transform: scale(1.03);
}

.contact-page-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 28, 52, 0.8) 0%, rgba(15, 60, 112, 0.64) 58%, rgba(15, 60, 112, 0.48) 100%);
}

.contact-page-hero__container {
  position: relative;
  z-index: 1;
}

.contact-page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.contact-page-hero__content {
  max-width: 54rem;
  color: #ffffff;
}

.contact-page-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-page-hero__title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.03;
  font-weight: 700;
}

.contact-page-hero__description {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.contact-page-intro,
.contact-page-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.contact-page-intro {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.contact-page-section {
  background:
    radial-gradient(circle at top left, rgba(237, 28, 36, 0.05), transparent 22%),
    linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.contact-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.contact-switcher__button {
  --bs-btn-padding-x: 1.2rem;
  --bs-btn-padding-y: 0.8rem;
}

.contact-switcher__button.is-active {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
}

.contact-page-view {
  display: none;
}

.contact-page-view.is-active {
  display: block;
}

.contact-page-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.budget-entry-card {
  padding: clamp(1.7rem, 3vw, 2.2rem);
  border: 1px solid rgba(15, 60, 112, 0.08);
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.06);
}

.budget-entry-card__eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.budget-entry-card__title {
  margin: 0;
  color: #10233a;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
}

.budget-entry-card__text {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.budget-entry-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.budget-entry-card__item {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(31, 119, 222, 0.04);
}

.budget-entry-card__item strong {
  display: block;
  color: #10233a;
  font-size: 0.98rem;
  font-weight: 700;
}

.budget-entry-card__item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.budget-entry-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

@media (max-width: 991.98px) {
  .budget-entry-card__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .contact-page-intro,
  .contact-page-section {
    padding: 3.5rem 0;
  }

  .contact-page-hero {
    min-height: 360px;
  }

  .contact-page-map__actions,
  .budget-entry-card__actions {
    flex-direction: column;
  }

  .contact-page-map__actions .btn,
  .budget-entry-card__actions .btn {
    width: 100%;
  }
}

/* =========================
   Footer
   Cierre institucional del sitio
========================= */

.praxis-footer {
  position: relative;
  overflow: hidden;
  /* margin-top: 5rem; */
  color: var(--footer-text);
  background:
    radial-gradient(circle at top left, rgba(31, 119, 222, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(237, 28, 36, 0.16), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #111827 48%, #151d30 100%);
}

.praxis-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.praxis-footer__container {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 3vw, 3rem) 1.5rem;
}

.praxis-footer__brand-block,
.praxis-footer__column {
  height: 100%;
}

.praxis-footer__brand {
  display: inline-flex;
}

.praxis-footer__brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.praxis-footer__logo {
  height: clamp(50px, 4.5vw, 78px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.praxis-footer__certification {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 1rem;
  /* background: rgba(255, 255, 255, 0.08); */
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.praxis-footer__certification:hover,
.praxis-footer__certification:focus {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.praxis-footer__certification-logo {
  width: auto;
  height: clamp(58px, 5vw, 84px);
  object-fit: contain;
  border-radius: 0.75rem;
}

.praxis-footer__text {
  max-width: 32rem;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.praxis-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.praxis-footer__button {
  min-width: 170px;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-weight: 600;
}

.praxis-footer__button--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.praxis-footer__button--ghost:hover,
.praxis-footer__button--ghost:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.praxis-footer__title {
  margin-bottom: 1rem;
  color: var(--footer-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.praxis-footer__links,
.praxis-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.praxis-footer__links li,
.praxis-footer__contact li {
  margin-bottom: 0.9rem;
}

.praxis-footer__links a,
.praxis-footer__bottom-links a,
.praxis-footer__contact a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.praxis-footer__links a:hover,
.praxis-footer__links a:focus,
.praxis-footer__bottom-links a:hover,
.praxis-footer__bottom-links a:focus,
.praxis-footer__contact a:hover,
.praxis-footer__contact a:focus {
  color: #ffffff;
}

.praxis-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.6;
}

.praxis-footer__contact i {
  color: var(--brand-primary);
  font-size: 1rem;
  margin-top: 0.18rem;
}

.praxis-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.praxis-footer__legal {
  margin: 0;
  font-size: 0.92rem;
}

.praxis-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 991.98px) {
  .praxis-footer {
    margin-top: 4rem;
  }

  .praxis-footer__container {
    padding-bottom: 1.35rem;
  }

  .praxis-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .praxis-footer__actions {
    flex-direction: column;
  }

  .praxis-footer__button {
    width: 100%;
  }

  .praxis-footer__bottom-links {
    flex-direction: column;
    gap: 0.7rem;
  }
}

/* Post Share Widget */
.post-share-widget {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 0.6rem;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.post-share-widget__header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.post-share-widget__title {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-share-widget__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.post-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.post-share-button:hover,
.post-share-button:focus {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  background-color: var(--bs-primary-bg-subtle);
  color: var(--brand-primary);
}

.post-share-button--facebook:hover,
.post-share-button--facebook:focus {
  border-color: #1877f2;
  background-color: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.post-share-button--twitter:hover,
.post-share-button--twitter:focus {
  border-color: #000000;
  background-color: rgba(0, 0, 0, 0.08);
  color: #000000;
}

.post-share-button--instagram i {
  color: currentColor;
}

.post-share-button--instagram:hover,
.post-share-button--instagram:focus {
  border-color: rgba(221, 42, 123, 0.28);
  background-color: rgba(221, 42, 123, 0.07);
  color: #dd2a7b;
}

.post-share-button--instagram:hover i,
.post-share-button--instagram:focus i {
  background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 72%, #515bd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.post-share-button--whatsapp:hover,
.post-share-button--whatsapp:focus {
  border-color: #25d366;
  background-color: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.post-share-button--email:hover,
.post-share-button--email:focus {
  border-color: var(--brand-secondary);
  background-color: var(--bs-secondary-bg-subtle);
  color: var(--brand-secondary);
}

.post-share-button--copy:hover,
.post-share-button--copy:focus {
  border-color: var(--brand-primary);
  background-color: var(--bs-primary-bg-subtle);
  color: var(--brand-primary);
}

@media (max-width: 991.98px) {
  .post-share-widget {
    position: static;
    top: auto;
  }
}

.post-detail-card__title {
  margin: 0 0 0.5rem;
  color: var(--text-dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.post-detail-card__subtitle {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.post-detail-card__meta {
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-soft-strong);
  font-size: 0.9rem;
}



/*PUBLICACIONES */


.posts-search-section {
    background: #ffffff;
    padding: 2rem 0;
    /* border-bottom: 1px solid var(--surface-border); */
}

.posts-search-form {
    /* background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, #ffffff 100%); */
    padding: 2rem;
    border-radius: 0.8rem;
    /* border: 1px solid var(--surface-border); */
}

.posts-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.posts-search-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.posts-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #ffffff;
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    padding: 0 0.8rem;
    transition: all 0.2s ease;
}

.posts-search-input-wrapper:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--bs-primary-bg-subtle);
}

.posts-search-input-wrapper i {
    color: var(--text-soft-strong);
    font-size: 1rem;
}

.posts-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 0;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.posts-search-input::placeholder {
    color: #b3b3b3;
}

.posts-search-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--surface-border);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.posts-search-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--bs-primary-bg-subtle);
}

.post-card__date {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-soft-strong);
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .posts-search-form {
        padding: 1.5rem;
    }
}
