:root {
  --azul: #003770;
  --celeste: #00aaff;
  --gris: #f5f5f5;
  --blanco: #ffffff;
  --negro: #1a1a1a;
  --sombra: rgba(0, 0, 0, 0.1);
  --acento: #e30613; /* rojo institucional si se desea resaltar */
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--negro);
}

header {
  background: linear-gradient(135deg, var(--azul), var(--celeste));
  color: var(--blanco);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--sombra);
}

header h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 1rem;
}

.section-title {
  color: var(--azul);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.card {
  border: none;
  box-shadow: 0 4px 10px var(--sombra);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.card-img-top {
  max-height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
}

.btn-primary {
  background-color: var(--azul);
  border: none;
}

.btn-primary:hover {
  background-color: var(--acento);
}

footer {
  background-color: var(--azul);
  color: var(--blanco);
  padding: 0.8rem 0;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Sección de recursos multimedia */
.multimedia {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 6px var(--sombra);
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px; /* ancho máximo del contenedor */
  margin: 0 auto;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 400px;
}

/*seccion logos */

.logos {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 6px var(--sombra);
}

.logos-grid {
  display: grid;
  gap: 1rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  max-width: 1200px; /* ancho máximo del contenedor */
  margin: 0 auto;
  align-items: center;
}

/* 🔹 Controlamos el máximo de 3 columnas en pantallas grandes */
@media (min-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.actividad-detalle {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px var(--sombra);
}

.actividad-detalle h2 {
  color: var(--azul);
  font-weight: 700;
  margin-bottom: 1rem;
}

.actividad-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.actividad-meta span i {
  color: var(--celeste);
  margin-right: 6px;
}

.actividad-descripcion {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.video-principal {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--sombra);
  margin-bottom: 2rem;
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.recursos {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px var(--sombra);
  margin-top: 2rem;
}

.recursos h3 {
  text-align: center;
  color: var(--azul);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--azul);
  color: var(--blanco);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.btn-volver:hover {
  background-color: var(--acento);
}

.etiquetas-actividad {
  margin: 1rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center; /* centra las etiquetas bajo el título */
}

/* Cada etiqueta individual */
.etiqueta {
  background-color: var(--celeste);
  color: var(--blanco);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.3s ease;
  cursor: default;
}

.etiqueta:hover {
  background-color: var(--acento);
  transform: scale(1.05);
}

.imagen-actividad {
  width: 100%; /* Ocupa todo el ancho del contenedor */
  height: 250px; /* Altura fija */
  object-fit: cover; /* Recorta la imagen para llenar el área sin distorsión */
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--sombra);
  margin-bottom: 1.5rem; /* espacio opcional debajo de la imagen */
}

.texto-actividad {
  flex: 2 1 400px;
}

.info-actividad {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .info-actividad {
    flex-direction: column;
    align-items: center;
  }

  .imagen-actividad {
    width: 100%;
    max-width: 100%;
  }
}

nav {
  background-color: var(--blanco);
  box-shadow: 0 2px 4px var(--sombra);
  position: sticky;
  top: 0%;
  z-index: 999;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

ul {
  padding: 1rem;
}
ul.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

ul.nav-menu li {
  position: relative;
  list-style-type: none;
}

ul.nav-menu li a {
  display: block;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: var(--azul);
  font-weight: 500;
  transition: all 0.3s;
}

ul.nav-menu li a:hover,
ul.nav-menu li a.active {
  background-color: var(--azul);
  color: var(--blanco);
}

ul.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--blanco);
  box-shadow: 0 2px 6px var(--sombra);
  z-index: 1000;
}

ul.nav-menu li:hover ul {
  display: block;
}

ul.nav-menu li ul li a {
  white-space: nowrap;
  color: var(--azul);
}

/* ===== SECCIÓN LINKEDIN ===== */
.linkedin-section {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px var(--sombra);
  margin-top: 2rem;
}

.linkedin-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.linkedin-info {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.linkedin-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background-color: var(--gris);
  padding: 0.5rem;
  box-shadow: 0 2px 6px var(--sombra);
}

.linkedin-texto h3 {
  color: var(--azul);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.linkedin-texto p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--azul);
  color: var(--blanco);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-linkedin:hover {
  background-color: var(--acento);
}

.linkedin-feed {
  flex: 2 1 400px;
  min-width: 300px;
  max-width: 600px;
}

.linea {
  display: none;
}

/* 🔹 Adaptación responsive */
@media (max-width: 768px) {
  .linkedin-card {
    flex-direction: column;
    align-items: center;
  }

  .linkedin-info {
    flex-direction: column;
    text-align: center;
  }

  .linkedin-logo {
    margin-bottom: 1rem;
  }

  .linea {
    display: block;
  }
}

.contacto {
  color: white;
  font-weight: 500;
  text-decoration: none;
}

.contacto:hover {
  color: lightgrey;
}

.fotos-equipo {
  width: 100%; /* Ocupa todo el ancho del contenedor */
  height: 150px; /* Altura fija */
  object-fit: cover; /* Recorta la imagen para llenar el área sin distorsión */
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--sombra);
  margin-bottom: 1.5rem; /* espacio opcional debajo de la imagen */
}

.foto-persona {
  width: 180px; /* ancho fijo */
  height: 180px; /* alto fijo */
  object-fit: cover; /* recorta sin deformar */
  border-radius: 50%; /* opcional: forma circular */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.foto-persona:hover {
  transform: scale(1.05);
}

/* ==== SECCIÓN EQUIPO ==== */
.equipo {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px var(--sombra);
  margin-top: 3rem;
  text-align: center;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.miembro {
  background-color: var(--gris);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px var(--sombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 280px;
}

.miembro:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.nombre {
  color: var(--azul);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.rol {
  color: var(--celeste);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.descripcion {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.contador {
  background-color: var(--blanco);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px var(--sombra);
}
.numero {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 10px 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.texto {
  font-size: 18px;
  opacity: 0.9;
}

.error {
  font-size: small;
  color: red;
}


.ui-autocomplete {
    z-index: 9999 !important;
}