/* ════════════════════════════════════════════════
   SERVILIN LTDA — Hoja de estilos
   ════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Paleta SERVILIN LTDA — modo claro */
  --navy: #f5f7ff;
  --navy2: #eef1fc;
  --navy3: #dce3f5;
  --gold: #e8ab04;
  --gold-gradient: linear-gradient(
    135deg,
    #e3a504 0%,
    #e8ab04 45%,
    #edb510 55%,
    #e8ab04 100%
  );
  --white: #0f2b53;
  --text: #1e3460;
  --muted: #47608a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  --shadow-gold: 0 8px 24px rgba(232, 171, 4, 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1180px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* prevent any page content from causing horizontal scrollbar */
main {
  overflow-x: hidden;
}

/* ── Utilidades ── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.center {
  text-align: center;
}

.eyebrow {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow.center {
  text-align: center;
}
.eyebrow i {
  margin-right: 6px;
}

.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--navy2);
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: var(--text);
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s;
  white-space: nowrap;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.92rem;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #3a1f00;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.btn-gold:hover {
  background: var(--gold-gradient);
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-outline::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
  width: 120%;
  height: 200%;
  background: var(--gold-gradient);
  border-radius: 50%;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-outline:hover::before {
  transform: translateX(-50%) scaleY(1);
}
.btn-outline:hover {
  background: var(--gold-gradient);
  color: #3a1f00;
  transform: translateY(-3px);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  width: 100%;
  margin-top: 24px;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ════════ BARRA DE PROGRESO ════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold));
  z-index: 1100;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* ════════ NAVBAR ════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  overflow: visible; /* allow dropdown to render below */
  transition:
    padding 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(11, 22, 50, 0.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 990px) {
  .navbar {
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 120px);
    max-width: 1100px;
    border-radius: 50px;
    background: linear-gradient(
      180deg,
      rgba(10, 31, 61, 0.75) 0%,
      rgba(10, 31, 61, 0.45) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 36px;
    border: 1.5px solid rgba(232, 171, 4, 0.45);
    box-shadow:
      0 8px 40px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(232, 171, 4, 0.12);
  }
  .navbar.scrolled {
    top: 12px;
    background: linear-gradient(
      180deg,
      rgba(10, 31, 61, 0.88) 0%,
      rgba(10, 31, 61, 0.65) 100%
    );
    border: 1.5px solid rgba(232, 171, 4, 0.5);
    box-shadow:
      0 10px 48px rgba(0, 0, 0, 0.5),
      0 0 28px rgba(232, 171, 4, 0.15);
    padding: 6px 36px;
  }
  .nav-inner {
    padding: 0;
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}
.logo-img {
  height: 57px;
  width: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover .logo-img {
  transform: scale(1.06);
}
.footer-brand .logo-img {
  height: 90px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  position: relative;
  display: inline-block;
  transition:
    color 0.25s,
    transform 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  transform: scale(1.12);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-cta {
  display: flex;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Drawer lateral derecho ── */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: #ffffff;
  z-index: 1200;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.35s var(--ease),
    visibility 0s 0.35s;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: none;
  padding: 0;
  gap: 0;
  box-shadow: -6px 0 40px rgba(0, 0, 0, 0.22);
  border-radius: 22px 0 0 22px;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.35s var(--ease),
    visibility 0s 0s;
}

/* Cabecera del drawer */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #0a1f3d;
  border-bottom: 3px solid var(--gold);
  border-radius: 22px 0 0 0;
  flex-shrink: 0;
}
.mobile-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.25s;
  flex-shrink: 0;
}
.mobile-close:hover {
  background: var(--gold);
  color: #0a1f3d;
  border-color: var(--gold);
  transform: rotate(90deg);
}

/* Links del menú */
.mobile-menu > a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e3460;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0;
  transition:
    background 0.2s,
    color 0.2s,
    padding-left 0.2s;
}
.mobile-menu > a i {
  width: 18px;
  text-align: center;
  color: var(--gold);
  font-size: 0.88rem;
  flex-shrink: 0;
}
.mobile-menu > a:hover {
  background: rgba(232, 171, 4, 0.09);
  color: #0a1f3d;
  padding-left: 32px;
}

/* CTAs dentro del drawer (solo tablet/PC) */
.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.mobile-ctas .btn {
  width: 100%;
}

/* Backdrop */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-backdrop.open {
  display: block;
  animation: fadeInBackdrop 0.3s ease;
}
@keyframes fadeInBackdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════ HERO ════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("assets/imagenesprincipal/fondo.png") center / cover no-repeat;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 11, 24, 0.88) 0%,
    rgba(0, 11, 24, 0.65) 40%,
    rgba(1, 17, 75, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(243, 168, 27, 0.12),
    transparent 50%
  );
}
.hero-content {
  position: relative;
  padding-top: clamp(56px, 10vh, 120px);
  padding-bottom: 80px;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 168, 27, 0.12);
  border: 1px solid rgba(243, 168, 27, 0.4);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeUp 0.7s var(--ease) both;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 20px;
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
  max-width: 620px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 680px;
  animation: fadeUp 0.7s var(--ease) 0.4s both;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--gold);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--muted);
}
.hero-scroll i {
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════ NOSOTROS ════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.about-img-wrap:hover img {
  transform: scale(1.05);
}
.about-badge-img {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--gold);
  color: var(--navy);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.about-badge-img .num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 900;
}
.about-badge-img .lbl {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.about-text > p {
  color: var(--text);
  margin-bottom: 16px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.about-features {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 1.3rem;
  color: var(--gold);
  background: rgba(243, 168, 27, 0.12);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.feature-text {
  display: flex;
  flex-direction: column;
}
.feature-text strong {
  font-family: "Barlow Condensed", sans-serif;
}
.feature-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ════════ ALIADOS ════════ */
.aliados-section {
  background:
    linear-gradient(135deg, rgba(9, 33, 66, 0.88), rgba(1, 11, 44, 0.88)),
    url("assets/imagenesprincipal/logo1.png") center/cover fixed;
  padding: 16px 0;
  overflow: hidden;
}

.aliados-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.aliados-slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
@keyframes aliados-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}
.aliados-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: aliados-marquee 30s linear infinite;
}
.aliados-track:hover {
  animation-play-state: paused;
}
.aliados-track img {
  height: 66px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  padding: 0;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s;
}
.aliados-track img:hover {
  transform: scale(1.1);
  opacity: 0.85;
}
.aliados-track img[src*="logo2"] {
  height: 100px;
  max-width: 200px;
}
.aliados-track img[src*="logo1"],
.aliados-track img[src*="logo8"] {
  height: 125px;
  max-width: 240px;
}
.aliados-track img[src*="logo3"] {
  height: 140px;
  max-width: 260px;
}

.aliados-pause {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.6rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.aliados-pause:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
}

/* ════════ SERVICIOS ════════ */
.services-slider {
  /* overflow visible en desktop para que el hover no se recorte */
  overflow: visible;
  padding: 12px 0;
}

/* ── Desktop: grid centrado ── */
.svc-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 210px));
  gap: 16px;
  justify-content: center;
}
.svc-clone {
  display: none;
}

/* Marco exterior — colores de la empresa (navy + gold) */
.svc-card {
  aspect-ratio: 2 / 3;
  cursor: pointer;
  padding: 5px;
  background: #0a1f3d;
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  border-color: transparent;
}

/* ── 3D Tilt (solo desktop) ── */
@media (min-width: 769px) {
  /* Perspectiva en el track para que el rotateX/Y se vea en 3D */
  .svc-track {
    perspective: 1000px;
  }

  /* Transición ultrarrápida mientras el ratón se mueve sobre la card */
  .svc-card.svc-tilting {
    transition:
      transform 0.08s ease-out,
      box-shadow 0.25s ease,
      border-color 0.25s;
  }

  /* Glow dorado al flotar — equivale al blur del ::before original */
  .svc-card:hover {
    box-shadow:
      0 22px 45px rgba(0, 0, 0, 0.62),
      0 0 0 1px var(--gold),
      0 0 42px 6px rgba(232, 171, 4, 0.22);
  }

  /* Reflejo de luz interior — sheen que sigue la inclinación */
  .svc-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 60%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 5;
  }

  .svc-card:hover .svc-inner::after {
    opacity: 1;
  }
}

/* Contenedor interior que recorta la imagen */
.svc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}
.svc-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
  background: var(--navy2);
}
.svc-card:hover .svc-inner img {
  transform: scale(1.06);
}
.svc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.08) 55%,
    transparent 100%
  );
}
.svc-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 56px 14px 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    transparent 100%
  );
}
.svc-name {
  display: block;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.svc-desc {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #fff;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s var(--ease),
    opacity 0.25s var(--ease),
    margin-top 0.3s var(--ease);
}
.svc-card:hover .svc-desc {
  max-height: 10rem;
  opacity: 1;
  margin-top: 6px;
}

/* ── Dots de navegación (solo móvil) ── */
.svc-dots {
  display: none;
}

/* ── Móvil: carrusel coverflow ── */
@media (max-width: 768px) {
  .hero-content {
    padding-top: clamp(120px, 18vh, 170px);
    padding-bottom: 32px;
  }

  /* Sección contiene el overflow horizontal sin crear scrollbar */
  #servicios {
    overflow-x: clip;
  }

  .services-slider {
    overflow: visible;
    padding: 16px 0 48px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .aliados-slider {
    overflow: hidden;
    padding: 0;
  }
  .aliados-track {
    width: max-content;
    gap: 24px;
    animation: aliados-marquee 25s linear infinite;
    overflow-x: unset;
    justify-content: unset;
  }
  .aliados-track img {
    height: 50px;
    width: auto;
    max-width: 100px;
    min-width: unset;
  }
  .aliados-track img[src*="logo1"],
  .aliados-track img[src*="logo2"],
  .aliados-track img[src*="logo8"] {
    height: 80px;
    max-width: 160px;
  }
  .aliados-track img[src*="logo3"] {
    height: 120px;
    max-width: 220px;
  }
}

/* ── Carrusel coverflow hasta iPad Air (989px) ── */
@media (max-width: 989px) {
  #servicios {
    overflow-x: clip;
  }

  .svc-track {
    display: block;
    position: relative;
    height: 295px;
    width: 100%;
    animation: none;
  }

  .svc-clone {
    display: none;
  }

  /* Todas las cards ocultas por defecto; JS asigna el estado */
  .svc-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 185px;
    flex-shrink: 0;
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.6) !important;
    z-index: 1;
    pointer-events: none;
    transition:
      transform 0.5s var(--ease),
      opacity 0.5s var(--ease),
      box-shadow 0.5s var(--ease),
      border-color 0.4s;
  }

  /* Card central — destacada */
  .svc-card.svc-active {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    z-index: 5;
    pointer-events: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
    border-color: transparent;
  }

  /* Cards laterales */
  .svc-card.svc-prev {
    opacity: 0.58 !important;
    transform: translate(calc(-50% - 28vw), -50%) scale(0.78) !important;
    z-index: 3;
    pointer-events: auto;
  }

  .svc-card.svc-next {
    opacity: 0.58 !important;
    transform: translate(calc(-50% + 28vw), -50%) scale(0.78) !important;
    z-index: 3;
    pointer-events: auto;
  }

  /* ── Puntos indicadores ── */
  .svc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
  }

  .svc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
      background 0.3s,
      width 0.3s,
      border-radius 0.3s;
  }

  .svc-dot.svc-dot-active {
    background: var(--gold);
    width: 22px;
    border-radius: 4px;
  }
}

/* ── Cards más grandes en iPad Air / Mini (668–989px) ── */
@media (min-width: 668px) and (max-width: 989px) {
  .svc-track {
    height: 360px;
  }
  .svc-card {
    width: 250px !important;
  }
  #servicios .section-title {
    margin-bottom: 90px;
  }
}

/* ════════ VALORES ════════ */

/* Layout de dos columnas */
.valores-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

/* Columna izquierda */
.valores-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

/* Contador "1 / 8" */
.val-counter {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.val-counter .val-sep {
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 400;
}

/* Botones de navegación */
.val-nav {
  display: flex;
  gap: 12px;
}
.val-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s;
}
.val-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.08);
}

/* Columna derecha: contenedor del mazo */
.valores-deck {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Necesita overflow visible para que las cartas rotadas no se corten */
  overflow: visible;
  padding: 30px;
}

/* El mazo: todas las cartas apiladas */
.valores-grid {
  position: relative;
  width: 310px;
  height: 370px;
}

/* Carta base — oculta, esperando asignación de JS */
.valor-card {
  position: absolute;
  inset: 0;
  background: var(--navy2);
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: scale(0.82) rotate(0deg);
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    border-color 0.3s,
    box-shadow 0.3s;
}

/* ── Posiciones del mazo (asignadas por JS) ── */

/* Carta de fondo */
.valor-card.val-bot {
  opacity: 0.5;
  transform: rotate(9deg) translate(26px, 20px);
  z-index: 1;
}

/* Carta del medio */
.valor-card.val-mid {
  opacity: 0.75;
  transform: rotate(4deg) translate(13px, 9px);
  z-index: 2;
}

/* Carta encima — activa */
.valor-card.val-top {
  opacity: 1;
  transform: rotate(-2deg);
  z-index: 3;
  pointer-events: auto;
  border-color: var(--gold);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.55),
    var(--shadow-gold);
  cursor: pointer;
}
.valor-card.val-top:hover {
  transform: rotate(-2deg) scale(1.025);
}

/* ── Lanzamiento al avanzar ── */
.valor-card.val-throw {
  opacity: 0 !important;
  transform: rotate(22deg) translate(380px, -200px) !important;
  transition:
    transform 0.38s ease-in,
    opacity 0.3s ease-in !important;
  z-index: 4;
  pointer-events: none !important;
}

/* Icono */
.valor-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold));
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.6rem;
  transition: transform 0.4s var(--ease);
}
.valor-card.val-top:hover .valor-icon {
  transform: scale(1.1) rotate(-8deg);
}
.valor-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.valor-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Barra de progreso — solo móvil */
.val-progress-bar {
  display: none;
}

/* ── Adaptación móvil ── */
@media (max-width: 768px) {
  .valores-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .valores-text {
    align-items: center;
  }

  /* Ocultar botones en móvil */
  .val-nav {
    display: none;
  }

  /* Barra de progreso tipo carga */
  .val-progress-bar {
    display: block;
    width: 180px;
    height: 5px;
    background: var(--navy3);
    border-radius: 3px;
    overflow: hidden;
  }
  .val-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, var(--gold), var(--gold));
    border-radius: 3px;
    transform: scaleX(0.125);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .valores-deck {
    padding: 24px 16px;
  }
  .valores-grid {
    width: 270px;
    height: 330px;
  }
  .valor-card {
    border-radius: 20px;
    padding: 28px 22px;
    gap: 12px;
  }
  .valor-card.val-throw {
    transform: rotate(22deg) translate(260px, -160px) !important;
  }
}

/* ════════ MISIÓN & VISIÓN ════════ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.mv-card {
  position: relative;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 44px 36px;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold));
}
.mv-card:hover {
  transform: translateY(-8px);
}
.mv-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: rgba(243, 168, 27, 0.12);
  color: var(--gold);
  border-radius: 16px;
  font-size: 1.8rem;
  margin-bottom: 22px;
}
.mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.mv-card p {
  color: var(--text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ════════ CERTIFICACIONES ════════ */
.cert-slider {
  overflow: visible;
  padding: 12px 0;
}
.cert-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 160px));
  gap: 16px;
  margin-top: 48px;
  justify-content: center;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 5px;
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid var(--navy3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s;
  overflow: hidden;
}
.cert-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.cert-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.cert-card:hover .cert-img-wrap img {
  transform: scale(1.06);
}
.cert-desc {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text);
  padding: 14px 12px;
  line-height: 1.4;
}
.cert-clone {
  display: none;
}

@keyframes cert-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  #certificaciones .section-sub {
    margin-bottom: 12px;
  }
  .cert-slider {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%
    );
  }
  .cert-track {
    display: flex;
    width: max-content;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 8px;
    animation: cert-marquee 30s linear infinite;
    overflow-x: unset;
  }
  .cert-track:hover {
    animation-play-state: paused;
  }
  .cert-clone {
    display: flex;
  }
  .cert-card {
    width: 140px;
    flex-shrink: 0;
    opacity: 1 !important;
    transform: none !important;
  }
  .cert-desc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    font-size: 0.68rem;
    line-height: 1.2;
  }
  .cert-img-wrap {
    padding: 8px;
  }
  .cert-card:hover {
    transform: scale(1.03) !important;
  }
}

/* ════════ ECOSERV ════════ */
.ecoserv-section {
  position: relative;
  overflow: hidden;
}

/* Manchas de color eco muy sutiles en el fondo */
.ecoserv-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 60% at 4% 25%,
      rgba(45, 106, 79, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 55% at 96% 75%,
      rgba(64, 145, 108, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}
.ecoserv-section .container {
  position: relative;
  z-index: 1;
}

/* Píldoras de características eco */
.eco-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}
.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.22);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: #1e3460;
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.eco-pill:hover {
  transform: translateY(-3px);
  background: rgba(45, 106, 79, 0.14);
}
.eco-pill i {
  color: #2d6a4f;
  font-size: 0.95rem;
}

/* Marco del visor PDF */
.ecoserv-book-frame {
  max-width: 940px;
  margin: 0 auto;
  height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.14),
    0 0 0 2px rgba(232, 171, 4, 0.28),
    0 0 0 6px rgba(45, 106, 79, 0.08);
  background: #ffffff;
  position: relative;
}

/* Franja superior decorativa (barra verde-dorada) */
.ecoserv-book-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #2d6a4f, var(--gold));
  z-index: 2;
  pointer-events: none;
}

.ecoserv-pdf {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Botones debajo del visor */
.ecoserv-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 989px) {
  .ecoserv-book-frame {
    height: 540px;
  }
}
@media (max-width: 768px) {
  .ecoserv-book-frame {
    height: 460px;
  }
  .eco-highlights {
    gap: 10px;
    margin-bottom: 32px;
  }
  .eco-pill {
    font-size: 0.78rem;
    padding: 8px 14px;
  }
}
@media (max-width: 480px) {
  .ecoserv-book-frame {
    height: 380px;
  }
  .ecoserv-actions {
    flex-direction: column;
    align-items: center;
  }
  .ecoserv-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ════════ ECOSERV — BOOK VIEWER ════════ */
.book-viewer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  width: 100%;
}

/* --- Loader --- */
.book-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 60px 40px;
}
.book-loader-icon {
  font-size: 3rem;
  color: #2d6a4f;
  animation: book-pulse 1.8s ease-in-out infinite;
}
@keyframes book-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.book-loader-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
}
.book-loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(45, 106, 79, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.book-loader-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2d6a4f, var(--gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

/* --- Error state --- */
.book-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 48px 24px;
  text-align: center;
  line-height: 1.6;
}
.book-error i {
  font-size: 2.6rem;
  color: var(--gold);
}

/* --- Book stage: tamaño controlado por JS vía style --- */
.book-stage {
  display: none; /* JS lo cambia a flex tras cargar */
  justify-content: center;
  align-items: flex-start;
  /* width + height los pone el JS para que coincidan con cssScale */
}

/* Wrapper interno al que se aplica transform: scale() */
#book-scale-wrapper {
  flex-shrink: 0;
}

/* --- Navigation controls --- */
.book-controls {
  display: none; /* JS lo cambia a flex tras cargar */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* width lo pone el JS para alinearse con el libro */
}
.book-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: #0a1f3d;
  color: var(--gold);
  border: 1px solid rgba(232, 171, 4, 0.3);
  border-radius: 50px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    transform 0.2s;
  letter-spacing: 0.03em;
}
.book-nav-btn:hover {
  background: var(--gold);
  color: #0a1f3d;
  box-shadow: 0 4px 18px rgba(232, 171, 4, 0.35);
  transform: translateY(-2px);
}
.book-page-info {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  flex: 1;
  min-width: 0;
}

/* Responsive controles (el JS ya ajusta el ancho, pero esto refina) */
@media (max-width: 480px) {
  .book-nav-btn {
    padding: 9px 14px;
    font-size: 0.78rem;
    gap: 5px;
  }
  .book-nav-btn span {
    display: none;
  } /* solo iconos en pantallas muy chicas */
  .book-nav-btn i {
    font-size: 1rem;
  }
  .book-page-info {
    font-size: 0.75rem;
  }
}

/* StPageFlip canvas */
#book canvas {
  border-radius: 2px;
  image-rendering: -webkit-optimize-contrast; /* Chrome/Safari downscale suave */
  image-rendering: smooth;
}

/* ════════ ECOSERV PAGE — HERO ════════ */
.ecoserv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      150deg,
      rgba(5, 21, 38, 0.82) 0%,
      rgba(10, 34, 23, 0.923) 45%,
      rgba(13, 30, 50, 0.8) 100%
    ),
    url("assets/ecoserv/fondovallecocora.webp") center center / cover no-repeat;
  overflow: hidden;
}
.ecoserv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 70% at 15% 40%,
      rgba(45, 106, 79, 0.22) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 60% at 85% 65%,
      rgba(10, 31, 61, 0.5) 0%,
      transparent 55%
    );
  pointer-events: none;
}
.ecoserv-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.04)"/></svg>')
    repeat;
  pointer-events: none;
}
.ecoserv-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 820px;
}
.ecoserv-hero-content .hero-badge {
  background: rgba(45, 106, 79, 0.18);
  border-color: rgba(45, 106, 79, 0.4);
  color: #74c69d;
}
.ecoserv-hero-content .hero-title {
  color: #ffffff;
}
.ecoserv-hero-content .hero-desc {
  color: rgba(255, 255, 255, 0.78);
}

/* ════════ ECOSERV PAGE — PILLS GRID ════════ */
.ecoserv-pills-section {
  position: relative;
  overflow: hidden;
}
.ecoserv-pills-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 60% at 4% 25%,
      rgba(45, 106, 79, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 55% at 96% 75%,
      rgba(64, 145, 108, 0.05) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.ecoserv-pills-section .container {
  position: relative;
  z-index: 1;
}

.eco-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.eco-pill-card {
  background: var(--navy);
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.eco-pill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 106, 79, 0.14);
}
.eco-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.12);
  border: 1px solid rgba(45, 106, 79, 0.25);
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: #2d6a4f;
}
.eco-pill-card {
  background: #ffffff;
  border-color: rgba(45, 106, 79, 0.15);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
.eco-pill-card h3 {
  color: rgb(11, 22, 50, 0.97);
}
.eco-pill-card p {
  color: #4a5568;
}

/* Contador de deck — solo aparece en móvil */
.eco-deck-header {
  display: none;
}

@media (max-width: 900px) {
  .eco-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Móvil: deck apilado (igual que Valores) ── */
@media (max-width: 768px) {
  /* Contador */
  .eco-deck-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
  }
  .eco-deck-counter {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--muted);
  }
  .eco-deck-counter strong {
    font-size: 2rem;
    font-weight: 800;
    color: #2d6a4f;
  }
  .eco-deck-counter strong {
    color: #2d6a4f;
  }

  /* Barra de progreso */
  .eco-progress-bar {
    width: 180px;
    height: 5px;
    background: var(--navy3);
    border-radius: 3px;
    overflow: hidden;
  }
  .eco-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #2d6a4f, var(--gold));
    border-radius: 3px;
    transform: scaleX(0.25);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Wrapper del deck */
  .eco-deck-wrap {
    display: flex;
    justify-content: center;
    overflow: visible;
    padding: 28px 16px;
  }

  /* Grid → deck posicionado */
  .eco-pills-grid {
    display: block !important;
    position: relative;
    width: 280px;
    height: 350px;
    margin-top: 0;
    gap: 0;
  }

  /* Cartas apiladas */
  .eco-pill-card {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(0.82) rotate(0deg);
    pointer-events: none;
    will-change: transform, opacity;
    transition:
      transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.4s ease,
      border-color 0.3s,
      box-shadow 0.3s;
  }
  /* neutralizar hover de desktop */
  .eco-pill-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Posición: fondo */
  .eco-pill-card.val-bot {
    opacity: 0.45;
    transform: rotate(9deg) translate(26px, 20px);
    z-index: 1;
  }
  /* Posición: medio */
  .eco-pill-card.val-mid {
    opacity: 0.72;
    transform: rotate(4deg) translate(13px, 9px);
    z-index: 2;
  }
  /* Posición: frente (activa) */
  .eco-pill-card.val-top {
    opacity: 1;
    transform: rotate(-2deg);
    z-index: 3;
    pointer-events: auto;
    border-color: rgba(45, 106, 79, 0.55) !important;
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.13),
      0 0 0 1px rgba(45, 106, 79, 0.22);
    cursor: pointer;
  }
  .eco-pill-card.val-top:hover {
    transform: rotate(-2deg) scale(1.025);
  }
  /* Lanzamiento */
  .eco-pill-card.val-throw {
    opacity: 0 !important;
    transform: rotate(22deg) translate(260px, -160px) !important;
    transition:
      transform 0.38s ease-in,
      opacity 0.3s ease-in !important;
    z-index: 4;
    pointer-events: none !important;
  }
}

/* ════════ FORMULARIOS ════════ */
.form-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.section-alt .form-card {
  background: var(--navy2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.req {
  color: var(--gold);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}
.form-group select option {
  background: var(--navy2);
  color: var(--white);
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #e5484d;
}
.error-msg {
  color: #ff6b6b;
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 1em;
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
  cursor: pointer;
}
.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.form-submit {
  width: 100%;
  margin-top: 16px;
}
.form-sla {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.form-sla i {
  color: var(--gold);
  font-size: 0.75rem;
}
.form-feedback {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  min-height: 1.4em;
}
.form-feedback.success {
  color: #4ade80;
}
.form-feedback.error {
  color: #ff6b6b;
}

/* Carga de archivo */
.file-drop {
  position: relative;
  border: 2px dashed rgba(243, 168, 27, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition:
    background 0.25s,
    border-color 0.25s;
}
.file-drop.dragover {
  background: rgba(243, 168, 27, 0.08);
  border-color: var(--gold);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.file-drop-text i {
  font-size: 1.3rem;
  color: var(--gold);
}
.file-drop.has-file {
  border-style: solid;
  border-color: #4ade80;
}
.file-drop.has-file .file-drop-text i {
  color: #4ade80;
}

/* ════════ EMPLEO ════════ */
.empleo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.empleo-intro {
  display: flex;
  flex-direction: column;
}
.empleo-personaje {
  display: none;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}
@media (min-width: 1000px) {
  .empleo-personaje {
    display: block;
  }
}
.empleo-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.empleo-intro > p {
  color: var(--text);
  margin-bottom: 24px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.empleo-perks {
  display: grid;
  gap: 14px;
}
.empleo-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.empleo-perks i {
  color: var(--navy);
  background: var(--gold);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.empleo-grid .form-card {
  margin: 0;
  padding: 36px;
}

/* ════════ PQRS ════════ */
.pqrs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 0 40px;
}
.pqrs-step {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(232, 171, 4, 0.35);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pqrs-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #0c1a3a;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pqrs-file {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .pqrs-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .pqrs-steps {
    grid-template-columns: 1fr;
  }
}

/* ════════ CONTACTO ════════ */
.cot-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .cot-contact-grid {
    grid-template-columns: 1fr;
  }
  .cot-contact-grid .cot-col:first-child {
    order: 2;
  }
  .cot-contact-grid .cot-col:last-child {
    order: 1;
  }
  .cot-col .section-title {
    text-align: center;
  }
  .cot-col .section-sub {
    text-align: center;
  }
}
@media (min-width: 961px) {
  .cot-col .section-title {
    text-align: left;
  }
  .cot-col .section-sub {
    text-align: left;
  }
}
.cot-col .contact-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info {
  display: flex;
  flex-direction: column;
}
.contact-items {
  display: grid;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}
.c-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(243, 168, 27, 0.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.2rem;
}
.c-info {
  display: flex;
  flex-direction: column;
}
.c-info strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
}
.c-info span,
.c-info a {
  color: var(--text);
  font-size: 0.92rem;
}
.c-info a:hover {
  color: var(--gold);
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  filter: grayscale(0.3) contrast(1.1);
}

/* ════════ FOOTER ════════ */
.footer {
  background: #091128;
  padding: 64px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: #ffffff;
  margin: 6px 0 0;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 18px 0;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-super-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-super {
  height: 180px;
  width: auto;
  opacity: 0.9;
  filter: brightness(1.1);
}
.social-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy2);
  border-radius: 10px;
  color: var(--text);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.social-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}
.footer-col {
  text-align: center;
}
.footer-col h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-col ul {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.footer-col a,
.footer-col li {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom strong {
  color: var(--white);
}
.footer-super-mobile {
  display: none;
}

/* ════════ FLOTANTES ════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  animation: pulse 2.2s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s,
    background 0.25s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
}

/* ════════ BOTONES LATERALES ════════ */
.side-btns {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 8px;
  border-radius: 5px 0 0 5px;
  box-shadow: -3px 0 12px rgba(0, 0, 0, 0.3);
  transition:
    background 0.25s,
    transform 0.25s;
}
.side-btn span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.side-btn:hover {
  background: var(--gold);
  transform: translateX(-5px);
}

/* ════════ SCROLL REVEAL ════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section titles: fade only, no vertical shift */
.section-title.reveal,
.section-sub.reveal {
  transform: none;
}

/* Stagger: sect-grid tiles */
.sect-grid .sect-tile:nth-child(1) {
  transition-delay: 0.05s;
}
.sect-grid .sect-tile:nth-child(2) {
  transition-delay: 0.1s;
}
.sect-grid .sect-tile:nth-child(3) {
  transition-delay: 0.15s;
}
.sect-grid .sect-tile:nth-child(4) {
  transition-delay: 0.2s;
}
.sect-grid .sect-tile:nth-child(5) {
  transition-delay: 0.25s;
}
.sect-grid .sect-tile:nth-child(6) {
  transition-delay: 0.3s;
}
.sect-grid .sect-tile:nth-child(7) {
  transition-delay: 0.35s;
}

/* Stagger: mod-grid cards */
.mod-grid .mod-card:nth-child(1) {
  transition-delay: 0.05s;
}
.mod-grid .mod-card:nth-child(2) {
  transition-delay: 0.15s;
}
.mod-grid .mod-card:nth-child(3) {
  transition-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sect-grid .sect-tile,
  .mod-grid .mod-card {
    transition-delay: 0s;
  }
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 989px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .about-grid,
  .mv-grid,
  .contact-grid,
  .empleo-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-img-wrap img {
    height: 380px;
  }
  .hero {
    background-attachment: scroll;
    min-height: calc(100vh + 80px);
    min-height: calc(100dvh + 80px);
  }
}

/* Evitar background-attachment fixed en tablets (mejora rendimiento) */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-card,
  .empleo-grid .form-card {
    padding: 26px 20px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 70%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-super-wrap {
    display: none;
  }
  .footer-super-mobile {
    display: block;
    height: 100px;
    width: auto;
    margin: 0 auto;
    opacity: 0.9;
    filter: brightness(1.1);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Navbar ── */
.navbar.scrolled {
  background: rgba(245, 247, 255, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
/* Antes de hacer scroll, el navbar está sobre el hero oscuro: links en blanco */
.navbar:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
  color: #ffffff;
}
/* Al hacer scroll, links oscuros sobre navbar claro */
.navbar.scrolled .nav-links a {
  color: var(--text);
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--white);
}
.hamburger span {
  background: #ffffff;
}
.navbar.scrolled .hamburger span {
  background: #0c1a3a;
}

/* ── Títulos y encabezados de sección (excluye el hero, que tiene fondo oscuro) ── */
.section h2,
.section h3,
.section h4,
.footer h3 {
  color: var(--white);
}

.section p {
  color: var(--text);
}

/* ── Textos sobre overlays oscuros de imágenes: siempre blancos ── */
.svc-card .svc-name,
.svc-card .svc-desc {
  color: #ffffff !important;
}

/* ── Hero: siempre blanco sobre el fondo oscuro ── */
.hero-content h1,
.hero-content p,
.hero-badge,
.stat-label {
  color: #ffffff;
}
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}
.hero .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}
.hero .btn-outline::before {
  background: #ffffff;
}
.hero .btn-outline:hover {
  background: #ffffff;
  color: #0a1f3d;
}

/* ── Aliados ── */
.aliados-section {
  background-image: none;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.aliados-label {
  color: var(--muted);
}

/* ── Bordes de cards (eran rgba blanco, invisibles en claro) ── */
.valor-card,
.mv-card,
.form-card {
  border-color: rgba(0, 0, 0, 0.09);
}
.valor-card p,
.mv-card p {
  color: var(--text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.valor-card h3,
.mv-card h3 {
  color: var(--white);
}

/* ── Nosotros ── */
.about-text p,
.feature-text span {
  color: var(--text);
}
.feature-text strong {
  color: var(--white);
}

/* ── Valores / Misión ── */
.section-sub {
  color: var(--text);
}

/* ── Footer ── */
.footer {
  background: #dde3f5;
  border-top-color: rgba(0, 0, 0, 0.09);
}
.footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.09);
  color: var(--text);
}
.footer-bottom strong {
  color: var(--white);
}
.footer-brand p,
.footer-col a,
.footer-col li {
  color: var(--text);
}
.footer-col a:hover {
  color: var(--gold);
}
.social-btn {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

/* ── Contacto ── */
.c-info span,
.c-info a {
  color: var(--text);
}
.c-info strong {
  color: var(--white);
}
.c-icon {
  background: rgba(232, 171, 4, 0.15);
}

/* ── Empleo ── */
.empleo-intro > p,
.empleo-perks li {
  color: var(--text);
}

/* ── Formularios ── */
.form-group label {
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #ffffff;
}
.form-group select option {
  background: #ffffff;
  color: var(--white);
}
.file-drop {
  background: rgba(0, 0, 0, 0.02);
}
.checkbox-group {
  color: var(--text);
}

/* ── Texto oscuro sobre fondos dorados (gold) ── */
.about-badge-img,
.btn-gold,
.btn-outline:hover,
.valor-icon,
.social-btn:hover,
.empleo-perks i {
  color: #0a1f3d;
}

/* ════════════════════════════════════════════════
   CORRECCIONES RESPONSIVE ADICIONALES
   ════════════════════════════════════════════════ */

/* ── Tablets (769–1024px): servicios en 3 columnas en vez de 5 muy estrechas ── */
@media (min-width: 769px) and (max-width: 989px) {
  .svc-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .valores-layout {
    gap: 40px;
  }
  .mv-grid {
    gap: 24px;
  }
}

/* ── Móvil general (≤768px): correcciones que faltaban ── */
@media (max-width: 768px) {
  /* Ocultar flecha de scroll del hero (se superpone al contenido) */
  .hero-scroll {
    display: none;
  }

  /* Ocultar botones Llamar/Cotizar dentro del drawer en móvil */
  .mobile-ctas {
    display: none;
  }

  /* Restaurar botones laterales en móvil (más compactos) */
  .side-btns {
    display: flex;
  }
  .side-btn span {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
  }

  /* Nosotros: imagen de altura flexible en vez de 380px fijo */
  .about-img-wrap img {
    height: auto;
    max-height: 260px;
    width: 100%;
    object-fit: cover;
  }
  .about-badge-img {
    bottom: 10px;
    left: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Aliados: gap más compacto */
  .aliados-track {
    gap: 28px;
  }

  /* Misión & Visión */
  .mv-card {
    padding: 28px 20px;
  }
  .mv-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
  .mv-card h3 {
    font-size: 1.2rem;
  }

  /* Empleo: gap reducido */
  .empleo-grid {
    gap: 24px;
  }

  /* Contacto: mapa más bajo y gap reducido */
  .contact-grid {
    gap: 24px;
  }
  .contact-map,
  .contact-map iframe {
    min-height: 260px;
  }

  /* Botón WhatsApp: izquierda; back-to-top: derecha (sin superponerse) */
  .wa-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    left: 16px;
    right: auto;
    font-size: 1.4rem;
  }
  .back-to-top {
    bottom: 16px;
    right: 16px;
  }

  /* Footer: gap reducido */
  .footer-grid {
    gap: 24px;
  }
}

/* ── Móvil pequeño (≤400px): ajustes de detalle ── */
@media (max-width: 400px) {
  /* Sections: menos padding vertical */
  .section {
    padding: 52px 0;
  }

  /* Logo más pequeño */
  .logo-img {
    height: 50px;
  }

  /* Hero stats: gap reducido */
  .hero-stats {
    gap: 14px 6px;
  }

  /* Servicios: card del carrusel más estrecha */
  .svc-card {
    width: 160px !important;
  }
  /* Trasladar la posición de las tarjetas laterales del carrusel */
  .svc-card.svc-prev {
    transform: translate(calc(-50% - 130px), -50%) scale(0.78) !important;
  }
  .svc-card.svc-next {
    transform: translate(calc(-50% + 130px), -50%) scale(0.78) !important;
  }

  /* Valores: mazo más pequeño */
  .valores-grid {
    width: 240px !important;
    height: 290px !important;
  }
  .val-counter {
    font-size: 1.6rem;
  }
  .val-progress-bar {
    width: 140px;
  }
  .valor-card {
    padding: 20px 14px !important;
    gap: 10px !important;
  }
  .valor-icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  .valor-card h3 {
    font-size: 1.05rem;
  }
  .valor-card.val-throw {
    transform: rotate(22deg) translate(220px, -140px) !important;
  }

  /* Misión & Visión */
  .mv-card {
    padding: 20px 14px;
  }
  .mv-card h3 {
    font-size: 1.1rem;
  }

  /* Formularios */
  .form-card,
  .empleo-grid .form-card {
    padding: 18px 12px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* Contacto */
  .contact-map,
  .contact-map iframe {
    min-height: 220px;
  }

  /* Footer: 2 columnas en móvil pequeño */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
  }

  /* WA y back-to-top: más pequeños */
  .wa-float {
    width: 44px;
    height: 44px;
    bottom: 12px;
    left: 12px;
    font-size: 1.2rem;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 12px;
    right: 12px;
    font-size: 0.88rem;
  }
}

/* ── Accesibilidad: respeta reduce-motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════════════
   DROPDOWN NOSOTROS (escritorio)
   ════════════════════════════════════════════════ */

.nav-links li.has-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  position: relative;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav-dropdown-trigger:hover,
.has-dropdown.open .nav-dropdown-trigger {
  color: var(--white);
}
.nav-dropdown-trigger:hover::after,
.has-dropdown.open .nav-dropdown-trigger::after {
  transform: scaleX(1);
}

.nav-chevron {
  font-size: 0.68em;
  transition: transform 0.25s ease;
  margin-top: 1px;
  pointer-events: none;
}
.has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 215px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 500;
}
.has-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
  pointer-events: none;
}
.nav-dropdown li a::after {
  display: none;
}
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #1e3460;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s,
    padding-left 0.15s;
  white-space: nowrap;
}
.nav-dropdown li a i {
  width: 17px;
  text-align: center;
  color: var(--gold);
  font-size: 0.82em;
  flex-shrink: 0;
}
.nav-dropdown li a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0a1f3d;
  padding-left: 24px;
}
.nav-dropdown li:not(:last-child) a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Light-mode trigger colores por estado de scroll */
.navbar:not(.scrolled) .nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.9);
}
.navbar:not(.scrolled) .nav-dropdown-trigger:hover,
.navbar:not(.scrolled) .has-dropdown.open .nav-dropdown-trigger {
  color: #ffffff;
}
.navbar.scrolled .nav-dropdown-trigger {
  color: var(--text);
}
.navbar.scrolled .nav-dropdown-trigger:hover,
.navbar.scrolled .has-dropdown.open .nav-dropdown-trigger {
  color: var(--white);
}

/* ════════════════════════════════════════════════
   ACORDEÓN NOSOTROS (menú móvil)
   ════════════════════════════════════════════════ */

.mob-group {
  width: 100%;
}
.mob-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e3460;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  text-align: left;
}
.mob-group-btn:hover {
  background: rgba(232, 171, 4, 0.09);
  color: #0a1f3d;
}
.mob-group-btn > span {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mob-group-btn > span > i {
  width: 18px;
  text-align: center;
  color: var(--gold);
  font-size: 0.88rem;
  flex-shrink: 0;
}
.mob-chev {
  font-size: 0.72em;
  transition: transform 0.25s ease;
  color: #47608a;
  pointer-events: none;
}
.mob-group.open .mob-chev {
  transform: rotate(180deg);
}
.mob-group-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  background: rgba(232, 171, 4, 0.04);
}
.mob-group.open .mob-group-sub {
  grid-template-rows: 1fr;
}
.mob-group-inner {
  overflow: hidden;
  min-height: 0;
}
.mob-group-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 48px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e3460;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    background 0.2s,
    color 0.2s;
}
.mob-group-sub a i {
  width: 16px;
  text-align: center;
  color: var(--gold);
  font-size: 0.82em;
  flex-shrink: 0;
}
.mob-group-sub a:hover {
  background: rgba(232, 171, 4, 0.09);
  color: #0a1f3d;
}

/* ════════════════════════════════════════════════
   HERO INTERIOR (sub-páginas compartido)
   ════════════════════════════════════════════════ */

.inner-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  background:
    linear-gradient(135deg, rgba(9, 33, 66, 0.92), rgb(1, 11, 44)),
    url("assets/imagenesprincipal/fondo.png") center / cover fixed;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .inner-hero {
    background-attachment: scroll;
  }
}
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 65% 50%,
    rgba(232, 171, 4, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.inner-hero-content {
  position: relative;
  z-index: 1;
}
.inner-hero .hero-badge {
  color: var(--gold) !important;
}
.inner-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 171, 4, 0.15);
  border: 1px solid rgba(232, 171, 4, 0.35);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.inner-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.inner-hero p.inner-hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   POLÍTICAS SIG
   ════════════════════════════════════════════════ */

.pol-section {
  background-color: #f0f3fa;
  background-image: radial-gradient(circle, #9aa4be 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}

.pol-search-wrap {
  max-width: 540px;
  margin: 1.75rem auto 1.4rem;
  position: relative;
}
.pol-search-ico {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}
.pol-search {
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 2.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  font-family: "Barlow Condensed", sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.pol-search:focus {
  border-color: #e8ab04;
  box-shadow: 0 0 0 3px rgba(232, 171, 4, 0.15);
}
.pol-search::placeholder {
  color: #94a3b8;
}
.pol-search-count {
  display: none;
}
.pol-no-results {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 2rem 0;
}

.pol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pol-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #dce3f5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 150px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.pol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  border-color: #e8ab04;
}

/* Panel izquierdo oscuro */
.pol-card-left {
  width: 110px;
  flex-shrink: 0;
  background: #0a1f3d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
@keyframes pol-ico-idle {
  0%,
  90%,
  100% {
    transform: rotateY(0deg);
  }
  95% {
    transform: rotateY(20deg);
  }
}
@keyframes pol-ico-flip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.pol-card-left {
  perspective: 400px;
}
.pol-card-ico {
  font-size: 2.4rem;
  color: #ffffff;
  animation: pol-ico-idle 4s ease-in-out infinite;
  transition: color 0.4s;
  display: inline-block;
}
.pol-card:hover .pol-card-ico {
  animation: pol-ico-flip 0.7s ease-in-out forwards;
  color: #e8ab04;
}

/* Cabecera DOCUMENTO + número en panel derecho */
.pol-doc-header {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 2px;
}
.pol-doc-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9ca3af;
  text-transform: uppercase;
}
.pol-doc-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0a1f3d;
  line-height: 1;
}

/* Panel derecho blanco */
.pol-card-right {
  flex: 1;
  padding: 0.9rem 1.4rem 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  position: relative;
}
.pol-pages {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pol-pages-bar {
  width: 52px;
  height: 3px;
  background: #dde3f0;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.pol-pages-bar span {
  display: block;
  height: 100%;
  background: #e8ab04;
  border-radius: 3px;
}
.pol-pages-text {
  font-size: 0.6rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pol-card-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding-right: 5rem;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.pol-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pol-card-desc {
  font-size: 0.72rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}
.pol-download {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #e8ab04;
  color: #0a1f3d;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition:
    color 0.45s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.pol-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #6b7280;
  transform: translateY(100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 30px;
}
.pol-download:hover::before {
  transform: translateY(0);
}
.pol-download:hover {
  color: #ffffff;
  box-shadow: none;
}
.pol-download:active {
  transform: translateY(1px);
  box-shadow: none;
}

@media (max-width: 900px) {
  .pol-grid {
    grid-template-columns: 1fr;
  }
  .pol-card {
    height: auto;
    min-height: 110px;
  }
  .pol-card-left {
    width: 80px;
  }
  .pol-card-right {
    padding: 0.75rem 1rem 0.75rem 0.9rem;
  }
  .pol-card-title {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    display: block;
    padding-right: 4rem;
    font-size: 0.95rem;
  }
  .pol-card-bottom {
    margin-top: 6px;
  }
}

/* ════════════════════════════════════════════════
   COMITÉS
   ════════════════════════════════════════════════ */

.com-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 960px) {
  .com-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .com-grid {
    grid-template-columns: 1fr;
  }
}

.com-card {
  background: var(--navy2);
  border: 1px solid rgba(232, 171, 4, 0.12);
  border-radius: var(--radius);
  padding: 32px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.com-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.com-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy3), var(--navy2));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.com-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.com-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--white);
  line-height: 1.25;
}
.com-role {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}
.com-dept {
  font-size: 0.8rem;
  color: var(--muted);
}
.com-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.com-name {
  color: #0c1a3a;
}
.com-dept {
  color: #47608a;
}

/* ════════════════════════════════════════════════
   CAPACITACIONES
   ════════════════════════════════════════════════ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

.cap-card {
  background: var(--navy2);
  border: 1px solid rgba(232, 171, 4, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.cap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}
.cap-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(232, 171, 4, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--gold);
  flex-shrink: 0;
}
.cap-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.4px;
}
.cap-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--white);
  line-height: 1.3;
}
.cap-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.cap-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.cap-title {
  color: #0c1a3a;
}
.cap-desc {
  color: #47608a;
}

/* ════════════════════════════════════════════════
   PUBLICACIONES
   ════════════════════════════════════════════════ */

.pub-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 80px;
}
.pub-placeholder-icon {
  font-size: 4.5rem;
  color: var(--gold);
  opacity: 0.45;
  margin-bottom: 24px;
}
.pub-placeholder h3 {
  font-size: 1.45rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
}
.pub-placeholder p {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.pub-placeholder h3 {
  color: #0c1a3a;
}
.pub-placeholder p {
  color: #47608a;
}

/* ── Sección Servicios: fondo blanco con rayas ── */
#servicios {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
#servicios {
  background: #ffffff;
}
@media (min-width: 1024px) {
  #servicios {
    padding-top: 80px;
  }
  #servicios .section-title {
    margin-bottom: 48px;
  }
}

#servicios::before {
  display: none;
}

/* ════════════════════════════════════════════════
   Sectores que protegemos + Hero (scoped)
   ════════════════════════════════════════════════ */

#sectores {
  background: rgb(11, 22, 50, 0.97);
  padding: 0;
  overflow: hidden;
  position: relative;
}

#sectores::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    60deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 28px
  );
  pointer-events: none;
  z-index: 0;
}

.sect-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  gap: 2rem;
}

.sect-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 5rem 2rem;
  gap: 0;
}

#sectores .section-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

#sectores .section-title .gold {
  color: #e8ab04;
}

#sectores .sect-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.82;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: 55ch;
}

.sect-divider {
  width: 36px;
  height: 2px;
  background: #e8ab04;
  margin: 1.75rem 0;
  flex-shrink: 0;
}

.sect-sector-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sect-sector-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.sect-sector-list li:hover {
  color: #e8ab04;
}

.sect-sector-list li i {
  color: #e8ab04;
  font-size: 0.72rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.sect-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  margin-bottom: 14px;
}

.sect-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: #e8ab04;
  flex-shrink: 0;
}

.sect-map-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.sect-map-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.sect-map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.65));
}

.map-pin[data-sector="residencial"] .pin-dot {
  background: #e8ab04;
  box-shadow: 0 0 0 2px rgba(232, 171, 4, 0.35);
}

.map-pin[data-sector="residencial"] .pin-dot::before,
.map-pin[data-sector="residencial"] .pin-dot::after {
  border-color: rgba(232, 171, 4, 0.65);
}

.map-pin[data-sector="comercial"] .pin-dot {
  background: #5b9bd5;
  box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.35);
}

.map-pin[data-sector="comercial"] .pin-dot::before,
.map-pin[data-sector="comercial"] .pin-dot::after {
  border-color: rgba(91, 155, 213, 0.65);
}

.map-pin[data-sector="industrial"] .pin-dot {
  background: #70b8a0;
  box-shadow: 0 0 0 2px rgba(112, 184, 160, 0.35);
}

.map-pin[data-sector="industrial"] .pin-dot::before,
.map-pin[data-sector="industrial"] .pin-dot::after {
  border-color: rgba(112, 184, 160, 0.65);
}

.map-pin[data-sector="financiero"] .pin-dot {
  background: #d47a5b;
  box-shadow: 0 0 0 2px rgba(212, 122, 91, 0.35);
}

.map-pin[data-sector="financiero"] .pin-dot::before,
.map-pin[data-sector="financiero"] .pin-dot::after {
  border-color: rgba(212, 122, 91, 0.65);
}

.map-pin[data-sector="salud"] .pin-dot {
  background: #a07dc8;
  box-shadow: 0 0 0 2px rgba(160, 125, 200, 0.35);
}

.map-pin[data-sector="salud"] .pin-dot::before,
.map-pin[data-sector="salud"] .pin-dot::after {
  border-color: rgba(160, 125, 200, 0.65);
}

.map-pin[data-sector="educativo"] .pin-dot {
  background: #e8ab04;
  box-shadow: 0 0 0 2px rgba(232, 171, 4, 0.35);
}

.map-pin[data-sector="educativo"] .pin-dot::before,
.map-pin[data-sector="educativo"] .pin-dot::after {
  border-color: rgba(232, 171, 4, 0.65);
}

.map-pin[data-sector="construccion"] .pin-dot {
  background: #7ba8c8;
  box-shadow: 0 0 0 2px rgba(123, 168, 200, 0.35);
}

.map-pin[data-sector="construccion"] .pin-dot::before,
.map-pin[data-sector="construccion"] .pin-dot::after {
  border-color: rgba(123, 168, 200, 0.65);
}

.sect-sector-list li[data-sector="residencial"] i {
  color: #e8ab04;
}
.sect-sector-list li[data-sector="comercial"] i {
  color: #5b9bd5;
}
.sect-sector-list li[data-sector="industrial"] i {
  color: #70b8a0;
}
.sect-sector-list li[data-sector="financiero"] i {
  color: #d47a5b;
}
.sect-sector-list li[data-sector="salud"] i {
  color: #a07dc8;
}
.sect-sector-list li[data-sector="educativo"] i {
  color: #e8ab04;
}
.sect-sector-list li[data-sector="construccion"] i {
  color: #7ba8c8;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.pin-dot {
  display: block;
  width: 9px;
  height: 9px;
  background: #e8ab04;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 2px rgba(232, 171, 4, 0.4);
}

.pin-dot::before,
.pin-dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 171, 4, 0.7);
  inset: 0;
  animation: pinPulse 2.4s ease-out infinite;
}

.pin-dot::after {
  border-color: rgba(232, 171, 4, 0.28);
  animation-delay: 0.9s;
}

.map-pin:nth-child(2) .pin-dot::before {
  animation-delay: 0.35s;
}
.map-pin:nth-child(2) .pin-dot::after {
  animation-delay: 1.25s;
}
.map-pin:nth-child(3) .pin-dot::before {
  animation-delay: 0.7s;
}
.map-pin:nth-child(3) .pin-dot::after {
  animation-delay: 1.6s;
}
.map-pin:nth-child(4) .pin-dot::before {
  animation-delay: 1.1s;
}
.map-pin:nth-child(4) .pin-dot::after {
  animation-delay: 2s;
}
.map-pin:nth-child(5) .pin-dot::before {
  animation-delay: 0.15s;
}
.map-pin:nth-child(5) .pin-dot::after {
  animation-delay: 1.05s;
}
.map-pin:nth-child(6) .pin-dot::before {
  animation-delay: 0.55s;
}
.map-pin:nth-child(6) .pin-dot::after {
  animation-delay: 1.45s;
}
.map-pin:nth-child(7) .pin-dot::before {
  animation-delay: 0.9s;
}
.map-pin:nth-child(7) .pin-dot::after {
  animation-delay: 1.8s;
}

@keyframes pinPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
  }
}

.pin-label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  background: rgba(8, 20, 44, 0.92);
  border: 1px solid rgba(232, 171, 4, 0.35);
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.map-pin.flip .pin-label {
  left: auto;
  right: calc(100% + 10px);
}

.pin-label i {
  color: #e8ab04;
  font-size: 0.7rem;
}

.pin-label span {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .sect-body {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 0;
    gap: 0;
  }

  .sect-text {
    padding: 2.5rem 1.5rem 1.5rem;
    align-items: center;
  }

  .sect-eyebrow {
    justify-content: center;
  }

  #sectores .section-title {
    text-align: center;
    white-space: normal;
  }

  #sectores .sect-desc {
    max-width: none;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .sect-divider {
    margin: 1.25rem auto;
  }

  .sect-sector-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.9rem;
  }

  .sect-map-area {
    padding: 1.5rem 1rem 2.5rem;
  }

  .sect-map-wrap {
    max-width: 220px;
  }

  .map-pin[data-sector="salud"],
  .map-pin[data-sector="industrial"],
  .map-pin[data-sector="comercial"] {
    display: none;
  }

  .pin-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .pin-label {
    padding: 0.18rem 0.42rem;
  }

  .pin-label i {
    display: none;
  }

  .pin-label span {
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  .map-pin[data-sector="residencial"] {
    top: 18% !important;
    left: 58% !important;
  }
  .map-pin[data-sector="educativo"] {
    top: 40% !important;
    left: 63% !important;
  }
  .map-pin[data-sector="financiero"] {
    top: 50% !important;
    left: 52% !important;
  }
  .map-pin[data-sector="construccion"] {
    top: 68% !important;
    left: 40% !important;
  }
}

/* iPad Air (768–989px): 2 columnas en sectores */
@media (min-width: 768px) and (max-width: 989px) {
  #sectores .section-title {
    white-space: normal;
  }
  .sect-map-wrap {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .sect-map-wrap {
    max-width: 160px;
  }
  .sect-sector-list li {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-dot::before,
  .pin-dot::after {
    animation: none;
  }
}

#hero .hero-content {
  z-index: 2;
  max-width: 880px;
}

/* ── Contenedor: sólo escritorio ≥1365px usa posición absoluta ── */
.hero-certs-wrapper {
  z-index: 3;
}

@media (min-width: 1365px) {
  .hero-certs-wrapper {
    position: absolute;
    right: 17%;
    top: 63%;
    transform: translateY(-50%);
  }
}

/* Ancla del popup: siempre justo encima de la fila de certs */
.cert-popup-anchor {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
}

/* ── Fila de certificados en el hero ── */
.hero-certs-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-certs-row-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #d0d6e0 40%,
    #f0f3f7 70%,
    #b8bec9 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-certs-row-title i {
  font-size: 0.75rem;
  -webkit-text-fill-color: #c8cdd8;
}

.hero-certs-cards {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
}

.hero-cert-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    160deg,
    #e8edf2 0%,
    #f5f7fa 25%,
    #c8cdd8 50%,
    #dde1e8 75%,
    #b8bec9 100%
  );
  border-radius: 12px;
  padding: 0.9rem 0.7rem 0.7rem;
  width: 94px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, 0.95) inset,
    0 -2px 3px rgba(0, 0, 0, 0.2) inset,
    2px 0 3px rgba(255, 255, 255, 0.6) inset,
    0 8px 24px rgba(0, 0, 0, 0.45),
    3px 5px 0 rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  cursor: pointer;
}

/* Destello continuo que barre la placa */
@keyframes shine-sweep {
  0% {
    left: -80%;
  }
  100% {
    left: 160%;
  }
}

.hero-cert-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  animation: shine-sweep 2.8s ease-in-out infinite;
}

.hero-cert-card:nth-child(2)::before {
  animation-delay: 0.4s;
}
.hero-cert-card:nth-child(3)::before {
  animation-delay: 0.8s;
}
.hero-cert-card:nth-child(4)::before {
  animation-delay: 1.2s;
}
.hero-cert-card:nth-child(5)::before {
  animation-delay: 1.6s;
}

.hero-cert-card:hover {
  transform: scale(1.45);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, 0.95) inset,
    0 -2px 3px rgba(0, 0, 0, 0.2) inset,
    2px 0 3px rgba(255, 255, 255, 0.6) inset,
    0 24px 60px rgba(0, 0, 0, 0.55),
    5px 8px 0 rgba(0, 0, 0, 0.22);
}

.hero-cert-card img {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.hero-cert-card span {
  position: relative;
  z-index: 1;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a2a3a;
  text-align: center;
}

/* ── Placa flotante (popup in-hero) ── */
@keyframes cert-rise {
  0% {
    transform: perspective(900px) translateY(80px) rotateY(-90deg) scale(0.45);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  70% {
    transform: perspective(900px) translateY(-10px) rotateY(6deg) scale(1.04);
    opacity: 1;
  }
  85% {
    transform: perspective(900px) translateY(3px) rotateY(-2deg) scale(0.98);
  }
  100% {
    transform: perspective(900px) translateY(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes cert-drop {
  0% {
    transform: perspective(900px) translateY(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
  30% {
    transform: perspective(900px) translateY(10px) rotateY(-15deg) scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: perspective(900px) translateY(70px) rotateY(-90deg) scale(0.35);
    opacity: 0;
  }
}

.cert-popup {
  display: none;
  width: 230px;
  border-radius: 18px;
  padding: 5px;
  background: linear-gradient(
    145deg,
    #a8b0be,
    #f0f2f5,
    #8a9099,
    #e0e4ea,
    #6e767f
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.cert-popup.active {
  display: block;
  animation: cert-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cert-popup.closing {
  animation: cert-drop 0.35s ease both;
}

/* Brillo continuo sobre la placa popup */
.cert-popup::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  animation: shine-sweep 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.cert-popup-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    160deg,
    #edf0f4 0%,
    #f8f9fb 25%,
    #d0d5de 55%,
    #e4e8ee 80%,
    #c0c6d0 100%
  );
  border-radius: 14px;
  padding: 1.6rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.cert-popup-content img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.cert-popup-content span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a2e3a;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.6rem;
  width: 100%;
  text-align: center;
}

#certPopupDesc {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6070;
  text-align: center;
  margin-top: -0.2rem;
}

.cert-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  font-size: 0.75rem;
  transition:
    background 0.2s,
    transform 0.2s;
}

.cert-popup-close:hover {
  background: rgba(0, 0, 0, 0.28);
  transform: rotate(90deg);
}

@media (max-width: 1364px) {
  /* Hero apila verticalmente: cert wrapper fluye debajo del hero-content */
  #hero {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }

  .hero-certs-wrapper {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem 0 1.2rem;
    width: 100%;
  }

  .hero-certs-row {
    width: 100%;
    align-items: center;
  }

  .cert-popup-anchor {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(230px, 88vw);
    bottom: calc(100% + 10px);
  }

  /* Cards escalan suavemente: 54px (360px) → 132px (768px) → 180px (1024px) */
  .hero-certs-cards {
    justify-content: center;
    gap: clamp(0.25rem, 1.8vw, 1.2rem);
    padding: 0 4px 4px;
    width: 100%;
  }

  .hero-cert-card {
    flex-shrink: 0;
    width: clamp(54px, calc(-14px + 19vw), 180px);
    padding: clamp(0.5rem, 1.2vw, 1.3rem) clamp(0.3rem, 0.85vw, 1rem)
      clamp(0.4rem, 1vw, 1.1rem);
  }

  .hero-cert-card img {
    width: clamp(34px, calc(-10px + 12.3vw), 116px);
    height: clamp(34px, calc(-10px + 12.3vw), 116px);
  }

  .hero-cert-card span {
    font-size: clamp(0.44rem, calc(0.2rem + 1.06vw), 0.88rem);
  }

  .hero-certs-row-title {
    font-size: clamp(0.78rem, 1.1vw, 1.05rem);
  }
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 100%,
    rgba(3, 22, 74, 0.71) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Backdrop difuminado al abrir popup en móvil ── */
.cert-popup-backdrop {
  display: none;
  pointer-events: none;
}

@media (max-width: 1364px) {
  .cert-popup-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 8, 20, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 99;
    pointer-events: none;
    transition:
      background 0.35s ease,
      backdrop-filter 0.35s ease;
  }

  .cert-popup-backdrop.active {
    background: rgba(0, 8, 20, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
  }

  /* Wrapper sobre el backdrop */
  .hero-certs-wrapper {
    z-index: 100;
  }
}

#hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(0.72rem, 1.1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s var(--ease) 0.05s both;
}

.hero-kicker::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: var(--gold);
  flex: 0 0 30px;
}

#hero .hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}

#hero .hero-desc {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 1.6rem;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62) !important;
  margin-bottom: 2.4rem;
  animation: fadeUp 0.7s var(--ease) 0.35s both;
}

.hero-trust i {
  color: var(--gold);
  font-size: 0.95rem;
}

#hero .hero-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 730px;
  border-top: 1px solid rgba(232, 171, 4, 0.3);
  padding-top: 1.5rem;
  animation: fadeUp 0.7s var(--ease) 0.5s both;
}

#hero .hcred-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 150px;
  padding: 0 1.5rem;
  position: relative;
}

#hero .hcred-item:first-child {
  padding-left: 0;
}

#hero .hcred-item + .hcred-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

#hero .hcred-item > i {
  color: var(--gold);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

#hero .hcred-item div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

#hero .hcred-item strong {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.15;
}

#hero .hcred-item span {
  font-size: 0.71rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.52);
}
#hero .hcred-item strong .hero-counter {
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  font-weight: inherit;
  font-family: inherit;
}

@media (max-width: 620px) {
  #hero .hero-creds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }

  #hero .hcred-item {
    padding: 0;
  }

  #hero .hcred-item + .hcred-item::before {
    display: none;
  }
}

@media (min-width: 1366px) {
  #hero .hero-content {
    max-width: 1080px;
    padding-top: 190px;
  }
  #hero .hero-title {
    font-size: clamp(4rem, 5.5vw, 6rem);
    margin-bottom: 1.6rem;
  }
  #hero .hero-desc {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    max-width: 64ch;
    margin-bottom: 1.8rem;
  }
  .hero-trust {
    font-size: 1rem;
    margin-bottom: 2.8rem;
  }
  .hero-trust i {
    font-size: 1.1rem;
  }
  #hero .hero-btns .btn {
    font-size: 1.08rem;
    padding: 14px 36px;
  }
  #hero .hero-creds {
    max-width: 100%;
    padding-top: 2rem;
    gap: 0;
  }
  #hero .hcred-item {
    flex: 1;
    padding: 0 2.5rem;
  }
  #hero .hcred-item strong {
    font-size: 1.2rem;
  }
  #hero .hcred-item span {
    font-size: 0.88rem;
  }
  #hero .hcred-item > i {
    font-size: 1.5rem;
  }
}

/* iPad Mini / iPad Air (668px–989px) — nav hamburguesa */
@media (min-width: 668px) and (max-width: 989px) {
  #hero .hero-title {
    font-size: 5.5rem;
  }
  #hero .hero-desc {
    font-size: 1.55rem;
  }
  .hero-trust {
    font-size: 1.1rem;
  }
}

/* iPad Pro / Surface Pro (990px–1365px) — nav escritorio */
@media (min-width: 990px) and (max-width: 1365px) {
  #hero .hero-content {
    padding-top: clamp(160px, 20vh, 200px);
  }
  #hero .hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    margin-bottom: 1.2rem;
  }
  #hero .hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin-bottom: 1.3rem;
  }
  .hero-trust {
    font-size: 0.88rem;
    margin-bottom: 1.6rem;
  }
  #hero .hero-btns .btn {
    font-size: 1rem;
    padding: 13px 30px;
  }
  #hero .hero-btns {
    gap: 0.85rem;
  }
  #hero .hero-creds {
    padding-top: 1.4rem;
  }
  #hero .hcred-item {
    padding: 0 1.4rem;
  }
  #hero .hcred-item strong {
    font-size: 0.95rem;
  }
  #hero .hcred-item span {
    font-size: 0.72rem;
  }
  #hero .hcred-item > i {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero-trust,
  #hero .hero-title,
  #hero .hero-desc,
  #hero .hero-btns,
  #hero .hero-creds {
    animation: none !important;
  }
}

.navbar.scrolled {
  background: rgba(11, 22, 50, 0.97) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-dropdown-trigger:hover,
.navbar.scrolled .nav-links a.active {
  color: #ffffff !important;
}

.navbar.scrolled .hamburger span {
  background: #ffffff !important;
}

/* ════════════════════════════════════════════════
   Chatbot Widget
   ════════════════════════════════════════════════ */

.cb-widget {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 10000;
}

.cb-tooltip {
  position: absolute;
  bottom: 50%;
  right: calc(100% + 14px);
  transform: translateY(50%) translateX(6px);
  background: #fff;
  color: #11204f;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}

.cb-tooltip.show {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}

.cb-trigger {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #2a4a8a 0%, #0a1530 75%);
  border: 2px solid #e8ab04;
  color: #e8ab04;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.cb-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(232, 171, 4, 0.35);
}

.cb-ico-personaje {
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: bottom;
  border-radius: 0;
  display: block;
}

.cb-trigger .cb-ico-close {
  display: none;
}

.cb-widget.open .cb-trigger .cb-ico-bot {
  display: none;
}
.cb-widget.open .cb-trigger .cb-ico-close {
  display: block;
}

.cb-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: rgb(11, 22, 50, 0.97);
  border: 2.5px solid #e8ab04;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
}

.cb-widget.open .cb-badge {
  display: none;
}

.cb-trigger::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(232, 171, 4, 0.4);
  animation: cbPulse 2.2s ease-out infinite;
}

.cb-widget.open .cb-trigger::before,
.cb-trigger.cb-pulse-off::before {
  animation: none;
  opacity: 0;
}

@keyframes cbPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.cb-window {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 360px;
  background: #ffffff;
  border: 1px solid rgba(232, 171, 4, 0.3);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  max-height: 540px;
}

.cb-widget.open .cb-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.cb-header {
  background: rgb(11, 22, 50, 0.97);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(232, 171, 4, 0.15);
  flex-shrink: 0;
}

.cb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(11, 22, 50, 0.97);
  border: 1px solid rgba(234, 187, 58, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cb-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cb-hinfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cb-hinfo strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

.cb-hinfo span {
  font-size: 0.67rem;
  color: #6ecf8a;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cb-hinfo span i {
  font-size: 0.42rem;
}

.cb-hclose {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem;
  transition: color 0.2s;
  line-height: 1;
}

.cb-hclose:hover {
  color: #fff;
}

.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 171, 4, 0.3) transparent;
}

.cb-msg {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.cb-msg.user {
  justify-content: flex-end;
}

.cb-mavatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8eaf2;
  border: 1px solid rgba(232, 171, 4, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}

.cb-mavatar img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.cb-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.79rem;
  line-height: 1.58;
  animation: cbSlide 0.22s ease;
}

.cb-msg.bot .cb-bubble {
  background: #f0f2f7;
  color: #1e3460;
  border-bottom-left-radius: 4px;
}

.cb-msg.user .cb-bubble {
  background: #e8ab04;
  color: #0b1623;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

@keyframes cbSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cb-typing .cb-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.7rem 0.85rem;
}

.cb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(30, 52, 96, 0.4);
  animation: cbDot 1.1s ease-in-out infinite;
}

.cb-dot:nth-child(2) {
  animation-delay: 0.18s;
}
.cb-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes cbDot {
  0%,
  80%,
  100% {
    transform: scale(0.65);
    opacity: 0.35;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.cb-chips {
  padding: 0.55rem 0.75rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  flex-shrink: 0;
}

.cb-chip {
  background: rgba(232, 171, 4, 0.1);
  border: 1px solid rgba(232, 171, 4, 0.4);
  color: #e8ab04;
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  line-height: 1.2;
}

.cb-chip:hover {
  background: #e8ab04;
  color: #0b1623;
  border-color: #e8ab04;
}

.cb-foot {
  padding: 0.42rem 1rem;
  text-align: center;
  font-size: 0.6rem;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .cb-widget {
    bottom: 80px;
    right: 16px;
  }

  .cb-window {
    width: calc(100vw - 32px);
    max-height: 68vh;
    right: -8px;
  }

  .cb-trigger {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .cb-tooltip {
    display: none;
  }
}

/* ════ comites.html ════ */
/* ── Comités extras ─────────────────────────────── */
.comites-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.comite-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition:
    border-color 0.3s,
    transform 0.2s,
    color 0.3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.comite-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #6b7280;
  border-radius: inherit;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.comite-tab:hover::before {
  transform: translateY(0);
}

.comite-tab:hover {
  border-color: #6b7280;
  color: #fff;
  transform: translateY(-2px);
}

.comite-desc {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ── Botones de acción del libro ──────────────────── */
.comite-book-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.comite-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  position: relative;
}

.comite-book-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a1f3d;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.comite-book-btn:hover::after {
  opacity: 1;
}

.comite-book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.comite-book-btn.dl {
  background: #e8ab04;
  color: #0a1f3d;
  border: none;
}

.comite-book-btn.dl:hover {
  background: #b8911f;
}

.comite-book-btn.ext {
  background: transparent;
  color: #0a1f3d;
  border: 2px solid #cbd5e1;
}

.comite-book-btn.ext:hover {
  background: #0a1f3d;
  border-color: #0a1f3d;
  color: #fff;
}

/* ════ ecoserv.html ════ */
.eco-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  position: relative;
}

.eco-book-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a1f3d;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.eco-book-btn:hover::after {
  opacity: 1;
}

.eco-book-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.eco-book-btn.dl {
  background: #e8ab04;
  color: #0a1f3d;
  border: none;
}

.eco-book-btn.dl:hover {
  background: #b8911f;
}

.eco-book-btn.ext {
  background: transparent;
  color: #0a1f3d;
  border: 2px solid #cbd5e1;
}

.eco-book-btn.ext:hover {
  background: #0a1f3d;
  border-color: #0a1f3d;
  color: #fff;
}

.ecoserv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ════ publicaciones.html ════ */
/* ════ Feed de noticias (estilo agregador / MSN) ════ */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

/* ── Tarjeta base ── */
.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(10, 31, 61, 0.1);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(10, 31, 61, 0.1);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(10, 31, 61, 0.18);
}

.pub-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f7;
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.pub-card:hover .pub-thumb img {
  transform: scale(1.06);
}

.pub-sponsored {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 15, 33, 0.78);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: "Barlow Condensed", sans-serif;
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1rem;
  flex: 1;
}

/* Fuente / autoría */
.pub-source {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: #5a6987 !important;
  font-family: "Barlow Condensed", sans-serif;
}

.pub-source-logo {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border-radius: 5px;
  background: #0a1f3d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pub-source-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.pub-source .pub-dot {
  opacity: 0.55;
}

.pub-headline {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: #0a1f3d !important;
  line-height: 1.32;
  margin: 0;
}

.pub-card:hover .pub-headline {
  color: #e8ab04 !important;
}

/* Reacciones compactas */
.pub-react {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  color: #5a6987 !important;
}

.pub-react span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pub-react i {
  font-size: 0.98rem;
}

/* Pill de categoría dorada */
.pub-cat {
  display: inline-block;
  width: max-content;
  background: rgba(232, 171, 4, 0.14);
  color: #e8ab04 !important;
  border: 1px solid #e8ab04;
  border-radius: 20px;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 11px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Tarjeta destacada (grande, título sobre imagen) ── */
.pub-feature {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 460px;
}

.pub-feature .pub-thumb {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.pub-feature .pub-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 15, 33, 0.94) 0%,
    rgba(7, 15, 33, 0.5) 45%,
    rgba(7, 15, 33, 0.05) 78%
  );
}

.pub-feature .pub-content {
  position: relative;
  z-index: 2;
  flex: 0;
  gap: 0.7rem;
  padding: 1.35rem 1.5rem 1.5rem;
}

.pub-feature .pub-headline {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff !important;
}

.pub-feature .pub-source,
.pub-feature .pub-react {
  color: #e3e9f4 !important;
}

.pub-feature .pub-cat {
  background: rgba(232, 171, 4, 0.25);
  color: #f3dd97 !important;
  border-color: rgba(232, 171, 4, 0.6);
}

/* ── Panel "Historias principales" ── */
.pub-list {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(10, 31, 61, 0.1);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 22px rgba(10, 31, 61, 0.1);
}

.pub-list-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  color: #0a1f3d;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.pub-list-head i {
  color: #e8ab04;
}

.pub-list-item {
  display: block;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(10, 31, 61, 0.1);
  text-decoration: none;
}

.pub-list-src {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #5a6987;
  margin-bottom: 0.3rem;
  font-family: "Barlow Condensed", sans-serif;
}

.pub-list-src .pub-source-logo {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  border-radius: 4px;
}

.pub-list-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0a1f3d;
  line-height: 1.38;
}

.pub-list-item:hover .pub-list-title {
  color: #e8ab04;
}

/* ── Responsivo ── */
@media (max-width: 960px) {
  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pub-feature {
    grid-column: span 2;
    grid-row: auto;
    min-height: 380px;
  }

  .pub-list {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }

  .pub-feature {
    grid-column: auto;
    min-height: 340px;
  }

  .pub-list {
    grid-column: auto;
  }

  .pub-feature .pub-headline {
    font-size: 1.3rem;
  }
}

/* ════ Cards clicables + reset de botones de la lista ════ */
.pub-card {
  cursor: pointer;
}

.pub-card:focus-visible,
.pub-list-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.pub-list-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid rgba(10, 31, 61, 0.1);
  cursor: pointer;
  font-family: inherit;
}

.pub-list-item:first-of-type {
  border-top: none;
}

/* Indicador de video en la card de Certificación ISO */
.pub-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(232, 171, 4, 0.92);
  color: #0a1f3d;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s var(--ease),
    background 0.2s;
  z-index: 2;
}

.pub-play i {
  margin-left: 3px;
}

.pub-card:hover .pub-play {
  transform: scale(1.12);
  background: #e7c45a;
}

/* ════ Modal de publicación ════ */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.pub-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 24, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.pub-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(10, 31, 61, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s var(--ease);
  /* Ocultar la barra de scroll (mantiene el desplazamiento) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pub-modal-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.pub-modal.is-open .pub-modal-dialog {
  transform: translateY(0) scale(1);
}

.pub-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(7, 15, 33, 0.7);
  color: #fff;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.pub-modal-close:hover {
  background: var(--gold);
  color: #0a1f3d;
}

.pub-modal-media {
  width: 100%;
  background: #eef1f7;
}

.pub-modal-media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.pub-modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.pub-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pub-modal-body {
  padding: 1.4rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pub-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #5a6987;
  font-family: "Barlow Condensed", sans-serif;
}

.pub-modal-meta .pub-source-logo {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 6px;
}

.pub-modal-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #0a1f3d;
  line-height: 1.3;
  margin: 0;
}

.pub-modal-desc {
  font-size: 0.97rem;
  color: #3a4a66;
  line-height: 1.65;
  margin: 0;
}

.pub-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.pub-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    background 0.2s,
    transform 0.15s;
}

.pub-modal-btn:active {
  transform: scale(0.97);
}

.pub-modal-btn-pdf {
  background: #0a1f3d;
  color: #fff;
}

.pub-modal-btn-pdf:hover {
  background: #1e3a5f;
}

.pub-modal-btn-exam {
  background: var(--gold);
  color: #0a1f3d;
}

.pub-modal-btn-exam:hover {
  background: #b8911f;
}

.pub-modal-btn.is-disabled {
  background: #e8edf3;
  color: #94a3b8;
  cursor: not-allowed;
}

.pub-modal-btn.is-disabled:active {
  transform: none;
}

body.pub-modal-lock {
  overflow: hidden;
}

@media (max-width: 560px) {
  .pub-modal-title {
    font-size: 1.2rem;
  }

  .pub-modal-body {
    padding: 1.2rem 1.15rem 1.4rem;
  }

  .pub-modal-btn {
    flex: 1 1 100%;
  }
}

/* ════ capacitaciones.html ════ */
/* ── Capacitaciones showcase ────────────────────── */
.cap-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.cap-showcase-item {
  display: flex;
  flex-direction: column;
}
.cap-showcase-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.35s,
    box-shadow 0.35s;
  text-decoration: none;
}
.cap-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}
.cap-showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.cap-showcase-card:hover img {
  transform: scale(1.06);
}
.cap-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 15, 35, 0.75) 0%,
    rgba(5, 15, 35, 0.15) 40%,
    transparent 100%
  );
  transition: background 0.35s;
}
.cap-showcase-card:hover .cap-showcase-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 15, 35, 0.85) 0%,
    rgba(5, 15, 35, 0.25) 50%,
    transparent 100%
  );
}
.cap-showcase-body {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 1.75rem;
  width: 100%;
  display: flex;
  justify-content: center;
}
.cap-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8ab04;
  color: #0a1f3d;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition:
    background 0.2s,
    gap 0.2s,
    transform 0.2s;
}
.cap-showcase-card:hover .cap-showcase-btn {
  background: #b8911f;
  gap: 0.8rem;
}
.cap-showcase-info {
  padding: 0 0.25rem 1rem;
}
.cap-showcase-tag {
  display: inline-block;
  background: rgba(232, 171, 4, 0.12);
  color: #e8ab04;
  border: 1.5px solid #e8ab04;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  margin-bottom: 0.5rem;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cap-showcase-title {
  color: #0a1f3d;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}
@media (max-width: 700px) {
  .cap-showcase-grid {
    grid-template-columns: 1fr;
  }
  .cap-showcase-card {
    min-height: 300px;
  }
}

/* ════ capacitacion-operativo.html ════ */
/* ── Grid de lecciones ──────────────────────────── */
.op-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 1024px) {
  .op-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .op-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .op-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Card ───────────────────────────────────────── */
.op-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.op-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

/* Header con color e ícono / imagen */
.op-card-header {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
  overflow: hidden;
}

.op-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Cuerpo: número + título */
.op-card-body {
  padding: 0.9rem 1rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.op-card-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.op-card-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0a1f3d;
  line-height: 1.4;
}

/* Footer: botones */
.op-card-footer {
  padding: 0.75rem 1rem 0.9rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.op-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.4rem;
  border-radius: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.15s;
}

.op-btn:active {
  transform: scale(0.96);
}

.op-btn-view {
  background: #0a1f3d;
  color: #fff;
}

.op-btn-view:hover {
  background: #1e3a5f;
}

.op-btn-eval {
  background: #e8ab04;
  color: #0a1f3d;
}

.op-btn-eval:hover {
  background: #b8911f;
}

/* ── Barra de búsqueda ──────────────────────────── */
.op-search-wrap {
  max-width: 540px;
  margin: 1.75rem auto 0;
  position: relative;
}

.op-search-wrap .op-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.op-search {
  width: 100%;
  padding: 0.85rem 1.1rem 0.85rem 2.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  color: #0a1f3d;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.op-search:focus {
  border-color: #e8ab04;
  box-shadow: 0 0 0 3px rgba(232, 171, 4, 0.15);
}

.op-search::placeholder {
  color: #94a3b8;
}

.op-no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
}

.op-no-results i {
  font-size: 2.5rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: block;
}

/* Botón volver */
.op-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e8ab04;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: gap 0.2s;
}

.op-back:hover {
  gap: 0.8rem;
}

/* ════ capacitacion-supervisores.html ════ */
/* ── Capacitación detalle ───────────────────────── */
.capdet-section {
  padding: 5rem 0;
}
.capdet-section.alt {
  background: var(--bg-alt, #f8fafc);
}
.capdet-intro {
  max-width: 780px;
  margin: 0 auto;
}
.capdet-intro h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0a1f3d;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}
.capdet-intro p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.capdet-intro ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: #475569;
  line-height: 1.9;
}
.capdet-intro ul li {
  margin-bottom: 0.3rem;
}
.capdet-intro ul li strong {
  color: #0a1f3d;
}
.capdet-divider {
  width: 52px;
  height: 4px;
  background: #e8ab04;
  border-radius: 4px;
  margin: 0 0 1.75rem;
}

/* ── Grilla de fotos ────────────────────────────── */
.capdet-photos {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.capdet-photos.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.capdet-photos.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.capdet-photos.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.capdet-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  background: #e2e8f0;
}
.capdet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.capdet-photo:hover img {
  transform: scale(1.06);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .capdet-photos.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .capdet-photos.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .capdet-section {
    padding: 3.5rem 0;
  }

  /* Carrusel horizontal en móvil */
  .capdet-photos.cols-2,
  .capdet-photos.cols-3,
  .capdet-photos.cols-4 {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0.85rem;
    padding-bottom: 0.25rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* salir del container para ocupar todo el ancho */
    margin-left: calc(-1 * var(--container-pad, 1.25rem));
    margin-right: calc(-1 * var(--container-pad, 1.25rem));
    padding-left: var(--container-pad, 1.25rem);
    padding-right: var(--container-pad, 1.25rem);
  }
  .capdet-photos.cols-2::-webkit-scrollbar,
  .capdet-photos.cols-3::-webkit-scrollbar,
  .capdet-photos.cols-4::-webkit-scrollbar {
    display: none;
  }

  .capdet-photos .capdet-photo {
    flex: 0 0 80%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
  }

  /* Indicador de puntos */
  .capdet-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.9rem;
  }
  .capdet-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
    transition:
      background 0.25s,
      transform 0.25s;
  }
  .capdet-dot.active {
    background: #e8ab04;
    transform: scale(1.3);
  }
}
@media (min-width: 601px) {
  .capdet-dots {
    display: none;
  }
}

/* ── Botones de navegación del carrusel ─────────── */
.capdet-carousel-wrap {
  position: relative;
}
.capdet-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a1f3d;
  font-size: 0.8rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.capdet-carousel-btn:active {
  background: #f0f0f0;
  transform: translateY(-50%) scale(0.94);
}
.capdet-carousel-btn.prev {
  left: 10px;
}
.capdet-carousel-btn.next {
  right: 10px;
}

/* ── Botón volver ───────────────────────────────── */
.capdet-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e8ab04;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: gap 0.2s;
}
.capdet-back:hover {
  gap: 0.8rem;
}
