/* rf-sync.css - Estilos Sincronizados RF Oriente -> 2D Gym */

:root {
  --rf-red: #e52b20;
  --rf-red-dark: #a80c24;
  --rf-red-soft: rgba(229, 43, 32, 0.08);
}

/* 1. Módulo Clase Actual / Próxima Clase */
.next-class-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--rf-red);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 550px;
  margin: 0 auto;
}

.next-class-tag {
  background-color: var(--rf-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.next-class-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.next-class-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.1rem;
}

.next-class-time {
  color: var(--rf-red);
  font-weight: 700;
  font-family: monospace, monospace;
}

.next-class-names-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.next-class-name-badge {
  background: var(--rf-red-soft);
  color: var(--rf-red-dark);
  border: 1px solid rgba(229, 43, 32, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

/* 2. Selector de Vistas de Horario */
.schedule-view-selector {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.schedule-view-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.2s ease;
  cursor: pointer;
}

.schedule-view-btn:hover {
  color: #0f172a;
}

.schedule-view-btn.active {
  background: #ffffff;
  color: var(--rf-red);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 700;
}

/* 3. Submenú de Disciplinas */
.discipline-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto;
}

.discipline-sub-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.discipline-sub-btn:hover {
  border-color: var(--rf-red);
  color: var(--rf-red);
}

.discipline-sub-btn.active {
  background: var(--rf-red-soft);
  border-color: var(--rf-red);
  color: var(--rf-red-dark);
  font-weight: 700;
}

/* 4. Tarjetas de Clase (Matrix & Vistas) */
.matrix-class-item {
  background: var(--rf-red-soft);
  border-left: 3px solid var(--rf-red);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  text-align: left;
}

.matrix-class-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rf-red-dark);
  line-height: 1.2;
}

.matrix-cell {
  min-width: 120px;
  vertical-align: middle;
}

/* Tablas Matriiciales y Paneles */
.schedule-view-pane {
  display: none;
}

.schedule-view-pane.active {
  display: block;
}

/* 5. Tabla de Tarifas Multidimensional */
.matrix-price-table th {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.matrix-price-table td {
  vertical-align: middle;
  font-size: 0.95rem;
}

.text-accent-price {
  color: var(--rf-red);
  font-weight: 800;
}

.matrix-price-table .badge.bg-danger,
.card .badge.bg-danger {
  color: #ffffff !important;
}


/* 6. Franja Institucional de Información de Planes (precios.php) */
.plans-info-section {
  background-color: #7f0101;
  color: #ffffff;
}

.plans-info-band {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.plans-info-main h6 {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.plans-info-main h2 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.plans-info-main p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.plans-info-main p:last-child {
  margin-bottom: 0;
}

/* Columna Derecha: Bloques informativos */
.plans-info-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.plans-info-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.plans-info-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.plans-info-item-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.plans-info-item-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Ajustes Responsive */
@media (max-width: 991.98px) {
  .plans-info-band {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .plans-info-main h2 {
    font-size: 2.5rem;
  }
  
  .plans-info-details {
    padding-left: 0;
    border-left: none;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 575.98px) {
  .plans-info-main h2 {
    font-size: 2rem;
  }
  
  .plans-info-main p {
    font-size: 1rem;
  }
}

