/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1D9E75;
  --green-dark: #085041;
  --green-light: #E1F5EE;
  --green-mid: #2bb88a;
  --text: #1A1A1A;
  --text-muted: #555555;
  --border: #e2e8f0;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --max-w: 920px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--gray { background: var(--bg-light); }
.section--green { background: var(--green-light); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}
.nav__logo .logo-text {
  display: inline;
  letter-spacing: normal;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav__links a {
  color: var(--text);
  font-size: .88rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s;
  font-weight: 500;
}
.nav__links a:hover { background: var(--green-light); text-decoration: none; }
.nav__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: 6px;
}
.nav__cta:hover { background: var(--green-dark) !important; }
.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .25s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: .82rem;
  margin-bottom: 20px;
  letter-spacing: .06em;
  font-weight: 600;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -.02em;
}
.hero__sub {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero__checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 36px;
  font-size: .93rem;
}
.hero__checks li::before { content: "✅ "; }
.hero__note {
  font-size: .88rem;
  opacity: .78;
  margin-top: 14px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.14); text-decoration: none; }
.btn:active { transform: none; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--green-dark); border: 2px solid var(--green); }
.btn--secondary:hover { background: var(--green-light); color: var(--green-dark); }
.btn--large { padding: 18px 44px; font-size: 1.08rem; }
.btn--full { display: block; width: 100%; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
  padding: 10px 0;
  font-size: .82rem;
  font-weight: 500;
}
.trust-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
}
.trust-bar__items span::before { content: "✓ "; color: #7fffcb; font-weight: 700; }

/* ===== HEADINGS ===== */
h2 {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--green-dark);
  line-height: 1.3;
  letter-spacing: -.01em;
}
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* ===== VIDEO EMBED ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

/* ===== COURSE CARD ===== */
.course-card {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(29,158,117,.15);
  position: relative;
}
.course-card__badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.course-card h3 { font-size: 1.3rem; color: var(--green-dark); margin-bottom: 8px; }
.course-card p { font-size: .92rem; color: var(--text-muted); margin-bottom: 16px; }
.course-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .88rem;
}
.course-card li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.step__num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ===== CHECK LIST ===== */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: "✅"; flex-shrink: 0; margin-top: 1px; }

/* ===== ROLES ===== */
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.role-tag {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 500;
}

/* ===== LEGAL BOX ===== */
.legal-box {
  background: #f0f9f5;
  border: 1px solid #a7dfc9;
  border-radius: var(--radius);
  padding: 24px;
}
.legal-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.legal-box li::before { content: "⚖️ "; }

/* ===== AUTHOR CARD ===== */
.author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.author-card__avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--green);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.author-card__title { font-size: .82rem; color: var(--text-muted); margin-bottom: 3px; }
.author-card__name { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: 3px; }
.author-card__cred { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.author-card blockquote {
  font-style: italic; color: var(--text-muted);
  border-left: 3px solid var(--green-mid);
  padding-left: 14px; margin-top: 10px; font-size: .92rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
}
.testimonial blockquote { font-style: italic; font-size: .92rem; margin-bottom: 12px; color: var(--text); }
.testimonial cite { font-size: .82rem; color: var(--text-muted); font-style: normal; font-weight: 600; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 20px; font-size: .95rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: var(--text); gap: 14px; line-height: 1.4;
}
.faq__q::after { content: "+"; font-size: 1.4rem; color: var(--green); flex-shrink: 0; transition: transform .2s; font-weight: 300; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 20px 16px; color: var(--text-muted); font-size: .92rem; line-height: 1.7; border-top: 1px solid var(--border); }
.faq__item.open .faq__a { display: block; }

/* ===== EXAM ===== */
.exam-section {
  background: var(--bg-light);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}
.exam-section h2 { margin-bottom: 8px; }
.exam__meta { font-size: .88rem; color: var(--text-muted); margin-bottom: 24px; }
.question { margin-bottom: 28px; }
.question__text { font-weight: 600; margin-bottom: 12px; font-size: .98rem; }
.question__options { display: flex; flex-direction: column; gap: 10px; }
.option-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .93rem;
  transition: border-color .15s, background .15s;
}
.option-label:hover { border-color: var(--green); background: var(--green-light); }
.option-label input { flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
.option-label.selected { border-color: var(--green); background: var(--green-light); }
.exam__divider {
  text-align: center; color: var(--text-muted);
  font-size: .88rem; margin: 32px 0;
  display: flex; align-items: center; gap: 14px;
}
.exam__divider::before, .exam__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
#exam-result { margin-top: 24px; }
.result-pass {
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
}
.result-pass h3 { color: var(--green-dark); font-size: 1.3rem; margin-bottom: 8px; }
.result-fail {
  background: #fff8f0;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 24px;
}
.result-fail h3 { color: #92400e; margin-bottom: 8px; }

/* ===== REGISTER FORM ===== */
.register-form {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(29,158,117,.1);
}
.register-form h3 { color: var(--green-dark); margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.form-group input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; transition: border-color .2s; color: var(--text);
}
.form-group input:focus { outline: none; border-color: var(--green); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.form-check input { flex-shrink: 0; margin-top: 2px; accent-color: var(--green); }
.input-with-prefix { display: flex; align-items: stretch; }
.input-prefix-select { padding: 0 10px; background: var(--bg-light); border: 1.5px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: .9rem; color: var(--text); cursor: pointer; min-width: 100px; }
.input-prefix-select:focus { outline: none; border-color: var(--green); }
.input-after-prefix { border-radius: 0 var(--radius) var(--radius) 0 !important; }
.form-error { color: #dc2626; font-size: .83rem; margin-top: 4px; }

/* ── Tarjetas de motivo del carnet ── */
.motivo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.motivo-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s, background .18s;
  background: #fff;
  font-weight: normal;
}
.motivo-option:hover { border-color: var(--green); background: var(--green-light); }
.motivo-option input[type=radio] { display: none; }
.motivo-option.selected {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(29,158,117,.15);
}
.motivo-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.motivo-texto { font-size: .82rem; color: var(--text); line-height: 1.4; }
.motivo-texto small { color: var(--text-muted); font-size: .75rem; }
@media (max-width: 480px) {
  .motivo-grid { grid-template-columns: 1fr; }
}

/* ===== NOTICE ===== */
.notice {
  background: #fffbeb; border-left: 4px solid #f59e0b;
  border-radius: var(--radius); padding: 14px 18px;
  font-size: .88rem; color: #78350f; margin: 18px 0;
}

/* ===== CTA SECTION ===== */
.cta-section { background: var(--green-dark); color: var(--white); text-align: center; padding: 56px 0; }
.cta-section h2 { color: var(--white); }
.cta-section p { opacity: .85; max-width: 500px; margin: 0 auto 26px; }

/* ===== VERIFY ===== */
.verify-form {
  max-width: 500px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.verify-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.verify-form input {
  width: 100%; padding: 13px 14px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; margin-bottom: 14px;
}
.verify-form input:focus { outline: none; border-color: var(--green); }
#verify-result { margin-top: 16px; padding: 16px; border-radius: var(--radius); display: none; font-weight: 600; font-size: .93rem; }
#verify-result.ok { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); }
#verify-result.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.blog-card__cat { background: var(--green); color: var(--white); font-size: .72rem; font-weight: 700; padding: 4px 12px; letter-spacing: .05em; text-transform: uppercase; }
.blog-card__body { padding: 18px; }
.blog-card h3 { font-size: .97rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.blog-card .read-more { font-size: .85rem; font-weight: 600; color: var(--green); }

/* ===== ARTICLE ===== */
.article-content { max-width: 720px; }
.article-content h2 { font-size: 1.35rem; margin-top: 32px; margin-bottom: 12px; }
.article-content h3 { margin-top: 22px; margin-bottom: 8px; }
.article-content p { line-height: 1.75; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 14px; line-height: 1.7; }
.article-content strong { color: var(--green-dark); }
.article-author {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--border);
  margin-bottom: 28px; font-size: .88rem; color: var(--text-muted);
}
.article-author__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.article-cta {
  background: var(--green-light); border: 2px solid var(--green);
  border-radius: 12px; padding: 28px; margin: 36px 0; text-align: center;
}
.article-cta h3 { color: var(--green-dark); margin-bottom: 8px; }

/* ===== FOOTER ===== */
.site-footer { background: #0a0a0a; color: #9ca3af; padding: 40px 0 22px; font-size: .83rem; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px; margin-bottom: 28px;
}
.footer__brand { color: var(--white); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.footer__author { font-size: .78rem; margin-top: 8px; line-height: 1.5; }
.footer__col h4 { color: var(--white); font-size: .85rem; margin-bottom: 10px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.footer__col a { color: #9ca3af; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid #1f2937; padding-top: 18px; text-align: center; line-height: 1.9; }
.footer__bottom a { color: #9ca3af; }

/* ===== PAGE HEADER ===== */
.page-header { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: var(--white); padding: 44px 0 36px; }
.page-header h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: 10px; letter-spacing: -.02em; }
.page-header p { opacity: .88; font-size: 1rem; max-width: 600px; }

/* ===== GRACIAS ===== */
.gracias-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--white); border-radius: 16px;
  padding: 48px 36px; box-shadow: 0 8px 40px rgba(29,158,117,.12);
  border-top: 4px solid var(--green);
}
.gracias-box .big-check { font-size: 4rem; margin-bottom: 16px; display: block; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: var(--white);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; margin-top: 20px;
  transition: background .15s;
}
.share-btn:hover { background: #128c7e; color: var(--white); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--green); padding: 14px; gap: 4px; }
  .nav__links.open { display: flex; }
  .nav { position: relative; }
  .nav__burger { display: flex; }
  .author-card { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.65rem; }
  .course-card { max-width: 100%; }
  .exam-section { padding: 20px; }
}
