/* =========================================================
  Farmandina - brand.css
   - Sin degradados (brandbook)
   - Prioriza Amarillo (Pantone 1235 C aprox #FFC72C)
   - Azul 2748C aprox #001A72 como acento
   - Nav corporativo 100% responsivo (1 lÃ­nea en desktop)
   - MenÃº mÃ³vil (hamburguesa) activado desde 1150px
   ========================================================= */

/* -------------------------
   1. TOKENS / VARIABLES
-------------------------- */
:root {
  /* Brand */
  --ls-blue: #001A72;
  --ls-yellow: #FFC72C;

  /* Backward-compat aliases */
  --brand-blue: var(--ls-blue);
  --brand-yellow: var(--ls-yellow);

  /* Neutrals */
  --text: #0B1220;
  --muted: #475467;
  --muted-2: var(--muted);
  --surface-1: #ffffff;
  --surface-2: #F7F8FB;
  --border: #E5E7EB;

  /* Focus & Fills (NO gradients) */
  --focus: #FFC72C;
  --yellow-soft: rgba(255, 199, 44, 0.22);
  --yellow-soft-2: rgba(255, 199, 44, 0.12);
  --blue-soft: rgba(0, 26, 114, 0.08);

  /* Shadows */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 16px 40px rgba(2, 6, 23, 0.10);

  /* Radius */
  --r-12: 12px;
  --r-14: 14px;
  --r-16: 16px;
  --r-20: 20px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
}

/* -------------------------
   2. FONTS
-------------------------- */
/* -------------------------
   3. RESET / BASE
-------------------------- */
* {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Nexa, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface-1);
  line-height: 1.5;
}

a {
  color: var(--ls-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

/* -------------------------
   4. UTILITIES & ACCESSIBILITY
-------------------------- */
.hide-visually,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  background: #fff;
  border: 2px solid var(--focus);
  padding: .5rem 1rem;
  z-index: 1000;
}

.m0 {
  margin: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 12px;
}

.mt-3 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 24px;
}

.center {
  text-align: center;
}

.round {
  border-radius: var(--r-16);
}

.muted {
  opacity: .78;
}

.no-scroll {
  overflow: hidden;
}

/* -------------------------
   5. BUTTONS
-------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .7rem 1rem;
  border-radius: var(--r-14);
  border: 2px solid transparent;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn.primary {
  background: var(--ls-yellow);
  color: #111;
}

.btn.primary:hover {
  background: #F2BE25;
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--ls-blue);
  color: #fff;
}

.btn.secondary:hover {
  background: #001b86;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--ls-blue);
  border-color: rgba(255, 199, 44, 0.85);
}

.btn.ghost:hover {
  background: var(--yellow-soft-2);
  border-color: rgba(255, 199, 44, 1);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.45);
}

/* -------------------------
   7. HERO / BANNERS
-------------------------- */
.hero-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 44vh, 520px);
  display: grid;
  align-items: center;
  padding: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 114, 0.45);
}

.hero-img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 114, 0.28) 0%, rgba(0, 26, 114, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 52px) 16px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ls-blue);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  max-width: 720px;
}

.hero-sub {
  margin: 20px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-ctas .btn {
  min-width: 170px;
}

@media (max-width: 720px) {
  .hero-kicker {
    font-size: 0.78rem;
    padding: 9px 14px;
  }

  .hero-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-sub {
    font-size: 1rem;
  }
}

.brand img {
  width: 140px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.brand b {
  font-size: 1.12rem;
  color: var(--ls-blue);
  letter-spacing: .2px;
}

.tagline {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: -2px;
}


/* -------------------------
-------------------------- */
.hero.hero--euro {
  padding: 0;
  background: var(--surface-1);
}

.hero-stage,
.hero--euro .hero-media {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 44vh, 520px);
  border-radius: 18px;
  border-bottom: 1px solid var(--border);
}

.hero-stage {
  width: 100%;
  max-width: 100%;
}

.hero-slide {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.hero-slides,
.hero-slide {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .35s ease, transform .6s ease;
  background-image: var(--hero-bg);
  background-size: contain;
  background-position: center right;
}

/* Overlays (Brandbook: Sin degradados) */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 199, 44, 0.18);
  pointer-events: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 114, 0.38);
  pointer-events: none;
  clip-path: polygon(0 0, 52% 0, 42% 100%, 0 100%);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  height: 100%;
  padding: clamp(28px, 4vw, 48px) 0;
}

.hero-copy {
  max-width: 560px;
  color: #fff;
}

.hero-copy .badge {
  display: inline-block;
  margin-bottom: 10px;
  background: rgba(255, 199, 44, 0.95);
  color: #111;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: var(--r-pill);
}

.hero-copy h1 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px;
  font-size: clamp(14px, 1.4vw, 18px);
}

/* Controles Hero */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: var(--r-14);
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 26, 114, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(255, 199, 44, 0.85);
  color: #111;
  border-color: rgba(255, 199, 44, 1);
}

.hero-prev {
  left: 14px;
}

.hero-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 199, 44, 0.28);
  border: 2px solid rgba(255, 199, 44, 0.9);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(0, 26, 114, 0.30);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--ls-yellow);
  border-color: var(--ls-blue);
}

@media (max-width: 980px) {
  .hero-slide::after {
    clip-path: polygon(0 0, 70% 0, 60% 100%, 0 100%);
  }
}

/* -------------------------
   9. SECTIONS, GRID & CARDS
-------------------------- */
.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  text-transform: uppercase;
  color: #001A72;
  background: rgba(255, 199, 44, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 199, 44, 0.4);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: .78rem;
  line-height: 1;
}

.card .kicker,
.section-header .kicker,
.hero-text .kicker {
  background: rgba(255, 199, 44, 0.2);
  color: #001A72;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 2rem);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-3.home-program-cards {
  grid-template-columns: repeat(2, minmax(0, 464px));
  justify-content: center;
}

.home-program-cards > .card {
  width: min(100%, 464px);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.cols-3.home-program-cards {
    grid-template-columns: repeat(2, minmax(0, 464px));
  }
}

@media (max-width: 520px) {

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .grid.cols-3.home-program-cards {
    grid-template-columns: minmax(0, 464px);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  overflow: clip;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 199, 44, 0.65);
  box-shadow: 0 14px 26px rgba(255, 199, 44, 0.22);
}

.card .p {
  padding: 16px;
  text-align: center;
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 199, 44, 0.22);
  border: 1px solid rgba(255, 199, 44, 0.35);
  display: grid;
  place-items: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.card .icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.card .icon svg {
  width: 28px;
  height: 28px;
  color: var(--ls-yellow);
}

/* -------------------------
   10. FORMS, MODALS & POSTS
-------------------------- */
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, .12);
  border-radius: 12px;
  padding: .75rem .9rem;
  background: #fff;
  font: inherit;
}

.textarea {
  resize: vertical;
}

.jobs-filters,
.news-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.jobs-filters .input,
.news-filters .input {
  min-width: 240px;
}

.jobs-filters .select,
.news-filters .select {
  min-width: 200px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: var(--r-pill);
  font-size: .85rem;
  border: 1px solid rgba(16, 24, 40, .12);
  background: rgba(255, 199, 44, .10);
  margin-right: 6px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.modal__panel {
  position: relative;
  width: min(760px, calc(100% - 24px));
  margin: 42px auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.modal__panel--wide {
  width: min(980px, calc(100% - 24px));
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 0 18px;
}

.modal__body {
  padding: 14px 18px 18px 18px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field small {
  display: block;
  margin-top: 6px;
}

.span-2 {
  grid-column: 1 / -1;
}

.notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, .12);
  background: rgba(16, 24, 40, .04);
}

.notice.ok {
  border-color: rgba(18, 183, 106, .35);
  background: rgba(18, 183, 106, .10);
}

/* Posts & Jobs */
.post-card {
  padding: 0;
}

.post-card__btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.post-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  opacity: .85;
}

.post-meta .dot {
  opacity: .6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(16, 24, 40, .12);
  font-size: .85rem;
  background: #fff;
}

.post-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, .10);
}

.prose p,
.prose li {
  line-height: 1.6;
}

.prose h4 {
  margin-top: 1rem;
}

.job-card__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.job-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.job-detail .sep {
  border: 0;
  border-top: 1px solid rgba(16, 24, 40, .10);
  margin: 14px 0;
}



/* -------------------------
   12. GLOBAL MOBILE TYPOGRAPHY & SPACING OVERRIDES (Max 520px)
-------------------------- */
@media (max-width: 520px) {
  body {
    font-size: 15px;
    line-height: 1.45;
  }

  .container {
    padding-inline: 14px;
  }

  .header .nav {
    padding: 10px 0;
  }

  .brand img {
    width: 132px;
    max-height: 44px;
  }

  .hero-stage,
  .hero--euro .hero-media {
    height: clamp(220px, 56vw, 360px);
    min-height: 220px;
    border-radius: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(1.25rem, 4.8vw, 1.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero-copy .lead {
    font-size: 0.95rem;
    max-width: 38ch;
  }

  .badge {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .section {
    padding: 28px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section h2 {
    font-size: 1.25rem;
  }

  .card .p {
    padding: 14px;
    text-align: center;
  }

  .card .icon {
    margin-inline: auto;
  }

  .card strong {
    font-size: 0.98rem;
  }

  .card strong.card-title {
    display: block;
    font-size: 1.2rem;
  }

  .card .mt-1 {
    margin-top: 6px;
  }



  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .modal__panel {
    margin: 18px auto;
  }
}

@media (max-width: 700px) {

  .jobs-filters,
  .news-filters {
    justify-content: flex-start;
  }

  .jobs-filters .input,
  .news-filters .input,
  .jobs-filters .select,
  .news-filters .select {
    min-width: 100%;
  }
}




/* ============================
   SOMOS â€” Timeline y Chips (full implementation)
   Pegar al final de assets/css/brand.css
   ============================ */

/* variables fallback (si ya existen en brand.css no hacen nada) */
:root {
  --ls-yellow: #E5A823;
  --ls-blue: #0B1220;
  --container: 1180px;
  --border: rgba(2, 6, 23, 0.06);
  --text: rgba(11, 18, 32, 0.92);
}

/* ---------- CHIPS / BADGES ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 199, 44, 0.12);
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid rgba(255, 199, 44, 0.18);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.03);
}

.chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ls-yellow);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) inset;
}

/* ---------- TIMELINE (full-width band) ---------- */
.timeline-section {
  width: 100%;
  padding: 28px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.timeline-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
  position: relative;
}

/* Mobile: vertical timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 8px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.timeline-item .bullet {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--ls-yellow);
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  transform: translateX(-44px);
  flex-shrink: 0;
}

.timeline-item .meta {
  max-width: 100%;
}

.timeline-item h4 {
  margin: 0 0 6px 0;
  color: var(--ls-blue);
  font-weight: 800;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 0;
  color: rgba(11, 18, 32, 0.88);
  line-height: 1.45;
}

/* Card look inside timeline */
.timeline .card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.03);
}

/* ---------- DESKTOP: horizontal scroll with snap ---------- */
@media (min-width: 900px) {
  .timeline {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 24px 8px;
  }

  .timeline::-webkit-scrollbar {
    height: 10px;
  }

  .timeline::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
  }

  .timeline {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
  }

  .timeline-item {
    flex: 0 0 320px;
    scroll-snap-align: center;
    display: block;
    text-align: left;
  }

  .timeline-item .bullet {
    margin: 0 auto 12px auto;
    transform: none;
    display: block;
  }

  .timeline-inner::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 46px;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 0;
    border-radius: 2px;
  }

  .timeline .card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Navigation arrows (desktop) */
.timeline-nav {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 12;
}

.timeline-prev {
  left: 8px;
}

.timeline-next {
  right: 8px;
}

@media (max-width: 900px) {
  .timeline-nav {
    display: none;
  }
}

/* Small screens tweaks */
@media (max-width: 520px) {
  .chip {
    font-size: .88rem;
    padding: 6px 10px;
  }

  .timeline {
    gap: 14px;
    padding-left: 44px;
  }

  .timeline::before {
    left: 28px;
  }

  .timeline-item .bullet {
    width: 16px;
    height: 16px;
    transform: translateX(-40px);
  }

  .timeline-item h4 {
    font-size: 1rem;
  }
}

/* Micro polish */
.section .section-header {
  margin-bottom: 18px;
}

.section .grid.cols-3 {
  gap: 18px;
}

.card .p h3 {
  margin-bottom: 10px;
}

/* Optional: visible animation class (used by IntersectionObserver) */
.timeline-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .48s ease, transform .48s ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO institucional y Ã©nfasis amarillo para Somos */
:root {
  --ls-yellow: #E5A823;
  --ls-yellow-strong: #f2b81a;
  --ls-blue: #0B1220;
  --ls-muted: rgba(11, 18, 32, 0.08);
}

/* HERO band */
.hero-hero {
  position: relative;
  width: 100%;
  padding: 48px 0;
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  filter: saturate(.95) contrast(.98);
}

/* overlay con amarillo suave para calentar la imagen */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(229, 168, 35, 0.18) 0%, rgba(11, 18, 32, 0.12) 60%);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* contenido encima del hero */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 16px;
  max-width: min(760px, 100%);
  margin-inline: auto;
  margin-left: auto;
  margin-right: 1.5rem;
  color: var(--ls-blue);
  text-align: right;
}

.hero-kicker {
  font-weight: 700;
  color: var(--ls-yellow-strong);
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  margin: 0 0 10px 0;
  color: var(--ls-blue);
  line-height: 1.08;
}

.hero-sub {
  margin: 0 0 18px 0;
  color: rgba(11, 18, 32, 0.86);
  max-width: 720px;
}

/* CTAs: primary amarillo */
.hero-ctas .btn.primary {
  background: linear-gradient(180deg, var(--ls-yellow) 0%, var(--ls-yellow-strong) 100%);
  color: #0b1220;
  border: none;
  box-shadow: 0 8px 20px rgba(229, 168, 35, 0.12);
}

.hero-ctas .btn.ghost {
  background: transparent;
  color: var(--ls-blue);
  border: 1px solid rgba(11, 18, 32, 0.06);
  margin-left: 10px;
}

/* Ajustes responsive */
@media (max-width: 900px) {
  .hero-hero {
    padding: 36px 0;
  }

  .hero-content {
    padding: 28px 12px;
    text-align: left;
    margin-inline: auto;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(229, 168, 35, 0.18), rgba(229, 168, 35, 0.06));
  }
}

/* Priorizar amarillo en timeline y chips (refuerzo visual) */
.timeline-item .bullet {
  background: linear-gradient(180deg, var(--ls-yellow) 0%, var(--ls-yellow-strong) 100%);
  box-shadow: 0 10px 26px rgba(229, 168, 35, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.chip {
  background: linear-gradient(180deg, rgba(255, 199, 44, 0.14), rgba(255, 199, 44, 0.08));
  border: 1px solid rgba(229, 168, 35, 0.22);
  color: var(--ls-blue);
  box-shadow: 0 8px 20px rgba(229, 168, 35, 0.06);
}

/* Resaltar tÃ­tulos de hitos con amarillo en el borde izquierdo */
.timeline-item .meta h4 {
  position: relative;
  padding-left: 12px;
}

.timeline-item .meta h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: calc(100% - 12px);
  background: linear-gradient(180deg, var(--ls-yellow) 0%, var(--ls-yellow-strong) 100%);
  border-radius: 2px;
  opacity: 0.95;
}

/* CTA pequeÃ±o dentro de cada card (opcional) */
.timeline .card .card-cta {
  margin-top: 12px;
}

.timeline .card .card-cta .btn {
  background: transparent;
  border: 1px solid rgba(11, 18, 32, 0.06);
  color: var(--ls-blue);
}

.timeline .card .card-cta .btn.primary {
  background: var(--ls-yellow);
  color: #0b1220;
  border: none;
}

/* Asegura contraste en texto sobre overlay */
.hero-content,
.hero-content a {
  color: var(--ls-blue);
}

/* Lazyload helper (si usas JS) */
.lazy {
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
  transform: scale(1.01);
}

.lazy.is-loaded {
  opacity: 1;
  transform: none;
}

/* HERO overlay variants (light / dark) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background .36s ease;
}

/* ligera capa blanca translÃºcida para suavizar imagen */
.hero-overlay-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.18) 60%);
}

/* capa oscura para mÃ¡ximo contraste del texto */
.hero-overlay-dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.22) 60%);
}

/* combinaciÃ³n amarilla sutil para calentar la imagen (opcional) */
.hero-overlay-warm {
  background: linear-gradient(90deg, rgba(229, 168, 35, 0.18) 0%, rgba(0, 0, 0, 0.08) 60%);
}

/* Asegura que el contenido del hero estÃ© por encima */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Efecto Parallax aplicar en secciÃ³n Hero Banner Somos */
/* HERO: parallax seguro y sin franja gris */
.hero-hero {
  position: relative;
  overflow: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* asegura que el media cubra siempre el Ã¡rea del hero */
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
}

/* imagen/video: cubrir y permitir movimiento vertical sin exponer fondo */
.hero-media .hero-img,
.hero-media .hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: auto;
  height: 140%;
  /* mayor que 100% para permitir parallax sin huecos */
  min-width: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 220ms linear;
  backface-visibility: hidden;
}

/* overlay variantes (mantener) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background .36s ease;
}

.hero-overlay-dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.22) 60%);
}

.hero-overlay-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.18) 60%);
}

/* contenido encima del hero */
.hero-content {
  position: relative;
  z-index: 2;
}

/* evita que el header se superponga visualmente al hero al hacer scroll */
#site-header {
  position: relative;
  z-index: 3;
}

/* micro-ajustes responsive */
@media (max-width: 900px) {

  .hero-media .hero-img,
  .hero-media .hero-video {
    height: 120%;
  }
}

/* Overlay suave y variantes */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background .36s ease, opacity .36s ease;
}

/* AtenuaciÃ³n ligera por defecto (oscurece sin eliminar calidez) */
.hero-overlay--soft-dark {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.18) 40%,
      rgba(229, 168, 35, 0.06) 100%);
  opacity: 1;
}

/* Variante mÃ¡s cÃ¡lida si quieres enfatizar amarillo */
.hero-overlay--warm {
  background: linear-gradient(90deg,
      rgba(229, 168, 35, 0.18) 0%,
      rgba(0, 0, 0, 0.14) 60%);
}

/* Refuerzo visual del kicker amarillo */
.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  /* ligera base para separar del fondo */
  color: var(--ls-yellow);
  font-weight: 800;
  letter-spacing: .6px;
  text-shadow: 0 2px 8px rgba(11, 18, 32, 0.18);
  backdrop-filter: blur(4px);
  /* sutil, opcional */
}

/* TÃ­tulo y subtÃ­tulo con sombra para legibilidad */
.hero-title {
  color: var(--ls-blue);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero-sub {
  color: rgba(11, 18, 32, 0.92);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Badge amarillo detrÃ¡s del kicker si necesitas mÃ¡s contraste */
.hero-kicker--badge {
  background: linear-gradient(180deg, rgba(255, 199, 44, 0.98), rgba(229, 168, 35, 0.98));
  color: #0b1220;
  box-shadow: 0 8px 20px rgba(229, 168, 35, 0.12);
}

/* Alternativa accesible: caja semitransparente detrÃ¡s del texto */
.hero-content .text-bg {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  /* usar solo si overlay no es suficiente */
  color: var(--ls-blue);
}

/* Ajustes para asegurar contraste en mobile */
@media (max-width: 520px) {
  .hero-kicker {
    padding: 5px 10px;
    font-size: .9rem;
  }

  .hero-title {
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
}

/* HERO: overlay, kicker y parallax-safe styles */
:root {
  --ls-yellow: #E5A823;
  --ls-yellow-strong: #f2b81a;
  --ls-blue: #0B1220;
  --container: 1180px;
  --border: rgba(2, 6, 23, 0.06);
  --text: rgba(11, 18, 32, 0.92);
}

/* contenedor hero */
.hero-hero {
  position: relative;
  overflow: visible;
  padding: 48px 0;
}

/* media: imagen/video absoluta que siempre cubre el Ã¡rea */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}

/* imagen centrada y con extra de altura para parallax sin huecos */
.hero-media .hero-img,
.hero-media .hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: auto;
  height: 140%;
  min-width: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 220ms linear;
  backface-visibility: hidden;
}

/* overlay variantes */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background .36s ease, opacity .36s ease;
}

/* atenuaciÃ³n suave (recomendada) */
.hero-overlay--soft-dark {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.20) 40%,
      rgba(229, 168, 35, 0.06) 100%);
}

/* alternativa cÃ¡lida (opcional) */
/* .hero-overlay--warm { background: linear-gradient(90deg, rgba(229,168,35,0.18) 0%, rgba(0,0,0,0.12) 60%); } */

/* contenido por encima */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 16px;
  max-width: var(--container);
  margin-inline: auto;
  color: var(--ls-blue);
}

/* kicker amarillo destacado */
.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ls-yellow);
  font-weight: 800;
  letter-spacing: .6px;
  text-shadow: 0 2px 8px rgba(11, 18, 32, 0.18);
  margin-bottom: 10px;
}

/* variante badge (fondo amarillo para mÃ¡xima visibilidad) */
.hero-kicker--badge {
  background: linear-gradient(180deg, rgba(255, 199, 44, 0.98), rgba(229, 168, 35, 0.98));
  color: #0b1220;
  box-shadow: 0 8px 20px rgba(229, 168, 35, 0.12);
}

/* tÃ­tulo y subtÃ­tulo con sombra para legibilidad */
.hero-title {
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  margin: 0 0 10px 0;
  color: var(--ls-blue);
  line-height: 1.08;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero-sub {
  margin: 0 0 18px 0;
  color: rgba(11, 18, 32, 0.86);
  max-width: 720px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* evita que el header quede debajo del hero */
#site-header {
  position: relative;
  z-index: 3;
}

/* responsive */
@media (max-width: 900px) {
  .hero-hero {
    padding: 36px 0;
  }

  .hero-content {
    padding: 28px 12px;
  }

  .hero-media .hero-img,
  .hero-media .hero-video {
    height: 120%;
  }

  .hero-kicker {
    padding: 5px 10px;
    font-size: .95rem;
  }
}

.hero-hero {
  min-height: clamp(280px, 34vh, 360px);
  padding: 28px 0;
}

.hero-hero .hero-content {
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: 1.5rem;
  text-align: right;
}

@media (max-width: 900px) {
  .hero-hero .hero-content {
    margin-inline: auto;
    text-align: left;
  }
}

.hero-media.hero-media--gradient {
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.94) 0%, rgba(14, 52, 96, 0.84) 45%, rgba(229, 168, 35, 0.18) 100%);
}

.hero-media.hero-media--gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 199, 44, 0.18), transparent 42%), radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-hero--with-image .hero-media.hero-media--gradient {
  background: none;
}

.hero-hero--with-image .hero-media .hero-img {
  display: block;
}

/* Para agregar una imagen a un banner interior, usa la clase "hero-hero--with-image" en el <section> y deja el <img> dentro de .hero-media. */

/* ============================================================
   PORTAFOLIO â€” CategorÃ­as, Productos, MolÃ©culas, CatÃ¡logo
   ============================================================ */

/* Grid general */
.categories-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ============================
   CATEGORY CARD
   ============================ */
.category-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

.category-card .cat-media {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.category-card .cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h4 {
  margin: 12px 16px 4px;
  font-size: 1.1rem;
  color: var(--ls-blue);
}

.category-card .cat-meta {
  margin: 0 16px 12px;
  color: rgba(11, 18, 32, 0.65);
  font-size: .95rem;
}

.category-card .link {
  display: block;
  margin: 0 16px 16px;
  color: var(--ls-yellow);
  font-weight: 600;
  font-size: .95rem;
}

/* ============================
   PRODUCT CARD
   ============================ */
.product-card {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fafafa;
  padding: 16px;
}

.product-card .p {
  padding: 16px;
}

.product-card strong {
  font-size: 1.05rem;
  color: var(--ls-blue);
}

.product-card .muted {
  color: rgba(11, 18, 32, 0.6);
  margin-top: 4px;
}

/* ============================
   MOLECULE TABLE
   ============================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 12px;
  margin-top: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.table thead th {
  background: rgba(11, 18, 32, 0.04);
  font-weight: 700;
  color: var(--ls-blue);
}

/* ============================
   CTA CARD (CatÃ¡logo)
   ============================ */
.cta-card {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-card h3 {
  margin: 0;
  color: var(--ls-blue);
}

.cta-card p {
  margin: 0;
  color: rgba(11, 18, 32, 0.7);
}

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-header .kicker {
  color: var(--ls-blue);
  font-weight: 700;
  letter-spacing: .6px;
}

.section-header h2 {
  margin: 4px 0 0;
  color: var(--ls-blue);
}

.section-header .lead {
  color: rgba(11, 18, 32, 0.7);
  max-width: 420px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ============================
   Categoria: layout y estilos
   ============================ */

.category-hero {
  padding: 28px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 1));
  border-bottom: 1px solid rgba(2, 6, 23, 0.03);
}

.breadcrumb {
  font-size: .95rem;
  color: rgba(11, 18, 32, 0.6);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: rgba(11, 18, 32, 0.7);
  text-decoration: none;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hero-text .kicker {
  color: var(--ls-yellow);
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-text h1 {
  margin: 0;
  color: var(--ls-blue);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.hero-text .muted {
  color: rgba(11, 18, 32, 0.7);
  margin-top: 8px;
}

.layout-columns {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.filters {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  padding: 16px;
  border-radius: 12px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.filter-block {
  margin-bottom: 12px;
}

.label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ls-blue);
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  background: #fff;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.results-header .muted {
  color: rgba(11, 18, 32, 0.6);
}

#products-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.06);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fafafa;
  padding: 12px;
}

.product-card .p {
  padding: 12px;
}

.product-card strong {
  color: var(--ls-blue);
  display: block;
  margin-bottom: 6px;
}

.product-card .muted {
  color: rgba(11, 18, 32, 0.6);
  font-size: .95rem;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.pagination button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  background: #fff;
  cursor: pointer;
}

.pagination button[aria-current="true"] {
  background: var(--ls-yellow);
  border-color: var(--ls-yellow);
  color: #0b1220;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
}

.modal-panel {
  position: relative;
  width: min(920px, 96%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.18);
  z-index: 2;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .layout-columns {
    grid-template-columns: 1fr;
  }

  .filters {
    position: relative;
    top: auto;
  }

  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* Noticias administrables */
.news-card {
  background:#fff;
  border:1px solid rgba(2,6,23,0.06);
  border-radius:12px;
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease;
  display:flex;
  flex-direction:column;
}
.news-card:hover { transform:translateY(-6px); box-shadow:0 18px 40px rgba(2,6,23,0.06); }
.news-card img { width:100%; height:180px; object-fit:cover; background:#fafafa; }
.news-card .p { padding:14px; display:flex; flex-direction:column; gap:8px; flex:1; }
.news-card h4 { margin:0; font-size:1.05rem; color:var(--ls-blue); }
.news-card .meta { font-size:.9rem; color:rgba(11,18,32,0.6); }
.news-card .excerpt { color:rgba(11,18,32,0.75); font-size:.95rem; margin-top:6px; flex:1; }

.chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.chip { background:rgba(2,6,23,0.06); padding:6px 10px; border-radius:999px; font-size:.85rem; color:var(--ls-blue); }

.post-cover { width:100%; max-height:420px; object-fit:cover; border-radius:8px; }

.modal.open { display:flex; align-items:center; justify-content:center; }
.modal { display:none; position:fixed; inset:0; z-index:9999; }
.modal__backdrop { position:absolute; inset:0; background:rgba(2,6,23,0.45); }
.modal__panel { position:relative; width:min(980px,96%); max-height:92vh; overflow:auto; background:#fff; border-radius:12px; padding:18px; z-index:2; box-shadow:0 30px 80px rgba(2,6,23,0.18); }
.modal__panel--wide { width:min(1100px,96%); }
.modal__header { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.modal__body { margin-top:12px; }
.notice.ok { background: #e6f9ef; border:1px solid #bfead0; padding:10px; border-radius:8px; color:#0b6b3a; }
@media (max-width:900px) {
  .grid.cols-3 { grid-template-columns: 1fr; gap:14px; }
  .news-filters { display:flex; gap:8px; flex-direction:column; width:100%; }
}

/* ============================
   CONTACTO
   ============================ */
.contact-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,0.06);
  background: #fff;
}

.contact-card .p {
  margin-bottom: 16px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notice.ok {
  background: #e6f9ef;
  border: 1px solid #bfead0;
  padding: 12px;
  border-radius: 8px;
  color: #0b6b3a;
}

.notice.error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  padding: 12px;
  border-radius: 8px;
  color: #a12622;
}

.small {
  font-size: 0.9rem;
  color: var(--muted-2);
}

@media (max-width: 800px) {
  .contact-card {
    padding: 16px;
  }
}

/* =========================================================
   PATCH UX/UI â€” HERO + FOOTER
   Pegar al FINAL de brand.css
   ========================================================= */

/* ---------------------------------------------------------
   0) NORMALIZAR TOKENS
   IMPORTANTE: si tienes un :root duplicado mÃ¡s abajo,
   bÃ³rralo o dÃ©jalo con estos mismos valores.
---------------------------------------------------------- */
:root {
  --ls-blue: #001A72;
  --ls-blue-2: #0B1F5E;
  --ls-yellow: #FFC72C;
  --ls-yellow-2: #F0B323;
  --ls-yellow-3: #E2A11B;
  --footer-yellow-start: #FFC72C;
  --footer-yellow-mid: #F3B72A;
  --footer-yellow-end: #E5A823;
  --text-dark: #0B1220;
  --white-soft: rgba(255,255,255,0.86);
}

/* ---------------------------------------------------------
   1) HERO / BANNERS
   Objetivo:
   - evitar cortes agresivos
   - mejorar legibilidad
   - mantener look premium
---------------------------------------------------------- */

.hero.hero--euro {
  padding: 0 0 16px;
  background: #fff;
}

.hero-stage,
.hero--euro .hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: clamp(280px, 38vw, 560px);
  aspect-ratio: 16 / 5.2;
  border-radius: 0 0 24px 24px;
  border-bottom: 0;
  background: #EEF2FB;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

.hero-slides,
.hero-slide {
  height: 100%;
}

.hero-slides {
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition: opacity .35s ease, transform .45s ease;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Si usas <img> dentro del slide, tambiÃ©n queda cubierto */
.hero-slide img,
.hero-slide picture,
.hero-slide .hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

/* Overlays mÃ¡s sutiles para no â€œensuciarâ€ el arte del banner */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.03) 26%,
      rgba(255,255,255,0) 42%
    );
  pointer-events: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 26, 114, 0.16) 0%,
      rgba(0, 26, 114, 0.08) 30%,
      rgba(0, 26, 114, 0.00) 60%
    );
  pointer-events: none;
  clip-path: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  height: 100%;
  padding: clamp(24px, 3.5vw, 42px);
}

.hero-copy {
  max-width: min(45%, 580px);
  color: #fff;
}

.hero-copy .badge {
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(255, 199, 44, 0.96);
  color: #111;
  font-weight: 900;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 199, 44, 0.18);
}

.hero-copy h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-copy .lead {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.94);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Controles */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(0, 26, 114, 0.58);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  backdrop-filter: blur(6px);
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(255, 199, 44, 0.92);
  color: #111;
  border-color: rgba(255, 199, 44, 1);
}

.hero-prev { left: 14px; }
.hero-next { right: 14px; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(0, 26, 114, 0.26);
  background: rgba(255,255,255,0.88);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--ls-yellow);
  border-color: var(--ls-blue);
}

/* Utilidad opcional:
   si un banner se corta mucho, puedes asignar una clase por slide */
.hero-slide--focus-left {
  background-position: left center !important;
}
.hero-slide--focus-center {
  background-position: center center !important;
}
.hero-slide--focus-right {
  background-position: right center !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-stage,
  .hero--euro .hero-media {
    aspect-ratio: 16 / 7;
    min-height: 360px;
    border-radius: 0 0 18px 18px;
  }

  .hero-copy {
    max-width: 56%;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 3vw, 40px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-stage,
  .hero--euro .hero-media {
    aspect-ratio: 4 / 5;
    min-height: 420px;
    border-radius: 0 0 16px 16px;
  }

  .hero-slide {
    background-size: cover;
    background-position: 68% center;
  }

  .hero-slide img,
  .hero-slide picture,
  .hero-slide .hero-banner-img {
    object-position: 68% center;
  }

  .hero-slide::before {
    background:
      linear-gradient(
        180deg,
        rgba(0, 26, 114, 0.18) 0%,
        rgba(0, 26, 114, 0.06) 30%,
        rgba(0, 26, 114, 0) 100%
      );
  }

  .hero-slide::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 26, 114, 0.56) 0%,
        rgba(0, 26, 114, 0.20) 40%,
        rgba(0, 26, 114, 0.04) 100%
      );
  }

  .hero-inner {
    align-items: end;
    padding: 24px 18px 64px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy .badge {
    font-size: .8rem;
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    line-height: 1.05;
  }

  .hero-copy .lead {
    font-size: .98rem;
    max-width: 34ch;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }

  .hero-dots {
    bottom: 12px;
    gap: 8px;
    padding: 6px 10px;
  }
}

/* Mobile pequeÃ±o */
@media (max-width: 520px) {
  .hero-stage,
  .hero--euro .hero-media {
    min-height: 380px;
    aspect-ratio: 4 / 4.8;
  }

  .hero-slide {
    background-position: 72% center;
  }

  .hero-slide img,
  .hero-slide picture,
  .hero-slide .hero-banner-img {
    object-position: 72% center;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
}

/* ---------------------------------------------------------
   2) FOOTER PREMIUM EN AMARILLO
   Objetivo:
   - mantener protagonismo del amarillo
   - dar profundidad
   - mejor lectura y jerarquÃ­a
---------------------------------------------------------- */

.footer {
  position: relative;
  margin-top: 48px;
  color: var(--ls-blue);
  background:
    linear-gradient(
      135deg,
      var(--footer-yellow-start) 0%,
      var(--footer-yellow-mid) 52%,
      var(--footer-yellow-end) 100%
    );
  border-top: 8px solid var(--ls-blue);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.10), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,0.05), transparent 35%);
  pointer-events: none;
}

.footer .container,
.footer .cols {
  position: relative;
  z-index: 1;
}

.footer .cols {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  padding: 42px 0 26px;
  align-items: start;
}

.footer h4,
.footer strong,
.footer b {
  color: #0B1220;
  margin: 0 0 12px;
  font-weight: 900;
}

.footer p {
  margin: 0 0 10px;
  color: rgba(11, 18, 32, 0.88);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 10px;
}

.footer a {
  color: rgba(0, 26, 114, 0.94);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  color: #0B1220;
  text-decoration: underline;
}

.footer .btn,
.footer .btn.secondary {
  background: var(--ls-blue);
  color: #fff;
  border-color: transparent;
}

.footer .btn.secondary:hover {
  background: #00135A;
}

.footer small {
  display: block;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(0, 26, 114, 0.16);
  color: rgba(11, 18, 32, 0.78);
  position: relative;
  z-index: 1;
}

/* Si tienes redes en inline, ayuda a que se vean mejor */
.footer .socials,
.footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive footer */
@media (max-width: 1024px) {
  .footer .cols {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .footer .cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 32px 0 22px;
  }
}

@media (max-width: 520px) {
  .footer .cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer p,
  .footer li,
  .footer a {
    font-size: 0.96rem;
  }

  .footer small {
    padding: 14px 0 22px;
  }
}

/* =========================================================
   HOTFIX MOBILE HERO + NAV OVERLAY
   Pegar al FINAL de brand.css
   ========================================================= */

/* 2) HERO: normalizar slide container */
.hero.hero--euro {
  position: relative;
  overflow: visible;
}

.hero-stage,
.hero--euro .hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 3) Desktop / tablet: mantener composiciÃ³n mÃ¡s estable */
.hero-stage,
.hero--euro .hero-media {
  aspect-ratio: 12 / 5;     /* 1920 x 800 */
  height: auto !important;
  min-height: 0 !important;
  max-height: 520px;
}

/* Slides */
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slides,
.hero-slide {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover !important;
  background-position: center center !important;
}

/* Si hubiera img real dentro del slide */
.hero-slide img,
.hero-slide picture,
.hero-slide .hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Overlays mÃ¡s limpios */
.hero-slide::before {
  background: rgba(255, 255, 255, 0.10) !important;
}

.hero-slide::after {
  background: linear-gradient(
    90deg,
    rgba(0, 26, 114, 0.22) 0%,
    rgba(0, 26, 114, 0.10) 32%,
    rgba(0, 26, 114, 0) 58%
  ) !important;
  clip-path: none !important;
}

/* Controles base */
.hero-arrow {
  z-index: 8;
}

.hero-dots {
  z-index: 8;
  left: 50%;
  transform: translateX(-50%);
}

/* =========================================================
   MOBILE HERO FIX
   La clave es NO dejarlo tan alto.
   Respetamos la proporciÃ³n real 1920x800.
   ========================================================= */
@media (max-width: 768px) {
  .hero-stage,
  .hero--euro .hero-media {
    aspect-ratio: 12 / 5 !important;
    height: auto !important;
    min-height: 170px !important;
    max-height: 240px !important;
    border-radius: 0 0 16px 16px;
  }

  .hero-slide {
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-slide img,
  .hero-slide picture,
  .hero-slide .hero-banner-img {
    object-fit: cover;
    object-position: center center;
  }

  .hero-inner {
    padding: 0 !important;
    height: 100%;
  }

  /* Controles mÃ¡s compactos */
  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
    border-radius: 12px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-dots {
    bottom: 8px !important;
    gap: 6px !important;
    padding: 5px 8px !important;
    border-width: 1px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(4px);
  }

  .hero-dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
}

@media (max-width: 520px) {
  .hero-stage,
  .hero--euro .hero-media {
    aspect-ratio: 12 / 5 !important;
    height: auto !important;
    min-height: 155px !important;
    max-height: 210px !important;
    border-radius: 0 0 14px 14px;
  }

  .hero-slide {
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero-slide::before {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .hero-slide::after {
    background: linear-gradient(
      90deg,
      rgba(0, 26, 114, 0.18) 0%,
      rgba(0, 26, 114, 0.08) 28%,
      rgba(0, 26, 114, 0) 52%
    ) !important;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .hero-dots {
    bottom: 6px !important;
    padding: 4px 7px !important;
    gap: 5px !important;
  }

  .hero-dot {
    width: 7px;
    height: 7px;
  }
}

/* =========================================================
   FIX: cuando el menÃº mÃ³vil estÃ¡ abierto,
   ocultar dots y flechas del hero
   para evitar que se encimen visualmente.
   Chrome/Edge soportan :has().
   ========================================================= */
@media (max-width: 1150px) {
  body:has(#primary-nav.open) .hero-dots,
  body:has(#primary-nav.open) .hero-arrow {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:has(#primary-nav.open) .hero-stage,
  body:has(#primary-nav.open) .hero--euro .hero-media {
    z-index: 0 !important;
  }

  body:has(#primary-nav.open) .nav-list,
  body:has(#primary-nav.open) .nav ul {
    box-shadow: 0 24px 44px rgba(0,0,0,.18);
  }
}

/* =========================================================
   Opcional UX:
   desactivar animaciÃ³n/escala del slide en mobile
   para que se vea mÃ¡s limpio
   ========================================================= */
@media (max-width: 768px) {
  .hero-slide {
    transform: none !important;
    transition: opacity .28s ease !important;
  }
}

/* =========================================================
   FOOTER MOBILE REFINEMENT + SOCIAL ICONS
   Pegar al FINAL de brand.css
   ========================================================= */

/* Footer general mÃ¡s fino */
.footer {
  position: relative;
  margin-top: 0 !important;
  border-top: 4px solid var(--ls-blue);
  background:
    linear-gradient(180deg, #f3c43a 0%, #e5a823 100%);
  color: var(--ls-blue);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.20), rgba(255,255,255,0));
  pointer-events: none;
}

.footer .container,
.footer .cols {
  position: relative;
  z-index: 1;
}

/* Grid desktop/tablet mÃ¡s ordenado */
.footer .cols {
  display: grid;
  grid-template-columns: 1.5fr minmax(220px, 1.2fr) minmax(200px, 1fr);
  gap: 32px;
  padding: 34px 0 22px;
  align-items: start;
}

.footer .cols > div {
  text-align: center;
  min-width: 0;
}

.footer h3,
.footer h4,
.footer strong {
  margin: 10px 0 12px;
  text-align: center;
  color: var(--ls-blue);
  font-weight: 800;
  line-height: 1.15;
}

.footer p,
.footer li,
.footer a {
  color: rgba(0, 26, 114, 0.95);
}

.footer ul {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 10px;
}

.footer a {
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.footer a:hover {
  opacity: .82;
  transform: translateY(-1px);
}

/* Primera columna mÃ¡s protagonista */
.footer .footer-brand,
.footer .brand-col,
.footer .footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .footer-brand .btn,
.footer .brand-col .btn,
.footer .footer-col--brand .btn {
  align-self: flex-start;
}

/* Social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 26, 114, 0.08);
  border: 1px solid rgba(0, 26, 114, 0.10);
  color: var(--ls-blue);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(0, 26, 114, 0.14);
  border-color: rgba(0, 26, 114, 0.18);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* Copyright */
.footer small,
.footer .footer-copy,
.footer .copyright {
  display: block;
  text-align: center;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(0, 26, 114, 0.12);
  color: rgba(0, 26, 114, 0.88);
}

/* Tablet */
@media (max-width: 820px) {
  .footer .cols {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 0 20px;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .footer {
    border-top-width: 3px;
  }

  .footer .cols {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 24px 16px 18px !important;
    text-align: center;
    justify-items: center;
  }

  .footer .cols > div {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .footer h3,
  .footer h4,
  .footer strong {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .footer p,
  .footer li,
  .footer a {
    font-size: 0.97rem;
    line-height: 1.45;
  }

  .footer ul {
    display: grid;
    gap: 8px;
  }

  .footer li + li {
    margin-top: 0;
  }

  .footer .footer-brand,
  .footer .brand-col,
  .footer .footer-col--brand {
    align-items: center;
  }

  .footer .footer-brand .btn,
  .footer .brand-col .btn,
  .footer .footer-col--brand .btn {
    align-self: center;
  }

  .footer-social {
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }

  .footer small,
  .footer .footer-copy,
  .footer .copyright {
    padding: 14px 16px 18px;
    font-size: 0.9rem;
    text-align: center;
  }
}
/* =========================================
   MOBILE POLISH â€” PORTAFOLIO / CARDS / FOOTER
   Pegar al final de brand.css
/* ========================================= */

@media (max-width: 768px) {
  /* ---------- Tokens rÃ¡pidos ---------- */
  :root {
    --mobile-side-gap: 16px;
    --mobile-card-radius: 18px;
    --mobile-card-pad: 18px;
    --footer-yellow-1: #f4c63d;
    --footer-yellow-2: #e4ac18;
    --footer-yellow-3: #c9920d;
    --footer-text: #08245c;
  }

  /* ---------- Contenedores generales ---------- */
  .container,
  .section .container,
  main .container {
    padding-left: var(--mobile-side-gap);
    padding-right: var(--mobile-side-gap);
  }

  /* ---------- Encabezados de secciÃ³n ---------- */
  .section-header,
  .section_head,
  .portfolio-head,
  .portfolio-header,
  .portfolio-top,
  .heading-wrap,
  .title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .section-header h2,
  .section_head h2,
  .portfolio-head h2,
  .portfolio-header h2,
  .portfolio-top h2,
  .heading-wrap h2,
  .title-wrap h2,
  .section h2 {
    margin-left: auto;
    margin-right: auto;
    max-width: 18ch;
    text-align: center;
    line-height: 1.15;
  }

  .section-header p,
  .section_head p,
  .portfolio-head p,
  .portfolio-header p,
  .portfolio-top p,
  .heading-wrap p,
  .title-wrap p {
    margin-left: auto;
    margin-right: auto;
    max-width: 34ch;
    text-align: center;
  }

  /* Eyebrow / subtÃ­tulos amarillos */
  .eyebrow,
  .section-kicker,
  .kicker,
  .section-label {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
  }

  /* CTA de encabezado */
  .section-header .btn,
  .section_head .btn,
  .portfolio-head .btn,
  .portfolio-header .btn,
  .portfolio-top .btn,
  .heading-wrap .btn,
  .title-wrap .btn,
  .section > .container > .btn,
  .section > .container > a.btn,
  .section .btn-outline,
  .section .btn-primary {
    margin-left: auto;
    margin-right: auto;
  }

  /* ---------- Cards de categorÃ­as / bloques ---------- */
  .categories-grid,
  .portfolio-grid,
  .cards-grid,
  .grid-cards,
  .products-grid,
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .category-card,
  .portfolio-card,
  .product-card,
  .card-category,
  .card-feature,
  .info-card,
  .feature-card,
  .cta-card,
  .card {
    padding: var(--mobile-card-pad) !important;
    border-radius: var(--mobile-card-radius) !important;
    text-align: center !important;
    align-items: center;
    justify-content: center;
  }

  .category-card *,
  .portfolio-card *,
  .product-card *,
  .card-category *,
  .card-feature *,
  .info-card *,
  .feature-card *,
  .cta-card * {
    text-align: center !important;
  }

  .category-card .icon,
  .category-card img,
  .portfolio-card .icon,
  .portfolio-card img,
  .product-card .icon,
  .product-card img,
  .card-category .icon,
  .card-category img,
  .card-feature .icon,
  .card-feature img,
  .feature-card .icon,
  .feature-card img,
  .info-card .icon,
  .info-card img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .category-card h3,
  .portfolio-card h3,
  .product-card h3,
  .card-category h3,
  .card-feature h3,
  .feature-card h3,
  .info-card h3,
  .cta-card h3 {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: 18ch;
    line-height: 1.2;
  }

  .category-card p,
  .portfolio-card p,
  .product-card p,
  .card-category p,
  .card-feature p,
  .feature-card p,
  .info-card p,
  .cta-card p {
    margin-left: auto;
    margin-right: auto;
    max-width: 30ch;
    line-height: 1.45;
  }

  .category-card a,
  .portfolio-card a,
  .product-card a,
  .card-category a,
  .card-feature a,
  .feature-card a,
  .info-card a,
  .cta-card a,
  .category-card .btn,
  .portfolio-card .btn,
  .product-card .btn,
  .card-category .btn,
  .card-feature .btn,
  .feature-card .btn,
  .info-card .btn,
  .cta-card .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* ---------- SecciÃ³n azul de tarjetas ---------- */
  .section-dark,
  .section-blue,
  .benefits-section,
  .highlights-section,
  .cta-section {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .section-dark .card,
  .section-blue .card,
  .benefits-section .card,
  .highlights-section .card,
  .cta-section .card,
  .section-dark .feature-card,
  .section-blue .feature-card,
  .benefits-section .feature-card,
  .highlights-section .feature-card,
  .cta-section .feature-card {
    text-align: center;
  }

  .section-dark .btn,
  .section-blue .btn,
  .benefits-section .btn,
  .highlights-section .btn,
  .cta-section .btn {
    margin-left: auto;
    margin-right: auto;
  }

  /* ---------- FOOTER MOBILE ---------- */
  .footer {
    background:
      linear-gradient(180deg,
        var(--footer-yellow-1) 0%,
        var(--footer-yellow-2) 58%,
        var(--footer-yellow-3) 100%) !important;
    color: var(--footer-text);
    text-align: center;
  }

  /* bloque principal del footer */
  .footer .container.cols,
  .footer_cols,
  .footer .footer_cols {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 28px 20px 20px !important;
    text-align: center !important;
    align-items: start;
    justify-items: center;
  }

  .footer .container.cols > div,
  .footer_cols > div,
  .footer .footer_cols > div {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
  }

  /* TÃ­tulos del footer */
  .footer h3,
  .footer h4,
  .footer strong,
  .footer .footer-title,
  .footer .footer-heading {
    display: block;
    text-align: center !important;
    margin-bottom: 10px;
    color: #001a5a;
  }

  /* Logo / descripciÃ³n */
  .footer .brand,
  .footer .footer-brand,
  .footer .footer-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .footer .brand img,
  .footer .footer-brand img,
  .footer .footer-logo-wrap img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .footer p,
  .footer li,
  .footer a,
  .footer span {
    text-align: center !important;
  }

  .footer p {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
  }

  /* Listas */
  .footer ul,
  .footer ol {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }

  .footer li {
    margin: 0 0 8px;
  }

  .footer a {
    display: inline-block;
    color: #001a5a;
    text-decoration: none;
    font-weight: 600;
  }

  .footer a:hover {
    text-decoration: underline;
  }

  /* BotÃ³n del footer */
  .footer .btn,
  .footer .button,
  .footer .cta,
  .footer .btn-primary,
  .footer .btn-outline {
    margin-left: auto;
    margin-right: auto;
  }

  /* Redes sociales */
  .footer .social,
  .footer .social-links,
  .footer .footer-social,
  .footer .social-icons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 12px;
    margin-top: 10px;
  }

  .footer .social a,
  .footer .social-links a,
  .footer .footer-social a,
  .footer .social-icons a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 26, 90, 0.10);
    border: 1px solid rgba(0, 26, 90, 0.12);
    color: #001a5a;
  }

  .footer .social svg,
  .footer .social-links svg,
  .footer .footer-social svg,
  .footer .social-icons svg,
  .footer .social i,
  .footer .social-links i,
  .footer .footer-social i,
  .footer .social-icons i {
    font-size: 16px;
  }

  /* Separador visual suave */
  .footer .container.cols > div:not(:last-child),
  .footer_cols > div:not(:last-child),
  .footer .footer_cols > div:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 26, 90, 0.10);
  }

  /* Franja inferior / copyright */
  .footer .container:last-child,
  .footer .copyright,
  .footer .footer-bottom {
    text-align: center !important;
    padding: 14px 20px 18px !important;
  }

  .footer .container:last-child p,
  .footer .copyright p,
  .footer .footer-bottom p,
  .footer small {
    margin: 0 auto;
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.45;
    text-align: center !important;
  }
}

/* Ajuste extra para pantallas muy angostas */
@media (max-width: 520px) {
  .section h2,
  .section-header h2,
  .portfolio-head h2,
  .portfolio-header h2 {
    font-size: clamp(1.7rem, 6vw, 2rem);
  }

  .category-card,
  .portfolio-card,
  .product-card,
  .card-category,
  .card-feature,
  .info-card,
  .feature-card,
  .cta-card {
    padding: 16px !important;
  }

  .footer .container.cols,
  .footer_cols,
  .footer .footer_cols {
    gap: 16px !important;
    padding: 24px 16px 18px !important;
  }

  .footer .social a,
  .footer .social-links a,
  .footer .footer-social a,
  .footer .social-icons a {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}
@media (max-width: 768px) {
  .footer .container.cols > div:first-child p {
    max-width: 24ch;
  }

  .footer .container.cols > div:nth-child(2),
  .footer .container.cols > div:nth-child(3),
  .footer .container.cols > div:nth-child(4) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer .container.cols > div:nth-child(2) ul,
  .footer .container.cols > div:nth-child(3) ul,
  .footer .container.cols > div:nth-child(4) ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
/* =========================================================
   PAGE SOMOS
   Ajustes visuales completos hero + cards + timeline
   Pegar al final de brand.css
========================================================= */

.page-somos {
  --somos-blue: #082b7a;
  --somos-blue-2: #0d2f86;
  --somos-yellow: #f3bf22;
  --somos-text: #17324d;
  --somos-text-soft: #4a5f78;
  --somos-line: rgba(8, 43, 122, 0.10);
  --somos-card-bg: #ffffff;
  --somos-shadow: 0 10px 28px rgba(10, 35, 90, 0.06);
  --somos-radius-xl: 28px;
  --somos-radius-lg: 22px;
  --somos-radius-md: 18px;
  --somos-container: 1180px;
}

/* -------------------------
   Hero principal SOMOS
------------------------- */
.page-somos .somos-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(420px, 62vh, 560px);
  display: flex;
  align-items: center;
  background-image: var(--somos-hero-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.page-somos .somos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.82) 0%,
      rgba(255,255,255,0.72) 18%,
      rgba(255,255,255,0.48) 38%,
      rgba(255,255,255,0.14) 62%,
      rgba(8, 22, 60, 0.18) 100%
    );
}

.page-somos .somos-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 23, 58, 0.10) 0%,
      rgba(7, 23, 58, 0.18) 100%
    );
}

.page-somos .somos-hero .container,
.page-somos .somos-hero .hero-content,
.page-somos .somos-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--somos-container));
  margin-inline: auto;
}

.page-somos .somos-hero .hero-content,
.page-somos .somos-hero__content {
  max-width: 640px;
  padding: 72px 0;
}

.page-somos .somos-hero .eyebrow,
.page-somos .somos-hero .kicker,
.page-somos .somos-hero .section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--somos-yellow);
  color: #082b7a;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(243, 191, 34, 0.28);
  margin-bottom: 18px;
}

.page-somos .somos-hero h1 {
  margin: 0 0 14px;
  color: var(--somos-blue);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.6vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-somos .somos-hero p {
  margin: 0;
  max-width: 56ch;
  color: var(--somos-text);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.55;
  text-shadow: 0 1px 1px rgba(255,255,255,0.28);
}

.page-somos .somos-hero .hero-actions,
.page-somos .somos-hero .actions,
.page-somos .somos-hero .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.page-somos .somos-hero .btn,
.page-somos .somos-hero .button,
.page-somos .somos-hero a.btn {
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
}

.page-somos .somos-hero .btn-primary,
.page-somos .somos-hero .btn-solid,
.page-somos .somos-hero a.btn-primary {
  background: var(--somos-yellow);
  color: #082b7a;
  border: 1px solid transparent;
  box-shadow: 0 10px 22px rgba(243, 191, 34, 0.25);
}

.page-somos .somos-hero .btn-secondary,
.page-somos .somos-hero .btn-outline,
.page-somos .somos-hero a.btn-outline {
  background: rgba(255,255,255,0.55);
  color: var(--somos-blue);
  border: 1px solid rgba(8, 43, 122, 0.12);
  backdrop-filter: blur(8px);
}

/* -------------------------
   TÃ­tulos de secciones
------------------------- */
.page-somos .section-head,
.page-somos .section-header,
.page-somos .heading-wrap {
  margin-bottom: 24px;
}

.page-somos .section-head .eyebrow,
.page-somos .section-header .eyebrow,
.page-somos .heading-wrap .eyebrow,
.page-somos .section-head .kicker,
.page-somos .section-header .kicker,
.page-somos .heading-wrap .kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--somos-yellow);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.page-somos .section-head h2,
.page-somos .section-header h2,
.page-somos .heading-wrap h2 {
  margin: 0;
  color: var(--somos-blue);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* -------------------------
   Cards misiÃ³n / visiÃ³n / valores
------------------------- */
.page-somos .about-grid,
.page-somos .somos-grid,
.page-somos .institutional-grid,
.page-somos .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-somos .about-card,
.page-somos .somos-card,
.page-somos .institutional-card,
.page-somos .info-card,
.page-somos .card {
  height: 100%;
  background: var(--somos-card-bg);
  border: 1px solid var(--somos-line);
  border-radius: var(--somos-radius-lg);
  padding: 28px 22px;
  box-shadow: var(--somos-shadow);
}

.page-somos .about-card h3,
.page-somos .somos-card h3,
.page-somos .institutional-card h3,
.page-somos .info-card h3,
.page-somos .card h3 {
  margin: 0 0 14px;
  color: var(--somos-blue);
  font-size: 1.85rem;
  line-height: 1.05;
}

.page-somos .about-card p,
.page-somos .somos-card p,
.page-somos .institutional-card p,
.page-somos .info-card p,
.page-somos .card p {
  margin: 0;
  color: var(--somos-text);
  line-height: 1.65;
}

/* Chips / valores / competencias */
.page-somos .tags,
.page-somos .chip-list,
.page-somos .pill-list,
.page-somos .values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-somos .tags span,
.page-somos .chip,
.page-somos .pill,
.page-somos .values-list span,
.page-somos .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(8, 43, 122, 0.12);
  background: linear-gradient(180deg, #fffdf8 0%, #fff6d8 100%);
  color: var(--somos-blue);
  font-weight: 700;
  line-height: 1;
}

.page-somos .tags span::before,
.page-somos .chip::before,
.page-somos .pill::before,
.page-somos .values-list span::before,
.page-somos .tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
  background: var(--somos-yellow);
}

/* -------------------------
   Timeline / Hitos
------------------------- */
.page-somos .timeline-wrap,
.page-somos .history-slider,
.page-somos .milestones-slider,
.page-somos .timeline {
  position: relative;
}

.page-somos .timeline-track,
.page-somos .history-track,
.page-somos .milestones-track,
.page-somos [data-timeline-track] {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 22px;
  overflow-x: auto;
  padding: 12px 58px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-somos .timeline-card,
.page-somos .history-card,
.page-somos .milestone-card,
.page-somos [data-timeline-item] {
  position: relative;
  min-height: 228px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--somos-line);
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: var(--somos-shadow);
}

.page-somos .timeline-card::before,
.page-somos .history-card::before,
.page-somos .milestone-card::before,
.page-somos [data-timeline-item]::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--somos-yellow);
  box-shadow: 0 0 0 6px rgba(243,191,34,.12);
}

.page-somos .timeline-card h3,
.page-somos .history-card h3,
.page-somos .milestone-card h3,
.page-somos [data-timeline-item] h3 {
  margin: 18px 0 10px;
  color: var(--somos-blue);
  font-size: 1.55rem;
  line-height: 1.1;
}

.page-somos .timeline-card p,
.page-somos .history-card p,
.page-somos .milestone-card p,
.page-somos [data-timeline-item] p {
  color: var(--somos-text);
  line-height: 1.6;
}

.page-somos .timeline-arrow,
.page-somos .history-arrow,
.page-somos .milestone-arrow,
.page-somos [data-timeline-prev],
.page-somos [data-timeline-next] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(8, 43, 122, 0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 22px rgba(10,35,90,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--somos-blue);
}

.page-somos .timeline-arrow.prev,
.page-somos .history-arrow.prev,
.page-somos .milestone-arrow.prev,
.page-somos [data-timeline-prev] {
  left: 0;
}

.page-somos .timeline-arrow.next,
.page-somos .history-arrow.next,
.page-somos .milestone-arrow.next,
.page-somos [data-timeline-next] {
  right: 0;
}

/* -------------------------
   Cards inferiores
------------------------- */
.page-somos .bottom-grid,
.page-somos .extra-grid,
.page-somos .institutional-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.page-somos .bottom-grid .card,
.page-somos .extra-grid .card,
.page-somos .institutional-bottom .card {
  min-height: 100%;
}

/* -------------------------
   Espaciado de secciones
------------------------- */
.page-somos section {
  position: relative;
}

.page-somos .section,
.page-somos section + section {
  padding-top: 60px;
  padding-bottom: 10px;
}

.page-somos .container,
.page-somos .section .container {
  width: min(100% - 48px, var(--somos-container));
  margin-inline: auto;
}

/* -------------------------
   Responsive tablet
------------------------- */
@media (max-width: 1100px) {
  .page-somos .somos-hero {
    background-position: 62% center;
    background-attachment: scroll;
  }

  .page-somos .about-grid,
  .page-somos .somos-grid,
  .page-somos .institutional-grid,
  .page-somos .cards-grid,
  .page-somos .bottom-grid,
  .page-somos .extra-grid,
  .page-somos .institutional-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------
   Responsive mobile
------------------------- */
@media (max-width: 768px) {
  .page-somos .container,
  .page-somos .section .container,
  .page-somos .somos-hero .container {
    width: min(100% - 28px, var(--somos-container));
  }

  .page-somos .somos-hero {
    min-height: 480px;
    align-items: flex-end;
    background-size: cover;
    background-position: 68% center;
    background-attachment: scroll;
  }

  .page-somos .somos-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.48) 0%,
        rgba(255,255,255,0.68) 24%,
        rgba(255,255,255,0.84) 54%,
        rgba(255,255,255,0.94) 100%
      );
  }

  .page-somos .somos-hero::after {
    background: linear-gradient(180deg, rgba(8, 22, 60, 0.04) 0%, rgba(8, 22, 60, 0.10) 100%);
  }

  .page-somos .somos-hero .hero-content,
  .page-somos .somos-hero__content {
    max-width: 100%;
    padding: 28px 0 26px;
    text-align: center;
  }

  .page-somos .somos-hero .eyebrow,
  .page-somos .somos-hero .kicker,
  .page-somos .somos-hero .section-label {
    margin-left: auto;
    margin-right: auto;
  }

  .page-somos .somos-hero h1 {
    font-size: clamp(2rem, 8vw, 2.9rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .page-somos .somos-hero p {
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .page-somos .somos-hero .hero-actions,
  .page-somos .somos-hero .actions,
  .page-somos .somos-hero .cta-group {
    justify-content: center;
  }

  .page-somos .somos-hero .btn,
  .page-somos .somos-hero .button,
  .page-somos .somos-hero a.btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .page-somos .section,
  .page-somos section + section {
    padding-top: 36px;
    padding-bottom: 4px;
  }

  .page-somos .section-head,
  .page-somos .section-header,
  .page-somos .heading-wrap {
    text-align: center;
    margin-bottom: 18px;
  }

  .page-somos .section-head h2,
  .page-somos .section-header h2,
  .page-somos .heading-wrap h2 {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    text-wrap: balance;
  }

  .page-somos .about-grid,
  .page-somos .somos-grid,
  .page-somos .institutional-grid,
  .page-somos .cards-grid,
  .page-somos .bottom-grid,
  .page-somos .extra-grid,
  .page-somos .institutional-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-somos .about-card,
  .page-somos .somos-card,
  .page-somos .institutional-card,
  .page-somos .info-card,
  .page-somos .card,
  .page-somos .timeline-card,
  .page-somos .history-card,
  .page-somos .milestone-card,
  .page-somos [data-timeline-item] {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .page-somos .timeline-track,
  .page-somos .history-track,
  .page-somos .milestones-track,
  .page-somos [data-timeline-track] {
    grid-auto-columns: 88%;
    gap: 14px;
    padding: 10px 0 16px;
  }

  .page-somos .timeline-arrow,
  .page-somos .history-arrow,
  .page-somos .milestone-arrow,
  .page-somos [data-timeline-prev],
  .page-somos [data-timeline-next] {
    display: none;
  }
}

/* -------------------------
   Reduce motion
------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-somos .somos-hero {
    background-attachment: scroll;
  }
}


/* ========================================= */

/* Layout principal */
.nav-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 80px;
  gap: 20px;
}

/* NAV centrado */
#primary-nav {
  width: 100%;
}

/* lista */
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-width: 0;    
}

/* links */
.nav-link {
  padding: 6px 2px;   /* antes muy grande */
  font-size: 0.92rem; /* un poco más pequeño */
}

.nav-link:hover {
  background: transparent;
}

/* activo tipo línea */
.nav-link.active {
  border-bottom: 2px solid var(--ls-yellow);
  font-weight: 800;
}

/* dropdown */
.nav-item {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border-radius: 12px;
  padding: 10px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
}

.nav-submenu a {
  padding: 10px;
}

/* desktop hover */
@media (min-width: 1151px) {
  .nav-item:hover .nav-submenu {
    display: flex;
  }
}

/* acciones */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-contact {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* toggle */
.nav-toggle {
  display: none;
}

/* ======================
   MOBILE
====================== */
@media (max-width: 1150px) {

  .nav-toggle {
    display: block;
  }

  #primary-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
  }

  #primary-nav.open {
    display: block;
  }

.nav-list {
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar {
  display: none;
}

  .nav-submenu {
    position: static;
    display: none;
    box-shadow: none;
  }

  .nav-submenu.open {
    display: flex;
  }

}


/* Pegar AL FINAL de brand.css
========================================= */

/* 0) Dar más aire SOLO al header (evita que el menú “no quepa” en 1200px) */
.header .container.nav-wrapper {
  max-width: 1440px;              /* <- sube el ancho del header sin tocar el resto */
  padding-inline: 16px;
}

/* 1) Layout principal: logo | nav | actions */
.header .nav-wrapper {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  height: 80px;
}

/* Logo más controlado */
.header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;                     /* evita padding tipo “pill” heredado */
  border-radius: 0;
}

.header .brand img {
  width: 150px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

/* 2) NAV centrado pero flexible */
.header #primary-nav {
  min-width: 0;                   /* CLAVE para que no empuje/rompa layout en grid */
  width: 100%;
}

/* 3) Lista: NO WRAP (esto evita que baje "Trabaja / Noticias") */
.header .nav-list {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: nowrap !important;   /* <- mata cualquier wrap heredado */
  white-space: nowrap;            /* <- evita saltos internos */
  min-width: 0;

  gap: clamp(12px, 1.4vw, 22px);  /* <- se ajusta solo según ancho */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 4) Links estilo corporativo (override fuerte de tus estilos anteriores) */
.header .nav-link,
.header .nav-list a,
.header .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 2px;
  font-size: clamp(0.88rem, 0.75vw, 0.95rem);
  line-height: 1.1;

  font-weight: 700;
  color: var(--ls-blue);
  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: none !important;
}

/* Hover limpio tipo Sandoz */
.header .nav-link:hover,
.header .nav-list a:hover,
.header .nav-dropdown-toggle:hover {
  background: transparent !important;
  opacity: 0.9;
}

/* Activo tipo underline (quita la “píldora amarilla” heredada) */
.header .nav-link.active,
.header .nav-list a.active {
  background: transparent !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 2px solid var(--ls-yellow) !important;
  font-weight: 900;
}

/* 5) Actions (Contacto + toggle) */
.header .nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Contacto compacto */
.header .nav-contact {
  padding: 10px 16px;
  font-size: 0.92rem;
  border-radius: 14px;
  white-space: nowrap;
}

/* Toggle escondido en desktop */
.header .nav-toggle {
  display: none;
}

/* 6) Dropdown desktop (hover) */
.header .nav-item {
  position: relative;
}

.header .nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  display: none;
  flex-direction: column;
  gap: 6px;

  min-width: 240px;
  max-width: min(92vw, 340px);

  padding: 10px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  z-index: 12000;
}

/* Links dentro del submenu */
.header .nav-submenu .nav-link,
.header .nav-submenu a {
  justify-content: flex-start;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-bottom: 0 !important;
}

/* Hover submenu */
.header .nav-submenu a:hover {
  background: rgba(255,199,44,.14) !important;
  border-radius: 10px !important;
}

/* Hover solo en desktop */
@media (min-width: 1151px) {
  .header .nav-item:hover > .nav-submenu,
  .header .nav-item:focus-within > .nav-submenu {
    display: flex;
  }
}

/* 7) Compactación suave antes de móvil (evita overflow en 1200–1350px) */
@media (max-width: 1320px) and (min-width: 1151px) {
  .header .brand img { width: 138px; }
  .header .nav-list { gap: 14px; }
  .header .nav-contact { padding: 9px 14px; font-size: 0.9rem; }
}

/* ======================
   MOBILE / TABLET (<=1150px)
====================== */
@media (max-width: 1150px) {

  /* Header sigue en una fila */
  .header .nav-wrapper {
    grid-template-columns: max-content 1fr max-content;
    height: 72px;
  }

  .header .brand img {
    width: 140px;
    max-height: 44px;
  }

  /* Mostrar toggle */
  .header .nav-toggle {
    display: inline-grid;
    place-items: center;

    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid rgba(255,199,44,.65);
    background: rgba(255,199,44,.12);
    color: var(--ls-blue);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
  }

  /* Nav como panel */
  .header #primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    display: none;
    background: #fff;
    z-index: 2300;
  }

  .header #primary-nav.open {
    display: block;
  }

  /* Lista vertical (no scroll horizontal) */
  .header .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    padding: 18px 16px 22px;
    gap: 10px;

    white-space: normal;
    overflow: visible;
  }

  .header .nav-link,
  .header .nav-list a,
  .header .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;

    padding: 12px 14px;
    border-radius: 14px !important;

    font-size: 1rem;
  }

  .header .nav-link:hover,
  .header .nav-list a:hover {
    background: rgba(255,199,44,.12) !important;
  }

  /* Dropdown en mobile: estático y controlado por .open (JS) */
  .header .nav-item { position: static; }

  .header .nav-submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 10px;
    background: transparent;
  }

  .header .nav-submenu.open {
    display: flex;
  }

  .header .nav-submenu .nav-link,
  .header .nav-submenu a {
    padding: 10px 12px;
    border-radius: 12px !important;
    font-size: 0.98rem;
  }
}

/* =========================================
   NAVBAR — FINAL (Desktop OK + Mobile/Tablet FIX)
   - Desktop: se conserva tal cual (ya está excelente)
   - Mobile/Tablet: filas uniformes, caret no empuja texto, focus ring amarillo (no borde negro), submenus no dejan huecos
   Breakpoint: 1150px
========================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 10000;
  background:#fff;
  border-bottom: 8px solid var(--ls-yellow);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.header .container.nav-wrapper{ max-width:1440px; }

.header .nav-wrapper{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr) max-content;
  align-items:center;
  gap:16px;
  height:80px;
}

.header .brand{ display:inline-flex; align-items:center; padding:0; border-radius:0; }
.header .brand img{ width:150px; max-height:48px; height:auto; object-fit:contain; }

.header #primary-nav{ min-width:0; }

/* Reset listas */
.header .nav-list,
.header .nav-submenu{ list-style:none; margin:0; padding:0; }

.header .nav-list li,
.header .nav-submenu li{ list-style:none; }

.header .nav-list li::marker,
.header .nav-submenu li::marker{ content:""; }

/* ===== Desktop (conservado) ===== */
.header .nav-list{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow:visible;
  gap: clamp(10px, 1.2vw, 22px);
}

.header .nav-link,
.header .nav-list a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 2px;
  font-size: clamp(0.82rem, 0.72vw, 0.95rem);
  line-height:1.15;
  font-weight:600;
  color: var(--ls-blue);
  background: transparent;
  border:0;
  border-radius:0;
  text-decoration:none;
}

.header .nav-link:hover,
.header .nav-list a:hover{
  position: relative;
  opacity: 1;
  color: var(--ls-blue);
  text-decoration: none;
}

@media (min-width: 1151px) {
  .header .nav-list > .nav-item > .nav-link,
  .header .nav-item-head > .nav-link {
    position: relative;
  }

  .header .nav-list > .nav-item > .nav-link::after,
  .header .nav-item-head > .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--ls-yellow);
    transform: translateX(-50%);
    transition: width 180ms ease;
  }

  .header .nav-list > .nav-item:hover > .nav-link::after,
  .header .nav-item-head:hover > .nav-link::after,
  .header .nav-list > .nav-item:focus-within > .nav-link::after,
  .header .nav-item-head:focus-within > .nav-link::after {
    width: calc(100% - 4px);
  }

  .header .nav-list > .nav-item:hover > .nav-link,
  .header .nav-item-head:hover > .nav-link,
  .header .nav-list > .nav-item:focus-within > .nav-link {
    color: var(--ls-blue);
    text-shadow: 0 4px 14px rgba(0, 26, 114, 0.16);
  }

  .header .nav-submenu .nav-link:hover,
  .header .nav-submenu .nav-link:focus-visible {
    border-radius: 8px;
    background: rgba(255, 199, 44, 0.14);
    color: var(--ls-blue);
    opacity: 1;
  }
}

/* =========================================================
   
========================================================= */

.page-plan-salud .page-hero-plan-salud {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 42vw, 620px);
  overflow: hidden;
  background: #f7f8fb;
}

.page-plan-salud .page-hero-plan-salud__picture,
.page-plan-salud .page-hero-plan-salud__picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.page-plan-salud .page-hero-plan-salud__picture img {
  min-height: clamp(300px, 42vw, 620px);
  object-fit: cover;
  object-position: center;
}

.page-plan-salud .page-hero-plan-salud + main .section {
  padding-top: clamp(52px, 6vw, 82px);
  padding-bottom: clamp(64px, 7vw, 96px);
  text-align: center;
}

.page-plan-salud .plan-salud-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 24px;
  text-align: center;
}

.page-plan-salud .plan-salud-content > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-plan-salud .plan-salud-cta {
  margin-inline: auto;
}

/* El grid conserva su ancho natural aunque haya un solo producto. */
.page-portfolio .grid.cols-4,
.page-portfolio .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.page-portfolio .product-grid > .card {
  grid-column: auto !important;
}

.header .nav-link.active,
.header .nav-list a.active{
  border-bottom:2px solid var(--ls-yellow);
  font-weight:800;
}

.header .nav-item{ position:relative; }

.header .nav-item-head{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* Caret: evitar doble flecha heredada */
.header .nav-dropdown-toggle::after{ content:none !important; }

.header .nav-dropdown-toggle{
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  color: var(--ls-blue);
  border-radius:8px;
  opacity:.9;
}

.header .nav-dropdown-toggle::before{
  content:"";
  width:0; height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid currentColor;
  opacity:.75;
  transform: translateY(1px);
}

/* Submenu desktop (animación sutil, sin parpadeo) */
.header .nav-submenu{
  position:absolute;
  left:0;
  top: calc(100% + 10px);

  display:flex;
  flex-direction:column;
  gap:6px;

  min-width:260px;
  max-width:min(92vw, 360px);
  padding:10px;

  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
  z-index:12000;

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform: translateY(8px);

  transition:
    opacity .14s ease,
    transform .16s ease,
    visibility 0s linear .16s;
}

.header .nav-submenu::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-12px;
  height:12px;
  background:transparent;
}

.header .nav-submenu a{
  display:flex;
  justify-content:flex-start;
  padding:10px 12px;
  border-radius:10px;
  white-space:normal;
  font-weight:600;
  color: var(--ls-blue);
}

.header .nav-submenu a:hover{ background: rgba(255,199,44,.14); }

@media (min-width:1151px){
  .header .nav-item.nav-dropdown:hover > .nav-submenu,
  .header .nav-item.nav-dropdown:focus-within > .nav-submenu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform: translateY(0);
    transition:
      opacity .14s ease,
      transform .16s ease,
      visibility 0s;
  }
}

@media (prefers-reduced-motion: reduce){
  .header .nav-submenu{ transition:none !important; transform:none !important; }
}

.header .nav-actions{ display:inline-flex; align-items:center; gap:12px; }
.header .nav-contact{ padding:10px 16px; font-size:.92rem; border-radius:14px; white-space:nowrap; }
.header .nav-toggle{ display:none; }

@media (max-width:1320px) and (min-width:1151px){
  .header .brand img{ width:138px; }
  .header .nav-list{ gap:12px; }
  .header .nav-contact{ padding:9px 14px; font-size:.9rem; }
}

@media (max-width:1220px) and (min-width:1151px){
  .header .nav-list{ gap:10px; }
  .header .nav-link{ font-size:.84rem; }
}

/* ===== Mobile/Tablet FIX (solo <=1150px) ===== */
@media (max-width:1150px){
  .header .nav-wrapper{ height:72px; gap:12px; }
  .header .brand img{ width:140px; max-height:44px; }

  .header .nav-toggle{
    display:inline-grid;
    place-items:center;
    width:44px; height:44px;
    border-radius:14px;
    border:2px solid rgba(255,199,44,.65);
    background: rgba(255,199,44,.12);
    color: var(--ls-blue);
    font-size:22px;
    font-weight:900;
    cursor:pointer;
  }

  .header #primary-nav{
    position:fixed;
    top:72px;
    left:50%;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 28px));

    max-height: calc(100dvh - 92px);
    max-height: calc(100vh - 92px);

    display:none;
    padding:12px;
    background:#fff;
    border-radius:22px;
    box-shadow:0 24px 60px rgba(0,0,0,.18);
    z-index:2300;

    overflow-y:auto;
    scrollbar-width:none;
  }
  .header #primary-nav::-webkit-scrollbar{ display:none; }
  .header #primary-nav.open{ display:block; }

  /* Focus ring corporativo (evita borde negro) */
  .header #primary-nav a:focus-visible,
  .header #primary-nav button:focus-visible{
    outline:none;
    box-shadow: 0 0 0 3px rgba(255,199,44,.45);
  }

  /* Lista compacta y uniforme */
  .header .nav-list{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:6px;
    padding:2px;
    white-space:normal;
  }

  .header .nav-item{ position:static; }

  /* Todas las filas se normalizan */
  .header .nav-item-head{
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
  }

  /* Top-level links: mismo alto en todos */
  .header .nav-parent,
  .header .nav-list > li.nav-item:not(.nav-dropdown) > a.nav-link{
    width:100%;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:12px 44px; /* reserva espacio del caret */
    border-radius:16px;
    font-weight:700;
    font-size:0.98rem;
  }

  /* Hover/tap feedback */
  .header .nav-parent:hover,
  .header .nav-list > li.nav-item:not(.nav-dropdown) > a.nav-link:hover{
    background: rgba(255,199,44,.10);
  }

  /* Caret fijo derecha sin empujar texto */
  .header .nav-dropdown-toggle{
    position:absolute;
    right:10px;
    top:50%;
    transform: translateY(-50%);
    width:38px;
    height:38px;
    border-radius:14px;
    border:1px solid rgba(2,6,23,0.06);
    background: rgba(255,199,44,.10);
  }

  /* Submenu móvil colapsable sin huecos */
  .header .nav-submenu{
    position:static;
    border:0;
    box-shadow:none;
    background:transparent;

    overflow:hidden;
    max-height:0;
    padding:0;
    margin:0;

    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform: translateY(6px);

    transition:
      max-height .22s ease,
      padding .18s ease,
      opacity .14s ease,
      transform .16s ease,
      visibility 0s linear .22s;
  }
  .header .nav-submenu::before{ display:none; }

  .header .nav-submenu.open{
    max-height:560px;
    padding:6px 0 0;

    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform: translateY(0);

    transition:
      max-height .22s ease,
      padding .18s ease,
      opacity .14s ease,
      transform .16s ease,
      visibility 0s;
  }

  .header .nav-submenu a{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:10px 12px;
    border-radius:14px;
    font-weight:600;
    font-size:0.95rem;
  }
}
/* =========================================================
   PATCH SOLO PARA FARMACOVIGILANCIA
   NO toca el hero global ni el home slider
========================================================= */

.page-hero-farmacovigilancia {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 34vh, 360px);
  display: grid;
  align-items: center;
  padding: 28px 0;
  background: none !important;
}

/* media layer */
.page-hero-farmacovigilancia .hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* IMPORTANTÍSIMO:
   en esta página apagamos cualquier ::before viejo del sistema hero */
.page-hero-farmacovigilancia .hero-media::before {
  content: none !important;
  display: none !important;
}

/* imagen real */
.page-hero-farmacovigilancia .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

/* overlay encima de la imagen */
.page-hero-farmacovigilancia .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* overlay corporativo */
.page-hero-farmacovigilancia .hero-overlay--soft-dark {
  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 94, 0.88) 0%,
      rgba(11, 31, 94, 0.72) 40%,
      rgba(11, 31, 94, 0.55) 70%,
      rgba(11, 31, 94, 0.45) 100%
    );
}

/* contenido arriba de todo */
.page-hero-farmacovigilancia .hero-content {
  position: relative;
  z-index: 3;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: 1.5rem;
  text-align: right;
}

/* texto legible sobre imagen */
.page-hero-farmacovigilancia .hero-title {
  color: #fff;
}

.page-hero-farmacovigilancia .hero-sub {
  color: rgba(255,255,255,0.92);
}

.page-hero-farmacovigilancia .hero-kicker {
  color: var(--ls-yellow);
}

.page-hero-farmacovigilancia .hero-kicker--badge {
  background: linear-gradient(
    180deg,
    rgba(255, 199, 44, 0.98),
    rgba(229, 168, 35, 0.98)
  );
  color: #0b1220;
  box-shadow: 0 8px 20px rgba(229, 168, 35, 0.12);
}

/* ghost button sobre fondo oscuro */
.page-hero-farmacovigilancia .hero-ctas .btn.ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.06);
}

.page-hero-farmacovigilancia .hero-ctas .btn.ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.56);
}

/* mobile */
@media (max-width: 900px) {
  .page-hero-farmacovigilancia .hero-content {
    margin-inline: auto;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-hero-farmacovigilancia {
    min-height: 320px;
    padding: 24px 0;
  }

  .page-hero-farmacovigilancia .hero-content {
    padding: 24px 12px;
  }

  .page-hero-farmacovigilancia .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .page-hero-farmacovigilancia .hero-sub {
    font-size: 0.98rem;
    max-width: 34ch;
  }
}
/* FIX: neutralizar sistema hero global SOLO en farmacovigilancia */
.page-hero-farmacovigilancia .hero-media .hero-img {
  left: 0 !important;
  top: 0 !important;
  transform: none !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover;
  object-position: center;
}
/* =========================================================
   HERO PÁGINAS INTERNAS (BIO, PLAN, TRABAJA, NOTICIAS)
   Scopeado – NO afecta home
========================================================= */

.page-hero-bioequivalentes,
.page-hero-plan-salud,
.page-hero-trabaja,
.page-hero-noticias {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 32vh, 340px);
  display: grid;
  align-items: center;
  padding: 28px 0;
  background: none !important;
}

/* media */
.page-hero-bioequivalentes .hero-media,
.page-hero-plan-salud .hero-media,
.page-hero-trabaja .hero-media,
.page-hero-noticias .hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/*s FIX global conflict (igual que farmacovigilancia) */
.page-hero-bioequivalentes .hero-media .hero-img,
.page-hero-plan-salud .hero-media .hero-img,
.page-hero-trabaja .hero-media .hero-img,
.page-hero-noticias .hero-media .hero-img {
  left: 0 !important;
  top: 0 !important;
  transform: none !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover;
  object-position: center;
}

/* quitar pseudo elementos viejos */
.page-hero-bioequivalentes .hero-media::before,
.page-hero-plan-salud .hero-media::before,
.page-hero-trabaja .hero-media::before,
.page-hero-noticias .hero-media::before {
  content: none !important;
}

/* overlay */
.page-hero-bioequivalentes .hero-overlay,
.page-hero-plan-salud .hero-overlay,
.page-hero-trabaja .hero-overlay,
.page-hero-noticias .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* contenido */
.page-hero-bioequivalentes .hero-content,
.page-hero-plan-salud .hero-content,
.page-hero-trabaja .hero-content,
.page-hero-noticias .hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin-left: auto;
  margin-right: 1.5rem;
  text-align: right;
}

/* colores */
.page-hero-bioequivalentes .hero-title,
.page-hero-plan-salud .hero-title,
.page-hero-trabaja .hero-title,
.page-hero-noticias .hero-title {
  color: #fff;
}

.page-hero-bioequivalentes .hero-sub,
.page-hero-plan-salud .hero-sub,
.page-hero-trabaja .hero-sub,
.page-hero-noticias .hero-sub {
  color: rgba(255,255,255,0.92);
}

/* responsive */
@media (max-width: 900px) {
  .page-hero-bioequivalentes .hero-content,
  .page-hero-plan-salud .hero-content,
  .page-hero-trabaja .hero-content,
  .page-hero-noticias .hero-content {
    margin-inline: auto;
    text-align: left;
  }
}
/* =========================================================
   FOOTER - FARMANDINA
   Solo footer
========================================================= */

.footer.footer--ls.lsf {
  position: relative;
  margin-top: 0 !important;
  border-top: 4px solid var(--ls-blue);
  background: linear-gradient(180deg, #f3c43a 0%, #e5a823 100%);
  color: var(--ls-blue);
  overflow: visible !important;
}

.footer.footer--ls.lsf .container {
  position: relative;
  z-index: 1;
}

.footer.footer--ls.lsf h3,
.footer.footer--ls.lsf h4 {
  margin: 0 0 14px;
  color: var(--ls-blue);
  font-weight: 900;
  line-height: 1.15;
}

.footer.footer--ls.lsf p {
  margin: 0;
  color: rgba(0, 26, 114, 0.92);
  line-height: 1.55;
}

.footer.footer--ls.lsf a {
  font-weight: 700;
  text-decoration: none;
}

.footer.footer--ls.lsf a:hover {
  text-decoration: underline;
}

/* TOP */
.footer.footer--ls.lsf .lsf__top {
  display: grid !important;
  grid-template-columns: minmax(420px, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  padding-top: 34px;
  padding-bottom: 28px;
  align-items: start;
}

.footer.footer--ls.lsf .lsf__brand {
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.footer.footer--ls.lsf .lsf__wordmark {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 900;
}

.footer.footer--ls.lsf .lsf__copy {
  max-width: 34ch;
}

.footer.footer--ls.lsf .lsf__actions {
  margin-top: 18px;
}

/* DISTRIBUIDORES */
.footer.footer--ls.lsf .lsf__accordion {
  display: grid;
  gap: 12px;
}

.footer.footer--ls.lsf .lsf__item {
  border: 1px solid rgba(0, 26, 114, 0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}

.footer.footer--ls.lsf .lsf__item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--ls-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer.footer--ls.lsf .lsf__item summary::-webkit-details-marker {
  display: none;
}

.footer.footer--ls.lsf .lsf__item summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 900;
}

.footer.footer--ls.lsf .lsf__item[open] summary::after {
  content: "−";
}

.footer.footer--ls.lsf .lsf__panel {
  padding: 0 16px 16px;
  display: grid;
  gap: 10px;
}

/* SOCIAL */
.footer.footer--ls.lsf .lsf__social {
  display: flex !important;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.footer.footer--ls.lsf .lsf__social a {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 26, 114, 0.08);
  border: 1px solid rgba(0, 26, 114, 0.10);
  color: var(--ls-blue);
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

/* MID */
.footer.footer--ls.lsf .lsf__mid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(0, 26, 114, 0.12);
  align-items: start;
}

.footer.footer--ls.lsf .lsf__links,
.footer.footer--ls.lsf .lsf__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

.footer.footer--ls.lsf .lsf__mid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: center;
}

.footer.footer--ls.lsf .lsf__mid li {
  margin: 0;
}

.footer.footer--ls.lsf .lsf__mid li a {
  display: inline-block;
}

/* BOTTOM */
.footer.footer--ls.lsf .lsf__bottom {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(0, 26, 114, 0.14);
}

.footer.footer--ls.lsf .lsf__bottom-left {
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer.footer--ls.lsf .lsf__bottom small {
  text-align: center;
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  color: rgba(0, 26, 114, 0.92);
  line-height: 1.45;
}

.footer.footer--ls.lsf .lsf__bottom-right {
  text-align: right;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .footer.footer--ls.lsf .lsf__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer.footer--ls.lsf .lsf__brand {
    justify-self: center;
    max-width: 100%;
    text-align: center;
  }

  .footer.footer--ls.lsf .lsf__mid {
    grid-template-columns: 1fr 1fr;
  }

  .footer.footer--ls.lsf .lsf__links,
  .footer.footer--ls.lsf .lsf__legal,
  .footer.footer--ls.lsf .lsf__contact {
    margin-inline: auto;
  }

  .footer.footer--ls.lsf .lsf__bottom {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer.footer--ls.lsf .lsf__bottom-left {
    justify-content: center;
  }

  .footer.footer--ls.lsf .lsf__bottom-right {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer.footer--ls.lsf .lsf__top,
  .footer.footer--ls.lsf .lsf__mid {
    text-align: center;
  }

  .footer.footer--ls.lsf .lsf__mid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer.footer--ls.lsf .lsf__links,
  .footer.footer--ls.lsf .lsf__legal,
  .footer.footer--ls.lsf .lsf__contact {
    width: 100%;
    max-width: 100%;
  }

  .footer.footer--ls.lsf .lsf__social {
    justify-content: center;
  }

  .footer.footer--ls.lsf .lsf__copy {
    margin-inline: auto;
  }
}

/* =========================================================
   NOTICIAS — HERO CON IMAGEN DE CONTACTO Y COPY CENTRADO
========================================================= */

.page-hero-noticias {
  min-height: clamp(420px, 36.458vw, 560px) !important;
}

.page-hero-noticias .hero-img {
  object-position: center center !important;
}

.page-hero-noticias .hero-content,
.page-hero-noticias .hero-content.container {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.page-hero-noticias .hero-kicker,
.page-hero-noticias .hero-title,
.page-hero-noticias .hero-sub {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.page-hero-noticias .hero-title {
  max-width: 19ch !important;
  text-wrap: balance;
}

.page-hero-noticias .hero-sub {
  max-width: 58ch !important;
  text-wrap: balance;
}

.page-hero-noticias .hero-ctas {
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .page-hero-noticias {
    min-height: 540px !important;
  }

  .page-hero-noticias .hero-title {
    max-width: 17ch !important;
  }

  .page-hero-noticias .hero-sub {
    max-width: 38ch !important;
  }
}

/* =========================================================
   TRABAJA — HERO DESKTOP / MOBILE
========================================================= */

.page-trabaja .jobs-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(360px, 42vw, 560px);
  overflow: hidden;
  background: #0b1f5e;
}

.page-trabaja .jobs-hero__picture,
.page-trabaja .jobs-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-trabaja .jobs-hero__picture {
  z-index: 1;
  display: block;
}

.page-trabaja .jobs-hero__image {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.page-trabaja .jobs-hero__actions {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 32px;
  padding-bottom: 34px;
}

.page-trabaja .jobs-hero__button {
  min-width: 170px;
  justify-content: center;
  visibility: visible;
}

.page-trabaja .jobs-hero__button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(11, 31, 94, 0.72);
}

@media (max-width: 768px) {
  .page-trabaja .jobs-hero {
    min-height: clamp(430px, 118vw, 650px);
  }

  .page-trabaja .jobs-hero__image {
    object-position: center center;
  }

  .page-trabaja .jobs-hero__actions {
    align-items: flex-end;
    padding-inline: 16px;
    padding-bottom: 28px;
  }

  .page-trabaja .jobs-hero__button {
    min-width: min(220px, 100%);
  }
}
/* =========================================================
   HOME SLIDESHOW — DESKTOP / MOBILE BANNER SWITCH
   FINAL PATCH
   Desktop: --hero-bg
   Mobile:  --hero-bg-mobile
========================================================= */

/* Stage base */
.hero.hero--euro .hero-stage {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #eef2fb;
}

/* Contenedor de slides */
.hero.hero--euro .hero-slides {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Slides */
.hero.hero--euro .hero-slide {
  position: absolute !important;
  inset: 0 !important;
  background-image: var(--hero-bg) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Estado activo */
.hero.hero--euro .hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
}

/* Desktop / tablet */
@media (min-width: 769px) {
  .hero.hero--euro .hero-stage {
    aspect-ratio: 12 / 5 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 520px !important;
    border-radius: 0 0 24px 24px;
  }

  .hero.hero--euro .hero-slide {
    background-image: var(--hero-bg) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero.hero--euro {
    padding: 0 !important;
  }

  .hero.hero--euro .hero-stage {
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    min-height: 470px !important;
    max-height: none !important;
    border-radius: 0 0 16px 16px;
  }

  .hero.hero--euro .hero-slide {
    background-image: var(--hero-bg-mobile, var(--hero-bg)) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  /* El arte mobile ya trae textos; quitamos overlays para no ensuciar */
  .hero.hero--euro .hero-slide::before,
  .hero.hero--euro .hero-slide::after {
    content: none !important;
    display: none !important;
  }

  .hero.hero--euro .hero-inner {
    padding: 0 !important;
    height: 100% !important;
  }
}

/* Mobile pequeño */
@media (max-width: 520px) {
  .hero.hero--euro .hero-stage {
    aspect-ratio: 4 / 5 !important;
    min-height: 430px !important;
    max-height: none !important;
  }

  .hero.hero--euro .hero-slide {
    background-image: var(--hero-bg-mobile, var(--hero-bg)) !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}
/* =========================================================
   HERO INTERIORES — HOMOLOGACIÓN FINAL
   Farmacovigilancia, Bioequivalentes, 
   Trabaja, Noticias y Somos
========================================================= */

/* -------------------------
   CONTENEDOR HERO
------------------------- */
.page-hero-farmacovigilancia,
.page-hero-bioequivalentes,
.page-hero-plan-salud,
.page-hero-trabaja,
.page-hero-noticias,
.page-somos .hero-hero,
.page-somos .somos-hero {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  align-items: center !important;
  justify-items: center !important;
  min-height: clamp(320px, 42vh, 430px) !important;
  padding: 28px 0 !important;
  background: none !important;
}

/* -------------------------
   MEDIA / IMAGEN
------------------------- */
.page-hero-farmacovigilancia .hero-media,
.page-hero-bioequivalentes .hero-media,
.page-hero-plan-salud .hero-media,
.page-hero-trabaja .hero-media,
.page-hero-noticias .hero-media,
.page-somos .hero-media,
.page-somos .somos-hero .hero-media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* apagar pseudo-elementos viejos */
.page-hero-farmacovigilancia .hero-media::before,
.page-hero-bioequivalentes .hero-media::before,
.page-hero-plan-salud .hero-media::before,
.page-hero-trabaja .hero-media::before,
.page-hero-noticias .hero-media::before,
.page-somos .hero-media::before,
.page-somos .somos-hero .hero-media::before {
  content: none !important;
  display: none !important;
}

/* imagen centrada */
.page-hero-farmacovigilancia .hero-img,
.page-hero-bioequivalentes .hero-img,
.page-hero-plan-salud .hero-img,
.page-hero-trabaja .hero-img,
.page-hero-noticias .hero-img,
.page-somos .hero-img,
.page-somos .somos-hero .hero-img {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;

  z-index: 1 !important;
}

/* -------------------------
   OVERLAY
------------------------- */
.page-hero-farmacovigilancia .hero-overlay,
.page-hero-bioequivalentes .hero-overlay,
.page-hero-plan-salud .hero-overlay,
.page-hero-trabaja .hero-overlay,
.page-hero-noticias .hero-overlay,
.page-somos .hero-overlay,
.page-somos .somos-hero .hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* overlay estándar oscuro */
.page-hero-farmacovigilancia .hero-overlay,
.page-hero-farmacovigilancia .hero-overlay--internal,
.page-hero-bioequivalentes .hero-overlay,
.page-hero-plan-salud .hero-overlay,
.page-hero-trabaja .hero-overlay,
.page-hero-noticias .hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 94, 0.78) 0%,
      rgba(11, 31, 94, 0.62) 46%,
      rgba(11, 31, 94, 0.50) 72%,
      rgba(11, 31, 94, 0.38) 100%
    ) !important;
}

/* overlay somos, un poco más suave si usa imagen clara */
.page-somos .hero-overlay,
.page-somos .somos-hero .hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(8, 43, 122, 0.60) 0%,
      rgba(8, 43, 122, 0.46) 45%,
      rgba(8, 43, 122, 0.34) 100%
    ) !important;
}

/* Blur azul compartido con Farmacovigilancia */
.page-somos .hero-hero .hero-overlay,
.page-somos .somos-hero .hero-overlay,
.page-hero-noticias .hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(11, 31, 94, 0.78) 0%,
      rgba(11, 31, 94, 0.60) 52%,
      rgba(11, 31, 94, 0.46) 100%
    ) !important;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* -------------------------
   CONTENIDO CENTRADO
------------------------- */
.page-hero-farmacovigilancia .hero-content,
.page-hero-farmacovigilancia .hero-content.container,
.page-hero-bioequivalentes .hero-content,
.page-hero-bioequivalentes .hero-content.container,
.page-hero-plan-salud .hero-content,
.page-hero-plan-salud .hero-content.container,
.page-hero-trabaja .hero-content,
.page-hero-trabaja .hero-content.container,
.page-hero-noticias .hero-content,
.page-hero-noticias .hero-content.container,
.page-somos .hero-content,
.page-somos .hero-content.container,
.page-somos .somos-hero .hero-content,
.page-somos .somos-hero .hero-content.container {
  position: relative !important;
  z-index: 3 !important;

  width: min(100% - 32px, 900px) !important;
  max-width: 900px !important;

  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;

  padding-left: 16px !important;
  padding-right: 16px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;
}

/* si existe wrapper interno */
.page-hero-farmacovigilancia .hero-inner-content,
.page-hero-bioequivalentes .hero-inner-content,
.page-hero-plan-salud .hero-inner-content,
.page-hero-trabaja .hero-inner-content,
.page-hero-noticias .hero-inner-content,
.page-somos .hero-inner-content {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  text-align: center !important;
}

/* -------------------------
   KICKER / BADGE
------------------------- */
.page-hero-farmacovigilancia .hero-kicker,
.page-hero-bioequivalentes .hero-kicker,
.page-hero-plan-salud .hero-kicker,
.page-hero-trabaja .hero-kicker,
.page-hero-noticias .hero-kicker,
.page-somos .hero-kicker,
.page-somos .eyebrow,
.page-somos .section-label {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 14px !important;

  text-align: center !important;
}

/* -------------------------
   TÍTULO
------------------------- */
.page-hero-farmacovigilancia .hero-title,
.page-hero-bioequivalentes .hero-title,
.page-hero-plan-salud .hero-title,
.page-hero-trabaja .hero-title,
.page-hero-noticias .hero-title,
.page-somos .hero-title,
.page-somos .somos-hero h1 {
  color: #fff !important;

  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 14px !important;

  max-width: 16ch !important;

  text-align: center !important;
  text-wrap: balance;

  font-size: clamp(2.35rem, 4vw, 4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.03em !important;
}

/* Bio y Plan tienen títulos más largos, damos un poco más de ancho */
.page-hero-bioequivalentes .hero-title,
.page-hero-plan-salud .hero-title,
.page-somos .somos-hero h1 {
  max-width: 22ch !important;
}

/* -------------------------
   SUBTÍTULO
------------------------- */
.page-hero-farmacovigilancia .hero-sub,
.page-hero-bioequivalentes .hero-sub,
.page-hero-plan-salud .hero-sub,
.page-hero-trabaja .hero-sub,
.page-hero-noticias .hero-sub,
.page-somos .hero-sub,
.page-somos .somos-hero p {
  color: rgba(255, 255, 255, 0.94) !important;
  max-width: 60ch !important;

  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;

  text-align: center !important;

  font-size: clamp(1rem, 1.15vw, 1.14rem) !important;
  line-height: 1.65 !important;
}


/* Home program cards: mobile first, horizontal only when there is room. */
.grid.cols-3.home-program-cards {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 16px;
}

.grid.cols-3.home-program-cards > .card {
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  .grid.cols-3.home-program-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* -------------------------
   CTAS / BOTONES
------------------------- */
.page-hero-farmacovigilancia .hero-ctas,
.page-hero-bioequivalentes .hero-ctas,
.page-hero-plan-salud .hero-ctas,
.page-hero-trabaja .hero-ctas,
.page-hero-noticias .hero-ctas,
.page-somos .hero-ctas,
.page-somos .hero-actions,
.page-somos .actions,
.page-somos .cta-group {
  width: 100% !important;

  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;

  gap: 16px !important;
  margin-top: 28px !important;
}

/* botones consistentes */
.page-hero-farmacovigilancia .hero-ctas .btn,
.page-hero-bioequivalentes .hero-ctas .btn,
.page-hero-plan-salud .hero-ctas .btn,
.page-hero-trabaja .hero-ctas .btn,
.page-hero-noticias .hero-ctas .btn,
.page-somos .hero-ctas .btn,
.page-somos .hero-actions .btn,
.page-somos .actions .btn,
.page-somos .cta-group .btn {
  min-width: 170px !important;
  justify-content: center !important;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 900px) {
  .page-hero-farmacovigilancia,
  .page-hero-bioequivalentes,
  .page-hero-plan-salud,
  .page-hero-trabaja,
  .page-hero-noticias,
  .page-somos .hero-hero,
  .page-somos .somos-hero {
    min-height: 340px !important;
    padding: 24px 0 !important;
  }

  .page-hero-farmacovigilancia .hero-content,
  .page-hero-bioequivalentes .hero-content,
  .page-hero-plan-salud .hero-content,
  .page-hero-trabaja .hero-content,
  .page-hero-noticias .hero-content,
  .page-somos .hero-content,
  .page-somos .somos-hero .hero-content {
    width: min(100% - 28px, 760px) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .page-hero-farmacovigilancia .hero-title,
  .page-hero-bioequivalentes .hero-title,
  .page-hero-plan-salud .hero-title,
  .page-hero-trabaja .hero-title,
  .page-hero-noticias .hero-title,
  .page-somos .hero-title,
  .page-somos .somos-hero h1 {
    max-width: 100% !important;
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  .page-hero-farmacovigilancia .hero-sub,
  .page-hero-bioequivalentes .hero-sub,
  .page-hero-plan-salud .hero-sub,
  .page-hero-trabaja .hero-sub,
  .page-hero-noticias .hero-sub,
  .page-somos .hero-sub,
  .page-somos .somos-hero p {
    max-width: 38ch !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 640px) {
  .page-hero-farmacovigilancia,
  .page-hero-bioequivalentes,
  .page-hero-plan-salud,
  .page-hero-trabaja,
  .page-hero-noticias,
  .page-somos .hero-hero,
  .page-somos .somos-hero {
    min-height: 320px !important;
  }

  .page-hero-farmacovigilancia .hero-title,
  .page-hero-bioequivalentes .hero-title,
  .page-hero-plan-salud .hero-title,
  .page-hero-trabaja .hero-title,
  .page-hero-noticias .hero-title,
  .page-somos .hero-title,
  .page-somos .somos-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
  }

  .page-hero-farmacovigilancia .hero-ctas,
  .page-hero-bioequivalentes .hero-ctas,
  .page-hero-plan-salud .hero-ctas,
  .page-hero-trabaja .hero-ctas,
  .page-hero-noticias .hero-ctas,
  .page-somos .hero-ctas,
  .page-somos .hero-actions,
  .page-somos .actions,
  .page-somos .cta-group {
    gap: 10px !important;
  }

  .page-hero-farmacovigilancia .hero-ctas .btn,
  .page-hero-bioequivalentes .hero-ctas .btn,
  .page-hero-plan-salud .hero-ctas .btn,
  .page-hero-trabaja .hero-ctas .btn,
  .page-hero-noticias .hero-ctas .btn,
  .page-somos .hero-ctas .btn,
  .page-somos .hero-actions .btn,
  .page-somos .actions .btn,
  .page-somos .cta-group .btn {
    min-width: 148px !important;
  }
}
/* =========================================================
   FINAL PATCH: NAV LAYER + PRODUCT CATEGORY PREMIUM UI
   Limpio, consolidado y sin duplicados
========================================================= */

/* =========================================================
   NAV DROPDOWN LAYER FIX
   Evita que el menu quede debajo del hero
========================================================= */

#site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 90000 !important;
  isolation: isolate;
}

#site-header .header,
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 90000 !important;
  overflow: visible !important;
  isolation: isolate;
}

.header .nav-wrapper,
.header .container.nav-wrapper,
.header #primary-nav,
.header .nav-list,
.header .nav-item,
.header .nav-item-head {
  overflow: visible !important;
}

.header .nav-submenu {
  z-index: 95000 !important;
}

@media (min-width: 1151px) {
  .header .nav-item.nav-dropdown:hover > .nav-submenu,
  .header .nav-item.nav-dropdown:focus-within > .nav-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    z-index: 95000 !important;
  }
}

@media (max-width: 1150px) {
  .header #primary-nav {
    z-index: 95000 !important;
  }

  .header #primary-nav.open {
    z-index: 95000 !important;
  }

  .header .nav-submenu.open {
    z-index: 96000 !important;
  }
}

.hero-hero,
.hero-hero.hero-hero--internal,
.page-hero-farmacovigilancia,
.page-hero-bioequivalentes,
.page-hero-plan-salud,
.page-hero-trabaja,
.page-hero-noticias,
.page-somos .hero-hero,
.page-somos .somos-hero {
  position: relative !important;
  z-index: 0 !important;
  isolation: isolate;
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
}

/* =========================================================
   REGION MODAL - PRODUCT SECTION
========================================================= */

#region-modal.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#region-modal.modal.is-open {
  display: flex;
}

#region-modal .modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(2px);
}

#region-modal .modal__panel,
#region-modal .modal__panel--wide {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-width: 760px;
  max-height: min(86vh, 720px);
  overflow: auto;
  margin: 0;
  padding: 34px 38px 28px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

#region-modal .modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

#region-modal .modal__body {
  display: grid;
  gap: 16px;
}

#region-modal .modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

#region-modal select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
  outline: none;
}

#region-modal select:focus {
  border-color: #001a70;
  box-shadow: 0 0 0 3px rgba(0, 26, 112, 0.12);
}

#region-modal .modal__title,
#region-modal h2 {
  margin: 0 0 18px;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

#region-modal .modal__eyebrow,
#region-modal .kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 13px;
  border: 1px solid #ffc72c;
  border-radius: 999px;
  background: #fff7d6;
  color: #001a70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

#region-modal .region-confirm-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 15px;
}

#region-modal .modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #001a70;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#region-modal .modal-close:hover {
  background: #e5e7eb;
}

body.no-scroll {
  overflow: hidden;
}

/* =========================================================
   SELECTED COUNTRY CONTEXT PILL
========================================================= */

.selected-country-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 26, 112, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 36px rgba(0, 26, 112, 0.08);
}

.selected-country-context[hidden] {
  display: none;
}

.selected-country-context__content {
  display: grid;
  gap: 5px;
}

.selected-country-context__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 4px 11px;
  border: 1px solid #ffc72c;
  border-radius: 999px;
  background: #fff7d6;
  color: #001a70;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.selected-country-context strong {
  color: #001a70;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 900;
}

.selected-country-context p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.selected-country-context__button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 26, 112, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #001a70;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.selected-country-context__button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 26, 112, 0.28);
  background: #fff7d6;
  box-shadow: 0 10px 22px rgba(0, 26, 112, 0.12);
}

.selected-country-context__button:focus-visible {
  outline: 3px solid rgba(255, 199, 44, 0.85);
  outline-offset: 3px;
}

/* =========================================================
   KICKERS / PILLS
========================================================= */

.kicker,
.card .kicker,
.section-header .kicker,
.hero-text .kicker,
#cat-kicker,
.product-modal-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 13px;
  border: 1px solid #ffc72c;
  border-radius: 999px;
  background: #fff7d6;
  color: #001a70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* =========================================================
   CATEGORY PAGE SPACING
========================================================= */

.category-hero {
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.category-hero + .section {
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(54px, 6vw, 86px);
}

.category-hero,
.section,
.results {
  scroll-margin-top: 120px;
}

.results {
  min-width: 0;
}

.results-header {
  margin-bottom: 18px;
}

.pagination {
  margin-top: 26px;
  margin-bottom: 18px;
}

/* =========================================================
   PRODUCT LAYOUT
========================================================= */

.layout-columns {
  align-items: flex-start;
}

.filters {
  align-self: flex-start;
}

.results .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* =========================================================
   PRODUCT CARDS
========================================================= */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 26, 112, 0.045);
}

.product-card--clickable {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.product-card--clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 26, 112, 0.18);
  box-shadow: 0 18px 48px rgba(0, 26, 112, 0.12);
}

.product-card--clickable:focus-visible {
  outline: 3px solid rgba(255, 199, 44, 0.85);
  outline-offset: 4px;
}

.product-card img {
  width: 100%;
  height: 178px;
  object-fit: contain;
  padding: 24px 24px 20px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
  border-radius: 18px 18px 0 0;
}

.product-card__body,
.product-card .p {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
}

.product-card__title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: #001a70;
  font-size: 15.5px;
  font-weight: 850;
  line-height: 1.42;
  letter-spacing: 0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__meta {
  margin: 0;
  color: #667085;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-card__molecule {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.product-card__presentation {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 16px;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .view-product {
  align-self: center;
  min-height: 38px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.product-card .view-product:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 26, 112, 0.14);
}

/* =========================================================
   SKELETON LOADING
========================================================= */

.product-card--skeleton {
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 100%
    );
  animation: skeletonShimmer 1.15s infinite;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton--image {
  width: 100%;
  height: 178px;
  border-radius: 18px 18px 0 0;
}

.skeleton--title {
  width: 80%;
  height: 20px;
  margin-bottom: 8px;
}

.skeleton--line {
  width: 100%;
  height: 14px;
}

.skeleton--line-short {
  width: 68%;
}

.skeleton--button {
  width: 116px;
  height: 38px;
  margin: 18px auto 0;
  border-radius: 999px;
}

/* =========================================================
   EMPTY PRODUCTS STATE
========================================================= */

.empty-products-state {
  grid-column: 1 / -1;
  width: min(640px, 100%);
  margin: 12px auto 0;
  padding: 36px 30px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 199, 44, 0.15), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 26, 112, 0.08);
}

.empty-products-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #fff7d6;
  color: #001a70;
  font-size: 24px;
}

.empty-products-state h3 {
  margin: 0 0 8px;
  color: #001a70;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.empty-products-state p {
  max-width: 480px;
  margin: 0 auto 20px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.empty-products-state__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   PRODUCT DETAIL MODAL
========================================================= */

#product-modal.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#product-modal .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(2px);
}

#product-modal .modal-panel {
  position: relative;
  z-index: 2;
  width: min(940px, 96%);
  max-height: 88vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.22);
}

#product-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #001a70;
  font-size: 18px;
  cursor: pointer;
}

#product-modal .modal-close:hover {
  background: #e5e7eb;
}

.product-modal-content--with-image {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  gap: 30px;
  padding: 42px;
}

.product-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
  border-radius: 18px;
  background: #f8fafc;
}

.product-modal-media img {
  width: 100%;
  max-width: 340px;
  max-height: 300px;
  object-fit: contain;
}

.product-modal-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-modal-detail h3 {
  margin: 0;
  color: #001a70;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 900;
}

.product-modal-meta {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.product-modal-description {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.product-modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.product-modal-fact {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.product-modal-fact span {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-modal-fact strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.product-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.product-modal-actions .btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

/* =========================================================
   RESPONSIVE FINAL REVIEW
========================================================= */

@media (max-width: 1180px) {
  .results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .results .product-grid {
    gap: 20px;
  }

  .product-card img,
  .skeleton--image {
    height: 160px;
  }
}

@media (max-width: 900px) {
  .layout-columns {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #region-modal.modal {
    padding: 16px;
    align-items: center;
  }

  #region-modal .modal__panel,
  #region-modal .modal__panel--wide {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    padding: 28px 20px 22px;
    border-radius: 12px;
  }

  #region-modal .modal__header {
    gap: 12px;
  }

  #region-modal .modal__footer {
    flex-direction: column-reverse;
  }

  #region-modal .modal__footer .btn,
  #region-modal .modal__footer button {
    width: 100%;
  }

  .product-modal-content--with-image {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 22px 24px;
  }

  .product-modal-media {
    min-height: 240px;
  }

  .product-modal-media img {
    max-height: 230px;
  }

  .product-modal-facts {
    grid-template-columns: 1fr;
  }

  .product-modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .selected-country-context {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .selected-country-context__button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .results .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card {
    min-height: auto;
  }

  .product-card img,
  .skeleton--image {
    height: 150px;
    padding: 18px;
  }

  .product-card__body,
  .product-card .p {
    padding: 18px;
  }

  .product-card__title {
    min-height: auto;
    font-size: 15px;
  }

  .product-card__presentation {
    min-height: auto;
  }

  .empty-products-state__actions {
    flex-direction: column;
  }

  .empty-products-state__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #region-modal.modal {
    padding: 10px;
  }

  #region-modal .modal__panel {
    padding: 24px 16px 18px;
  }

  #region-modal select {
    min-height: 50px;
    font-size: 15px;
  }

  #product-modal.modal.open {
    padding: 12px;
  }

  #product-modal .modal-panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 14px;
  }

  .product-modal-content--with-image {
    padding: 30px 16px 20px;
  }
}
/* =========================================================
   HOME HERO DESKTOP BANNERS - FINAL 1920x700 FIX
   Objetivo: sin recorte y sin aire en desktop
   Desktop image ratio: 1920 / 700
========================================================= */

@media (min-width: 769px) {
  .hero.hero--euro {
    padding: 0 !important;
    background: #ffffff !important;
  }

  .hero.hero--euro .hero-stage {
    position: relative !important;
    width: 100% !important;

    /* Ratio real del arte desktop: 1920x700 */
    aspect-ratio: 1920 / 800 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: hidden !important;
    border-radius: 0 0 24px 24px;
    background: #ffffff !important;
  }

  .hero.hero--euro .hero-slides,
  .hero.hero--euro .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hero.hero--euro .hero-slide {
    background-image: var(--hero-bg) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .hero.hero--euro .hero-slide img,
  .hero.hero--euro .hero-slide picture,
  .hero.hero--euro .hero-slide .hero-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero.hero--euro .hero-inner {
    height: 100% !important;
    padding: 0 !important;
  }
}

/* Desktop grande y ultrawide: mantener ratio real, sin topes */
@media (min-width: 1440px) {
  .hero.hero--euro .hero-stage {
    aspect-ratio: 1920 / 800 !important;
    max-height: none !important;
  }
}

/* =========================================================
   MOBILE HERO - KEEP MOBILE ART INDEPENDENT
   No tocar si los banners mobile ya estan adaptados
========================================================= */

@media (max-width: 768px) {
  .hero.hero--euro {
    padding: 0 !important;
    background: #ffffff !important;
  }

  .hero.hero--euro .hero-stage {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    min-height: 430px !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 0 0 16px 16px;
    background: #ffffff !important;
  }

  .hero.hero--euro .hero-slides,
  .hero.hero--euro .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hero.hero--euro .hero-slide {
    background-image: var(--hero-bg-mobile, var(--hero-bg)) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .hero.hero--euro .hero-slide::before,
  .hero.hero--euro .hero-slide::after {
    content: none !important;
    display: none !important;
  }

  .hero.hero--euro .hero-inner {
    height: 100% !important;
    padding: 0 !important;
  }
}

@media (max-width: 520px) {
  .hero.hero--euro .hero-stage {
    aspect-ratio: 4 / 5 !important;
    min-height: 410px !important;
  }
}
/* =========================================================
   FOOTER CONTACT COLUMN ALIGNMENT
   Centra correo, texto e iconos sociales en Contáctanos
========================================================= */

.footer.footer--ls.lsf .lsf__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.footer.footer--ls.lsf .lsf__contact > * {
  width: 100%;
}

.footer.footer--ls.lsf .lsf__contact .lsf__title {
  text-align: center;
  margin-bottom: 10px;
}

.footer.footer--ls.lsf .lsf__contact p {
  margin: 0 0 8px;
  text-align: center;
  width: 100%;
}

.footer.footer--ls.lsf .lsf__contact a {
  display: inline-block;
  text-align: center;
}

.footer.footer--ls.lsf .lsf__contact .lsf__social {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: auto;
  margin: 14px auto 0;
}

.footer.footer--ls.lsf .lsf__contact .lsf__social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 26, 114, 0.08);
  border: 1px solid rgba(0, 26, 114, 0.10);
  color: var(--ls-blue);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.footer.footer--ls.lsf .lsf__contact .lsf__social a:hover {
  transform: translateY(-2px);
  background: rgba(0, 26, 114, 0.14);
  border-color: rgba(0, 26, 114, 0.18);
  text-decoration: none;
}

@media (max-width: 640px) {
  .footer.footer--ls.lsf .lsf__contact {
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
  }

  .footer.footer--ls.lsf .lsf__contact .lsf__social {
    justify-content: center;
  }
}
/* =========================================================
   FOOTER BOTTOM ALIGNMENT FINAL
   Copyright izquierda, IQVIA centro, audiencia derecha
========================================================= */

.footer.footer--ls.lsf .lsf__bottom {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer.footer--ls.lsf .lsf__bottom-left {
  display: contents !important;
}

.footer.footer--ls.lsf #footer-year {
  justify-self: start;
  text-align: left;
}

.footer.footer--ls.lsf .lsf__developed {
  justify-self: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(0, 26, 114, 0.92);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.footer.footer--ls.lsf .lsf__developed a {
  color: var(--ls-blue);
  font-weight: 900;
  text-decoration: none;
}

.footer.footer--ls.lsf .lsf__developed a:hover {
  text-decoration: underline;
}

.footer.footer--ls.lsf .lsf__bottom-right {
  justify-self: end;
  text-align: right;
}

@media (max-width: 760px) {
  .footer.footer--ls.lsf .lsf__bottom {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .footer.footer--ls.lsf .lsf__bottom-left {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer.footer--ls.lsf #footer-year,
  .footer.footer--ls.lsf .lsf__developed,
  .footer.footer--ls.lsf .lsf__bottom-right {
    justify-self: center;
    text-align: center;
  }

  .footer.footer--ls.lsf .lsf__developed {
    white-space: normal;
  }
}
/* =========================================================
   FOOTER BRAND COLUMN REFINEMENT
   Logo, copy and CTA alignment
========================================================= */

.footer.footer--ls.lsf .lsf__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer.footer--ls.lsf .lsf__logo {
  display: block;
  width: min(190px, 70%);
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}

.footer.footer--ls.lsf .lsf__copy {
  max-width: 34ch;
  margin: 0 auto;
  color: rgba(0, 26, 114, 0.92);
  line-height: 1.6;
  text-align: center;
}

.footer.footer--ls.lsf .lsf__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}

.footer.footer--ls.lsf .lsf__actions .btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.footer.footer--ls.lsf .lsf__actions .btn.secondary {
  background: var(--ls-blue);
  color: #ffffff;
  border: 1px solid rgba(0, 26, 114, 0.18);
}

.footer.footer--ls.lsf .lsf__actions .btn.secondary:hover {
  transform: translateY(-1px);
  background: #001f86;
  box-shadow: 0 10px 22px rgba(0, 26, 114, 0.16);
}

@media (max-width: 640px) {
  .footer.footer--ls.lsf .lsf__logo {
    width: min(170px, 72%);
  }

  .footer.footer--ls.lsf .lsf__copy {
    max-width: 30ch;
    text-align: center;
  }

  .footer.footer--ls.lsf .lsf__actions .btn {
    width: auto;
    min-width: 148px;
  }
}
/* =========================================================
   MOBILE NAV TYPOGRAPHY FINAL
   Mobile premium, plano, homologado y con separadores tenues
   Desktop conserva dropdowns existentes
========================================================= */

@media (max-width: 1150px) {
  .header .nav-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .header .nav-contact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .header .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    line-height: 1;
  }

  .header #primary-nav {
    position: fixed;
    top: 72px;
    left: 50%;
    width: min(420px, calc(100% - 28px));
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    transform: translateX(-50%);
    padding: 16px 14px;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 50px rgba(0, 26, 114, 0.16);
    z-index: 95000 !important;
  }

  .header #primary-nav.open {
    display: block;
  }

  .header #primary-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header #primary-nav .nav-item {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .header #primary-nav .nav-item:not(:last-child)::after {
    content: "";
    display: block;
    width: calc(100% - 48px);
    height: 1px;
    margin: 0 auto;
    background: rgba(255, 199, 44, 0.42);
  }

  .header #primary-nav .nav-item-head {
    display: block !important;
    width: 100%;
    min-height: auto !important;
  }

  .header #primary-nav .nav-link,
  .header #primary-nav .nav-parent,
  .header #primary-nav .nav-item-head > .nav-link,
  .header #primary-nav .nav-list > li > a,
  .header #primary-nav .nav-list > li.nav-item:not(.nav-dropdown) > a.nav-link {
    position: relative;
    width: 100%;
    min-height: 54px;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 14px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ls-blue);
    font-family: inherit;
    font-size: 0.98rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
  }

  .header #primary-nav .nav-link:hover,
  .header #primary-nav .nav-parent:hover,
  .header #primary-nav .nav-item-head > .nav-link:hover,
  .header #primary-nav .nav-list > li > a:hover {
    background: rgba(255, 199, 44, 0.1) !important;
    color: var(--ls-blue);
    text-decoration: none !important;
  }

  .header #primary-nav .nav-link.active,
  .header #primary-nav .nav-list > li > a.active {
    background: transparent !important;
    border: 0 !important;
    color: var(--ls-blue);
    font-size: 0.98rem !important;
    font-weight: 850 !important;
  }

  .header #primary-nav .nav-link.active::after,
  .header #primary-nav .nav-list > li > a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--ls-yellow);
    transform: translateX(-50%);
  }

  .header #primary-nav .nav-link:focus-visible,
  .header #primary-nav .nav-parent:focus-visible,
  .header .nav-toggle:focus-visible,
  .header .nav-contact:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.45) !important;
  }

  .header #primary-nav .nav-dropdown-toggle,
  .header #primary-nav .nav-submenu {
    display: none !important;
  }
}
/* =========================================================
   FLOATING ACTIONS
   WhatsApp principal + Back to Top secundario
========================================================= */

:root {
  --floating-action-right: 20px;
  --floating-action-bottom: 20px;
  --floating-action-gap: 12px;
  --whatsapp-size: 60px;
  --back-to-top-size: 46px;
}

/* WhatsApp button */
.whatsapp-float {
  position: fixed !important;
  right: var(--floating-action-right) !important;
  bottom: var(--floating-action-bottom) !important;
  z-index: 92000 !important;
  width: var(--whatsapp-size) !important;
  height: var(--whatsapp-size) !important;
  border-radius: 999px !important;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: calc(
    var(--floating-action-right) + ((var(--whatsapp-size) - var(--back-to-top-size)) / 2)
  );
  bottom: calc(
    var(--floating-action-bottom) + var(--whatsapp-size) + var(--floating-action-gap)
  );
  z-index: 91990;
  width: var(--back-to-top-size);
  height: var(--back-to-top-size);
  border: 1px solid rgba(0, 26, 114, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ls-blue);
  box-shadow: 0 14px 34px rgba(0, 26, 114, 0.16);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--ls-yellow);
  color: var(--ls-blue);
  box-shadow: 0 16px 36px rgba(0, 26, 114, 0.22);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 199, 44, 0.55),
    0 16px 36px rgba(0, 26, 114, 0.22);
}

@media (max-width: 768px) {
  :root {
    --floating-action-right: 18px;
    --floating-action-bottom: 18px;
    --floating-action-gap: 10px;
    --whatsapp-size: 56px;
    --back-to-top-size: 44px;
  }

  .back-to-top {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  :root {
    --floating-action-right: 16px;
    --floating-action-bottom: 16px;
  }
}
/* =========================================================
   PORTAFOLIO PAGE PREMIUM REFINEMENT
   Scopeado sólo a portafolio.html
========================================================= */

.page-portfolio .section {
  padding-top: clamp(56px, 6vw, 86px);
  padding-bottom: clamp(56px, 6vw, 86px);
}

.page-portfolio .section + .section {
  padding-top: clamp(34px, 4vw, 58px);
}

.page-portfolio .section-header {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.page-portfolio .section-header > div,
.page-portfolio .section-header .section-copy,
.page-portfolio .section-header .heading-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.page-portfolio .section-header h1,
.page-portfolio .section-header h2 {
  max-width: none;
  margin: 0 auto;
  color: var(--ls-blue);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.page-portfolio .section-header p,
.page-portfolio .section-header .lead,
.page-portfolio .section-header .muted {
  max-width: 48ch;
  margin: 0 auto;
  color: #667085;
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

.page-portfolio .section-header .kicker,
.page-portfolio .kicker {
  margin-left: auto;
  margin-right: auto;
}

/* CTA superior, más fino y premium */
.page-portfolio .section-header .btn,
.page-portfolio .hero-actions .btn,
.page-portfolio .btn.primary,
.page-portfolio .btn.secondary {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  box-shadow: none;
}

.page-portfolio .section-header .btn.primary,
.page-portfolio .btn.primary {
  background: var(--ls-yellow);
  color: var(--ls-blue);
  border: 1px solid rgba(255, 199, 44, 0.95);
}

.page-portfolio .section-header .btn.primary:hover,
.page-portfolio .btn.primary:hover {
  transform: translateY(-1px);
  background: #f6bd22;
  box-shadow: 0 12px 24px rgba(0, 26, 114, 0.12);
}

/* =========================================================
   CATEGORY CARDS
========================================================= */

.page-portfolio .categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.page-portfolio .category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 199, 44, 0.10), transparent 34%),
    #ffffff;
  color: var(--ls-blue);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 26, 114, 0.045);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease;
}

.page-portfolio .category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 199, 44, 0.75);
  box-shadow: 0 18px 42px rgba(0, 26, 114, 0.10);
  text-decoration: none;
}

.page-portfolio .category-card:focus-visible {
  outline: 3px solid rgba(255, 199, 44, 0.75);
  outline-offset: 4px;
}

.page-portfolio .category-card .cat-media,
.page-portfolio .category-card .icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  border: 1px solid rgba(255, 199, 44, 0.85);
  border-radius: 16px;
  background: #fff7d6;
}

.page-portfolio .category-card .cat-media img,
.page-portfolio .category-card .icon img,
.page-portfolio .category-card > img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin: 0 auto;
}

.page-portfolio .category-card h3,
.page-portfolio .category-card h4,
.page-portfolio .category-card strong {
  margin: 0;
  color: var(--ls-blue);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.page-portfolio .category-card p,
.page-portfolio .category-card .cat-meta,
.page-portfolio .category-card .muted {
  max-width: 28ch;
  margin: 0 auto;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.page-portfolio .category-card .link,
.page-portfolio .category-card a.link,
.page-portfolio .category-card .card-link {
  margin: 0;
  color: var(--ls-blue);
  font-size: 0.92rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.page-portfolio .category-card .link:hover,
.page-portfolio .category-card a.link:hover,
.page-portfolio .category-card .card-link:hover {
  color: var(--ls-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   MOLECULE / FEATURED / CATALOG SECTIONS
========================================================= */

.page-portfolio #moleculas,
.page-portfolio #productos-destacados,
.page-portfolio #catalogo {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.page-portfolio #moleculas .section-header,
.page-portfolio #productos-destacados .section-header,
.page-portfolio #catalogo .section-header {
  margin-bottom: 26px;
}

.page-portfolio .featured-products,
.page-portfolio .featured-grid,
.page-portfolio #featured-products,
.page-portfolio #featured-products-grid {
  border-radius: 20px;
}

.page-portfolio .product-grid {
  gap: 24px;
}

.page-portfolio .product-grid > .muted,
.page-portfolio .product-grid > .loading,
.page-portfolio .product-grid > div:only-child {
  grid-column: 1 / -1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 34px 28px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 199, 44, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #667085;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 26, 114, 0.06);
}

.page-portfolio #catalogo .btn,
.page-portfolio .cta-card .btn {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

/* =========================================================
   SPACING FIXES
========================================================= */

.page-portfolio .categories-grid + .section,
.page-portfolio .grid + .section {
  margin-top: 24px;
}

.page-portfolio .section:last-of-type {
  padding-bottom: clamp(72px, 7vw, 110px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
  .page-portfolio .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-portfolio .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .page-portfolio .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .page-portfolio .section-header {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .page-portfolio .categories-grid {
    grid-template-columns: 1fr;
  }

  .page-portfolio .category-card {
    min-height: 150px;
    padding: 24px 18px 20px;
  }

  .page-portfolio .section-header h1,
  .page-portfolio .section-header h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 7vw, 2.35rem);
    white-space: normal;
    text-wrap: balance;
  }

  .page-portfolio .section-header p,
  .page-portfolio .section-header .lead,
  .page-portfolio .section-header .muted {
    max-width: 32ch;
  }

  .page-portfolio .section-header .btn,
  .page-portfolio .hero-actions .btn {
    width: auto;
    min-width: 150px;
  }
}
/* =========================================================
   PORTAFOLIO HEADING + CATALOG CTA ALIGNMENT
   H2 en una linea desktop y CTA catalogo centrado
========================================================= */

.page-portfolio #destacados .section-header h2,
.page-portfolio #catalogo .section-header h2,
.page-portfolio #moleculas .section-header h2 {
  max-width: none;
  white-space: nowrap;
}

.page-portfolio #catalogo,
.page-portfolio #catalogo .container {
  text-align: center;
}

.page-portfolio #catalogo .section-header {
  justify-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-portfolio #catalogo .section-header > div,
.page-portfolio #catalogo .section-header .heading-wrap {
  justify-items: center;
  text-align: center;
}

.page-portfolio #catalogo .btn,
.page-portfolio #catalogo a.btn,
.page-portfolio #catalogo .btn.primary {
  display: inline-flex;
  margin: 18px auto 0;
  align-items: center;
  justify-content: center;
}

/* Mobile: permitir salto natural si no cabe */
@media (max-width: 640px) {
  .page-portfolio #destacados .section-header h2,
  .page-portfolio #catalogo .section-header h2,
  .page-portfolio #moleculas .section-header h2 {
    white-space: normal;
    text-wrap: balance;
  }
}
/* =========================================================
   PÁGINA SOMOS
   Hero institucional centrado
========================================================= */

.page-somos .hero-hero {
  position: relative;
  display: grid;
  grid-template-areas: "hero";
  width: 100%;
  min-height: clamp(360px, 36vw, 520px);
  overflow: hidden;
  isolation: isolate;
}

.page-somos .hero-hero .hero-media {
  grid-area: hero;
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.page-somos .hero-hero .hero-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.page-somos .hero-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-somos .hero-hero .hero-content {
  grid-area: hero;
  position: relative;
  z-index: 2;
  align-self: stretch;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 960px);
  max-width: 960px;
  min-height: inherit;
  margin: 0 auto;
  padding: 48px 24px;
  color: var(--ls-blue);
  text-align: center;
}

.page-somos .hero-hero .hero-kicker {
  align-self: center;
  margin: 0 auto 16px;
  text-align: center;
}

.page-somos .hero-hero .hero-title {
  width: 100%;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--ls-blue);
  text-align: center;
  text-wrap: balance;
}

.page-somos .hero-hero .hero-sub {
  width: 100%;
  max-width: 60ch;
  margin: 16px auto 0;
  color: inherit;
  text-align: center;
  text-wrap: balance;
}

.page-somos .hero-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  margin: 28px auto 0;
}

.page-somos .hero-hero .hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  margin: 0;
  text-align: center;
}

.page-somos .hero-hero .hero-ctas .btn.ghost {
  margin: 0;
}
@media (max-width: 768px) {
  .page-somos .hero-hero {
    min-height: 430px;
  }

  .page-somos .hero-hero .hero-img {
    object-position: center;
  }

  .page-somos .hero-hero .hero-content {
    width: 100%;
    max-width: 720px;
    padding: 40px 24px;
  }

  .page-somos .hero-hero .hero-title {
    max-width: 20ch;
  }

  .page-somos .hero-hero .hero-sub {
    max-width: 42ch;
  }

  .page-somos .hero-hero .hero-ctas {
    gap: 12px;
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .page-somos .hero-hero {
    min-height: 460px;
  }

  .page-somos .hero-hero .hero-content {
    width: 100%;
    padding: 36px 20px;
  }

  .page-somos .hero-hero .hero-kicker {
    margin-bottom: 14px;
  }

  .page-somos .hero-hero .hero-title {
    max-width: 100%;
  }

  .page-somos .hero-hero .hero-sub {
    max-width: 34ch;
    margin-top: 14px;
  }

  .page-somos .hero-hero .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 22px;
  }

  .page-somos .hero-hero .hero-ctas .btn {
    width: min(100%, 280px);
    min-width: 0;
    margin: 0;
  }
}
/* =========================================================
   PÁGINA SOMOS
   Card Valores y chips centrados
========================================================= */

.page-somos .card--values {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page-somos .card--values .p {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  text-align: center;
}

.page-somos .card--values h3 {
  width: 100%;
  margin: 0 0 16px;
  text-align: center;
}

.page-somos .card--values .chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  gap: 10px;
  margin: 0 auto;
}

.page-somos .card--values .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  text-align: center;
}

.page-somos .card--values .chip::before {
  content: none;
}

.page-somos .card--values .dot {
  display: block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--ls-yellow);
}

@media (max-width: 520px) {
  .page-somos .card--values .p {
    padding: 22px 18px;
  }

  .page-somos .card--values .chips {
    max-width: 280px;
    gap: 8px;
  }
}
