.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

a.btn-primary {
  color: #fff;
}

.btn-accent {
  background: #fff;
  color: var(--color-night);
}

.btn-outline {
  background: transparent;
  color: var(--color-mustard);
  box-shadow: inset 0 0 0 1.5px var(--color-mustard);
}

.btn-outline:hover {
  background: rgba(255, 176, 32, 0.12);
}

.btn-mustard {
  background: var(--color-mustard);
  color: var(--color-navy);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 280px;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-photo {
  height: 140px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin: -26px 24px 0;
  border-radius: 16px;
  background: var(--color-night);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-copy {
  padding: 16px 24px 28px;
}

.service-card.featured {
  background: var(--gradient-featured);
  color: #fff;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.18);
}

.service-card.featured h3,
.service-card.featured p {
  color: #fff;
}

.stats {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  color: var(--color-black);
  line-height: 1;
}

.stat-label {
  color: var(--color-muted);
  margin-top: 10px;
  font-size: 15px;
}

.cta-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 32px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 0;
  background: var(--color-alt);
  color: var(--color-navy);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.chip.is-active {
  background: var(--color-primary);
  color: #fff;
}

.search-field {
  min-width: 240px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.25s var(--ease);
}

a.course-card:hover {
  transform: translateY(-6px);
}

.course-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.course-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-muted);
}

.course-card h3 {
  font-size: 18px;
  color: var(--color-navy);
  min-height: 0;
}

.rating {
  color: #f5b301;
  font-size: 14px;
}

.price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 18px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.enrollment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.enrollment.is-open {
  background: var(--color-primary);
  color: #fff;
}

.enrollment.is-closed {
  background: #ececf2;
  color: #6b6d82;
}

.enrollment.is-curso {
  background: #e8f4f1;
  color: var(--color-emerald);
}

.enrollment.is-diplomado {
  background: #f3e9ff;
  color: var(--color-accent);
}

.enrollment.is-postdoctorado {
  background: #e6f1f4;
  color: var(--color-primary);
}

.news-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.news-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.news-card .body {
  padding: 22px;
}

.news-date {
  font-size: 13px;
  color: var(--color-muted);
}

.news-card h3 {
  color: var(--color-navy);
  font-size: 22px;
}

.continue {
  font-weight: 500;
  color: var(--color-accent);
}

.newsletter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 14px 18px;
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field input {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 12px 14px;
}

.socials {
  display: flex;
  gap: 14px;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
}

.country {
  margin: 0;
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.country:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.country img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.country figcaption {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.empty {
  color: var(--color-muted);
  padding: 24px 0;
}

@media (max-width: 860px) {
  .newsletter {
    grid-template-columns: 1fr;
  }
}
