/* ===========================================
  TALLERES - Landing Principal
=========================================== */

/* -------------------------------------------
  Docoeduca: sección promo
------------------------------------------- */
.talleres-docoeduca-section {
  padding: 2rem 0;
  background: linear-gradient(160deg, rgba(117, 102, 219, 0.12) 0%, rgba(117, 102, 219, 0.05) 60%, #fff 100%);
}

.talleres-docoeduca-inner {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1rem;
}

.talleres-docoeduca-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(117, 102, 219, 0.1);
  color: var(--p-morado);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.talleres-docoeduca-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--p-morado);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.talleres-docoeduca-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.talleres-docoeduca-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0 auto 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gris-oscuro);
  background: rgba(117, 102, 219, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.talleres-docoeduca-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--p-morado);
  color: #fff;
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
}

.talleres-docoeduca-cta:hover {
  background: #5a4bc4;
  color: #fff;
  text-decoration: none;
}

.talleres-docoeduca-cta svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.talleres-docoeduca-cta:hover svg {
  transform: translateX(3px);
}

/* -------------------------------------------
  Descripción de sección
------------------------------------------- */
.talleres-section__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--gris);
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* -------------------------------------------
  Sección
------------------------------------------- */
.talleres-section {
  padding: 2rem 0;
}

/* -------------------------------------------
  Título de sección
------------------------------------------- */
.talleres-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.talleres-section__title--rosado { color: var(--p-rosado); }
.talleres-section__title--morado { color: var(--p-morado); }

/* -------------------------------------------
  Grid de cards
------------------------------------------- */
.talleres-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* -------------------------------------------
  Card wrapper
------------------------------------------- */
.talleres-card-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* -------------------------------------------
  Card
------------------------------------------- */
.talleres-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-wrap: anywhere;
}

/* -------------------------------------------
  Card: cabecera
------------------------------------------- */
.talleres-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.talleres-card__info {
  flex: 1;
  display: flex;
  align-items: center;
}

.talleres-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.talleres-card__title--rosado { color: var(--p-rosado); }
.talleres-card__title--morado { color: var(--p-morado); }

.talleres-card__img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.talleres-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------
  Card: divider
------------------------------------------- */
.talleres-card__divider {
  border: none;
  border-top: 1.5px solid rgba(0, 0, 0, 0.07);
  margin: 0 0 1.25rem;
}

/* -------------------------------------------
  Card: cuerpo
------------------------------------------- */
.talleres-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* -------------------------------------------
  Card: etiquetas de sección
------------------------------------------- */
.talleres-card__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.talleres-card__label--rosado { color: var(--p-rosado); }
.talleres-card__label--morado { color: var(--p-morado); }

/* -------------------------------------------
  Lista de temas
------------------------------------------- */
.talleres-theme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.talleres-theme-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--gris);
  line-height: 1.55;
}

/* -------------------------------------------
  Card: fecha
------------------------------------------- */
.talleres-card__date {
  font-size: 0.9375rem;
  color: var(--gris);
  text-align: center;
  margin: 0;
}

/* -------------------------------------------
  Card: botones
------------------------------------------- */
.talleres-card__actions {
  display: flex;
  gap: 0.625rem;
  margin-top: auto;
}

.talleres-card__buy {
  margin-top: 0.625rem;
}

.talleres-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.talleres-card__btn:hover {
  opacity: 0.82;
  text-decoration: none;
  color: #fff;
}

.talleres-card__btn--empresa-rosado { background: var(--p-rosado); color: #fff; }
.talleres-card__btn--empresa-morado { background: var(--p-morado); color: #fff; }
.talleres-card__btn--padres         { background: var(--p-verde);  color: #fff; }

.talleres-card__btn--comprar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease;
}

.talleres-card__btn--comprar:hover {
  opacity: 0.82;
  color: #fff;
  text-decoration: none;
}

.talleres-card__btn--comprar-rosado { background: var(--p-rosado); }
.talleres-card__btn--comprar-morado { background: var(--p-morado); }

/* -------------------------------------------
  Card: contador
------------------------------------------- */
.talleres-card__counter {
  font-size: 0.9375rem;
  color: var(--gris);
  text-align: center;
  margin-top: 0.75rem;
}

.talleres-card__counter--rosado span { color: var(--p-rosado); font-weight: 600; }
.talleres-card__counter--morado span { color: var(--p-morado); font-weight: 600; }

/* -------------------------------------------
  Formulario empresas
------------------------------------------- */
.talleres-empresa-section {
  padding: 2rem 0;
}

.talleres-empresa-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.talleres-empresa-header__eyebrow {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--p-morado);
  margin-bottom: 0.5rem;
}

.talleres-empresa-header__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gris-oscuro);
  margin-bottom: 1rem;
}

.talleres-empresa-header__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* -------------------------------------------
  Formulario: card
------------------------------------------- */
.talleres-empresa-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------
  Formulario: campos
------------------------------------------- */
.talleres-empresa-form {
  padding: 1.5rem;
}

.talleres-form-errors {
  padding: 1rem;
  margin-bottom: 2.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #dc2626;
}

.talleres-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

.talleres-form-field {
  margin-bottom: 2.5rem;
}

.talleres-form-field label {
  display: block;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gris-oscuro);
  margin-bottom: 0.5rem;
}

.talleres-form-field input,
.talleres-form-field select,
.talleres-form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9375rem !important;
  color: var(--gris-oscuro) !important;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.talleres-form-field input:focus,
.talleres-form-field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--p-morado);
  box-shadow: 0 0 0 3px rgba(117, 102, 219, 0.1);
}

.talleres-form-field input::placeholder,
.talleres-form-field textarea::placeholder {
  color: #adb5bd;
  font-family: 'Montserrat', sans-serif !important;
}

.talleres-form-field select,
.talleres-form-field select:disabled,
.talleres-form-field select:read-only {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-color: #f8f9fa !important;
  padding-right: 2.5rem;
  cursor: pointer;
  opacity: 1 !important;
}

.talleres-form-field select:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--p-morado);
  box-shadow: 0 0 0 3px rgba(117, 102, 219, 0.1);
}

.talleres-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.talleres-form-field label {
  font-family: 'Montserrat', sans-serif !important;
}

/* -------------------------------------------
  Formulario: captcha
------------------------------------------- */
.talleres-form-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* -------------------------------------------
  Formulario: checkbox términos
------------------------------------------- */
.talleres-form-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.talleres-form-terms input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.talleres-form-checkmark {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #f8f9fa;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.talleres-form-terms:hover .talleres-form-checkmark {
  border-color: var(--p-morado);
}

.talleres-form-terms input:checked ~ .talleres-form-checkmark {
  background: var(--p-morado);
  border-color: var(--p-morado);
}

.talleres-form-checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.talleres-form-terms input:checked ~ .talleres-form-checkmark::after {
  display: block;
}

.talleres-form-terms-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.5;
}

.talleres-form-terms-text a {
  color: var(--p-morado);
  font-weight: 500;
  text-decoration: underline;
}

.talleres-form-terms-text a:hover {
  color: #6254c4;
}

/* -------------------------------------------
  Formulario: botón enviar
------------------------------------------- */
.talleres-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--p-morado);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.talleres-form-submit:hover:not(:disabled) {
  background: #6253c8;
  transform: translateY(-1px);
}

.talleres-form-submit:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.talleres-form-submit svg {
  transition: transform 0.2s ease;
}

.talleres-form-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

/* -------------------------------------------
  Responsive
------------------------------------------- */
@media (min-width: 992px) {
  .talleres-docoeduca-section,
  .talleres-section,
  .talleres-empresa-section {
    padding: 6rem 0;
  }
}

@media (min-width: 768px) {
  .talleres-card-wrapper {
    width: calc(50% - 0.75rem);
  }

  .talleres-section__title {
    font-size: 2.5rem;
  }

  .talleres-docoeduca-title {
    font-size: 2.5rem;
  }

  .talleres-docoeduca-subtitle,
  .talleres-section__desc,
  .talleres-empresa-header__desc {
    font-size: 1.1rem;
  }

  .talleres-card__title {
    font-size: 1.375rem;
  }

  .talleres-empresa-form {
    padding: 2rem;
  }
}

@media (min-width: 576px) {
  .talleres-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .talleres-docoeduca-title {
    font-size: 1.5rem;
  }

  .talleres-docoeduca-subtitle {
    font-size: 0.9375rem;
  }

  .talleres-docoeduca-date {
    font-size: 0.875rem;
  }

  .talleres-docoeduca-cta {
    width: 100%;
  }

  .talleres-section__title {
    font-size: 1.5rem;
  }

  .talleres-section__desc,
  .talleres-empresa-header__desc {
    font-size: 0.9375rem;
  }

  .talleres-card {
    padding: 1.25rem;
  }

  .talleres-card__title {
    font-size: 1.0625rem;
  }

  .talleres-card__label {
    font-size: 0.9375rem;
  }

  .talleres-theme-item {
    font-size: 0.875rem;
  }

  .talleres-card__img-wrap {
    width: 100px;
    height: 100px;
  }

  .talleres-card__actions {
    flex-direction: column;
  }
}
