/* 1) RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body, p, h1, h2, h3, ul, li, a, span, img {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}
html, body {
  width: 100%;
  height: 100%;
  background: #fff;
  color: #203a5d;
}

/* 2) NAVBAR */
#ener-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.logo-img {
  max-height: 60px;
}
.nav-login {
  border-right: 3px solid #0dcaf0;
  padding-right: 1rem;
}

/* Logos secundarios */
.logo-box {
  width: 60px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 3) CAROUSEL CUSTOM */
.carousel-custom {
  position: relative;
  margin-top: 85px;
  overflow: hidden;
}
.carousel-custom .carousel-inner {
  position: relative;
}
.carousel-custom .carousel-item {
  display: none;
  transition: opacity .5s ease-in-out;
}
.carousel-custom .carousel-item.active {
  display: block;
}
.carousel-custom img {
  width: 100%;
  height: auto;
  max-height: 87vh;
  object-fit: cover;
}
.carousel-custom .carousel-indicators {
  position: absolute;
  top: 1rem;
  left: 1rem;
  transform: none;
  display: flex;
  gap: 1rem;
  z-index: 10;
}
.carousel-custom .carousel-indicators button {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.carousel-custom .carousel-indicators button.active {
  background: #0dcaf0;
}

/* TÍTULOS UNIFICADOS */
.peg5-info h2,
.peg5-info h3,
.bases-info h2,
.bases-info h3,
.bases-eventos h2,
.bases-eventos h3,
.pdf-section h2,
.pdf-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #0070ba;
  text-align: center;
  margin-bottom: 2rem;
}

/* 4) SECCIÓN PEG-5 INFORMATIVA */
.peg5-info {
  position: relative;
  margin-top: -4rem;
  padding-top: 6rem;
  background-color: #f2f9fc;
  border-radius: 5rem 5rem 4rem 4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 4rem 1rem;
}
.peg5-info p,
.peg5-info li {
  font-size: 1rem;
  color: #203a5d;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}
.peg5-info ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.peg5-info li::marker {
  color: #0dcaf0;
  font-weight: bold;
}

/* 5) SECCIÓN BASES DE LICITACIÓN */
.bases-info {
  position: relative;
  margin-top: -2rem;
  padding-top: 2rem;
  background-color: #ffffff;
  border-radius: 5rem 5rem 4rem 4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 4rem 1rem;
}
.bases-info p,
.bases-info li {
  font-size: 1rem;
  color: #203a5d;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}
.bases-info ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.bases-info li::marker {
  color: #0dcaf0;
  font-weight: bold;
}

/* 6) SECCIÓN EVENTOS DE LICITACIÓN */
.bases-eventos {
  position: relative;
  z-index: 1;
  margin-top: -1rem;
  padding-top: 1rem;
  border-top-left-radius: 5rem;
  border-top-right-radius: 5rem;
  background-color: #f2f9fc;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
.bases-eventos table {
  width: 80%;
  margin: 2rem auto;
  font-size: 0.85rem;
  border-collapse: collapse;
  background: #f9f9f9;
  border-radius: .5rem;
  overflow: hidden;
}
.bases-eventos thead {
  background-color: #e8f4f7;
}
.bases-eventos th,
.bases-eventos td {
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: #203a5d;
  border-bottom: 1px solid #ddd;
}
.bases-eventos th {
  font-weight: bold;
  color: #0070ba;
}

/* 7) PDF */
.pdf-section {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
  padding-top: 3rem;
  border-top-left-radius: 5rem;
  border-top-right-radius: 5rem;
  background-color: #fdfdfd;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
.pdf-section .pdf-link {
  width: 100%;
  max-width: 250px;
  padding: 1rem;
  border-radius: .5rem;
  background: #ffffffe5;
  color: #203a5d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
}
.pdf-section .pdf-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.pdf-section .pdf-link i {
  color: #dc3545;
}

/* 8) FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
  padding-top: 2rem;
  background-color: #f2f9fc;
  color: #203a5d;
  border-top-left-radius: 5rem;
  border-top-right-radius: 5rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
.site-footer .footer-contact i {
  font-size: 1.25rem;
  vertical-align: middle;
}
.site-footer .footer-contact div {
  font-size: .95rem;
}
.site-footer .small {
  opacity: .8;
  margin-top: 1rem;
}

/* 9) LISTAS PERSONALIZADAS CON ICONOS */
.icon-list {
  list-style: none;
  padding-left: 0;
}
.icon-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.icon-list li i {
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: #0dcaf0;
}

/* LISTA ALFABÉTICA: a), b), c)... */
.icon-list.alpha {
  counter-reset: alpha-counter;
}
.icon-list.alpha li {
  list-style: none;
  padding-left: 2.5rem;
}
.icon-list.alpha li::before {
  counter-increment: alpha-counter;
  content: counter(alpha-counter, lower-alpha) ". ";
  position: absolute;
  left: 0;
  top: 0;
  color: #0dcaf0;
  font-weight: bold;
}

.email-inline span {
  font-size: 1rem;
  margin: 0 1rem;
}

.numbered-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.numbered-list li {
  margin-bottom: 1rem;
  color: #0c2d4a;
}
.numbered-list li::marker {
  color: #0dcaf0;
  font-weight: bold;
}

