/* @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@1,300&family=Roboto:wght@100&display=swap'); */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;  
}


body {
background-color:#fff;
font-size: 16px; 
color: #444444;
font-family: 'Open Sans', sans-serif;
}




/* ==========================
   HEADER
========================== */
.header {
  background-color: #fff;
  padding: 20px 0;
}

.header .row {
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  max-height: 80px;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #428f5d;
  margin: 0;
  text-align: right;
}

@media (max-width: 767px) {
  .header h1 {
    text-align: center;
    margin-top: 10px;
  }
}

/* ==========================
   NAVBAR (menú principal)
========================== */
.navbar {
  background-color: #428f5d; /* verde institucional */
  border: none;
  justify-content: center;
}

.navbar-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar-toggler {
  border: none;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #fff;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-item:hover > .nav-link {
  background-color: rgba(66, 143, 93, 0.85);
  color: #fff !important;
}

/* Centrado del menú en desktop */
@media (min-width: 992px) {
  .navbar-nav {
    margin: 0 auto;
  }
}

/* ==========================
   MENÚ MULTINIVEL
========================== */
.dropdown-menu {
  background-color: #428f5d;
  border: none;
  border-radius: 0;
  min-width: 200px;
}

.dropdown-item {
  color: #fff;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(66, 143, 93, 0.85);
  color: #fff;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Solo mostrar submenús con hover en escritorio */
@media (min-width: 992px) {
  .navbar-nav li.dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* En móvil, los submenús se abren con clic */
@media (max-width: 991px) {
  .dropdown-submenu > a::after {
    content: " ▸";
    float: right;
  }

  .dropdown-submenu .dropdown-menu {
    position: relative;
    left: 0;
    display: none;
    margin-top: 5px;
  }

  .dropdown-submenu.open .dropdown-menu {
    display: block;
  }
}

/* ==========================
   BANNER
========================== */
.banner {
  width: 100%;
  height: auto;
  display: block;
}
/* ==========================
   TÍTULO "CANDIDATOS"
========================== */
/* === Sección Título === */
.seccion-title {
  text-align: center;
  margin: 40px 0 30px;
}

.seccion-title h2 {
  color: #428f5d;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* === Tarjetas de Candidatos === */
.card-custom {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* === Sección Título === */
.seccion-title {
  text-align: center;
  margin: 40px 0 30px;
}

.seccion-title h2 {
  color: #428f5d;
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.seccion-title h2 {
   padding-bottom: 20px;
  margin-bottom: 50px;
  position: relative;
}

.seccion-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #428f5d;
}

/* === Tarjetas de Candidatos === */
.card-custom {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Título de lista */
.card-custom .fila-titulo {
  margin-bottom: 25px;
  text-align: center;
}

.card-custom .fila-titulo .title-list {
  font-size: 1.6rem;
  font-weight: 700;
  color: #428f5d;
}

/* Contenido */
.card-custom .fila-contenido {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Columna foto */
.card-custom .fila-contenido .columna-foto {
  text-align: center;
  margin-bottom: 20px;
}

.card-custom .fila-contenido .columna-foto .foto-candidato {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card-custom .fila-contenido .columna-foto .c-nombre {
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
}

/* Columna enlaces */
.card-custom .fila-contenido .columna-enlaces {
  padding-left: 20px;
}

.card-custom .fila-contenido .columna-enlaces .list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card-custom .fila-contenido .columna-enlaces .list li {
  margin-bottom: 10px;
}

/* === ENLACES === */
.card-custom .fila-contenido .columna-enlaces .list .enlace-documento {
  text-decoration: none;
  color: #428f5d;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 4px 6px;
  border-radius: 4px;
}

.card-custom .fila-contenido .columna-enlaces .list .enlace-documento:hover {  
  color: #0d5f2c;
}



/* Responsivo */
@media (max-width: 768px) {
  .card-custom .fila-contenido {
    flex-direction: column;
    align-items: center;
  }

  .card-custom .fila-contenido .columna-enlaces {
    padding-left: 0;
    text-align: center;
  }
}
