/* ============ GoIA Media (Cursos de IA — grupo Go Media) ============ */
:root {
  --bg: #0d1117;
  --surface: #161d27;
  --surface-2: #1d2634;
  --border: #2a3547;
  --fg: #e8edf4;
  --muted: #9aa8bb;
  --accent: #7b5cff;
  --accent-strong: #5f3df0;
  --accent-soft: rgba(123, 92, 255, 0.14);
  --success: #2ecc71;
  --error: #ff5d5d;
  --radius: 14px;
  --maxw: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(123, 92, 255, 0.35); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; background:
  radial-gradient(60% 80% at 80% 10%, rgba(123, 92, 255, 0.18), transparent 60%),
  radial-gradient(40% 60% at 10% 90%, rgba(46, 204, 113, 0.08), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.hero-points li::before { content: "✓ "; color: var(--success); font-weight: 700; }

.hero-card { display: flex; justify-content: center; }
.mock-screen {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mock-top { height: 90px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #38bdf8); margin-bottom: 16px; }
.mock-chat { display: grid; gap: 8px; margin-bottom: 14px; }
.chat-msg { padding: 9px 12px; border-radius: 10px; font-size: 0.82rem; max-width: 88%; }
.chat-msg.user { background: var(--accent-soft); border: 1px solid var(--accent); justify-self: end; }
.chat-msg.bot { background: var(--surface-2); border: 1px solid var(--border); }
.mock-caption { color: var(--muted); font-size: 0.8rem; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-title { font-size: 1.8rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.section-sub { color: var(--muted); margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 34px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section-alt .feature { background: var(--bg); }
.feature-icon { font-size: 1.7rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Courses ---------- */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.course { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.course-featured { border-color: var(--accent); box-shadow: 0 12px 40px rgba(123, 92, 255, 0.25); }
.course-level { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.course h3 { font-size: 1.2rem; margin-bottom: 6px; }
.course-price { font-size: 2.1rem; font-weight: 800; margin-bottom: 18px; }
.course-price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.course-list { list-style: none; margin-bottom: 24px; flex: 1; }
.course-list li { padding: 7px 0; color: var(--muted); border-bottom: 1px dashed var(--border); }
.course-list li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; }
.faq details p { padding: 0 20px 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--fg); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.modal-panel { position: relative; width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--fg); }
.modal-panel h2 { font-size: 1.3rem; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
#enroll-form { display: grid; gap: 14px; }
#enroll-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
#enroll-form input {
  padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); font-size: 0.95rem;
}
#enroll-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--fg); }
.modal-error { color: var(--error); font-size: 0.85rem; min-height: 1.2em; }
.modal-note { color: var(--muted); font-size: 0.78rem; text-align: center; }

.enroll-done { text-align: center; display: grid; gap: 14px; justify-items: center; }
.enroll-done[hidden] { display: none; }
.done-check { font-size: 2.4rem; color: var(--success); }
#enroll-done-text { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .nav { gap: 14px; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; }
}

/* ---------- Página de pago (pago.html) ---------- */
.secure-tag { color: var(--muted); font-size: 0.9rem; }
.pago-wrap { max-width: 960px; margin: 0 auto; padding: 48px 24px 80px; }
.pago-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.pago-grid[hidden], .pago-empty[hidden] { display: none; }
.pago-empty { text-align: center; display: grid; gap: 14px; justify-items: center; padding-top: 60px; }
.pago-empty h1 { font-size: 1.5rem; }
.pago-empty p { color: var(--muted); }
.order-card, .pay-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.order-card h2, .pay-card h2 { font-size: 1.2rem; margin-bottom: 18px; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.order-line span { color: var(--muted); }
.order-bonus span, .order-bonus strong { color: var(--success); }
.order-sep { height: 1px; background: var(--border); margin: 16px 0; }
.order-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.9rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { word-break: break-word; }
#pay-form { display: grid; gap: 14px; }
#pay-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
#pay-form input { padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-size: 0.95rem; }
#pay-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
@media (max-width: 860px) { .pago-grid { grid-template-columns: 1fr; } }
