:root {
  --primary: #0066a6;
  --primary-dark: #004d7d;
  --secondary: #16a9e5;
  --ink: #193247;
  --muted: #6b7b88;
  --light: #f4f8fb;
  --white: #fff;
  --shadow: 0 12px 35px rgba(19, 57, 82, 0.1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
}
a {
  text-decoration: none;
}
.topbar {
  background: #003b61;
  color: #d9effc;
  padding: 7px 0;
}
.main-nav {
  background: linear-gradient(110deg, var(--primary-dark), var(--primary));
  padding: 10px 0;
}
.navbar-brand span {
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.navbar-brand small {
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 4px;
}
.nav-link {
  color: #eaf7ff !important;
  margin-left: 3px;
  border-radius: 8px;
  padding: 8px 10px !important;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
}
.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 42, 70, 0.92), rgba(0, 85, 130, 0.55)),
    url("../img/hero.svg") center/cover;
}
.hero-content {
  max-width: 700px;
  color: #fff;
  padding: 90px 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #c7ecff;
}
.eyebrow.blue {
  color: var(--primary);
}
h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 14px 0 20px;
}
.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 620px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* z-indez 2*/
.quick-section {
  margin-top: -55px;
  position: relative;
  z-index: 30;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quick-card {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  border-right: 1px solid #e6eef3;
  transition: 0.25s;
}
.quick-card:last-child {
  border: 0;
}
.quick-card:hover {
  transform: translateY(-4px);
  color: var(--primary);
  background: #f9fdff;
}
.quick-card i {
  font-size: 28px;
  color: var(--primary);
}
.quick-card span {
  font-weight: 800;
  font-size: 1.08rem;
}
.quick-card small {
  color: var(--muted);
}
.section {
  padding: 90px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}
.section-heading h2,
.section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 8px 0;
}
.section-heading a {
  color: var(--primary);
  font-weight: 700;
}
.news-card,
.service-card,
.form-card {
  background: #fff;
  border: 1px solid #e4edf3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 50, 70, 0.06);
  transition: 0.25s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.news-image {
  height: 205px;
  background: linear-gradient(135deg, #d8f2ff, #76c8ed);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-image i {
  font-size: 60px;
  color: #fff;
}
.news-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 10px 0;
}
.news-card p {
  color: var(--muted);
  line-height: 1.6;
}
.news-card a {
  font-weight: 800;
  color: var(--primary);
}
.badge-soft {
  background: #e7f5fd;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}
.stats-section {
  padding: 60px 0;
  background: linear-gradient(110deg, #004c79, #0078b8);
  color: #fff;
}
.stats-section strong {
  display: block;
  font-size: 2.7rem;
}
.stats-section span {
  opacity: 0.8;
}
.mission-box {
  padding: 25px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}
.mission-box h3 {
  font-size: 1.2rem;
  color: var(--primary);
}
.mission-box i {
  margin-right: 8px;
}
.page-hero {
  padding: 80px 0;
  background: linear-gradient(110deg, #004b78, #0788c4);
  color: #fff;
}
.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.page-hero p {
  margin: 0;
  opacity: 0.85;
}
.search-box {
  position: relative;
}
.search-box i {
  position: absolute;
  left: 18px;
  top: 14px;
  color: #8aa;
}
.search-box input {
  padding: 13px 18px 13px 45px;
  border-radius: 12px;
}
.service-card {
  padding: 28px;
}
.service-card .icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: #e8f6fd;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}
.service-card p {
  color: var(--muted);
}
.service-card ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.article-content {
  max-width: 900px;
}
.article-content p,
.article-content li {
  font-size: 1.05rem;
  line-height: 1.8;
}
.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 30px;
}
.document-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e3edf3;
  border-radius: 12px;
}
.document-card > i {
  font-size: 28px;
  color: #dc3545;
}
.document-card div {
  flex: 1;
}
.document-card strong,
.document-card small {
  display: block;
}
.document-card small {
  color: var(--muted);
  margin-top: 4px;
}
.contact-info > div {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e6eef3;
}
.contact-info > div i {
  width: 30px;
  color: var(--primary);
}
.form-card {
  padding: 30px;
}
.form-card label {
  font-weight: 700;
  margin-bottom: 6px;
}
.form-control {
  padding: 11px 13px;
  border-color: #d9e6ee;
  border-radius: 9px;
}
.footer {
  background: #062b42;
  color: #dceaf1;
}
.footer h5 {
  color: #fff;
  margin-bottom: 18px;
}
.footer a {
  display: block;
  color: #b9cfda;
  margin: 10px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  color: #9eb5c0;
  font-size: 0.85rem;
}
.accordion-button {
  font-weight: 800;
  color: var(--ink);
}
@media (max-width: 991px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-card:nth-child(2) {
    border-right: 0;
  }
  .quick-card {
    border-bottom: 1px solid #e6eef3;
  }
  .hero {
    min-height: 500px;
  }
  .section {
    padding: 65px 0;
  }
}
@media (max-width: 575px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .quick-card {
    border-right: 0;
  }
  .hero-content {
    padding: 70px 0;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .page-hero {
    padding: 55px 0;
  }
  .page-hero h1 {
    font-size: 2.3rem;
  }
  .section-heading {
    display: block;
  }
  .section-heading > a {
    display: inline-block;
    margin-top: 10px;
  }
}
/* Para el sub menu*/
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

/* =========================================================
   SAPAM SLIDER
   ========================================================= */

.sapam-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #062b49;
  z-index: 1; /* agregado*/
}

/* =========================================================
   CAROUSEL
   ========================================================= */

.sapam-slider .carousel-inner {
  width: 100%;
}

.sapam-slider .carousel-item {
  width: 100%;
}

/* =========================================================
   SLIDE
   ========================================================= */

.sapam-slide {
  position: relative;

  width: 100%;
  height: 680px;
  min-height: 680px;

  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  overflow: hidden;

  isolation: isolate;
}

/* =========================================================
   OSCURECIMIENTO
   ========================================================= */

.sapam-slide-overlay {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    rgba(0, 25, 45, 0.96) 0%,
    rgba(0, 31, 53, 0.88) 30%,
    rgba(0, 31, 53, 0.65) 60%,
    rgba(0, 31, 53, 0.42) 100%
  );

  z-index: 1;

  pointer-events: none;
}

/* =========================================================
   CONTENEDOR PROPIO
   ========================================================= */

.sapam-slide-container {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1320px;

  height: 100%;

  margin: 0 auto;

  padding-left: 12px;
  padding-right: 12px;

  display: flex;
  align-items: center;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.sapam-slide-content {
  width: 720px;
  max-width: 100%;

  padding: 42px 45px;

  background: rgba(0, 25, 45, 0.88);

  border-left: 5px solid #0d9bd7;

  border-radius: 0 16px 16px 0;

  color: #fff;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  box-sizing: border-box;
}

/* =========================================================
   EYEBROW
   ========================================================= */

.sapam-slide-content .eyebrow {
  display: inline-block;

  margin-bottom: 15px;

  color: #8ed8ff;

  font-size: 0.85rem;

  font-weight: 800;

  letter-spacing: 2px;

  text-transform: uppercase;
}

/* =========================================================
   TITULO
   ========================================================= */

.sapam-slide-content h1 {
  margin: 0 0 20px;

  color: #fff;

  font-size: clamp(2.4rem, 4.5vw, 4.2rem);

  line-height: 1.08;

  font-weight: 800;

  letter-spacing: -1px;

  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   DESCRIPCION
   ========================================================= */

.sapam-slide-content p {
  max-width: 650px;

  margin: 0 0 30px;

  color: rgba(255, 255, 255, 0.96);

  font-size: 1.12rem;

  line-height: 1.65;

  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   BOTONES
   ========================================================= */

.sapam-slide-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.sapam-slide-buttons .btn {
  min-height: 50px;

  padding: 12px 25px;

  border-radius: 8px;

  font-weight: 700;
}

/* =========================================================
   INDICADORES
   ========================================================= */

.sapam-slider .carousel-indicators {
  z-index: 20;

  bottom: 25px;

  margin: 0;
}

.sapam-slider .carousel-indicators button {
  width: 38px;
  height: 5px;

  margin: 0 5px;

  border: 0;

  border-radius: 20px;

  background: #fff;

  opacity: 0.45;

  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}

.sapam-slider .carousel-indicators button.active {
  width: 65px;

  opacity: 1;
}

/* =========================================================
   CONTROLES
   ========================================================= */

.sapam-slider-control {
  z-index: 20;

  width: 75px;

  opacity: 0;

  transition: opacity 0.3s ease;
}

.sapam-slider:hover .sapam-slider-control {
  opacity: 1;
}

.sapam-slider .carousel-control-prev-icon,
.sapam-slider .carousel-control-next-icon {
  width: 48px;
  height: 48px;

  background-color: rgba(0, 34, 58, 0.85);

  background-size: 45%;

  border-radius: 50%;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   ANIMACIÓN
   ========================================================= */

.sapam-slider .carousel-item.active .sapam-slide-content {
  animation: sapamSlideContent 1.2s ease-out both;
}

@keyframes sapamSlideContent {
  from {
    opacity: 0.9;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .sapam-slide {
    height: 620px;
    min-height: 620px;
  }

  .sapam-slide-container {
    max-width: 960px;
  }

  .sapam-slide-content {
    width: 650px;

    padding: 35px;
  }

  .sapam-slide-content h1 {
    font-size: 3rem;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767.98px) {
  .sapam-slide {
    height: 650px;
    min-height: 650px;

    background-position: center center;
  }

  .sapam-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 27, 48, 0.6) 0%,
      rgba(0, 27, 48, 0.82) 45%,
      rgba(0, 27, 48, 0.96) 100%
    );
  }

  .sapam-slide-container {
    align-items: flex-end;

    padding: 0 15px 70px 15px;
  }

  .sapam-slide-content {
    width: 100%;

    padding: 28px 25px;

    border-left: 0;

    border-top: 4px solid #0d9bd7;

    border-radius: 0 0 12px 12px;

    background: rgba(0, 25, 45, 0.92);
  }

  .sapam-slide-content h1 {
    font-size: 2.15rem;

    line-height: 1.12;
  }

  .sapam-slide-content p {
    font-size: 1rem;

    line-height: 1.55;
  }

  .sapam-slide-buttons {
    flex-direction: column;
  }

  .sapam-slide-buttons .btn {
    width: 100%;
  }

  .sapam-slider-control {
    display: none;
  }

  .sapam-slider .carousel-indicators {
    bottom: 18px;
  }
}

/* =========================================
   BOTÓN VOLVER ARRIBA
   ========================================= */

.btn-volver-arriba {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: #0d6efd;
  color: #fff;

  font-size: 18px;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(20px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;

  z-index: 9999;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* BOTÓN VISIBLE */

.btn-volver-arriba.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* EFECTO HOVER */

.btn-volver-arriba:hover {
  transform: translateY(-3px);

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* VERSIÓN MÓVIL */

@media (max-width: 576px) {
  .btn-volver-arriba {
    right: 15px;
    bottom: 15px;

    width: 44px;
    height: 44px;

    font-size: 16px;
  }
}
