* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: 'Montserrat', sans-serif;
  color: white;
  background-color: #000;
  overflow-x: hidden;
}

/* Redes sociales */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left img {
  height: 60px;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 20px #ff0080);
}

.social-bar {
  display: flex;
  gap: 10px;
}

.social-bar a {
  width: 35px;
  height: 35px;
  background-color: white;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.social-bar a:hover {
  background-color: #55ffe2;
  color: white;
}

.logo a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 50, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 999;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

nav a {
  margin-left: 1rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff0080;
}

.contacto-btn {
  background: #ff0080;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.contacto-btn:hover {
  background: white;
  color: #ff0080 !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.profile-menu-container {
  position: relative;
  margin-left: 1rem;
  display: inline-block;
}

.perfil-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

.perfil-btn i {
  font-size: 18px;
  background-color: white;
  color: black;
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease;
}

.perfil-btn i:hover {
  background-color: #55ffe2;
  color: white;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #ff0080;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.profile-dropdown a {
  display: block;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.profile-dropdown a:hover {
  background-color: #ff0080;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}


/* =============================================== */
/* ============== ESTILOS GENERALES DE SECCIÓN === */
/* =============================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
  text-align: center;
}

.container h2 {
  margin-top: 2rem;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  display: inline-block;
}

.container h2::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 4px;
  background-color: #ff0080;
  bottom: -10px;
  left: 15%;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================== */
/* ============= ESTILOS SECCIÓN HORARIOS ======== */
/* =============================================== */

.filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  text-transform: uppercase;
}

.filter-group select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #555;
  background-color: #333;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  cursor: pointer;
}

.btn-reset {
  padding: 12px 20px;
  background-color: #ff0080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  align-self: flex-end;
}

.btn-reset:hover {
  background-color: #e60073;
}

.schedule-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0a0a0a;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
}

.schedule-table th {
  background-color: rgba(255, 0, 128, 0.1);
  color: #ff0080;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.schedule-table td:first-child {
  font-weight: bold;
  color: #55ffe2;
}

.class-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.class-name {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.class-coach {
  font-size: 0.9rem;
  color: #ccc;
}

.btn-reservar {
  font-family: 'Montserrat', sans-serif;
  padding: 8px 16px;
  font-size: 0.8rem;
  background-color: #55ffe2;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 0.5rem;
}

.btn-reservar:hover {
  background-color: #fff;
  color: #55ffe2;
}

/* =============================================== */
/* ============== ESTILOS SECCIÓN COACHES ======== */
/* =============================================== */

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.coach-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coach-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}


.coach-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.coach-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.coach-image-container .front-image {
  opacity: 1;
  z-index: 2;
}

.coach-image-container .back-image {
  opacity: 0;
  z-index: 1;
}

.coach-image-container:hover .front-image {
  opacity: 0;
}

.coach-image-container:hover .back-image {
  opacity: 1;
}

/* ====== MODAL para ampliar imágenes ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  display: none;
}

.modal-content img.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff0080;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.prev:hover,
.next:hover {
  background: rgba(255, 0, 128, 0.6);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}


.coach-info {
  padding: 1.5rem;
}

.coach-info h3 {
  font-size: 1.8rem;
  color: #55ffe2;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.coach-info .specialty {
  font-style: italic;
  color: #ff0080;
  margin-bottom: 1rem;
  font-weight: 600;
}

.coach-info p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.coach-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.coach-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.coach-social a:hover {
  color: #55ffe2;
  transform: scale(1.2);
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  color: #cccccc;
  padding: 60px 5% 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  gap: 40px;
  align-items: flex-start;
}

.footer-logo {
  flex: 1.5;
  min-width: 250px;
}

.footer-logo h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #00f0c0;
  margin: 0 0 5px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer h3 {
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: block;
}

.footer-links a:hover {
  color: #00f0c0;
  transform: translateX(8px);
}

.footer-contact p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #cccccc;
}

.footer-contact a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #00f0c0;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #282828;
  font-size: 0.8rem;
  color: #777;
}

.footer-bottom p {
  margin: 5px 0;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #00f0c0;
}


/* =============================================== */
/* ============= AJUSTES RESPONSIVOS ============ */
/* =============================================== */

/* === TABLET Y MENÚ HAMBURGUESA === */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  nav .nav-links,
  nav .profile-menu-container {
    display: none;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 20, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  nav.show {
    display: flex;
  }

  nav.show .nav-links,
  nav.show .profile-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav a {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    width: 80%;
    text-align: center;
    border-radius: 5px;
  }
  
  .profile-menu-container {
    margin: 1.5rem 0;
    width: 80%;
  }
  .perfil-btn {
    width: 100%;
  }
  .perfil-btn i {
    font-size: 24px;
    padding: 12px;
  }
  .profile-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    display: none; 
    width: 100%;
    margin-top: 1rem;
    border: none;
    background: #222;
  }
  .profile-dropdown.show {
    display: block;
  }

}

/* === MÓVIL (TAMAÑO MEDIO) === */
@media (max-width: 768px) {
  
  header {
    padding: 0.8rem 1rem;
  }

  .container h2 {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }


  .filters-container {
    flex-direction: column;
    align-items: stretch; 
    padding: 1.5rem;
  }
  .filter-group, .btn-reset {
    width: 100%;
  }
  .filter-group select {
    width: 100%;
  }
  .btn-reset {
    align-self: auto;
    padding: 14px;
    font-size: 1.1rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.9rem;
  }

  .schedule-table th {
    font-size: 0.75rem;
  }

  .class-name {
    font-size: 0.9rem;
  }

  .btn-reservar {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .coach-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .coach-info h3 {
    font-size: 1.5rem;
  }
  
  .coach-info p {
    font-size: 0.9rem;
  }

}

/* === MÓVIL (TAMAÑO PEQUEÑO) === */
@media (max-width: 480px) {

  .header-left .logo,
  .header-left .social-bar {
    display: none;
  }

  .container h2 {
    font-size: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links a {
    text-align: center;
  }
  .footer-links a:hover {
    transform: none; 
  }

}