:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #060b16;
  color: #edf2f7;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 25% 5%, rgba(79, 184, 255, 0.16), transparent 17%),
    radial-gradient(circle at 85% 20%, rgba(48, 113, 255, 0.14), transparent 15%),
    linear-gradient(180deg, #07101f 0%, #02050c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 20%),
    radial-gradient(circle at 75% 15%, rgba(112, 211, 255, 0.05), transparent 14%);
  pointer-events: none;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6fbff;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 38px;
  height: auto;
}

.mentor-brand {
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
}

.mentor-brand-logo {
  width: 24px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn-primary {
  background: #43b4ff;
  color: #020617;
}

.btn-secondary {
  background: rgba(66, 165, 255, 0.18);
  color: #e8f9ff;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fbff;
  background: transparent;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  user-select: none;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  margin-top: 36px;
  padding: 40px 0 24px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(67, 180, 255, 0.16);
  color: #8edbff;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 3.5vw, 4.4rem);
  line-height: 1.03;
  margin: 0 0 22px;
}

.hero p {
  color: #cfd8ea;
  font-size: 1rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.hero-meta div {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.hero-meta strong {
  font-size: 1.35rem;
  color: #f8fbff;
}

.hero-meta span {
  color: #9fb7d0;
}

.hero-frame {
  position: relative;
  min-height: 520px;
}

.hero-image {
  width: 100%;
  min-height: 520px;
  border-radius: 34px;
  background: radial-gradient(circle at top left, rgba(76, 174, 255, 0.18), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(79, 165, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(9, 15, 28, 0.92));
  box-shadow: inset 0 0 180px rgba(64, 150, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-robot.png") center 40% / cover no-repeat;
  opacity: 0.95;
}

.hero-chat-card {
  position: absolute;
  right: 16px;
  top: 16px;
  width: calc(100% - 32px);
  max-width: 340px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(7, 13, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.mentor-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(68, 183, 255, 0.14);
  color: #9cdcff;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.reply-block {
  color: #eef6ff;
  margin-bottom: 18px;
}

.reply-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.reply-block p {
  margin: 0;
  color: #b7c9dd;
  line-height: 1.7;
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-actions button {
  border: none;
  border-radius: 999px;
  background: #43b4ff;
  color: #07101f;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

.chat-actions span {
  color: #80c7ff;
  font-size: 1.4rem;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 2.4rem;
  margin: 10px 0 0;
}

.steps,
.experience,
.courses,
.community-section,
.cta {
  margin-top: 64px;
}

.mentor {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  z-index: 999;
  background: rgba(1, 8, 21, 0.98);
  padding: 12px;
  overflow: hidden;
}

.mentor:target {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #edf2f7;
  min-height: 24px;
}

.mentor-header .eyebrow {
  padding: 1px 4px;
  font-size: 0.68rem;
  border-radius: 999px;
}

.btn-close {
  padding: 2px 6px;
  font-size: 0.78rem;
}

.mentor-frame {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.mentor-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  box-shadow: none;
}

.steps p,
.experience p,
.courses p,
.cta p {
  color: #b6c5da;
}

.step-grid,
.experience-grid,
.course-grid {
  display: grid;
  gap: 22px;
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.experience-card,
.course-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.step-card {
  display: grid;
  gap: 18px;
}

.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(67, 180, 255, 0.16);
  font-weight: 800;
  color: #c6e5ff;
}

.step-card h3 {
  margin: 0;
}

.step-card p {
  margin: 0;
  color: #c3d4e5;
}

.experience-box {
  border-radius: 28px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.experience-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
}

.experience-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.experience-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.experience-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-copy p {
  margin: 0;
  color: #b6c5da;
  line-height: 1.75;
}

.experience-copy .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

.experience-header,
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.experience-header h2,
.section-header h2 {
  margin: 0;
}

.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.experience-card {
  position: relative;
  overflow: hidden;
}

.card-tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(69, 120, 255, 0.16);
  color: #cbe8ff;
  font-weight: 700;
  margin-bottom: 18px;
}

.experience-card h3,
.course-card h3 {
  margin: 0 0 12px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #42b4ff, #3aadfd);
}

.courses .section-header {
  flex-direction: column;
  align-items: flex-start;
}

.course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.course-card-image {
  min-height: 210px;
  border-radius: 24px;
  background-color: rgba(10, 18, 36, 0.85);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.course-card.course-ia .course-card-image {
  background-image: url("assets/course-ia.png");
}

.course-card.course-iot .course-card-image {
  background-image: url("assets/course-iot.png");
}

.course-card-content {
  display: grid;
  gap: 18px;
}

.course-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #aac1d8;
}

.course-card li::before {
  content: "•";
  margin-right: 10px;
  color: #70d4ff;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 36px;
  border-radius: 32px;
  background: rgba(17, 30, 52, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta h2 {
  margin: 0;
  font-size: 2rem;
}

.cta p {
  margin: 12px 0 0;
  max-width: 520px;
}

/* ── Comunidad ───────────────────────────────────── */
.community-section {
  position: relative;
}

.eyebrow-community {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}

.community-section .course-grid {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.community-section .course-card {
  max-width: 560px;
  width: 100%;
}

.course-card.course-community {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(2, 5, 12, 0.5) 100%);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.06), 0 0 20px rgba(16, 185, 129, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card.course-community:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 16px 45px rgba(16, 185, 129, 0.12), 0 0 25px rgba(16, 185, 129, 0.06);
}

.course-card.course-community .course-card-image {
  background-image: url("assets/course-ia.png");
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.course-tags-container {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.tag-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.tag-open {
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.btn-community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
  background: #10b981;
  color: #030712;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-community:hover {
  transform: translateY(-2px);
  background: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

button.btn-secondary,
button.btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Modal de Lista de Espera ────────────────────── */
.modal-waitlist {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.modal-waitlist.modal-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(7, 16, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  width: min(480px, calc(100vw - 32px));
  padding: 36px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(67, 180, 255, 0.05);
}

.modal-waitlist.modal-active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #a0aec0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #fff;
}

.modal-content p {
  color: #a0b4cc;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-success-state {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 16px;
}

.modal-success-state h4 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 10px 0;
}

.modal-success-state p {
  color: #a0b4cc;
  margin-bottom: 0;
}

.footer {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #7f8fa4;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #b8c7d9;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 440px;
  }

  .experience-grid,
  .experience-body,
  .course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 16px 30px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions,
  .hero-meta,
  .experience-header,
  .cta,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
  }
}

.chat-toggle-input {
  display: none;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
}

.chat-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(67, 180, 255, 0.95);
  color: #020617;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  height: min(80vh, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: rgba(6, 13, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-panel-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-panel-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf2f7;
  cursor: pointer;
  font-size: 0.85rem;
}

.chat-toggle-input:checked + .chat-widget .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-toggle-input:checked + .chat-widget .chat-launcher {
  display: none;
}

@media (max-width: 720px) {
  .chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
  }
}

/* ── Inscripción ─────────────────────────────────── */
.inscripcion {
  margin-top: 40px;
}

.inscripcion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.inscripcion-card {
  border-radius: 28px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 20px;
}

.inscripcion-card-title {
  margin: 0;
  font-size: 1.15rem;
  color: #edf2f7;
}

.inscripcion-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: #a0b4cc;
  font-weight: 600;
}

.required {
  color: #43b4ff;
}

.form-group input,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #edf2f7;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder {
  color: #4a6480;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(67, 180, 255, 0.5);
}

.form-group select option {
  background: #07101f;
  color: #edf2f7;
}

.input-error {
  border-color: rgba(255, 80, 80, 0.6) !important;
}

.precio-box {
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(67, 180, 255, 0.06);
  border: 1px solid rgba(67, 180, 255, 0.16);
  display: grid;
  gap: 12px;
}

.precio-curso {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #8abadb;
}

.precio-nombre {
  font-weight: 600;
  color: #cde8ff;
  text-align: right;
}

.moneda-selector {
  display: grid;
  gap: 8px;
}

.moneda-label {
  font-size: 0.88rem;
  color: #a0b4cc;
  font-weight: 600;
}

.moneda-grid {
  display: grid;
  gap: 8px;
}

.precio-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  color: #b6c5da;
}

.precio-total strong {
  font-size: 1.35rem;
  color: #43b4ff;
}

.descuento-wrap {
  display: grid;
  gap: 8px;
}

.descuento-wrap label {
  font-size: 0.9rem;
  color: #a0b4cc;
  font-weight: 600;
}

.descuento-row {
  display: flex;
  gap: 10px;
}

.descuento-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  color: #edf2f7;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.descuento-row input:focus {
  border-color: rgba(67, 180, 255, 0.5);
}

.btn-descuento {
  white-space: nowrap;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.descuento-msg {
  font-size: 0.85rem;
  min-height: 18px;
}

.descuento-ok    { color: #5ddfa8; }
.descuento-error { color: #ff6b6b; }

.metodo-grid {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.metodo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 0.94rem;
  color: #cdd8e8;
}

.metodo-option:has(input:checked) {
  border-color: rgba(67, 180, 255, 0.45);
  background: rgba(67, 180, 255, 0.07);
}

.metodo-option input {
  accent-color: #43b4ff;
}

.tarjeta-campos {
  display: grid;
  gap: 16px;
}

.btn-confirmar {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 999px;
  margin-top: 4px;
}

.pago-seguro {
  text-align: center;
  font-size: 0.82rem;
  color: #5a7a96;
  margin: 0;
}

@media (max-width: 1024px) {
  .inscripcion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Página Comunidad ────────────────────────────── */
.comunidad-hero {
  min-height: 480px;
  padding: 60px 0 40px;
}

.pilares-section {
  margin-top: 64px;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pilar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pilar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(67, 180, 255, 0.3);
  box-shadow: 0 16px 40px rgba(67, 180, 255, 0.05);
}

.pilar-icon {
  font-size: 2.5rem;
  display: inline-flex;
  margin-bottom: 4px;
}

.pilar-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.pilar-card p {
  margin: 0;
  color: #a0b4cc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.course-why-free {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.course-why-free strong {
  display: block;
  color: #34d399;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.course-why-free p {
  margin: 0;
  color: #a7f3d0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.impact-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.counter-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.counter-box:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 180, 255, 0.2);
}

.counter-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #43b4ff;
  line-height: 1.1;
  margin-bottom: 6px;
  display: block;
  background: linear-gradient(135deg, #43b4ff, #80c7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-box:nth-child(1) .counter-number {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-label {
  font-size: 0.95rem;
  color: #8fa0b5;
  font-weight: 600;
}

.impact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  margin-top: 40px;
  align-items: start;
}

.map-wrapper {
  background: rgba(7, 14, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.map-silhouette {
  fill: rgba(67, 180, 255, 0.01);
  stroke: rgba(67, 180, 255, 0.12);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
}

.map-node {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.map-node circle.main-dot {
  fill: #1e293b;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease, r 0.3s ease, filter 0.3s ease;
}

.map-node circle.pulse-ring {
  fill: none;
  stroke: #10b981;
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.3s ease;
}

.map-node:hover circle.main-dot,
.map-node.active-node circle.main-dot {
  stroke: #ffffff;
  r: 9;
}

.map-node:hover circle.pulse-ring,
.map-node.active-node circle.pulse-ring {
  opacity: 0.4;
  animation: nodePulse 1.8s infinite ease-out;
}

.map-node-label {
  font-size: 10px;
  fill: #7f8fa4;
  font-weight: 600;
  pointer-events: none;
  transition: fill 0.25s ease, font-size 0.25s ease;
}

.map-node:hover + .map-node-label,
.map-node.active-node + .map-node-label {
  fill: #ffffff;
  font-size: 11px;
}

@keyframes nodePulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.impact-details-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.impact-details-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.impact-details-header h3 {
  margin: 0;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.impact-details-header .province-total-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.org-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 8px;
}

.org-list::-webkit-scrollbar {
  width: 6px;
}
.org-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
}
.org-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.org-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.org-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.org-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(67, 180, 255, 0.12);
}

.org-name {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
}

.org-count {
  font-weight: 700;
  color: #43b4ff;
  font-size: 1.05rem;
  background: rgba(67, 180, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.impact-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: #7f8fa4;
  gap: 16px;
  padding: 40px 0;
}

.impact-empty-icon {
  font-size: 3.5rem;
  opacity: 0.5;
}

.impact-empty-state p {
  font-size: 0.95rem;
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .impact-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .impact-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .map-wrapper {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .pilares-grid {
    grid-template-columns: 1fr;
  }
  
  .impact-counters {
    grid-template-columns: 1fr;
  }
}

