/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
html,
body {
  height: 100%;
}

.floatleft {
  float: left;
}

.floatright {
  float: right;
}

.alignleft {
  float: left;
  margin-right: 15px;
  margin-bottom: 15px;
}

.alignright {
  float: right;
  margin-left: 15px;
  margin-bottom: 15px;
}

.aligncenter {
  display: block;
  margin: 0 auto 15px;
}

a:focus {
  outline: 0px solid;
}

img {
  max-width: 100%;
  height: auto;
}

.fix {
  overflow: hidden;
}

p {
  margin: 0 0 15px;
  color: #444;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  margin: 0 0 15px;
  font-weight: 500;
}

h1 {
  font-size: 48px;
  line-height: 50px;
}

h2 {
  font-size: 38px;
  line-height: 40px;
}

h3 {
  font-size: 30px;
  line-height: 32px;
}

h4 {
  font-size: 24px;
  line-height: 26px;
}

h5 {
  font-size: 20px;
  line-height: 22px;
}

h6 {
  font-size: 16px;
  line-height: 20px;
}

a {
  transition: all 0.3s ease 0s;
  text-decoration: none;
}

a:hover {
  color: #1abc9c;
  text-decoration: none;
}

a:active,
a:hover {
  outline: 0 none;
}

section {
  margin: 0px 0px;
  padding: 60px 0px;
}

body {
  background-color: #f9f9f9;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  text-align: left;
  overflow-x: hidden;
  line-height: 22px;
}


/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link a:hover,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link .active:focus,
.navbar-dark .navbar-nav .nav-link li:hover>a {
  color: #1abc9c;
}

.navbar-brand {
  padding: 0px 10px;
  border-left: 3px solid #1abc9c;
}

/*--------------------------------------------------------------
# Section
--------------------------------------------------------------*/

.section-header {
  text-align: center;
}

.section-header h2 {
  display: inline-block;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 70px;
  position: relative;
  text-transform: capitalize;
}

.section-header h2::after {
  border: 2px solid #1abc9c;
  bottom: -20px;
  content: "";
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  width: 60%;
}

/*--------------------------------------------------------------
# Carousel
--------------------------------------------------------------*/
.carousel {
  margin-top: 50px;
}

.carousel-item {
  position: relative;
  width: 100%;
  height: 90vh;
  /* Fixed height for the carousel */
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* Black tint */
  z-index: 1;
}

.carousel-item img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  /* Cover the area while maintaining aspect ratio */
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2;
  width: 80%;
}


.carousel-caption h1 {
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}


.carousel-caption h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 38px;
  font-weight: 700;
}

.carousel-caption p {
  width: 80%;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 auto 30px auto;
  color: #fff;
}

.carousel-caption .btn {
  border-radius: 50px;
  background: #1abc9c;
}

/*--------------------------------------------------------------
# sobrenosotros
--------------------------------------------------------------*/
#sobrenosotros p {
  text-align: center;
  font-size: 16px;
}

/*--------------------------------------------------------------
# quebuscas
--------------------------------------------------------------*/
/* Estilo del acordeón */
#quebuscas .accordion-item {
  border: 1px solid #1abc9c;
  border-radius: 8px;
  margin-bottom: 10px;
}

#quebuscas .accordion-button {
  background-color: #fff;
  color: #444;
  font-weight: 500;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#quebuscas .accordion-button.collapsed {
  border-radius: 8px;
}

#quebuscas .accordion-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.5);
  /* Sombra con verde esmeralda */
  background-color: #1abc9c;
  /* Cambiar el fondo a verde */
  color: #fff;
  /* Cambiar el color del texto si es necesario */
}

#quebuscas .accordion-button:hover {
  background-color: #1abc9c;
  color: #fff;
}

#quebuscas .accordion-collapse {
  padding: 15px;
  background-color: #f9f9f9;
  color: #444;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Estilo de los títulos en el acordeón */
#quebuscas .accordion-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1abc9c;
}

#quebuscas .accordion-body p {
  margin: 0 0 15px;
  color: #444;
}

#quebuscas .list-group-item {
  border: 1px solid #1abc9c;
  border-radius: 5px;
  margin: 5px;
  background-color: #fff;
  color: #444;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

#quebuscas .list-group-item:hover,
#quebuscas .list-group-item:focus {
  background-color: #1abc9c;
  /* Fondo verde esmeralda */
  color: #fff;
  /* Texto blanco */
  border-color: #1abc9c;
  box-shadow: 0 4px 8px rgba(26, 188, 156, 0.5);
  /* Sombra verde esmeralda suave */
}

/*--------------------------------------------------------------
# disciplinas
--------------------------------------------------------------*/
/* Estilo del acordeón */
#disciplinas .accordion-item {
  border: 1px solid #1abc9c;
  border-radius: 8px;
  margin-bottom: 10px;
}

#disciplinas .accordion-button {
  background-color: #fff;
  color: #444;
  font-weight: 500;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#disciplinas .accordion-button.collapsed {
  border-radius: 8px;
}

#disciplinas .accordion-button:hover {
  background-color: #1abc9c;
  color: #fff;
}

#disciplinas .accordion-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.5);
  /* Sombra con verde esmeralda */
  background-color: #1abc9c;
  /* Cambiar el fondo a verde */
  color: #fff;
  /* Cambiar el color del texto si es necesario */
}

#disciplinas .accordion-collapse {
  padding: 15px;
  background-color: #f9f9f9;
  color: #444;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Estilo de los títulos en el acordeón */
#disciplinas .accordion-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1abc9c;
}

#disciplinas .accordion-body p {
  margin: 0 0 15px;
  color: #444;
}


/*--------------------------------------------------------------
# Instructores
--------------------------------------------------------------*/

.sub-header {
  text-align: center;
}

.sub-header h3 {
  display: inline-block;
  margin-bottom: 50px;
  position: relative;
  text-transform: capitalize;
}

.sub-header h3::after {
  border: 1px solid #1abc9c;
  bottom: -10px;
  content: "";
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  width: 60%;
}

#equipo .row {
  display: flex;
  justify-content: center;
}

/* Contenedor de la imagen y contenido sobre la imagen */
.instructor {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.instructor img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  /* Asegura que la imagen esté redondeada */
}

.instructor:hover img {
  transform: scale(1.1);
}

.instructor-contenido {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Fondo oscuro semitransparente */
  color: white;
  padding: 15px;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.instructor-contenido h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.instructor-contenido p {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: white;
}

.instructor-contenido .social-links {
  margin-top: 10px;
}

.instructor-contenido .social-links a {
  color: #1abc9c;
  /* Verde esmeralda */
  margin: 0 5px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.instructor-contenido .social-links a:hover {
  color: #18d26e;
  /* Verde más brillante al pasar el cursor */
}

/* Estilo para el listado de logros fuera de la imagen */
.director-achievements {
  padding-left: 0;
  color: #444;
  text-align: left;
  width: fit-content;
}

.director-achievements li {
  margin-bottom: 5px;
  font-size: 1rem;
}

.achievements-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #444;
}

.achievements {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centra el contenido verticalmente dentro de la columna */
  align-items: center;
  /* Centra el contenido horizontalmente dentro de la columna */
  text-align: center;
  /* Asegura que el título esté centrado */
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 767.98px) {
  #equipo .row {
    flex-direction: column;
    text-align: center;
  }

  .achievements {
    align-items: center;
  }

  .director-achievements {
    text-align: left;
  }

  .achievements-title {
    margin-top: 20px;
  }
}


/*--------------------------------------------------------------
# Sedes
--------------------------------------------------------------*/

#sedes .row {
  display: flex;
  justify-content: center;
  /* Center columns horizontally */
}

.sede {
  position: relative;
  overflow: hidden;
  height: 300px;
  /* Fixed height for uniformity */
  display: flex;
  align-items: center;
  border-radius: 20px;
}

@media (max-width: 767.98px) {
  .sede {
    margin-bottom: 30px;
    /* More margin on small screens */
  }
}

.sede img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image covers the area */
  transition: transform 0.3s ease;
}

.sede:hover img {
  transform: scale(1.1);
}

.sede-contenido {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 15px;
  text-align: center;
}

.sede-contenido h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.sede-contenido p {
  margin: 5px 0 0;
  font-size: 1rem;
  color: white;
}


/*--------------------------------------------------------------
# Contacto
--------------------------------------------------------------*/

#contacto .row {
  display: flex;
  justify-content: center;
}

.contact-item {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 767.98px) {
  .contact-item {
    margin-bottom: 30px;
    /* More margin on small screens */
  }
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-item i {
  font-size: 3rem;
  color: #1abc9c;
  margin-bottom: 15px;
}

.contact-item h4 {
  margin: 15px 0;
  font-size: 1.5rem;
}

.contact-item p a {
  color: #333;
  text-decoration: none;
}

.contact-item p a:hover {
  text-decoration: underline;
}



/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

footer {
  background-color: black;
  padding: 20px 0px;
  color: white;
}

footer a {
  color: white;
}

footer h2 {
  color: white;
  position: relative;
  display: inline-block;
  padding: 0px 10px;
  border-left: 4px solid #1abc9c;
}

footer h4 {
  color: white;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

footer h4::after {
  content: "";
  display: block;
  width: 90%;
  border-bottom: 4px solid #1abc9c;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

footer ul {
  list-style: none;
}

footer ul li {
  border-bottom: 1px solid #333;
  padding: 10px 0px;
}

footer i {
  margin-right: 10px;
}

footer .social-icons i {
  background-color: #333;
  border-radius: 21%;
  padding: 10px;
  margin-right: 10px;
  min-width: 34px;
  text-align: center;
}

footer .social-icons a:hover {
  color: #1abc9c;
}