/* Ficha de curso — referencia estilo Udemy · Tecprem */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blanco: #ffffff;
  --verde-brillante: #b8f902;
  --teal: #00b8d4;
  --teal-oscuro: #0078a8;
  --teal-oscuro-hover: #006a94;
  --lima: #b5d333;
  --gris-oscuro: #1f2937;
  --gris-texto: #4b5563;
  --text-light: #5c6370;
  --bg-page: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, var(--verde-brillante) 0%, var(--teal) 100%);
  --border: rgba(0, 0, 0, 0.08);
  --hero-dark: #1c1d1f;
  --hero-dark-2: #2d2f31;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 72rem;
  --header-h: 72px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--gris-oscuro);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.25; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; }
.header-link { font-size: 0.875rem; font-weight: 600; color: var(--teal-oscuro); }
.header-link:hover { text-decoration: underline; }

/* Hero oscuro tipo Udemy */
.course-hero {
  background: var(--hero-dark);
  color: var(--blanco);
  padding: 1.5rem 0 2.5rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  color: #c0c4cc;
}
.breadcrumb a { color: #cec0fc; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--blanco); }
.course-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 42rem;
  margin-bottom: 0.75rem;
}
.course-hero .subtitle {
  font-size: 1.0625rem;
  color: #d1d7dc;
  max-width: 40rem;
  margin-bottom: 1.25rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: #d1d7dc;
}
.hero-meta strong { color: var(--verde-brillante); font-weight: 600; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.hero-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Layout principal */
.course-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}
@media (min-width: 980px) {
  .course-layout {
    grid-template-columns: 1fr min(22rem, 34%);
    gap: 2rem 2.5rem;
  }
}
.course-main { min-width: 0; }
.course-section {
  background: var(--blanco);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.course-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--gris-oscuro);
}
.learn-grid {
  display: grid;
  gap: 0.65rem 1.5rem;
  list-style: none;
}
@media (min-width: 640px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
.learn-grid li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--gris-texto);
}
.learn-grid svg { flex-shrink: 0; width: 1.1rem; color: var(--teal-oscuro); margin-top: 0.2rem; }
.req-list, .audience-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--gris-texto);
  font-size: 0.9rem;
}
.req-list li + li, .audience-list li + li { margin-top: 0.4rem; }
.long-desc { color: var(--gris-texto); font-size: 0.95rem; }
.long-desc p + p { margin-top: 1rem; }

/* Curriculum acordeón */
.curriculum { list-style: none; }
.curriculum-module {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.curriculum-module summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--bg-page);
  list-style: none;
}
.curriculum-module summary::-webkit-details-marker { display: none; }
.curriculum-module summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--teal-oscuro);
  font-weight: 400;
}
.curriculum-module[open] summary::after { content: "−"; }
.module-meta { font-size: 0.75rem; font-weight: 500; color: var(--text-light); }
.lesson-list { list-style: none; border-top: 1px solid var(--border); }
.lesson-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.875rem;
  color: var(--gris-texto);
  border-bottom: 1px solid var(--border);
}
.lesson-list li:last-child { border-bottom: none; }
.lesson-list svg { width: 1rem; flex-shrink: 0; color: var(--teal); }

/* Sidebar sticky */
.course-sidebar { position: relative; }
@media (min-width: 980px) {
  .course-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.purchase-card {
  background: var(--blanco);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.purchase-card__thumb {
  aspect-ratio: 16/9;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.purchase-card__thumb .num {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.35);
}
.purchase-card__thumb .play {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.purchase-card__body { padding: 1.5rem; }
.purchase-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-oscuro);
  margin-bottom: 0.5rem;
}
.purchase-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.includes { list-style: none; margin: 1rem 0 1.25rem; }
.includes li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--gris-texto);
  padding: 0.35rem 0;
}
.includes svg { width: 1rem; flex-shrink: 0; color: var(--teal-oscuro); }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--bg-gradient);
  color: var(--gris-oscuro);
  box-shadow: 0 8px 20px rgba(0, 184, 212, 0.25);
  margin-bottom: 0.65rem;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--teal-oscuro);
  color: var(--teal-oscuro);
}
.btn-outline:hover { background: rgba(0, 120, 168, 0.06); }
.wp-note {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(0, 184, 212, 0.08);
  font-size: 0.75rem;
  color: var(--gris-texto);
  line-height: 1.5;
}

/* Instructor */
.instructor-card {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.instructor-card__photo {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 184, 212, 0.25);
}
.instructor-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.instructor-card .role { font-size: 0.875rem; color: var(--teal-oscuro); font-weight: 600; margin-bottom: 0.5rem; }
.instructor-card .bio { font-size: 0.9rem; color: var(--gris-texto); max-width: 36rem; }

.tools-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tools-chips span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--teal-oscuro); font-weight: 600; }
