/* curso.css - especifico de la pagina del curso */
.ae-curso-section { padding: 56px 0; }

/* Objetivos cards */
.ae-curso-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.ae-curso-grid > article {
  flex: 1 1 360px;
  min-width: 0;
  position: relative;
  background: var(--ae-card-bg);
  border: 1px solid var(--ae-border);
  border-radius: 22px;
  padding: 34px 32px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.ae-curso-grid > article::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(204,7,30,0.07), transparent 55%);
  pointer-events: none;
}
.ae-curso-grid > article:hover {
  border-color: rgba(204,7,30,0.25);
  box-shadow: 0 18px 40px rgba(15,23,42,0.07);
  transform: translateY(-3px);
}
.ae-curso-grid .ae-icon {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(204,7,30,0.30);
}
.ae-curso-grid .ae-icon svg { width: 30px; height: 30px; color: #fff; }
.ae-curso-grid .ae-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ae-red);
  margin-bottom: 6px;
  position: relative;
}
.ae-curso-grid h3 {
  position: relative;
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ae-text);
  line-height: 1.25;
}
.ae-curso-grid .ae-checklist {
  position: relative; margin: 0; padding: 0; list-style: none; flex: 1 1 auto;
}
.ae-curso-grid .ae-checklist li {
  position: relative;
  padding: 0 0 0 30px;
  margin: 0 0 12px;
  font-size: 15px; line-height: 1.6;
  color: var(--ae-text-soft);
}
.ae-curso-grid .ae-checklist li:last-child { margin-bottom: 0; }
.ae-curso-grid .ae-checklist li::before {
  content: ""; position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: var(--ae-red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px 14px; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(204,7,30,0.25);
}

/* Talleres */
.ae-taller {
  position: relative;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  border: 1px solid transparent;
  border-radius: 20px;
  margin-bottom: 18px;
  transition: background 0.4s, border-color 0.3s, box-shadow 0.3s, transform 0.3s, color 0.3s;
  color: #fff;
  box-shadow: 0 12px 28px rgba(204,7,30,0.18);
  padding: 0 24px 0 360px;
  min-height: 220px;
}
.ae-taller:hover {
  box-shadow: 0 18px 36px rgba(204,7,30,0.28);
  transform: translateY(-2px);
}
.ae-taller[open] {
  background: var(--ae-card-bg);
  border-color: rgba(204,7,30,0.28);
  color: var(--ae-text);
  box-shadow: 0 22px 50px rgba(15,23,42,0.10);
  transform: translateY(0);
}
.ae-taller summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 0;
  transition: background 0.25s;
}
.ae-taller summary::-webkit-details-marker { display: none; }
.ae-taller .ae-side {
  position: absolute;
  left: 20px; top: 20px; bottom: 20px;
  width: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  z-index: 1;
}
.ae-taller .ae-thumb {
  position: relative;
  width: 100%; height: 180px;
  border-radius: 14px; overflow: hidden;
  background-color: rgba(255,255,255,0.08);
  background-size: cover; background-position: center;
  box-shadow: 0 6px 16px rgba(15,23,42,0.18);
  transition: transform 0.4s;
}
.ae-taller:hover .ae-thumb { transform: scale(1.015); }
.ae-taller .ae-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(15,23,42,0.18));
  pointer-events: none;
}
.ae-taller .ae-thumb-tag {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.96);
  color: var(--ae-red);
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 8px;
  box-shadow: 0 4px 10px rgba(15,23,42,0.22);
}
.ae-taller .ae-thumb-tag::before {
  content: ""; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ae-red);
  box-shadow: 0 0 0 3px rgba(204,7,30,0.18);
}
.ae-taller .ae-cta-d { display: none; }
.ae-taller[open] .ae-cta-d {
  display: inline-flex; align-self: center; align-items: center; gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff !important;
  font-weight: 600; font-size: 14.5px;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 22px rgba(204,7,30,0.32);
}
.ae-taller .ae-cta-d::before {
  content: ""; width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

.ae-taller .ae-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ae-taller .ae-step {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
}
.ae-taller .ae-step b { color: #fff; font-weight: 800; }
.ae-taller[open] .ae-step { color: var(--ae-muted); }
.ae-taller[open] .ae-step b { color: var(--ae-red); }
.ae-taller .ae-meta h3 {
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3;
  margin: 0 0 10px; color: #fff;
}
.ae-taller[open] .ae-meta h3 { color: var(--ae-text); }
.ae-taller .ae-sub {
  font-size: 14px; line-height: 1.55;
  margin: 0; color: rgba(255,255,255,0.92);
}
.ae-taller[open] .ae-sub { color: var(--ae-text-soft); }
.ae-taller .ae-chev {
  flex: 0 0 44px; align-self: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.4s, box-shadow 0.3s;
}
.ae-taller .ae-chev::before {
  content: ""; width: 10px; height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
}
.ae-taller[open] .ae-chev {
  background: var(--ae-red);
  transform: rotate(180deg);
  box-shadow: 0 6px 14px rgba(204,7,30,0.32);
}

/* Body */
.ae-taller .ae-body { padding: 0 0 26px 0; }
.ae-taller .ae-body .ae-checklist { margin: 0 0 22px; padding: 0; list-style: none; }
.ae-taller .ae-body .ae-checklist li {
  position: relative; padding: 0 0 0 30px;
  margin: 0 0 11px;
  font-size: 15px; line-height: 1.65;
  color: var(--ae-text-soft);
}
.ae-taller .ae-body .ae-checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: var(--ae-red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px 14px;
  background-position: center; background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(204,7,30,0.20);
}
.ae-cta-m { display: none; }

@media (max-width: 800px) {
  .ae-taller { padding: 0; min-height: 0; }
  .ae-taller summary {
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 14px 14px 18px; min-height: 0; position: relative;
  }
  .ae-taller .ae-side {
    position: static; left: auto; top: auto; bottom: auto;
    width: 100%; flex: 0 0 auto; gap: 12px;
  }
  .ae-taller .ae-thumb { height: auto; aspect-ratio: 16 / 9; }
  .ae-taller .ae-meta { padding-right: 56px; }
  .ae-taller .ae-meta h3 { font-size: 17px; }
  .ae-taller .ae-chev {
    position: absolute; right: 14px; bottom: 18px;
    width: 36px; height: 36px; flex: none; align-self: auto;
  }
  .ae-taller[open] .ae-chev { transform: rotate(180deg); }
  .ae-taller .ae-body { padding: 0 16px 22px; }
  .ae-taller[open] .ae-cta-d { display: none !important; }
  .ae-taller[open] .ae-cta-m {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 16px; padding: 12px 22px;
    background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
    color: #fff !important; font-weight: 600; font-size: 14px;
    border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 18px rgba(204,7,30,0.30);
  }
  .ae-taller[open] .ae-cta-m::before {
    content: ""; width: 16px; height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  }
}
