:root {
  --main: #003366;
  --accent: #00bfae;
  --bg: #f8f9fa;
  --card: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: #222;
}

.header {
  background: var(--main);
  color: #fff;
  padding: 1em 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
}

nav a {
  color: #fff;
  margin: 0 1em;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  background: var(--main);
  color: #fff;
  text-align: center;
  padding: 3em 1em 2em 1em;
}

.hero .btn {
  background: var(--accent);
  color: #fff;
  padding: 0.8em 2em;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1em;
  display: inline-block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1em;
}

.oferta {
  padding: 2em 0;
  text-align: center;
}
/* Estilos para las tarjetas de carreras */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin-top: 2em;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 1.5em;
  min-width: 250px;
  max-width: 320px;
  flex: 1 1 250px;
  text-align: left;
}

.card-overlay {
  background: rgba(0,0,0,0.5); /* Fondo oscuro semitransparente */
  padding: 1em;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}
.modal-carrera {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
}
.modal-carrera img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.cerrar-modal {
  position: absolute;
  top: 2em;
  right: 2em;
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

/* Estilos para la sección de sedes */
.sedes {
  padding: 2em 0;
  text-align: center;
}

#info-sede {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em auto 0 auto;
  background: transparent;
  padding: 0;
  border-radius: 16px;
  min-height: 40px;
  max-width: 900px;
  width: 95%;
}

#info-sede .info-sede-bg {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 1.5em 2em;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  #info-sede, #info-sede .info-sede-bg {
    padding: 1em;
    font-size: 0.98em;
    max-width: 98vw;
  }
}

#map {
  width: 50%;
  height: 350px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

#info-sede {
  margin-top: 1em;
  background: #e9f7fa;
  padding: 1em;
  border-radius: 8px;
  min-height: 40px;
}
/* Estilos para el footer */
.footer {
  background: #222;
  color: #fff;
  padding: 2em 0 1em 0;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
}

.copyright {
  text-align: center;
  margin-top: 1em;
  font-size: 0.9em;
  color: #bbb;
}

@media (max-width: 800px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Estilos para la sección de contacto y sedes uno al lado del otro */
.sedes-contacto-flex {
  display: flex;
  gap: 2em;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2em;
}

.sedes-bloque, .contacto-bloque {
  flex: 1 1 350px;
  max-width: 500px;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2em 1.5em;
  box-sizing: border-box;
}

.sedes-bloque {
  margin-right: 0;
}

.contacto-bloque {
  margin-left: 0;
}

.sedes-bloque h2,
.contacto-bloque h2 {
  text-align: center;
  margin-bottom: 1em;
  width: 100%;
}

.sedes-contacto .divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--main) 0%, var(--accent) 100%);
  border-radius: 2px;
  margin: 3em 0 2em 0;
  opacity: 0.15;
}

/* Estilos para el formulario de contacto dentro del bloque */
.contacto h2 {
  text-align: center;
  margin-bottom: 1em;
}

#contact-form {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  padding: 2em 0 0 0;
  border-radius: 12px;
  box-shadow: none;
}

.form-group {
  margin-bottom: 1.2em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

#contact-form .btn {
  width: 100%;
  margin-top: 1em;
}

.exito {
  color: #008c4a;
  margin-top: 1em;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 1100px) {
  .sedes-contacto-flex {
    flex-direction: column;
    gap: 2em;
    align-items: stretch;
  }
  .sedes-bloque, .contacto-bloque {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Estilos para la sección de colaboradores */
.colaboradores {
  padding: 2em 0;
  background: #fff;
  text-align: center;
}

.colaboradores h2 {
  margin-bottom: 1.5em;
}

.carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s;
  gap: 2em;
}

.carousel-track img {
  height: 60px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s;
  flex: 0 0 160px;
}

.carousel-track img:hover {
  filter: grayscale(0) drop-shadow(0 2px 8px rgba(0,0,0,0.10));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.carousel-btn.left {
  left: 0.5em;
}

.carousel-btn.right {
  right: 0.5em;
}

.carousel-btn:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .carousel-track img {
    height: 40px;
    max-width: 100px;
    flex: 0 0 100px;
  }
  .carousel {
    max-width: 320px;
  }
}

/* ====== Estilos exclusivos para about.html (Quiénes Somos) ====== */
.qs-hero {
  background: var(--main);
  color: #fff;
  text-align: center;
  padding: 3em 1em 2em 1em;
}
.qs-section {
  max-width: 900px;
  margin: 2em auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2em 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
}
.qs-block {
  flex: 1 1 320px;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 2em 1.5em;
  margin: 0.5em 0;
}
.qs-block h2 {
  color: var(--main);
  margin-top: 0;
}
.qs-valores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  margin: 2em 0 1em 0;
}
.qs-valor {
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  padding: 1em 2em;
  min-width: 140px;
  text-align: center;
  font-weight: 500;
  color: var(--main);
  font-size: 1.1em;
}
.qs-filosofia {
  font-style: italic;
  color: #444;
  margin: 1.5em 0;
  text-align: center;
}
.qs-eslogan {
  text-align: center;
  font-size: 1.5em;
  color: var(--accent);
  font-weight: bold;
  margin-top: 2em;
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .qs-section {
    flex-direction: column;
    gap: 1em;
    padding: 1.2em 0.5em;
  }
  .qs-block {
    margin: 0.5em auto;
  }
}
@media (max-width: 700px) {
  .qs-valores {
    flex-direction: column;
    gap: 0.7em;
  }
}