.encabezado {
    background-size: cover;
    background-position: center;
    position: relative;
    height: auto;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
  }
  
  .encabezado::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 80, 180, 0.6);
    z-index: 1;
  }
  
  .encabezado-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1200px;
    padding: 0 20px;
    flex-wrap: wrap;
  }
  
  .boton button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .boton button:hover {
    background-color: rgba(255, 255, 255, 0.4);
  }
  
  .logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }
  
  .logo img {
    height: 80px;
    max-width: 100%;
    margin-left: 10px;
  }
  
  .titulo {
    text-align: center;
    flex-grow: 1;
    min-width: 250px;
    margin: 10px auto;
  }
  
  .titulo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
  }
  
  .titulo p {
    margin: 5px 0 0;
    font-size: 16px;
  }
  
  /* 📱 Versión móvil */
  @media screen and (max-width: 768px) {
    .encabezado-contenido {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .boton {
      margin-bottom: 10px;
    }
  
    .logo {
      margin-top: 10px;
      justify-content: center;
    }
  
    .titulo {
      margin: 10px 0;
    }
  
    .logo img {
      height: 60px;
    }
  }
  


  /*=============================================================*/

  .footer {
    background-color: #012a4a;
    color: #f0f0f0;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    width: 100%;
  }
  
  .footer-contenedor {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-columna {
    flex: 1;
    min-width: 220px;
    margin: 15px;
  }
  
  .footer-columna h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #ffffff44;
    padding-bottom: 5px;
  }
  
  .footer-columna p, .footer-columna li, .footer-columna a {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
  }
  
  .footer-columna ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-columna a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  .footer-creditos {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffffff22;
    font-size: 13px;
    color: #bbb;
  }
  
  /* Responsive */
  @media screen and (max-width: 768px) {
    .footer-contenedor {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-columna {
      margin: 10px 0;
    }
  }
  
  /*=========================================================*/


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper_foot {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* <- fuerza el alto mínimo igual a la pantalla */
}

.contenido {
  flex: 1; /* <- esto hace que el contenido ocupe todo el espacio disponible */
  display: flex;
  flex-direction: column;
}

.footer_per {
  color: white;
  padding: 0px;
  width: 100%;
  margin-top: auto; /* <- esta línea es clave */
}


/*====================================FICHAS ASPIRANTE ==========================*/
.tarjeta-aspirante {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 20px 0;
  font-family: 'Segoe UI', sans-serif;
}

.tarjeta-aspirante .foto {
  flex: 0 0 180px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e0e0e0;
}

.tarjeta-aspirante .foto img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  padding: 10px;
}

.tarjeta-aspirante .info {
  flex: 1;
  padding: 20px;
}

.tarjeta-aspirante .info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #012a4a;
  font-weight: bold;
}

.tarjeta-aspirante .info p {
  margin: 5px 0;
  font-size: 15px;
  color: #444;
}

.tarjeta-aspirante .info p span {
  font-weight: bold;
  color: #000;
}


.boton-cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.boton-cerrar:hover {
  background-color: #c9302c;
}

.tarjeta-aspirante .info {
  position: relative;
}
