/* Horarios Section */
.section {
  padding: 2rem 0;
  margin-top: 6rem;
}

/* Schedule Grid - Redesigned for better visibility */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  background: #f8fdfc;
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid #cae9e4;
}

/* Day Columns - Enhanced design */
.day-column {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(105, 193, 181, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid #cae9e4;
  min-height: 400px;
}

.day-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(105, 193, 181, 0.2);
  border-color: #69c1b5;
}

/* Day Header - More prominent */
.day-header {
  background: linear-gradient(135deg, #69c1b5 0%, #5cb5bf 100%);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(105, 193, 181, 0.3);
}

.day-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #cae9e4;
  border-radius: 2px;
}

.day-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

/* Day Classes Container */
.day-classes {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fdfc 100%);
}

/* Class Items - Completely redesigned */
.class-item {
  padding: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  border: 2px solid #cae9e4;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(105, 193, 181, 0.1);
  overflow: hidden;
}

.class-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(135deg, #69c1b5, #5cb5bf);
  border-radius: 0 3px 3px 0;
}

.class-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(105, 193, 181, 0.2);
  border-color: #69c1b5;
  background: linear-gradient(135deg, #ffffff 0%, #f0fafb 100%);
}

.class-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: #69c1b5;
  margin-bottom: 0.5rem;
  background: #f0fafb;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid #cae9e4;
}

.class-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.class-instructor {
  font-size: 0.9rem;
  color: #69c1b5;
  font-weight: 500;
  opacity: 0.8;
}

/* Empty day message */
.day-classes:empty::after {
  content: 'Sin clases programadas';
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
  display: block;
}

/* Special Events Section */
.special-events-section {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border-radius: 15px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  text-align: center;
}

.special-events-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.special-events-header h2 {
  color: #e91e63;
  margin-bottom: 1rem;
  font-weight: 700;
}

.special-events-header p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.event-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(233, 30, 99, 0.2);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
  border-color: #e91e63;
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.event-card h3 {
  color: #e91e63;
  margin-bottom: 1rem;
  font-weight: 600;
}

.event-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.contact-events {
  text-align: center;
  padding: 0 2rem;
}

.contact-events h3 {
  color: #e91e63;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-events p {
  color: #666;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  background: #69C1B5;
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #5cb5bf;
  color: var(--white);
}

/* Contact Events Form */
.contact-events-form {
  max-width: 100%;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  flex: 1;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e91e63;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #c2185b;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  margin: 1.5rem 0;
}

.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.2);
}

.form-checkbox a {
  color: #e91e63;
  text-decoration: underline;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

/* Schedule CTA Final */
.schedule-cta-final {
  text-align: center;
  margin: 4rem 0 2rem 0;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(105, 193, 181, 0.1) 0%, rgba(105, 193, 181, 0.05) 100%);
  border-radius: 15px;
  border: 2px solid #cae9e4;
}

.schedule-cta-final h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem 0;
  text-shadow: none;
}

.schedule-cta-final p {
  color: var(--ink);
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
}

.schedule-cta-final .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  background: #FF8BA0;
  color: var(--white);
  border: 2px solid #FF8BA0;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 139, 160, 0.3);
}

.schedule-cta-final .btn:hover {
  background: #ff6f9c;
  border-color: #ff6f9c;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 139, 160, 0.4);
}



/* Schedule Modal */
.schedule-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.schedule-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.schedule-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #f3e8f0;
  border-radius: 20px;
  padding: 0;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  width: 900px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.schedule-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.schedule-modal-header {
  background: linear-gradient(135deg, #e91e63, #f8bbd9);
  color: white;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.schedule-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.schedule-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.schedule-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.schedule-modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.schedule-modal-body h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e91e63;
}

.schedule-modal-classes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.schedule-class-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}

.schedule-class-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
  border-color: #e91e63;
}

.schedule-class-time {
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.schedule-class-name {
  font-weight: 600;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .day-column {
    min-height: 350px;
  }

  .day-header {
    padding: 1.25rem;
  }

  .day-header h3 {
    font-size: 1.1rem;
  }

  .day-classes {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .class-item {
    padding: 1rem;
  }

  .class-time {
    font-size: 0.85rem;
  }

  .class-name {
    font-size: 1rem;
  }

  .days-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .day-card {
    padding: 1rem 0.5rem;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
  }

  .day-card h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
    line-height: 1.1;
  }

  .day-card i {
    font-size: 1.5rem;
    margin-top: auto;
  }

  .schedule-modal {
    width: 95vw;
    margin: 1rem;
  }

  .schedule-modal-body {
    padding: 1rem;
  }

  .schedule-modal-classes {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .schedule-grid {
    padding: 1rem;
  }

  .day-classes {
    padding: 1rem;
  }

  .class-item {
    padding: 0.875rem;
  }

  .class-time {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .class-name {
    font-size: 0.95rem;
  }

  .class-instructor {
    font-size: 0.8rem;
  }



  .day-card {
    padding: 0.75rem 0.25rem;
    border-radius: 10px;
  }

  .day-card h3 {
    font-size: 0.8rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
  }

  .day-card i {
    font-size: 1.2rem;
  }

  .schedule-modal {
    width: 95vw;
    margin: 1rem;
  }

  .schedule-modal-body {
    padding: 1rem;
  }

  .schedule-modal-classes {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 360px) {
  .days-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .day-card {
    padding: 1rem 0.5rem;
  }

  .day-card h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
  }

  .day-card i {
    font-size: 1.4rem;
  }
}

