/* ================================
   TECHCOURSES - ESTILOS
================================ */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #172033;
  --muted: #64748b;
  --border: #e3e8ef;
  --primary: #0ea5a0;
  --primary-2: #2563eb;
  --nav: rgba(8, 20, 40, .96);
  --shadow: 0 15px 45px rgba(15, 23, 42, .08);
  --hero: #071426;
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #182234;
  --text: #f1f5f9;
  --muted: #a8b3c4;
  --border: #263449;
  --primary: #2dd4bf;
  --primary-2: #60a5fa;
  --nav: rgba(5, 12, 25, .97);
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --hero: #050d1d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background .25s ease, color .25s ease;
}

.site-navbar {
  padding: 13px 0;
  background: var(--nav);
  backdrop-filter: blur(12px);
}

.navbar-brand,
.footer-brand {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: -.5px;
}

.navbar-brand > span:last-child,
.footer-brand > span:last-child {
  color: #5eead4;
}

.logo-box {
  width: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #fff;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.72);
  margin: 0 6px;
  font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff; }

.theme-btn,
.cart-btn {
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  border-radius: 11px;
  padding: 9px 13px;
  font-weight: 600;
}

.theme-btn:hover,
.cart-btn:hover {
  background: rgba(255,255,255,.09);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 2px 5px;
  border-radius: 50px;
  background: #ef4444;
  color: white;
  font-size: .68rem;
  text-align: center;
}

.hero {
  min-height: 730px;
  padding: 155px 0 90px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 25%, rgba(20,184,166,.23), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(37,99,235,.22), transparent 30%),
    var(--hero);
}

.hero-tag {
  display: inline-block;
  padding: 8px 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(94,234,212,.25);
  border-radius: 50px;
  color: #5eead4;
  background: rgba(20,184,166,.08);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2.5px;
}

.hero h1 span { color: #5eead4; }

.hero p {
  max-width: 650px;
  color: #b7c2d4;
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 25px 0 30px;
}

.btn-primary-custom {
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 12px 30px rgba(20,184,166,.18);
  transition: .2s;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-custom {
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  font-weight: 700;
}

.btn-outline-custom:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.stats {
  display: flex;
  gap: 42px;
  margin-top: 45px;
}

.stats div { display: flex; flex-direction: column; }

.stats strong { font-size: 1.35rem; }
.stats small { color: #94a3b8; }

.tech-visual {
  height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monitor {
  width: min(420px, 90%);
  padding: 25px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(10,22,42,.88);
  box-shadow: 0 35px 80px rgba(0,0,0,.42);
  transform: rotate(3deg);
}

.monitor-top {
  display: flex;
  gap: 7px;
  margin-bottom: 28px;
}

.monitor-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.line {
  height: 10px;
  margin: 17px 0;
  border-radius: 20px;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
  opacity: .7;
}

.w-90 { width: 90%; }
.w-80 { width: 80%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }
.w-45 { width: 45%; }

.console {
  margin-top: 30px;
  padding: 14px;
  border-radius: 10px;
  color: #5eead4;
  background: #030914;
  font: .82rem monospace;
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #fff;
  background: rgba(16,30,54,.9);
  box-shadow: 0 20px 45px rgba(0,0,0,.3);
  font-weight: 800;
}

.floating-card i { font-size: 1.3rem; color: #5eead4; }

.card-html { top: 7%; left: 2%; }
.card-css { top: 48%; right: 0; }
.card-js { bottom: 7%; left: 8%; }

.section { padding: 90px 0; }

.advantages { background: var(--surface); }

.section-title { margin-bottom: 42px; }
.section-title > span,
.cta-box > div > span,
.cart-panel .offcanvas-header span,
.checkout .modal-header span {
  color: var(--primary);
  font-size: .72rem;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.section-title h2 {
  margin: 9px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-title p { color: var(--muted); }

.feature-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: .25s;
}

.feature-card:hover { transform: translateY(-7px); }

.feature-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--primary);
  background: var(--surface-2);
  font-size: 1.35rem;
}

.feature-card h5 { font-weight: 800; }
.feature-card p { color: var(--muted); line-height: 1.7; }

.courses { background: var(--bg); }

.course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

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

.filter-btn {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.search-wrap {
  min-width: 260px;
  position: relative;
}

.search-wrap i {
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  padding: 11px 15px 11px 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
}

.course-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: .25s;
}

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

.course-cover {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.course-cover.programming { background: linear-gradient(135deg, #3730a3, #6366f1); }
.course-cover.data { background: linear-gradient(135deg, #92400e, #f59e0b); }
.course-cover.ia { background: linear-gradient(135deg, #701a75, #c026d3); }

.course-level {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(5px);
  font-size: .68rem;
  font-weight: 800;
}

.course-content { padding: 22px; }
.course-content h5 { font-weight: 800; line-height: 1.35; }

.rating { color: #f59e0b; font-size: .83rem; }
.course-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: .78rem;
  margin: 13px 0;
}

.course-meta i { color: var(--primary); }
.price { font-size: 1.35rem; font-weight: 800; }
.old-price { margin-left: 5px; color: var(--muted); text-decoration: line-through; font-size: .85rem; }

.no-results {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}

.no-results i { font-size: 3rem; }

.cta-section { padding: 0 0 90px; background: var(--bg); }

.cta-box {
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.cta-box h2 { margin: 10px 0; font-weight: 800; }
.cta-box p { color: #cbd5e1; margin: 0; }

.footer {
  padding: 65px 0 25px;
  color: #94a3b8;
  background: #071126;
}

.footer-brand { display: inline-block; margin-bottom: 14px; }
.footer h6 { color: #fff; font-weight: 800; margin-bottom: 18px; }
.footer a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 10px; }
.footer a:hover { color: #5eead4; }
.footer hr { border-color: rgba(255,255,255,.1); margin-top: 35px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; }

.cart-panel { width: min(450px, 100%); }
.cart-panel .offcanvas-header { padding: 25px; border-bottom: 1px solid var(--border); }
.cart-panel .offcanvas-header h4 { margin: 5px 0 0; font-weight: 800; }
.cart-panel .offcanvas-body { padding: 25px; background: var(--surface); }

.cart-item {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.cart-item h6 { margin: 0 0 5px; font-size: .88rem; font-weight: 800; }
.cart-item small { color: var(--muted); }

.remove-item {
  border: 0;
  background: transparent;
  color: #ef4444;
}

.cart-empty {
  padding: 55px 15px;
  text-align: center;
  color: var(--muted);
}

.cart-empty i { font-size: 3rem; }
.cart-summary { padding-top: 20px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-line.total { border-top: 1px solid var(--border); margin: 10px 0 15px; padding-top: 18px; font-size: 1.2rem; }
.cart-summary > small { display: block; text-align: center; color: var(--muted); margin-top: 12px; }

.checkout {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
}

.checkout .modal-header,
.checkout .modal-body { padding: 25px 28px; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 22px;
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-2);
}
.checkout-total strong { font-size: 1.3rem; }

.form-control,
.form-select {
  padding: 11px 13px;
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(20,184,166,.12);
}

.payment-info {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-2);
}

.payment-info .payment-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-weight: 800;
}

.payment-info .payment-title i {
  color: var(--primary);
  font-size: 1.25rem;
}

.payment-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  margin-top: 10px;
  border: 1px dashed var(--primary);
  border-radius: 10px;
  background: var(--surface);
}

.payment-number strong {
  font-size: 1.08rem;
  letter-spacing: .5px;
}

.copy-payment {
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}

.bank-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
}

.payment-confirmation {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.payment-confirmation .form-check-label {
  font-size: .88rem;
  line-height: 1.5;
}

.payment-confirmation .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 991px) {
  .navbar-nav { padding: 15px 0; }
  .hero { padding-top: 130px; }
}

@media (max-width: 767px) {
  .theme-btn span { display: none; }
  .hero h1 { letter-spacing: -1.5px; }
  .stats { gap: 25px; }
  .tech-visual { height: 350px; }
  .floating-card { transform: scale(.9); }
  .card-html { left: 0; }
  .card-css { right: -4px; }
  .cta-box { padding: 35px 25px; flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* ================================
   CHECKOUT / COMPRA EXITOSA
================================ */
.course-name-readonly {
  background: var(--surface-2) !important;
  font-weight: 700;
  color: var(--text) !important;
}

.success-modal {
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
}

.success-image {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto;
}

.success-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 50px;
  background: rgba(20,184,166,.1);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.success-modal h3 { font-weight: 800; }

.success-course-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-2);
}

.success-course-box small { color: var(--muted); font-weight: 600; }
.success-course-box strong { font-size: 1rem; }
.success-course-box span { color: var(--muted); font-size: .88rem; }
