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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fffbfb;
}

.boton-perfil {
  color: rgb(255, 255, 255);
  width: 230px;
  font-size: 20px;
  padding: 5px;
  border-radius: 5px;
  border: #000000;
  background-color: black;
  margin-top: 2px;
  transition: 0.2s;
}

.boton-perfil:hover {
  color: rgb(0, 0, 0);
  background-color: rgb(207, 207, 207);
  cursor: pointer;
}

#n9 .card-personas {
  display: none;
}

#n9.expandida .card-personas {
  display: flex; /* o grid */
}

.somos-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: center;
  justify-content: center;
  align-content: center;
}

.card-personas {
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  border: #000000 solid 1px;
  border-radius: 10px;
  min-height: 430px;
  margin: 10px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  align-content: center;
}

.card-personas p {
  text-align: justify;
  padding: 7px;
  font-weight: 500;
  color: black;
  border-radius: 5px;
}

.persona {
  max-width: 200px;
}

/* 
GLOBAL
*/
.rojo {
  color: red;
}

.verde {
  color: blue;
}

.hidden {
  display: none !important;
}

.visible {
  display: block;
}
/*
FIN-GLOBAL
*/
header {
  z-index: 100;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* separa la imagen y la lista */
  align-items: center; /* alinea verticalmente */
  padding: 10px 20px;
  background-color: #ffd951;
  box-shadow: 0px 0px 5px rgb(10, 10, 10);
}

img {
  max-width: 200px;
  border-radius: 10px;
}

.menu {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-img {
  width: 40px;
  background-color: rgb(255, 255, 255);
  border-radius: 100%;
  box-shadow: 0px 0px 5px black;
}

.flecha-arriba {
  display: block;
}

.flecha-derecha {
  display: none;
}

main {
  display: flex;
  flex: 1;
}

.lista {
  background-color: rgb(255, 195, 121);
}

@keyframes girarYEscalar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

.girar {
  animation: girarYEscalar 0.5s 1 forwards;
}

@keyframes volver {
  0% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.volver {
  animation: volver 0.5s 1 forwards;
}

@keyframes aparecerul {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.ulaparecer {
  animation: aparecerul 0.4s 1 forwards;
}

@keyframes desaparecerul {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.uldesaparecer {
  animation: desaparecerul 0.4s 1 forwards;
}

.ul {
  display: none;
}

.contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 10px;
}

.contenedor h1 {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #1f2a44;
}

.contebado {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  text-align: center;
  justify-content: center;
}

.sesionlogueada {
  width: auto;
  background-color: rgb(255, 255, 255);
  padding: 5px;
  margin: 15px 0px 0px 0px;
  border-radius: 5px;
  transition: 0.2s;
}

.sesioncomprobada {
  width: auto;
  background-color: rgb(255, 255, 255);
  padding: 5px;
  margin: 15px 0px 0px 0px;
  border-radius: 5px;
  transition: 0.2s;
}

.sesioncomprobada:hover {
  text-decoration: none;
  text-align: center;
  transform: translateY(-2px);
  font-size: 2rem;
  color: #000000;
}

.comprobante {
  text-decoration: none;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #1f2a44;
}

.comprobado {
  font-size: 2rem;
}

.marge {
  margin: 5px;
}

.item {
  background: #fff6f6;
  color: rgb(0, 0, 0);
  font-family: Georgia;
  font-size: 24px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

.item:first-child {
  grid-column: 1 / 2; /* ocupa de la columna 1 a la 2 */
  grid-row: 1 / 2; /* ocupa 2 filas */
}

.item {
  transition: 0.2s;
}

.item:hover {
  transform: scale(1.05);
  background-color: rgb(191, 191, 191);
}

.item.activo {
  background-color: #000000;
  color: rgb(255, 255, 255);
}

.btn-atras-js {
  color: rgb(0, 0, 0);
  padding: 5px;
  border-radius: 5px;
  font-size: 1.2rem;
  border: #000000;
  transition: 0.2s;
}

.btn-atras-js:hover {
  color: rgb(105, 130, 255);
  cursor: pointer;
  transform: translateY(-4px);
}

section {
  flex: 1;
  background-color: rgb(255, 251, 251);
}

.main {
  display: flex;
  border-radius: 20px;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
  height: 100%;
}

.main-inicio {
  margin: 10px;
  border-radius: 20px;
}

.titulo-inicio {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 15px;
  padding: 2px;
}

.titulo-inicio h1 {
  color: #a52a2a;
  font-size: 2.5rem;
  font-family: sans-serif;
}

.titulo-inicio h3 {
  color: #2e2e2e;
  font-size: 1.5rem;
  padding: 4px;
}

.nosotros2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px;
}

.nosotros-biblioteca {
  font-family: "Open Sans", Arial, sans-serif;
  background-color: #fff7e3;
  border-radius: 14px;
  padding: 24px;
  color: #2e2e2e;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.nosotros-biblioteca h2 {
  padding-bottom: 10px;
  color: #000000;
  text-align: center;
}

.nosotros-biblioteca p {
  font-size: 1.3rem;
}

.nosotros-biblioteca ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  gap: 20px;
  font-weight: bold;
  font-size: 1.3rem;
}

.ocupa-3 p {
  color: rgb(26, 26, 26);
}

.ocupa-3 {
  grid-column: span 3;
}

.nosotros {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px;
}

.nosotros-card {
  font-family: "Open Sans", Arial, sans-serif;
  background-color: #f6f2e8;
  border-radius: 14px;
  padding: 24px;
  color: #2e2e2e;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}

.nosotros-card h1,
.nosotros-card h2 {
  font-family: "Merriweather", serif;
  color: #1f2a44;
  text-align: center;
  margin-bottom: 12px;
}

.nosotros-card p {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* muestra 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
  font-size: 1rem;
}

/* Ocultar lista cuando la card NO está expandida */
.nosotros-card:not(.expandida) ul {
  display: none;
}

/* Mostrar lista cuando la card está expandida */
.nosotros-card.expandida ul {
  display: block;
}

/* hover elegante */
.nosotros-card:hover {
  transform: translateY(-4px);
  cursor: pointer;
  background-color: rgb(255, 235, 214);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* tarjeta expandida */
.nosotros-card.expandida {
  background: #ffffff;
  cursor: context-menu;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  grid-column: 1 / -1; /* ocupa todo el grid */
  max-width: 1000px; /* ancho máximo real */
  width: 100%;
  margin: 0 auto; /* centrada */
  padding: 40px;
}

.nosotros-card.expandida:hover {
  background-color: rgb(255, 235, 214);
}

.nosotros-card.expandida p {
  -webkit-line-clamp: unset;
}

/* lista */
.nosotros-card ul {
  padding-left: 20px;
}

/* ocultar las demás */
.nosotros-card.oculta {
  display: none;
}

.nosotros-cierre {
  grid-column: span 3;
}

.seccion6-contacto {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra el bloque blanco */
  justify-content: center;
  text-align: center;
  min-height: 75vh;
}

.contactos {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contactos-datos {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px #cccccc;
  padding: 20px;
  gap: 10px;
}

.estructura {
  display: flex; /* activa el modo flex */
  align-items: center; /* alinea verticalmente label e input */
  justify-content: space-between; /* separa el label del input */
  gap: 10px; /* espacio entre ellos */
}

.estructura label {
  flex: 0 0 60px; /* ancho fijo para el label */
}

.estructura input {
  flex: 1;
  max-width: 200px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 2px;
  transition: 0.2s;
}

.estructura input:focus {
  flex: 1;
  padding: 8px;
  border: 1px solid #fffefe;
  border-radius: 5px;
}

.button {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.capacitaciones {
  padding: 40px 20px;
  background-color: #fafafa;
}

.capacitaciones h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
  color: #222;
}

/* GRID */
.capacitaciones_charlas {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD */
.charla-card {
  background-color: #fff;
  padding: 24px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* TEXTO */
.charla-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
}

.charla-card .descripcion {
  font-size: 0.95rem;
  color: #3a3a3a;
  line-height: 1.5;
}

/* META */
.charla-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #3a3a3a;
}

/* BOTONES */
.btn-inscribirse {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background-color: #111;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-inscribirse:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.btn-login {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background-color: #e0e0e0;
  color: #888;
  font-size: 0.9rem;
  cursor: not-allowed;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
}

footer {
  background-color: #ffd951;
}

footer ul {
  display: flex;
  flex-direction: row;
  gap: 10px;
  list-style: none;
  justify-content: center;
  margin: 10px;
}

footer ul li a {
  display: flex;
  font-family: Montserrat;
  font-weight: 900;
  font-size: 1.3em;
  text-decoration: none;
  color: black;
}

.estructura__terminos {
  display: flex;
  justify-content: center;
}

.TCP__year {
  align-self: start;
  margin-left: 5px;
  font-family: sans-serif;
  font-size: 14px;
}

#mensaje {
  margin-top: 12px;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.button-login {
  margin-top: 15px;
}

.button-nocuenta- {
  background: none;
  border: none;
  margin-bottom: 10px;
}

.button-nocuenta-:hover {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  color: blue;
  margin-bottom: 10px;
}

.button-login- {
  color: rgb(255, 255, 255);
  padding: 5px;
  border-radius: 5px;
  border: #000000;
  background-color: black;
  transition: 0.2s;
}

.button-login-:hover {
  color: rgb(0, 0, 0);
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  border: #000000 solid 0.2px;
  transform: translateY(-3px);
  background-color: rgb(255, 255, 255);
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgb(210, 210, 210);
  padding: 20px;
  margin: auto;
  gap: 10px;
  border-radius: 10px;
  width: 90%;
  max-width: 360px;
}

.form input {
  border-radius: 5px;
  padding: 5px;
  width: 100%;
}

.form label {
  align-self: flex-start;
}

.form h1 {
  color: rgb(71, 71, 71);
}

.errorms {
  margin-top: 10px;
  font-size: 0.9rem;
}

.okmsg {
  color: green;
}

.errorms:not(.okmsg) {
  color: red;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* tablet */
@media (max-width: 1250px) {
  .nosotros {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .nosotros2 {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .somos-card {
    display: grid;
    grid-template-columns: repeat(1, minmax(240px, 1fr));
    align-items: center;
    justify-content: center;
    align-content: center;
  }

  .capacitaciones_charlas {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .nosotros-cierre {
    grid-column: span 2;
  }

  .nosotros-card.expandida {
    max-width: 900px;
    padding: 28px;
  }

  .titulo-inicio h1 {
    font-size: 1.9rem;
  }

  .titulo-inicio h3 {
    font-size: 1.2rem;
  }

  .nosotros-biblioteca ul {
    display: flex;
    flex-direction: column;
    list-style: circle;
    gap: 0px;
    font-weight: bold;
  }

  .nosotros-biblioteca ul li {
    margin: 10px 0px 5px 50px;
    font-weight: bold;
  }

  .ocupa-3 {
    grid-column: 2;
  }
}

/* mobile */
@media (max-width: 900px) {
  .nosotros-cierre {
    grid-column: span 1;
  }

  .nosotros-biblioteca ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    gap: 20px;
    font-weight: bold;
  }

  .capacitaciones_charlas {
    grid-template-columns: repeat(1, minmax(280px, 1fr));
  }

  .nosotros-biblioteca ul li {
    margin: 10px 0px 0px 0px;
    font-weight: bold;
  }

  .ocupa-3 {
    grid-column: 1;
  }

  .nosotros {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .nosotros2 {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .nosotros-card {
    padding: 18px;
    border-radius: 12px;
  }

  .nosotros-card p,
  .nosotros-card li {
    -webkit-line-clamp: 2; /* un poco más de texto en mobile */
  }

  .nosotros-card.expandida {
    max-width: 100%;
    padding: 18px;
    margin: 0;
  }
}

@media (max-width: 756px) {
  .nosotros-biblioteca ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: circle;
    gap: 20px;
    font-weight: bold;
  }

  .nosotros-biblioteca ul li {
    margin: 10px 0px 0px 25px;
    font-weight: bold;
  }

  main {
    flex-direction: column;
  }

  .flecha-derecha {
    display: block;
  }

  .flecha-arriba {
    display: none;
  }

  .contenedor {
    display: grid; /* activa el modo Grid */
    grid-template-columns: repeat(2, 1fr); /* 3 columnas iguales */
    gap: 10px; /* espacio entre las cajas */
    padding: 20px;
  }

  @keyframes aparecerul {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .ulaparecer {
    animation: aparecerul 0.4s 1 forwards;
  }

  @keyframes desaparecerul {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-100%);
    }
  }

  .uldesaparecer {
    animation: desaparecerul 0.4s 1 forwards;
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 450px) {
  .contenedor {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    padding: 20px;
  }
}
