@charset "UTF-8";

@import url("css/base/tokens.css");
@import url("css/base/page-state.css?v=20260702-modal");
@import url("css/base/typography.css");
@import url("css/layout/footer.css");
@import url("css/layout/sections.css");
@import url("css/layout/nav.css");
@import url("css/components/testimonials.css");
@import url("css/components/training.css");
@import url("css/components/quick-links.css?v=20260523-guides");
@import url("css/components/hub.css");
@import url("css/components/implementation-plan.css");

/* ===== SOPORTE ===== */
.support-extra {
  width: 100%;
}

.support-mini-card {
  background: rgba(255,255,255,0.9);
  border-radius: 2rem;
  padding: 2rem;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.support-mini-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.support-mini-title {
  font-family: 'Zilla Slab', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #231F20;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.support-mini-text {
  color: #6b7280;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.support-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all .3s ease;
  text-decoration: none;
}

.support-btn-orange {
  background: #FF5900;
  color: white;
}

.support-btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 89, 0, 0.18);
}

.support-btn-arena {
  background: #8B682F;
  color: white;
}

.support-btn-arena:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(139, 104, 47, 0.18);
}

.support-mail-link {
  margin-top: auto;
  display: inline-block;
  color: #C45D2C;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid #FF5900;
  padding-bottom: .35rem;
  width: fit-content;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9e4dc;
  font-size: 1.1rem;
}

.schedule-day {
  font-weight: 700;
  color: #231F20;
}

.schedule-time {
  color: #7b7b7b;
  font-weight: 500;
}

.training-topic-list {
  align-items: center;
  padding: 0;
  list-style: none;
}

.training-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.training-topic + .training-topic {
  padding-left: 0.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.training-topic svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: #ffb58d;
}

.training-plan-card {
  box-sizing: border-box;
  width: min(100%, 390px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: #231F20;
}

.training-plan-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #FF5900;
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 89, 0, 0.24);
}

.training-plan-card__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #997747;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.training-plan-card h2 {
  margin: 0 0 12px;
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.08;
}

.training-plan-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.65;
}

.training-document__viewer {
  min-height: 680px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(35, 31, 32, 0.1);
  background: #f3f4f6;
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.07);
}

.training-document__viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
  background: #fff;
}

@media (max-width: 640px) {
  .training-topic-list {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .training-topic + .training-topic {
    padding-left: 0;
    border-left: 0;
  }

  .training-document__viewer,
  .training-document__viewer iframe {
    min-height: 520px;
  }
}

.location-card {
  background: #f4f1ed;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #ece7df;
}

.location-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #fff;
  color: #C45D2C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #f7f4ef;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #efe8de;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: #231F20;
  cursor: pointer;
}

.faq-icon {
  transition: transform .25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding: 0 1.75rem 1.5rem;
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

/* =========================
   Intro y apuntes
========================= */


/* =========================
   DETALLE DE TEMA
========================= */
.topic-detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.topic-detail-header {
  margin-bottom: 28px;
}

.topic-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #997747;
}

.topic-main-title {
  margin: 0 0 10px;
  font-family: 'Zilla Slab', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #231F20;
}

.topic-main-copy {
  max-width: 850px;
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
  font-size: 15px;
}

.topic-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.topic-block {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topic-block-full {
  grid-column: 1 / -1;
}

.topic-block-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.topic-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-block-title {
  margin: 0 0 6px;
  font-family: 'Zilla Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #231F20;
}

.topic-block-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.topic-empty-state {
  border: 1px dashed rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 18px;
  color: #8a8a8a;
  font-size: 14px;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #231F20;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: all .25s ease;
}

.resource-item:hover {
  color: #FF5900;
  transform: translateY(-2px);
  border-color: rgba(255,89,0,0.18);
  box-shadow: 0 10px 22px rgba(255,89,0,0.07);
}

/* GUÍAS */
.guide-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.guide-topic-card {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.88);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
  color: #231F20;
}

.guide-topic-card:hover,
.guide-topic-card.active {
  transform: translateY(-2px);
  border-color: rgba(255,89,0,0.18);
  box-shadow: 0 10px 22px rgba(255,89,0,0.07);
}

.guide-topic-thumb {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff7f2;
  color: #FF5900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.guide-topic-card span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.guide-panels {
  margin-top: 8px;
}

.guide-panel {
  display: none;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.72);
  border-radius: 24px;
  padding: 22px;
}

.guide-panel.active {
  display: block;
}

.guide-panel h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #231F20;
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-links a {
  display: block;
  text-decoration: none;
  color: #4b5563;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  transition: all .25s ease;
}

.guide-links a:hover {
  color: #FF5900;
  border-color: rgba(255,89,0,0.18);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .topic-sections-grid {
    grid-template-columns: 1fr;
  }

  .guide-topic-grid,
  .guide-links {
    grid-template-columns: 1fr;
  }
}




/* =========================
   BOOKING / ASESORÍAS
========================= */
.booking-section {
  margin-top: 42px;
}

.booking-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.68)
  );
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.booking-shell::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 89, 0, 0.12) 0%,
    rgba(255, 89, 0, 0.04) 42%,
    rgba(255, 89, 0, 0) 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.booking-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.booking-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #997747;
}

.booking-title {
  margin: 0 0 12px;
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  color: #231F20;
  max-width: 14ch;
}

.booking-text {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: #6b7280;
}

.booking-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.booking-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #231F20;
  font-size: 13px;
  font-weight: 600;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.booking-btn-primary {
  background: #FF5900;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 89, 0, 0.22);
}

.booking-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 89, 0, 0.28);
}

.booking-btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #231F20;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 89, 0, 0.18);
  color: #FF5900;
}

/* =========================
   PANEL DERECHO VISUAL
========================= */
.booking-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  min-height: 0;
  padding: 24px;
  margin-left: auto;
  align-self: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.booking-card-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -40px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 89, 0, 0.14) 0%,
    rgba(255, 89, 0, 0.04) 45%,
    rgba(255, 89, 0, 0) 70%
  );
  filter: blur(20px);
  pointer-events: none;
}

.booking-mini {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.booking-mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FF5900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(255, 89, 0, 0.18);
}

.booking-mini h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #231F20;
}

.booking-mini p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.booking-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.booking-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-orange {
  background: #FF5900;
}

.dot-gold {
  background: #997747;
}

.dot-dark {
  background: #231F20;
}

.booking-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff7f2;
  color: #C45D2C;
  font-size: 12px;
  font-weight: 700;
  flex-wrap: wrap;
}

/* =========================
   SI USAS EMBED / IFRAME
========================= */
.booking-embed-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  align-self: center;
}

.booking-embed-card {
  display: block;
  width: 100%;
  min-height: 620px;
  max-height: 720px;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

/* =========================
   MODAL
========================= */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.booking-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(10vh, 72px) 16px 24px;
  overflow-y: auto;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(17, 24, 39, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.booking-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-width: 560px;
  margin: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.booking-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
}

.booking-modal-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #997747;
}

.booking-modal-header h3 {
  margin: 0;
  font-family: 'Zilla Slab', serif;
  font-size: 1.8rem;
  color: #231F20;
}

.booking-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: #231F20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-modal-body {
  padding: 0 24px 24px;
}

.booking-modal-body p {
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.7;
}

.booking-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .booking-shell {
    grid-template-columns: 1fr;
  }

  .booking-title {
    max-width: 100%;
  }

  .booking-card,
  .booking-embed-wrap {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .booking-section {
    margin-top: 32px;
  }

  .booking-shell {
    border-radius: 24px;
    padding: 22px;
  }

  .booking-title {
    font-size: 1.7rem;
  }

  .booking-actions,
  .booking-modal-actions {
    flex-direction: column;
  }

  .booking-btn {
    width: 100%;
  }

  .booking-modal-dialog {
    width: 100%;
  }

  .booking-embed-card {
    min-height: 560px;
    max-height: none;
  }
}


/* =========================
   DETALLE DE TEMA
========================= */
.topic-detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 50px;
}

/* HERO / ENCABEZADO */
.topic-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 89, 0, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.68));
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 28px rgba(0,0,0,0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topic-hero-content {
  min-width: 0;
}

.topic-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #997747;
}

.topic-main-title {
  margin: 0 0 12px;
  font-family: 'Zilla Slab', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  color: #231F20;
}

.topic-main-copy {
  max-width: 780px;
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
  font-size: 16px;
}

.topic-hero-badge {
  min-width: 140px;
  height: 140px;
  border-radius: 28px;
  background: #231F20;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(35,31,32,0.18);
}

.topic-hero--planlike {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.46fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  overflow: hidden;
  min-height: 390px;
  margin-bottom: 42px;
  padding: clamp(34px, 4vw, 54px);
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 31, 32, 0.98) 0%, rgba(35, 31, 32, 0.94) 58%, #111 100%);
  color: #fff;
  box-shadow: 0 34px 70px rgba(35, 31, 32, 0.18);
}

.topic-hero--planlike::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 89, 0, 0.16), transparent 38%),
    url("img/conectores.svg") center / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.topic-hero--planlike .topic-hero-content,
.topic-hero-card {
  position: relative;
  z-index: 1;
}

.topic-hero--planlike .topic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  color: #ffb58d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.topic-hero--planlike .topic-main-title {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 4.4vw, 4.6rem);
  line-height: 1.02;
}

.topic-hero--planlike .topic-main-copy {
  max-width: 740px;
  margin-top: 1.45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.topic-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.8rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.topic-pill + .topic-pill {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.topic-pill svg {
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  color: #ffb58d;
}

.topic-hero-card {
  box-sizing: border-box;
  width: min(100%, 390px);
  margin-left: auto;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #231F20;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(1.2deg);
}

.topic-hero-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #FF5900;
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 89, 0, 0.24);
}

.topic-hero-card__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #997747;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topic-hero-card h2 {
  margin: 0 0 12px;
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.08;
}

.topic-hero-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.65;
}

/* =========================
   SECCIONES EN BLOQUES HORIZONTALES
========================= */
.topic-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topic-block,
.topic-block-full {
  width: 100%;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topic-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.topic-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-block-title {
  margin: 0 0 6px;
  font-family: 'Zilla Slab', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #231F20;
}

.topic-block-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.topic-empty-state {
  border: 1px dashed rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 18px;
  color: #8a8a8a;
  font-size: 14px;
}

.topic-block--quick-style,
.topic-block--support-style {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(35, 31, 32, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topic-block--quick-style {
  background:
    linear-gradient(135deg, rgba(35, 31, 32, 0.035), transparent 44%),
    #ffffff;
}

.topic-block--quick-style::before,
.topic-block--support-style::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #FF5900, #997747, #231F20);
}

.topic-block--quick-style .topic-block-head,
.topic-block--support-style .topic-block-head {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  margin-bottom: 26px;
}

.topic-block--quick-style .topic-icon,
.topic-block--support-style .topic-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #FF5900 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 89, 0, 0.16);
}

.topic-block--quick-style .topic-block-title,
.topic-block--support-style .topic-block-title {
  margin-bottom: 10px;
  color: #FF5900;
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  line-height: 1.1;
}

.topic-block--quick-style .topic-block-sub,
.topic-block--support-style .topic-block-sub {
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.7;
}

.topic-block--guide-browser .guide-help-callout {
  margin-left: auto;
  max-width: 330px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(153, 119, 71, 0.24);
  border-radius: 8px;
  background: rgba(153, 119, 71, 0.08);
  color: #5f4930;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.topic-block--guide-browser .guide-help-callout svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #997747;
}

.topic-block--guide-browser .guide-help-callout span {
  display: block;
}

.topic-block--quick-style .topic-empty-state {
  position: relative;
  z-index: 1;
  min-height: 82px;
  padding: 18px;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #6b7280;
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.045);
}

.topic-block--quick-style .topic-empty-state span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

/* =========================
   VIDEOTUTORIALES EN TARJETAS
========================= */
.video-resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-resource-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.035);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(255,89,0,0.08);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f6f6f6;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 22px 24px 26px;
}

.video-info .video-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #997747;
}

.video-info h3 {
  margin: 0 0 12px;
  font-family: 'Zilla Slab', serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: #231F20;
}

.video-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}

.topic-block--quick-style .video-resource-list {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.topic-block--quick-style .video-resource-card {
  border-radius: 8px;
  border: 1px solid rgba(35, 31, 32, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.045);
}

.topic-block--quick-style .video-resource-card:hover {
  border-color: rgba(255, 89, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(255, 89, 0, 0.11);
}

.topic-block--quick-style .video-frame,
.topic-block--quick-style .video-resource-card > div:first-child {
  background: #f5f2ec;
}

.topic-block--quick-style .video-info {
  padding: 18px;
}

.topic-block--quick-style .video-info .video-kicker {
  margin-bottom: 9px;
  color: #997747;
  font-size: 11px;
}

.topic-block--quick-style .video-info h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

@media (max-width: 1100px) {
  .video-resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .video-resource-list {
    grid-template-columns: 1fr;
  }

  .video-info {
    padding: 18px;
  }

  .video-info h3 {
    font-size: 1.35rem;
  }
}
/* =========================
   INFOGRAFÍAS CON PORTADA
========================= */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.infographic-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #231F20;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
  transition: all .25s ease;
}

.infographic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,89,0,0.22);
  box-shadow: 0 12px 26px rgba(255,89,0,0.08);
}

.infographic-card:focus-visible {
  outline: 3px solid rgba(255,89,0,0.45);
  outline-offset: 4px;
}

.infographic-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f4f4f4;
}

.infographic-card div {
  padding: 16px;
}

.infographic-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.infographic-card span {
  color: #FF5900;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.infographic-card--preview {
  cursor: pointer;
}

.infographic-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f2ec;
  padding: 0;
}

.infographic-preview-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #fff;
}

.infographic-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.infographic-card .infographic-preview-frame {
  padding: 0;
}

.infographic-preview-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 89, 0, 0.09), rgba(153, 119, 71, 0.1)),
    #f5f2ec;
  color: #FF5900;
}

.infographic-card .infographic-preview-fallback {
  padding: 0;
}

.infographic-preview-fallback svg {
  padding: 10px;
  border-radius: 8px;
  background: #FF5900;
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 89, 0, 0.16);
}

.infographic-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: #FF5900;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}

.infographic-card__action:hover {
  color: #d94b00;
}

.infographic-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 89, 0, 0.09), rgba(153, 119, 71, 0.1)),
    #f5f2ec;
  color: #FF5900;
}

.infographic-placeholder svg {
  padding: 10px;
  border-radius: 8px;
  background: #FF5900;
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 89, 0, 0.16);
}

.topic-block--quick-style .infographic-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.topic-block--quick-style .infographic-card {
  border-radius: 8px;
  border: 1px solid rgba(35, 31, 32, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(35, 31, 32, 0.045);
}

.topic-block--quick-style .infographic-card:hover {
  border-color: rgba(255, 89, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(255, 89, 0, 0.11);
}

.topic-block--quick-style .infographic-card img {
  height: 180px;
  background: #f5f2ec;
}

.topic-block--quick-style .infographic-card div {
  padding: 18px;
}

.topic-block--quick-style .infographic-card .infographic-preview-frame {
  padding: 0;
}

.topic-block--quick-style .infographic-card .infographic-preview-frame img {
  height: 100%;
}

.topic-block--quick-style .infographic-card .infographic-preview-fallback {
  padding: 0;
}

.topic-block--quick-style .infographic-card h3 {
  color: #231F20;
  font-size: 15px;
  line-height: 1.25;
}

/* =========================
   GUÍAS DE AYUDA
========================= */
.guide-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.guide-topic-card {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.88);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
  color: #231F20;
}

.guide-topic-card:hover,
.guide-topic-card.active {
  transform: translateY(-2px);
  border-color: rgba(255,89,0,0.18);
  box-shadow: 0 10px 22px rgba(255,89,0,0.07);
}

.guide-topic-thumb {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff7f2;
  color: #FF5900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.guide-topic-card span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.guide-panel {
  display: none;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.72);
  border-radius: 24px;
  padding: 22px;
}

.guide-panel.active {
  display: block;
}

.guide-panel h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #231F20;
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-links a {
  display: block;
  text-decoration: none;
  color: #4b5563;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  transition: all .25s ease;
}

.guide-links a:hover {
  color: #FF5900;
  border-color: rgba(255,89,0,0.18);
  transform: translateY(-1px);
}

.topic-block--support-style .guide-topic-grid,
.topic-block--support-style .guide-panels {
  position: relative;
  z-index: 1;
}

.topic-block--support-style .guide-topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.topic-block--support-style .guide-topic-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.035);
}

.topic-block--support-style .guide-topic-card:hover,
.topic-block--support-style .guide-topic-card.active {
  border-color: #FF5900;
  background: #FF5900;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 89, 0, 0.14);
}

.topic-block--support-style .guide-topic-thumb {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: 8px;
  background: rgba(255, 89, 0, 0.09);
  color: #FF5900;
}

.topic-block--support-style .guide-topic-card:hover .guide-topic-thumb,
.topic-block--support-style .guide-topic-card.active .guide-topic-thumb {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.topic-block--support-style .guide-topic-card span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.topic-block--support-style .guide-panel {
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(35, 31, 32, 0.03);
}

.topic-block--support-style .guide-panel h3 {
  font-family: 'Zilla Slab', serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.topic-block--support-style .guide-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-block--support-style .guide-links a {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #231F20;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(35, 31, 32, 0.035);
}

.topic-block--support-style .guide-links a:hover {
  background: #FF5900;
  border-color: #FF5900;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 89, 0, 0.14);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .topic-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .topic-hero--planlike {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 22px;
  }

  .topic-hero-badge {
    width: 100%;
    height: auto;
    min-height: 90px;
  }

  .topic-hero-card {
    width: min(100%, 320px);
    margin: 0;
    transform: none;
  }

  .topic-hero--planlike .topic-kicker {
    flex-wrap: wrap;
    letter-spacing: 0.16em;
    line-height: 1.4;
  }

  .topic-hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .topic-pill + .topic-pill {
    padding-left: 0;
    border-left: 0;
  }

  .video-resource-list,
  .infographic-grid,
  .guide-topic-grid,
  .guide-links {
    grid-template-columns: 1fr;
  }

  .topic-block,
  .topic-block-full {
    padding: 22px;
    border-radius: 22px;
  }

  .topic-block--quick-style,
  .topic-block--support-style {
    padding: 22px;
    border-radius: 8px;
  }

  .topic-block--support-style .guide-topic-grid,
  .topic-block--support-style .guide-links {
    grid-template-columns: 1fr;
  }

  .topic-block--support-style .guide-topic-card {
    min-height: 64px;
  }

  .topic-block--guide-browser .guide-help-callout {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}


/* =========================
   CALENDARIO / AGENDA
========================= */

.training-calendar {
  padding: 0;
  background: transparent;
  font-family: 'Roboto', sans-serif;
}

.calendar-header {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.eyebrow {
  color: #ff5900;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-header h2 {
  margin: 10px 0;
  font-size: 2.5rem;
  color: #231f20;
  font-family: 'Zilla Slab', serif;
}

.calendar-header p {
  color: #555;
}

.calendar-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #231f20;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ff5900;
  color: #fff;
  border-color: #ff5900;
}

.calendar-loader {
  text-align: center;
  color: #777;
  font-weight: 700;
}

.course-agenda {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

/* =========================
   GRUPO POR DÍA
========================= */

.agenda-day {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 36px rgba(0,0,0,0.06);
}

.agenda-day-header {
  width: 100%;
  border: 0;
  background: rgba(255,255,255,0.94);
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.agenda-day-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #ff5900;
}

.agenda-day-header h3 {
  margin: 0;
  font-family: 'Zilla Slab', serif;
  font-size: 1.55rem;
  color: #231f20;
}

.agenda-day-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  font-weight: 900;
  white-space: nowrap;
}

.agenda-chevron {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #231f20;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

.agenda-day-content {
  display: none;
  padding: 0 22px 24px;
}

.agenda-day.active .agenda-day-content {
  display: block;
}

.agenda-day.active .agenda-chevron {
  transform: rotate(180deg);
}

.agenda-day-list {
  display: grid;
  gap: 18px;
}

.agenda-day-today {
  border-color: rgba(255, 89, 0, 0.28);
  box-shadow: 0 18px 42px rgba(255, 89, 0, 0.12);
}

.agenda-day-today .agenda-day-header {
  background:
    radial-gradient(circle at 90% 20%, rgba(255,89,0,.16), transparent 28%),
    rgba(255,255,255,.96);
}

/* =========================
   TARJETAS DE CURSO
========================= */

.course-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  animation: fadeUp 0.45s ease both;
  transition: all 0.28s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 89, 0, 0.22);
  box-shadow: 0 22px 45px rgba(255, 89, 0, 0.12);
}

.course-card-live {
  border-color: rgba(34, 197, 94, 0.35);
}

.course-date {
  background: #231f20;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.course-date span {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.course-date small {
  margin-top: 6px;
  font-weight: 900;
  letter-spacing: .06em;
}

.course-info {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.course-main {
  flex: 1;
  min-width: 0;
}

.course-info h3 {
  margin: 12px 0 14px;
  color: #231f20;
  font-size: 1.35rem;
  font-weight: 800;
}

.course-info p {
  margin: 7px 0;
  color: #444;
}

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

.badge {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge-presencial {
  background: rgba(255, 89, 0, 0.12);
  color: #ff5900;
}

.badge-a-distancia,
.badge-online {
  background: rgba(35, 31, 32, 0.1);
  color: #231f20;
}

.badge-hibrido {
  background: rgba(153, 119, 71, 0.16);
  color: #997747;
}

.badge-hoy {
  background: linear-gradient(135deg, #ff5900, #ff8a3d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 89, 0, 0.35);
}

.badge-en-curso {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  animation: pulseCurso 1.6s infinite;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.badge-countdown {
  background: rgba(35, 31, 32, 0.08);
  color: #231f20;
}

.badge-finalizado {
  background: rgba(107, 114, 128, 0.14);
  color: #6b7280;
}

/* =========================
   BOTONES
========================= */

.course-actions-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  min-width: 210px;
}

.zoom-btn,
.google-calendar-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
}

.zoom-btn {
  background: #ff5900;
  color: #fff !important;
}

.zoom-btn:hover {
  background: #e14e00;
  transform: translateY(-2px);
}

.google-calendar-btn {
  background: rgba(35, 31, 32, 0.92);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(35, 31, 32, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.google-calendar-btn:hover {
  background: rgba(255, 89, 0, 0.92);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 28px rgba(255, 89, 0, 0.24);
}

.calendar-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================
   ESTADOS
========================= */

.empty-state {
  text-align: center;
  background: #fff;
  padding: 40px 24px;
  border-radius: 22px;
  color: #555;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseCurso {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.58);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {
  .agenda-day-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .agenda-day-meta {
    width: 100%;
    justify-content: space-between;
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .course-date {
    padding: 18px;
    flex-direction: row;
    gap: 10px;
  }

  .course-info {
    flex-direction: column;
  }

  .course-actions-side {
    min-width: 0;
    width: 100%;
  }

  .calendar-header h2 {
    font-size: 2rem;
  }
}

.week-filters {
  max-width: 1050px;
  margin: -18px auto 48px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 2px 10px;
}

.week-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #231f20;
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: all .25s ease;
}

.week-btn:hover,
.week-btn.active {
  background: #231f20;
  color: #fff;
  border-color: #231f20;
}

.weekend-toggle {
  background: #fff7f2;
  color: #ff5900;
  border-color: rgba(255, 89, 0, 0.22);
}

.weekend-toggle.active {
  background: #ff5900;
  color: #fff;
  border-color: #ff5900;
}

.agenda-day-weekend {
  border-color: rgba(153, 119, 71, 0.28);
  box-shadow: 0 18px 38px rgba(153, 119, 71, 0.12);
}

.agenda-day-weekend .agenda-day-header {
  background:
    radial-gradient(circle at 90% 20%, rgba(153,119,71,.18), transparent 30%),
    rgba(255,255,255,.96);
}

.course-card-weekend {
  border-color: rgba(153, 119, 71, 0.32);
}

.course-card-weekend .course-date {
  background: #997747;
}

.badge-weekend {
  background: rgba(153, 119, 71, 0.16);
  color: #997747;
}

.badge-finalizado {
  background: rgba(107, 114, 128, 0.14);
  color: #6b7280;
}

.view-tools {
  max-width: 1050px;
  margin: -28px auto 34px;
  display: flex;
  justify-content: center;
}

.compact-toggle {
  border: 1px solid rgba(0,0,0,0.08);
  background: #231f20;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: all .25s ease;
}

.compact-toggle:hover,
.compact-toggle.active {
  background: #ff5900;
  border-color: #ff5900;
  transform: translateY(-2px);
}

/* Vista compacta */
.course-agenda.compact-mode .course-card {
  grid-template-columns: 86px minmax(0, 1fr);
}

.course-agenda.compact-mode .course-info {
  padding: 18px 20px;
}

.course-agenda.compact-mode .course-info h3 {
  font-size: 1.05rem;
  margin: 8px 0;
}

.course-agenda.compact-mode .course-info p {
  margin: 4px 0;
  font-size: 0.9rem;
}

.course-agenda.compact-mode .course-actions-side {
  min-width: 170px;
}

.course-agenda.compact-mode .google-calendar-btn,
.course-agenda.compact-mode .zoom-btn {
  padding: 9px 12px;
  font-size: 0.85rem;
}

.course-agenda.compact-mode .course-date span {
  font-size: 2rem;
}
