/* ===== Seccion Programas ===== */
/* Mostrar solo escritorio por defecto */
.desktop-carousel { display: block !important;  }
.mobile-carousel { display: none !important;  }
.owl-carousel .slide-group {
  display: flex;
  flex-wrap: wrap;
}

.carousel-grid-section .grid-item {
  width: 33.3333%;
  padding: 10px;
  box-sizing: border-box;
}

.carousel-grid-section .grid-content {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.carousel-grid-section .grid-title {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
}

.carousel-grid-section .grid-title h4,
.carousel-grid-section .grid-title span {
  color: #fff;
  margin: 0;
}
/* Oculta flechas de navegación */
.owl-carousel .owl-nav {
  display: none !important;
}

/* Asegura que los dots estén visibles y centrados abajo */
.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* Espaciado entre puntos */
.owl-carousel .owl-dot {
  width: 12px;
  height: 12px;
  background-color: #f8caca !important; /* rojo suave */
  display: inline-block;
  margin: 5px;
  border-radius: 50%;
  border: 1px solid #e60000;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.owl-carousel .owl-dot.active {
  background-color: #e60000 !important; /* rojo intenso */
}
.grid-title i.fa-user {
  color: #e60000; /* rojo */
  margin-right: 5px;
}

/* En móvil: mostrar solo los dos primeros de cada grupo */
@media (max-width: 767px) {
    .desktop-carousel { display: none !important; }
  .mobile-carousel { display: block !important; }

  .mobile-carousel .grid-content.mobile-height {
    height: 300px;
  }
}
/* ===== Seccion Programas ===== */


/* ===== Seccion formulario ===== */
.gym-form-section {
    padding: 80px 20px;
    background: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Contenedor ===== */
.gym-form-container {
    max-width: 750px;
    width: 100%;
    text-align: center;
}

/* ===== Título y descripción ===== */
.gym-form-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.gym-form-header p {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

/* ===== Caja del formulario ===== */
.gym-form-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    border-top: 6px solid #ff0000ff; /* rojo intenso tipo gym */
    text-align: left;
}

/* ===== Grid interno ===== */
.gym-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gym-form-field {
    display: flex;
    flex-direction: column;
}

.gym-form-field.half {
    flex: 1 1 calc(50% - 20px);
}

.gym-form-field.full {
    flex: 1 1 100%;
}

/* ===== Labels ===== */
.gym-form-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

/* ===== Inputs ===== */
.gym-form-field input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.gym-form-field input:focus {
    border-color: #ff0000ff;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 69, 0, 0.3);
    outline: none;
}

/* ===== Select (fix iOS & Android) ===== */
.gym-form-field select {
    -webkit-appearance: none; /* Quita estilo nativo en iOS */
    -moz-appearance: none;    /* Quita estilo nativo en Firefox */
    appearance: none;         /* Estándar */
    background: #fafafa url("data:image/svg+xml;utf8,<svg fill='%23222' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 14px center;
    background-size: 14px;
    padding: 12px 14px;
    padding-right: 40px; /* espacio para la flecha */
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gym-form-field select:hover {
    border-color: #ff0000ff;
}

.gym-form-field select:focus {
    border-color: #ff0000ff;
    background-color: #fff;
    box-shadow: 0 0 6px rgba(255, 69, 0, 0.3);
    outline: none;
}

/* ===== Botón ===== */
.gym-form-btn {
    margin-top: 25px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff0000ff, #ff0000ff);
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.gym-form-btn:hover {
    background: linear-gradient(135deg, #bf0000ff, #bf0000ff);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 69, 0, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .gym-form-box {
        padding: 25px 20px;
    }

    .gym-form-header h2 {
        font-size: 28px;
    }

    .gym-form-field.half {
        flex: 1 1 100%;
    }
}
/* ===== Seccion formulario ===== */


/* Contenedor general del contenido */
.bd-text {
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  color: #222;
  line-height: 1.7;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Títulos dentro del contenido */
.bd-text h2,
.bd-text h3,
.bd-text h4 {
  color: #d32f2f; /* rojo fuerte estilo gym */
  font-weight: bold;
  margin: 30px 0 15px;
  line-height: 1.3;
  text-transform: uppercase;
  position: relative;
}

.bd-text h2 {
  font-size: 28px;
  border-left: 6px solid #d32f2f;
  padding-left: 12px;
}

.bd-text h3 {
  font-size: 22px;
  border-left: 4px solid #d32f2f;
  padding-left: 10px;
}

.bd-text h4 {
  font-size: 18px;
}

/* Párrafos */
.bd-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #444;
}

/* Listas */
.bd-text ul, 
.bd-text ol {
  margin: 20px 0 20px 25px;
  padding: 0;
}

.bd-text ul li {
  list-style: disc;
  margin-bottom: 10px;
}

.bd-text ol li {
  list-style: decimal;
  margin-bottom: 10px;
}

/* Imágenes insertadas en el editor */
.bd-text img {
  max-width: 100%;
  height: auto;
  margin: 25px auto;
  display: block;
  border-radius: 10px;
}

/* Bloques de cita */
.bd-text blockquote {
  border-left: 5px solid #d32f2f;
  padding-left: 15px;
  margin: 25px 0;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

/* Seccion programas */
.program-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

.program-description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.program-benefits h4 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.program-benefits ul {
    padding-left: 20px;
}

.program-benefits li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.program-benefits li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.program-quote {
    padding: 30px;
    background: #ffeaeaff;
    border-left: 5px solid #ff0000ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.program-quote p {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.quote-author h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.quote-author span {
    font-size: 14px;
}

@media (max-width: 768px) {
  .program-content {
    padding: 20px;
  }

  .program-header h2 {
    font-size: 26px;
  }

  .intro-text,
  .program-description p,
  .program-benefits li {
    font-size: 15px;
  }

  .program-quote {
    flex-direction: column;
    text-align: center;
  }

  .program-quote img {
    margin-bottom: 15px;
  }
}


/* Seccion ver otros porgramas */
.program-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.program-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.program-card:hover img {
  transform: scale(1.08);
}

.program-card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.56);
  text-align: left;
}

.program-card-text h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.program-card-text h4 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}