/**
 * Estilos del frontend para el bloque Course Hero Section
 */

.wp-block-gutenberg-test-course-hero-section {
  margin-bottom: 3rem;
}

.course-hero-container {
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.course-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.course-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.course-hero-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.course-hero-text {
  flex: 0 0 60%;
  max-width: 60%;
}

.course-hero-form {
  flex: 0 0 40%;
  max-width: 40%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.course-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.course-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.course-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-form-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* Estilos para el formulario WPForms */
.course-hero-form .wpforms-container {
  margin-top: 1.5rem;
}

.course-hero-form .wpforms-field {
  margin-bottom: 1rem;
}

.course-hero-form .wpforms-field-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.course-hero-form .wpforms-field-description {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

.course-hero-form .wpforms-field-large {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.course-hero-form .wpforms-submit-container {
  margin-top: 1.5rem;
}

.course-hero-form .wpforms-submit {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--wp--preset--color--primary);
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

.course-hero-form .wpforms-submit:hover {
  background-color: var(--wp--preset--color--secondary);
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .course-hero-grid {
    flex-direction: column;
  }
  
  .course-hero-text,
  .course-hero-form {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .course-hero-title {
    font-size: 2rem;
  }
  
  .course-hero-subtitle {
    font-size: 1.125rem;
  }
  
  .course-hero-content {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .course-hero-title {
    font-size: 1.75rem;
  }
  
  .course-hero-subtitle {
    font-size: 1rem;
  }
  
  .course-hero-content {
    padding: 2rem 1rem;
  }
}
