/* Fitness Gym Demo Styles */
:root {
  --fit-primary: #ff6b35;    /* Energy orange */
  --fit-secondary: #f7931e;  /* Motivational amber */
  --fit-accent: #4ecdc4;     /* Fresh teal */
  --fit-dark: #2c3e50;       /* Steel blue */
  --fit-light: #f8fafc;      /* Clean white */
  --fit-success: #27ae60;
  --fit-radius: 16px;
  --fit-gradient: linear-gradient(135deg, #ff6b35, #f7931e);
  --fit-shadow: 0 10px 25px -5px rgba(255,107,53,0.25);
}

body.fitness-demo {
  background: var(--fit-light);
  color: var(--fit-dark);
}

/* Hero Fitness */
.hero-fitness {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(44,62,80,0.8), rgba(255,107,53,0.6));
}
.hero-fitness .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.1);
  z-index: -1;
}
.hero-fitness .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: slideUp 1.5s ease;
}
.hero-fitness h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-fitness .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}
.hero-fitness .stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-fitness .stat-item {
  text-align: center;
}
.hero-fitness .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fit-secondary);
}
.hero-fitness .stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.btn-fit-primary {
  background: var(--fit-gradient);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  box-shadow: var(--fit-shadow);
  transition: all 0.4s ease;
  font-size: 0.9rem;
}
.btn-fit-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(255,107,53,0.4);
  color: #fff;
}
.btn-outline-fit {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.btn-outline-fit:hover {
  background: #fff;
  color: var(--fit-dark);
}

/* Plans Section */
.plans-section {
  padding: 100px 0;
  background: var(--fit-light);
}
.plan-card {
  background: #fff;
  border-radius: var(--fit-radius);
  padding: 2.5rem 2rem 3rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  transform: scale(1.05);
  border: 3px solid var(--fit-primary);
  box-shadow: var(--fit-shadow);
}
.plan-card.featured::before {
  content: "MÁS POPULAR";
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--fit-gradient);
  color: #fff;
  padding: 8px 40px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(45deg);
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.plan-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--fit-dark);
}
.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--fit-primary);
  margin-bottom: 0.5rem;
}
.plan-period {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}
.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f4;
  position: relative;
  padding-left: 2rem;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fit-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Classes Section */
.classes-section {
  padding: 100px 0;
  background: var(--fit-dark);
  color: #fff;
}
.class-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--fit-radius);
  overflow: hidden;
  transition: all 0.4s ease;
}
.class-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
}
.class-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.class-intensity {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--fit-gradient);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.class-body {
  padding: 1.5rem;
}
.class-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.class-schedule {
  color: var(--fit-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Trainers Section */
.trainers-section {
  padding: 100px 0;
  background: #fff;
}
.trainer-card {
  background: #fff;
  border-radius: var(--fit-radius);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}
.trainer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.trainer-image {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.trainer-social {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 10px;
}
.trainer-social a {
  background: rgba(255,255,255,0.9);
  color: var(--fit-dark);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.trainer-social a:hover {
  background: var(--fit-primary);
  color: #fff;
  transform: translateY(-2px);
}
.trainer-info {
  padding: 1.5rem;
  text-align: center;
}
.trainer-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fit-dark);
}
.trainer-specialty {
  color: var(--fit-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Calculator Section */
.calculator-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--fit-light), #e8f4f8);
}
.calculator-card {
  background: #fff;
  border-radius: var(--fit-radius);
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}
.calc-input-group {
  margin-bottom: 1.5rem;
}
.calc-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fit-dark);
}
.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.calc-input:focus {
  outline: none;
  border-color: var(--fit-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.calc-result {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--fit-accent), #45b7b8);
  border-radius: var(--fit-radius);
  color: #fff;
  margin-top: 1.5rem;
  display: none;
}
.calc-result.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}
.bmi-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.bmi-category {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Schedule Section */
.schedule-section {
  padding: 100px 0;
  background: var(--fit-dark);
  color: #fff;
}
.schedule-table {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--fit-radius);
  overflow: hidden;
}
.schedule-table table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  background: var(--fit-gradient);
  color: #fff;
  padding: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schedule-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.schedule-table tr:hover td {
  background: rgba(255,107,53,0.1);
}
.class-name {
  font-weight: 600;
  color: var(--fit-secondary);
}
.class-trainer {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Testimonials */
.testimonials-section {
  padding: 100px 0;
  background: #fff;
}
.testimonial-card {
  background: var(--fit-light);
  border-radius: var(--fit-radius);
  padding: 2rem;
  height: 100%;
  position: relative;
}
.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--fit-dark);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.testimonial-info h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--fit-dark);
}
.testimonial-role {
  color: var(--fit-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Utility Classes */
.section-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-intro h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--fit-dark);
}
.section-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6c757d;
}
.section-intro.light h2 {
  color: #fff;
}
.section-intro.light p {
  color: rgba(255,255,255,0.8);
}
.divider-fit {
  width: 80px;
  height: 4px;
  background: var(--fit-gradient);
  border-radius: 10px;
  margin: 20px auto 0;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progressive Enhancement */
html.js [data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
html.js [data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-fitness {
    min-height: 65vh; /* reducido de 75vh */
  }
  .plan-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  .hero-fitness .stats {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  .hero-fitness {
    padding-top: 70px; /* reducido de 80px */
    min-height: calc(100vh - 70px); /* ajustado */
  }
  .hero-fitness .stats {
    gap: 1.5rem;
  }
  .hero-fitness h1 {
    font-size: clamp(2rem, 8vw, 3rem); /* Título un poco más pequeño en móviles */
  }
  .schedule-table {
    overflow-x: auto;
  }
  .trainer-social {
    justify-content: center;
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-fitness {
  /* Reducir padding para menos espacio en blanco */
  padding-top: 90px; /* reducido de 120px */
  padding-bottom: 2rem; /* reducido de 2.5rem */
  }
  .hero-fitness .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-fitness .stats {
    gap: 1rem;
    justify-content: center;
  }
  .hero-fitness .stat-item {
    flex: 0 1 auto;
    min-width: 70px;
  }
}

/* Contact Section Specific */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--fit-light), #e8f4f8);
}
.contact-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1.5fr;
  align-items: start;
}
.contact-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--fit-radius);
  box-shadow: 0 20px 48px -20px rgba(255,107,53,0.15);
}
.contact-card h3 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--fit-dark);
  font-size: 1.5rem;
}
.contact-card .info-line {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1rem;
}
.contact-card .info-line i {
  color: var(--fit-primary);
  font-size: 1.1rem;
  margin-top: 2px;
  min-width: 20px;
}
.contact-card p {
  margin: 20px 0;
  line-height: 1.6;
  color: var(--fit-dark);
}
.map-embed {
  border: 0;
  width: 100%;
  height: 400px;
  border-radius: var(--fit-radius);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.2);
}
