/* ===== Estilos generales ===== */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #222;
  background: #f7f9fc;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-bottom: 2px solid #eaeaea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

/* --- Sección superior: logo + nombre --- */
.navbar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo-img {
  width: 300px !important;
  height: auto !important;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.08);
}

.logo-text {
  text-align: center;
}

.logo-text h1 {
  font-size: 1.6rem;
  margin: 0;
  color: #0047AB;
}

.logo-text h3 {
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.2rem;
  font-weight: normal;
}





/* --- Sección inferior: menú debajo del nombre --- */
.navbar-bottom {
  margin-top: 0.6rem;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #0047AB;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.menu li a.active,
.menu li a:hover {
  background: #0047AB;
  color: white;
}

/* ===== Botón primario ===== */
.button-primary {
  background: #0047AB;
  color: white !important;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.button-primary:hover {
  background: #0066cc;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom right, #0047AB, #87CEEB);
  color: white;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  background: white;
  color: #0047AB;
  text-decoration: none !important;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.hero .btn-primary:hover {
  background: #0047AB;
  color: white;
}

/* ===== Secciones ===== */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0047AB;
}

/* ===== Grid de tarjetas ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #f7f9fc;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  color: #0047AB;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  background: #0047AB;
  color: white;
  padding: 3rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
}

/* ===== Members (TEL) ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.member-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #0047AB;
}

.member-links {
  margin-top: 0.8rem;
}

.member-links a {
  color: #0047AB;
  text-decoration: none;
  margin: 0 0.4rem;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.member-links a:hover {
  color: #0066cc;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .logo-img {
    width: 55px;
  }

  .logo-text h1 {
    font-size: 1.3rem;
  }

  .menu {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }
}


/* ===== Collaborations and Partnerships ===== */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.partners-logos img {
  height: 80px;   /* Altura base uniforme */
  width: auto;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.partners-logos img:hover {
  transform: scale(1.08);
}

/* Ajuste fino para cada logo */
.partners-logos img[alt="UNSAAC"] {
  height: 85px; /* ligeramente más grande */
}

.partners-logos img[alt="UPV"] {
  height: 65px; /* reduce UPV para igualar visualmente */
}



/* ===== Contact Section (Formulario de "Write to us") ===== */

.contact-section {
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  max-width: 1100px;
  margin: 3rem auto;
}

.contact-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---- Formulario ---- */
.contact-form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.contact-form h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  color: #0047AB;
}

.contact-form p {
  margin-bottom: 1.5rem;
  color: #555;
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.4rem;
  background: #f9f9f9;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0047AB;
  background: #fff;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 71, 171, 0.3);
}

.btn-primary {
  width: 100%;
  background: #0047AB;
  color: white;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #0066cc;
  transform: translateY(-2px);
}

/* ---- Información de contacto ---- */
.contact-info h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.contact-info ul li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: #0047AB;
  font-weight: bold;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .contact-section .grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem;
  }
}



.social-links img.social-icon {
  width: 30px;   /* más pequeño */
  height: 30px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-links img.social-icon:hover {
  transform: scale(1.12);
}

