/* ======== RESET GLOBAL ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* ======== HEADER ======== */
header {
  background: #0B3D2E;
  padding: 10px 0;
  width: 100%;
}

.header-contenido {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: white;
  font-weight: bold;
}

.logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
}

nav ul li {
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: .3s;
}

nav ul li:hover {
  color: #d4f1e5;
}

/* ======== PORTADA ======== */
.portada {
  width: 100%;
  height: 420px;
  margin-top: 15px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,60,30,0.65)), url('img/portada.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.portada-contenido h1 {
  font-size: 48px;
  font-weight: 700;
}

.portada-contenido p {
  font-size: 20px;
  margin-top: 12px;
}

/* ======== TARJETA CANDIDATA ======== */
.card-candidata {
  width: 260px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 45px;
}

.card-candidata img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.cinta {
  display: inline-block;
  background: #0B3D2E;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-top: 12px;
}

.nombre-candidata {
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
}

.descripcion-candidata {
  padding: 0 12px;
}

.descripcion-candidata .texto {
  max-height: 70px;
  overflow: hidden;
  transition: max-height .4s ease;
  font-size: 14px;
  color: #666;
}

.toggle-descripcion {
  display: none;
}

.toggle-descripcion:checked ~ .texto {
  max-height: 280px;
}

.leer-mas-btn {
  display: inline-block;
  color: #0B3D2E;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin-top: 6px;
}

.leer-mas-btn::after {
  content: "Leer más";
}

.toggle-descripcion:checked ~ .leer-mas-btn::after {
  content: "Leer menos";
}

/* ======== SECCIÓN COORDINADORES ======== */
.coordinadores {
  background: linear-gradient(45deg, #0B3D2E, #166F4B);
  text-align: center;
  padding: 70px 20px 90px;
  color: white;
}

.coordinadores h2 {
  font-size: 34px;
  margin-bottom: 45px;
}

.contenedor-coordinadores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.card-coordinador {
  background: rgba(255,255,255,0.12);
  padding: 25px 20px;
  width: 260px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  margin-bottom: 35px;
  transition: .3s;
}

.card-coordinador:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.card-coordinador img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ==================== RESPONSIVE ==================== */

/* --- Celulares --- */
@media (max-width: 768px) {
  header {
    text-align: center;
  }

  .header-contenido {
    flex-direction: column;
    gap: 10px;
  }

  .logo img {
    width: 70px;
    height: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .portada {
    height: auto;
    padding: 40px 20px;
  }

  .portada-contenido h1 {
    font-size: 28px;
  }

  .portada-contenido p {
    font-size: 16px;
  }

  .contenedor-candidatas,
  .contenedor-coordinadores,
  .contenedor-beneficios {
    flex-direction: column;
    align-items: center;
  }

  .card-candidata,
  .card-coordinador,
  .beneficio {
    width: 90%;
    max-width: 320px;
  }
}