:root {
  --azul: #003f7d;
  --azul-2: #005aa7;
  --celeste: #00a8e8;
  --verde: #0c8f6a;
  --dorado: #f5b301;
  --rojo: #c62828;
  --gris: #f4f7fb;
  --texto: #1f2937;
  --blanco: #ffffff;
  --sombra: 0 15px 35px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 45%, #eefaf6 100%);
  color: var(--texto);
}

a {
  text-decoration: none;
  color: inherit;
}

.pre-header {
  width: 100%;
  background: linear-gradient(90deg, var(--azul), var(--azul-2));
  color: var(--blanco);
  padding: 0.55rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.pre-header .info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.pre-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pre-nav a {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: 0.3s ease;
  font-weight: 600;
}

.pre-nav a:hover {
  background: var(--dorado);
  color: #1a1a1a;
  transform: translateY(-2px);
}

.main-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: var(--azul);
  padding: 0.4rem;
  box-shadow: var(--sombra);
}

.brand h1 {
  color: var(--azul);
  font-size: 1.45rem;
  line-height: 1.1;
}

.brand span {
  color: var(--verde);
  font-size: 0.9rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-box {
  position: relative;
}

.search-box input {
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  outline: none;
  width: 250px;
}

.search-box i {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--azul);
}

.hero {
  margin: 1.2rem 5%;
  border-radius: 28px;
  overflow: hidden;
  height: 55vh;
  max-height: 510px;
  position: relative;
  box-shadow: var(--sombra);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  /*background-position: center 30%;  */
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 47, 97, 0.92),
    rgba(0, 98, 160, 0.45),
    rgba(0, 0, 0, 0.12)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--blanco);
  max-width: 720px;
  padding: 4.2rem 4rem;
}

.hero-content .tag {
  display: inline-block;
  background: var(--dorado);
  color: #1a1a1a;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.95;
}

.layout {
  width: 95%;
  min-height: 95vh;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 20% 60% 20%;
  gap: 1rem;
  align-items: start;
}

.aside {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 63, 125, 0.08);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--sombra);
  position: sticky;
  top: 120px;
}

.aside h3 {
  color: var(--azul);
  font-size: 0.96rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

.vertical-banner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mini-card {
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4edf8;
  transition: 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 63, 125, 0.18);
}

.mini-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.mini-card2 img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.mini-card span {
  display: block;
  padding: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--azul);
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 1.4rem;
}

.section-title h2 {
  color: var(--azul);
  font-size: 2rem;
}

.section-title p {
  color: #667085;
  margin-top: 0.35rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.doc-column {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: var(--sombra);
  overflow: hidden;
  border: 1px solid rgba(0, 63, 125, 0.08);
}

.column-head {
  padding: 1rem;
  color: var(--blanco);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.doc-column:nth-child(1) .column-head {
  background: linear-gradient(135deg, var(--azul), var(--celeste));
}

.doc-column:nth-child(2) .column-head {
  background: linear-gradient(135deg, var(--verde), #17b890);
}

.doc-column:nth-child(3) .column-head {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.doc-column:nth-child(4) .column-head {
  background: linear-gradient(135deg, var(--rojo), #ef5350);
}

.doc-list {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 560px;
  overflow-y: auto;
}

.doc-item {
  padding: 0.85rem;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e3ebf6;
  transition: 0.25s ease;
}

.doc-item:hover {
  background: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 10px 22px rgba(0, 63, 125, 0.11);
}

.doc-item a {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.doc-item i {
  color: #d32f2f;
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.doc-item strong {
  display: block;
  color: var(--azul);
  font-size: 0.9rem;
}

.doc-item small {
  color: #667085;
  display: block;
  margin-top: 0.25rem;
}

.prefooter {
  width: 95%;
  margin: 2.5rem auto 0;
  background: linear-gradient(135deg, var(--azul), #002a55);
  color: var(--blanco);
  border-radius: 28px 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1rem;
  padding: 2rem;
  box-shadow: var(--sombra);
}

.prefooter h3 {
  color: var(--dorado);
  margin-bottom: 0.8rem;
}

.prefooter p,
.prefooter a {
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.map-box {
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  border: 4px solid rgba(255, 255, 255, 0.14);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.links-interest {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.links-interest a {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.65rem;
  transition: 0.25s ease;
}

.links-interest a:hover {
  background: var(--dorado);
  color: #1a1a1a;
  transform: translateX(4px);
}

footer {
  width: 95%;
  margin: 0 auto 2rem;
  background: #001f3f;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  padding: 1rem;
  border-radius: 0 0 28px 28px;
}

.modal-doc {
  position: fixed;
  inset: 0;
  background: rgba(0, 31, 63, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 500;
}

.modal-doc.active {
  display: flex;
}

.modal-doc-card {
  width: min(520px, 94vw);
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  position: relative;
  text-align: center;
  animation: modalIn 0.28s ease;
}

@keyframes modalIn {
  from {
    transform: translateY(22px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: #eef4fb;
  color: var(--azul);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.25s ease;
}

.modal-close:hover {
  background: var(--rojo);
  color: white;
  transform: rotate(90deg);
}

.modal-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rojo), #ef5350);
  color: white;
  font-size: 2.7rem;
  box-shadow: var(--sombra);
}

.modal-doc-card h2 {
  color: var(--azul);
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.modal-doc-card p {
  color: #667085;
  line-height: 1.55;
  margin-bottom: 1.3rem;
}

.modal-doc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.doc-option {
  min-height: 120px;
  padding: 1rem;
  border-radius: 22px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: 0.25s ease;
  text-align: center;
}

.doc-option i {
  font-size: 2.3rem;
}

.doc-option span {
  font-size: 1rem;
}

.doc-option.primary {
  background: linear-gradient(135deg, var(--azul), var(--celeste));
  color: white;
}

.doc-option.secondary {
  background: linear-gradient(135deg, #eef4fb, #ffffff);
  color: var(--azul);
  border: 1px solid #dbe7f5;
}

.doc-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 63, 125, 0.18);
}

.doc-option.hidden {
  display: none;
}

.modal-doc-options.only-one {
  grid-template-columns: 1fr;
}

.modal-help {
  display: block;
  margin-top: 1rem;
  color: #667085;
  font-size: 0.82rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  font-size: 1.8rem;
  box-shadow: var(--sombra);
  z-index: 200;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1200px) {
  .layout {
    width: 95%;
    grid-template-columns: 22% 56% 22%;
    gap: 0.8rem;
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand h1 {
    font-size: 1.18rem;
  }

  .mini-card img {
    height: 80px;
  }
}

@media (max-width: 992px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .aside {
    position: static;
  }

  .vertical-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pre-header,
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-box input,
  .header-actions,
  .search-box {
    width: 100%;
  }

  .hero {
    margin: 1rem auto;
    width: 95%;
    min-height: 360px;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .doc-grid,
  .prefooter,
  .vertical-banner {
    grid-template-columns: 1fr;
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .modal-doc-options {
    grid-template-columns: 1fr;
  }
}
