/* 
 * service.css
 * Estilos específicos para la página de servicios de Imperium Cross
 */

 body {
  background-image: url('../images/cara\ supay\ der.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Carrusel */
.carrusel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 180px 0;
  margin-top: 20px;
  background-color: transparent;
}

.carrusel-img {
  width: 100%;
  max-width: 1000px;
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.carrusel-img:hover {
  transform: scale(1.05);
}

/* Sección Gym */

.gym-1 h2, .timeline h3 {
  font-family: 'Montserrat Bold', sans-serif;
}

.gym-1 p, .btn-2, .event-info {
  font-family: 'Montserrat Black', sans-serif;
}

.gym.container {
  margin-bottom: 50px;
}

.gym {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
  padding: 15px 0;
}

.gym:first-of-type {
  margin-top: 50px;
}

.gym-1 {
  width: 50%;
  padding: 20px;
}

.gym-1 h2 {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.gym-1 p {
  font-size: 18px;
  color: #c0c0c0;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
}

.gym-1 span {
  color: var(--color-primary);
}

.btn-2 {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 20px;
  background-color: var(--color-primary);
  font-size: 18px;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-2:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
}

.gym-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.img-1,
.img-2 {
  width: 90%;
  max-width: 550px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.img-1:hover,
.img-2:hover {
  transform: scale(1.02);
}

/* Línea del tiempo */
.timeline-container {
  position: relative;
  margin: 50px auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline {
  position: relative;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  border-left: 6px solid;
  border-image: linear-gradient(to bottom, #5a5a5a, var(--color-primary));
  border-image-slice: 1;
}

.event {
  position: relative;
  margin: 40px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: #ffffff;
  font-weight: bold;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event:hover {
  transform: translateX(10px);
}

.event-circle {
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, #5a5a5a, #8b2d28);
  border-radius: 50%;
  position: absolute;
  left: -15px;
  top: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(225, 22, 13, 0.8);
}

.event-circle:hover {
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(225, 22, 13, 1);
}

/* Animación y expansión del contenido */
.event-info {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease-in-out;
}

.event-info.visible {
  display: block;
  opacity: 1;
  max-height: 300px;
  padding: 15px;
  background: rgba(90, 90, 90, 0.9);
  border-radius: 8px;
  margin-top: 12px;
  color: #ffffff;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 0.5s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos responsivos */
@media (max-width: 991px) {
  .gym {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
  }
  
  .gym-1 {
    width: 100%;
    padding: 0;
    order: 1;
  }
  
  .gym-1 h2 {
    font-size: 36px;
    line-height: 1.4;
    color: #FFFFFF;
  }
  
  .gym-1 p {
    font-size: 20px;
    line-height: 1.8;
    color: #E0E0E0;
  }
  
  .btn-2 {
    margin-bottom: 35px;
    font-size: 22px;
    padding: 12px 24px;
    color: #FFFFFF;
    background-color: #A70A15;
  }
  
  .gym-2 {
    order: 2;
    width: 100%;
  }
  
  .timeline {
    width: 90%;
    max-width: 500px;
    padding: 20px;
  }
  
  .event {
    font-size: 24px;
    line-height: 1.6;
    color: #FFFFFF;
    padding: 25px;
    background-color: #222222;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .event-info {
    font-size: 22px;
    line-height: 1.8;
    color: #E0E0E0;
    padding-top: 10px;
  }
  
  .carrusel-container {
    padding: 120px 0;
  }
}

@media (max-width: 576px) {
  .gym-1 h2 {
    font-size: 32px;
    line-height: 1.4;
    color: #FFFFFF;
  }
  
  .gym-1 p {
    font-size: 18px;
    line-height: 1.8;
    color: #E0E0E0;
  }
  
  .btn-2 {
    font-size: 20px;
    padding: 10px 20px;
    color: #FFFFFF;
    background-color: #A70A15;
  }
  .timeline {
    width: 95%;
    padding: 15px;
  }
  
  .event {
    font-size: 22px;
    line-height: 1.6;
    color: #FFFFFF;
    padding: 20px;
    background-color: #2A2A2A;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }
  
  .event-info {
    font-size: 20px;
    line-height: 1.8;
    color: #DADADA;
    padding-top: 8px;
  }
}
