/* ====== Reset ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
img, iframe { max-width: 100%; display: block; }

/* ====== Base ====== */
body {
  position: relative;
  margin-top: 105px;
  background: linear-gradient(to bottom, #386641, #6A994E,#A7C957);
  background-color: #edf6f9;
  font-family: 'Poppins', sans-serif;
  color: #111;
}

h2 {
  font-size: clamp(28px, 5vw, 50px);
  color: #ffffff;
  text-align: center;
  letter-spacing: 1px;
  padding: 20px 0;
  width: 100%;
}

/* ====== Fondo estrellas ====== */
.star { background-image: linear-gradient(#051327, #000); inset: 0; position: fixed; z-index:-2; }
.space { --size: 2px; width: var(--size); height: var(--size); background: #fff; box-shadow: var(--space-layer); position: absolute; top:0; left:0; opacity:.75; animation: move var(--duration) linear infinite; }
@keyframes move { from { transform: translateY(0);} to { transform: translateY(-100vh);} }

/* ====== Botón Translate ====== */
#translate-btn {
  width: 40px; height: 40px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #007bff; color: #fff; border-radius: 50%;
  cursor: pointer; transition: background-color .3s, transform .2s;
}
#translate-btn:hover { background: #0056b3; transform: scale(1.1); }

/* ====== NAVBAR ====== */
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; padding:16px 8%;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
  position:fixed; top:0; left:0; width:100%; z-index:1000;
}
.navbar .logo img{ height:50px; }

.navbar .menu{ display:flex; align-items:center; gap:20px; }
.navbar .menu a{
  text-decoration:none; color:#000; font-size:18px; padding:12px 18px;
  transition:all .3s ease; border-radius:5px; font-weight:600; position:relative;
}
.navbar .menu a:hover::after{
  content:""; position:absolute; bottom:10px; left:50%;
  width:60%; height:3px; background:#007bff; transform:translateX(-50%);
}
.navbar .menu a.active{ background:linear-gradient(90deg,#007bff,#051327); color:#fff; }
.navbar .menu a.active:hover::after{ display:none; }

.navbar .menu-toggle{ display:none; font-size:24px; cursor:pointer; color:#000; }

/* Translate (texto debajo del globo) */
.translate-container{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:18px; font-weight:600; color:#000; padding:0 4px; cursor:pointer;
}
.translate-container #translate-btn{ background:none; border:none; font-size:22px; color:#000; }
.translate-container .translate-text{ margin-top:4px; font-size:14px; }

/* ====== TÍTULO ====== */
.titulo{
  font-size: clamp(36px, 8vw, 80px);
  color:#fff; text-align:center; margin: 12% auto 5%;
  font-family: "Open Sans", sans-serif; padding: 20px 10px;
}

/* ====== ABOUT ====== */
#about{ padding: 80px 16px; background:#f8f9fa; text-align:center; }
#about .card{ background:#fff; border:2px solid #007bff; border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,.1); padding:30px; margin:0 auto; max-width:900px; }
#about h1{ color:#007bff; font-size:36px; margin-bottom:16px; }
#about p{ color:#6c757d; font-size:20px; margin:0 auto 24px; max-width:800px; }
#about a.btn{ color:#007bff; border-radius:8px; border:2px solid #007bff; padding:10px 20px; font-size:18px; text-decoration:none; transition:.3s; }
#about a.btn:hover{ background:#007bff; color:#fff; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  margin-top: 105px;
  background: linear-gradient(to bottom, #386641, #6A994E, #A7C957);
  background-color: #edf6f9;
}

/* TITULOS */
h2 {
  font-size: 50px;
  color: #ffffff;
  text-align: center;
  letter-spacing: 1px;
  padding: 20px 0;
  width: 100%;
  margin: 0 auto;
}

/* ==== Fondo de estrellas ==== */
.star {
  background-image: linear-gradient(#051327, #000);
  inset: 0;
  position: fixed;
}

.space {
  --size: 2px;
  --space-layer: 4vw 50vh 0 #fff, 18vw 88vh 0 #fff, 73vw 14vh 0 #fff;
  width: var(--size);
  height: var(--size);
  background: white;
  box-shadow: var(--space-layer);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.75;
  animation: move var(--duration) linear infinite;
}

@keyframes move {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100vh);
  }
}

/*****************************************************************/
/* Botón Translate */
#translate-btn {
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#translate-btn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

/*****************************************************************/
/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 20px 10%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 14%;
  font-family: "Poppins", sans-serif;
}

.navbar .logo img {
  height: 50px;
}

.navbar .menu {
  display: flex;
  gap: 20px;
}

.navbar .menu a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  padding: 12px 18px;
  transition: all 0.3s ease;
  border-radius: 5px;
  font-weight: bold;
  position: relative;
}

.navbar .menu a:hover::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 60%;
  height: 3px;
  background: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .menu a.active {
  background: linear-gradient(90deg, #007bff, #051327);
  color: #ffffff;
}

.navbar .menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #000;
}

/* Translate container */
.translate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  padding: 12px 18px;
  cursor: pointer;
}

.translate-container #translate-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #000;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.translate-container .translate-text {
  margin-top: 5px;
  font-size: 14px;
  color: #000;
}

.translate-container #translate-btn:hover {
  color: #007bff;
}

/*****************************************************************/
/* TITULO ISMuL */
.titulo {
  font-size: 80px;
  color: white;
  text-align: center;
  margin-top: 10%;
  margin-bottom: 5%;
  font-family: "Open Sans", sans-serif;
  padding: 50px;
}

/*****************************************************************/
/* ABOUT */
#about {
  padding: 100px 0;
  background-color: #f8f9fa;
  text-align: center;
}

#about .card {
  background-color: #fff;
  border: 2px solid #007bff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 0 auto;
  max-width: 800px;
}

#about h1 {
  color: #007bff;
  font-size: 36px;
  margin-bottom: 20px;
}

#about p {
  color: #6c757d;
  font-size: 20px;
  margin: 0 auto 30px;
  max-width: 800px;
}

#about a.btn {
  color: #007bff;
  border-radius: 8px;
  border: 2px solid #007bff;
  padding: 10px 20px;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#about a.btn:hover {
  background-color: #007bff;
  color: #fff;
}

/*****************************************************************/
/* STAFF CARDS */
.members {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.slide-container {
  max-width: 1400px;
  width: 100%;
  padding: 20px;
}

.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card-profesores {
  position: relative;
  border-radius: 25px;
  background-color: #fff;
  width: 280px;
  height: 420px;
  margin: 10px;
}

.image-content,
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  position: relative;
}

.image-content {
  position: relative;
  row-gap: 5px;
  padding: 25px 0;
}

.overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #4070f4;
  border-radius: 25px 25px 0 25px;
}

/* 🔥 Arreglo: eliminar picos blancos */
.overlay::before,
.overlay::after {
  display: none;
}

.card-image {
  position: relative;
  height: 190px;
  width: 190px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image::before {
  content: "";
  position: absolute;
  height: 184px;
  width: 184px;
  border-radius: 50%;
  background: #4070f4;
}

.card-image img {
  position: relative;
  height: 175px;
  width: 175px;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.name {
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.descripcion {
  font-size: 16px;
  color: #707070;
  text-align: center;
}





/* ====== TIMELINE ====== */
.timeline{ max-width: 999px; margin:0 auto; padding:20px; text-align:center; position:relative; }
.timeline h2{ font-size: clamp(24px, 4vw, 32px); color:#007bff; margin-bottom:20px; }
.timeline-container{ display:flex; flex-wrap:wrap; gap:20px; justify-content:space-between; }
.timeline-item{
  background:#fff; border:2px solid #007bff; border-radius:10px; padding:20px;
  box-shadow:0 4px 8px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
  flex:1 1 calc(33.333% - 20px); min-width:280px;
}
.timeline-item:hover{ transform: translateY(-8px); box-shadow:0 8px 16px rgba(0,0,0,.2); }
.timeline-item h3{ font-size:1.25rem; }
.timeline-item p{ font-size:1rem; color:#333; }

/* ====== CONTACTO: Formulario + mapa ====== */
.container-formulario{
  display:grid; grid-template-columns: 1fr 1fr; gap:24px;
  align-items:start; padding: 24px 16px; min-height: 60vh;
}
.form-container, .map-container{
  width:100%; border:1px solid #ddd; padding:20px; border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,.08); background:#fff;
}
.appointment-form{ display:flex; flex-direction:column; gap:15px; }
.form-group{ display:flex; flex-direction:column; }
label{ margin-bottom:5px; font-weight:700; }
input, textarea{
  width:100%; padding:10px; border:1px solid #ccc; border-radius:6px; font-size:14px; outline:none; transition:border-color .2s;
}
input:focus, textarea:focus{ border-color:#4070F4; }
textarea{ resize: vertical; min-height: 120px; }
.submit-button{
  padding:12px; border:none; border-radius:6px; background:#007BFF; color:#fff;
  font-size:16px; font-weight:700; cursor:pointer; transition: background .3s ease;
}
.submit-button:hover{ background:#0056b3; }

.map-box{ width:100%; aspect-ratio: 16 / 9; border-radius:8px; overflow:hidden; background:#f0f0f0; }
.map-box iframe{ width:100%; height:100%; }

/* ====== FOOTER ====== */
.footer{
  width:100%; background:#007bff; color:#fff; padding:16px 10px; border-top-left-radius: 90px;
}
.footer .container{
  display:flex; flex-wrap:wrap; gap:18px; justify-content:space-between; align-items:flex-start;
  max-width:1200px; margin:0 auto;
}
.footer-section{ flex:1 1 220px; max-width: 320px; }
.footer-section h3{ margin-bottom:6px; font-size:14px; color:#000; }
.footer-section p, .footer-section ul, .footer-section a{ color:#fff; text-decoration:none; font-size:12px; }
.footer-section ul{ list-style:none; }
.footer-section ul li{ margin-bottom:5px; }
.footer-section ul li a:hover{ color:#ff5757; }
.footer-section.social{ text-align:center; }
.footer-section.social a{
  display:inline-block; margin:5px; color:#fff; font-size:16px; width:35px; height:35px; line-height:35px; border-radius:50%;
  background:#0056b3; transition: background-color .3s, transform .3s; text-align:center;
}
.footer-section.social a:hover{ background:#ff5757; transform: scale(1.05); }
.footer-bottom{ text-align:center; margin-top:10px; font-size:11px; color:#ddd; }
.footer-bottom::before{ content:""; display:block; width:80%; height:2px; background:#fff; margin:5px auto 12px; }

/* ====== Breakpoints ====== */
@media (max-width: 992px){
  .navbar{ padding:14px 6%; }
  .navbar .menu{
    display:none; flex-direction:column; width:220px; position:absolute; top:70px; right:6%;
    background:#fff; box-shadow:0 4px 12px rgba(0,0,0,.1); padding:12px; border-radius:10px;
  }
  .navbar .menu.show{ display:flex; }
  .navbar .menu-toggle{ display:block; }

  .container-formulario{ grid-template-columns: 1fr; } /* formulario arriba, mapa abajo */
}

@media (max-width: 600px){
  .titulo{ margin: 18% auto 6%; }
  .card-image{ width:160px; height:160px; }
  .card-image::before{ width:154px; height:154px; }
  .card-image img{ width:145px; height:145px; }
  .footer .container{ flex-direction:column; align-items:center; text-align:center; }
}


/* --- Quitar bloques de fondo en secciones --- */
#about {
  background-color: transparent !important;
}

.members {
  background-color: transparent !important;
}

.slide-container {
  background-color: transparent !important;
  padding: 32px 16px; /* conserva el aire sin “bloque” */
}

/* Opcional: mantener las tarjetas legibles sobre el fondo oscuro */
#about .card,
.card-profesores,
.form-container,
.map-container {
  background: #ffffff;              /* o prueba con un 0.92 si quieres un toque translúcido */
  /* background: rgba(255,255,255,.92); backdrop-filter: blur(2px); */
}

.overlay::before,
.overlay::after {
  display: none;
}


/* Cajita del selector de Google Translate */
#google_translate_element.gt-drop {
  position: absolute;
  top: 68px;          /* ajusta según la altura de tu navbar */
  right: 22px;        /* pegado al globo */
  z-index: 2000;
  display: none;      /* oculto por defecto */
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* Unos ajustes visuales del widget */
#google_translate_element .goog-te-gadget {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}
#google_translate_element select.goog-te-combo {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
}

/* Opcional: ocultar texto extra del gadget */
.goog-te-gadget span { display: none; }
/* Mantén el logo/atribución si lo prefieres visible: */
/* .goog-logo-link { display:none !important; } */
