* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #f77f0b, #f4a42c);
  padding: 35px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
  height: 80px;
  width: 180px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: border 0.3s;
  padding-bottom: 3px;
}

.nav-links li a.active,
.nav-links li a:hover {
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  padding-top: 3px;
}

.call-button a {
  background-color: transparent;
  border: 2px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.call-button a:hover {
  background-color: white;
  color: #f77f0b;
}
  .mobile-call {
    display: none;
  }

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: white;
  display: block;
}

.menu-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

main.contacto {
  padding-top: 160px;
}

.bloque-contacto {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.bloque-contacto-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}

.logo-lado img {
  max-width: 180px;
}

.contacto-centro h3,
.horario-lado h3 {
  text-transform: uppercase;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contacto-centro p,
.horario-lado p {
  margin: 6px 0;
}

.redes {
  margin-top: 10px;
}

.redes a {
  margin: 0 8px;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  border: none;
  display: inline-block;
}

.redes i {
  font-size: 28px;
  transition: transform 0.3s, color 0.3s;
}

.redes a:hover i {
  transform: scale(1.2);
  color: #f77f0b;
}

.formacion-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  justify-content: center;
  text-align: center;
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 40px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.legales {
  font-size: 0.85rem;
  margin-top: 20px;
}

.legales a {
  color: #f77f0b;
  text-decoration: none;
  margin: 0 6px;
  position: relative;
}

.legales a:not(:last-child)::after {
  content: " -";
  margin-left: 6px;
  color: #f77f0b;
}

.modal {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #111;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  color: #fff;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #f77f0b;
}

.modal-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: justify;
}

.close {
  color: #f77f0b;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .call-button {
    display: none;
  }

  .menu-close {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }

  nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 30px;
  }

  .mobile-call {
    display: block;
  }

  .bloque-contacto-grid {
    flex-direction: column;
    gap: 30px;
  }

  .formacion-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .logo-lado,
  .contacto-centro,
  .horario-lado {
    text-align: center;
  }
}