/* =========================================================
   ITIL 5 Foundation Bridge – Global Lynx
   ========================================================= */
:root {
  --navy:        #1c3c5e;
  --navy-dark:   #16324f;
  --navy-ink:    #0a3b5e;
  --cyan:        #29a9e0;
  --cyan-dark:   #1f95c9;
  --text:        #2f3a44;
  --text-soft:   #4c5661;
  --muted:       #8a94a0;
  --bg-light:    #f2f6fa;
  --line:        #d8e0e8;
  --white:       #ffffff;
  --radius:      8px;
  --maxw:        1200px;
  --shadow:      0 12px 30px rgba(16, 42, 67, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Mulish", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: "Poppins", Arial, sans-serif; color: var(--text); margin: 0; font-weight: 600; }

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

sup { font-size: 0.55em; vertical-align: super; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-navy  { background: var(--navy); color: #fff; }
.btn-navy:hover  { background: var(--navy-dark); }
.btn-cyan  { background: var(--cyan); color: #fff; }
.btn-cyan:hover  { background: var(--cyan-dark); }
.btn-block { width: 100%; padding: 13px; font-size: 16px; }
.btn-buy   { padding: 16px 52px; font-size: 18px; border-radius: 8px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  gap: 40px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-logo { display: block; height: 52px; width: auto; max-width: none; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy-ink); font-size: 15px; }
.brand-text strong:nth-child(2) { margin-top: 1px; }
.brand-text em { font-style: italic; font-size: 9px; color: var(--muted); margin-top: 2px; }
.brand-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: .9;
  margin-left: 6px;
}
.brand-badge small { font-size: 7px; letter-spacing: 1px; }
.brand-badge sup { font-size: .5em; }

/* Nav */
.main-nav { flex: 1 1 auto; margin-right: 60px; }
.main-nav ul { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 0; }
.main-nav a {
  font-family: "Poppins", sans-serif;
  color: #33404c;
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--cyan); text-decoration: none; }
.has-caret > a::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 7px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2329a9e0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}
.nav-cta .btn { color: #fff; }
.nav-cta .btn span { font-size: 16px; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero img { width: 100%; height: 520px; object-fit: cover; object-position: center; display: block; }

/* =========================================================
   CTA BAR
   ========================================================= */
.cta-bar {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #eceff3;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  flex-wrap: wrap;
}
.cta-facts { list-style: none; display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; flex-wrap: wrap; }
.cta-facts li { display: flex; align-items: center; gap: 9px; }
.cta-facts img { width: 29px; height: 29px; }
.cta-facts span { font-size: 15px; color: var(--cyan-dark); font-weight: 400; }
.cta-facts strong { color: var(--cyan-dark); font-weight: 700; }

/* =========================================================
   INTRO
   ========================================================= */
.intro { padding: 56px 0 48px; text-align: left; }
.intro .container { padding-left: 119px; }
.course-title { font-size: 40px; font-weight: 500; line-height: 1.05; }
.course-title .accent { color: var(--cyan); font-weight: 600; }
.subtitle { font-style: italic; color: #808080; font-size: 23px; margin: 4px 0 92px; font-family: "Poppins", sans-serif; }
.intro p { color: #000; margin: 0 0 34px; max-width: 640px; text-align: left; font-family: "Questrial", "Century Gothic", Arial, sans-serif; font-size: 24px; letter-spacing: 0.5px; line-height: 1.3; }

/* =========================================================
   SECTION TITLE (bar accent)
   ========================================================= */
.section-title {
  position: relative;
  font-size: 27px;
  font-weight: 500;
  padding-left: 20px;
  margin-bottom: 30px;
  line-height: 1.25;
}
.section-title .bar {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 5px;
  background: var(--cyan);
  border-radius: 3px;
}
.section-title .accent { color: var(--cyan); }

/* =========================================================
   INCLUDE LIST
   ========================================================= */
.includes { background: var(--bg-light); padding: 50px 0; }
.includes .section-title { font-size: 37px; }
.check-list { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; }
.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 23px;
  line-height: 1.35;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.check-list strong { color: var(--text); font-weight: 700; }

/* =========================================================
   DETAILS / ACCORDION
   ========================================================= */
.details { padding: 55px 0; }
.details .section-title { font-size: 37px; }
.details .container { padding-left: 39px; }
.details .accordion { max-width: 560px; margin: 0; }
.accordion { max-width: 560px; margin: 0 auto; }
.acc-item { margin-bottom: 12px; }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 18px;
  font-family: "Mulish", sans-serif;
  font-size: 20px;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  text-align: left;
}
.acc-head:hover { border-color: var(--cyan); }
.acc-item.active .acc-head { border-color: var(--cyan); box-shadow: 0 2px 10px rgba(41,169,224,.12); color: var(--navy-ink); }
.chev {
  width: 10px; height: 10px;
  border-right: 2px solid #7d8894;
  border-bottom: 2px solid #7d8894;
  transform: rotate(45deg);
  transition: transform .25s;
  flex-shrink: 0;
  margin-top: -3px;
}
.acc-item.active .chev { transform: rotate(-135deg); margin-top: 3px; border-color: var(--cyan); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}
.acc-item.active .acc-panel {
  max-height: 1200px;
  opacity: 1;
}
.acc-body { padding: 14px 18px 16px; color: var(--text-soft); font-size: 20px; }
.acc-body ul { margin: 8px 0 0; padding-left: 20px; }
.acc-body li { margin-bottom: 6px; }

/* =========================================================
   ESQUEMA
   ========================================================= */
.esquema { background: var(--bg-light); padding: 55px 0 60px; }
.esquema .section-title {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 10px;
  font-size: 34px;
}
.esquema-intro {
  max-width: none;
  margin: 0 0 56px;
  color: #000;
  padding-left: 20px;
  font-size: 21px;
}
.esquema-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 40px;
  max-width: none;
  width: 100%;
  margin: 0;
}
.esq-card { text-align: center; }
.esq-card img { width: 75px; height: 75px; margin: 0 auto 16px; }
.esq-card h3 { font-size: 21px; color: #000; font-weight: 700; margin-bottom: 10px; }
.esq-card p { font-size: 19px; color: #000; margin: 0; line-height: 1.35; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--navy); padding: 64px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 50px;
  align-items: center;
}
.contact-text { position: relative; padding-left: 22px; }
.contact-text .bar { position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--cyan); border-radius: 3px; }
.contact-text h2 { color: #fff; font-size: 40px; font-weight: 600; line-height: 1.25; }

.contact-card { background: #fff; border-radius: 16px; padding: 30px 30px 34px; box-shadow: var(--shadow); }
.contact-card h3 { text-align: center; color: var(--navy); font-size: 24px; margin-bottom: 20px; }
.contact-card .row { margin-bottom: 12px; }
.contact-card .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  font-family: "Mulish", sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.contact-card input:focus,
.contact-card textarea:focus { border-color: var(--cyan); }
.contact-card textarea { resize: vertical; }
.phone-row { display: flex; gap: 10px; }
.phone-row .flag {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0 12px; font-size: 15px; white-space: nowrap;
}
.caret-down { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #7d8894; }
.phone-row input { flex: 1; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-soft); margin: 6px 0 16px; }
.consent input { width: auto; margin-top: 2px; flex-shrink: 0; }
.consent.small { font-size: 12px; margin: 10px 0; }
.form-msg { text-align: center; font-size: 13px; margin: 12px 0 0; min-height: 16px; }
.form-msg.ok { color: #1f9d55; }
.form-msg.err { color: #d64545; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #fff; border-top: 1px solid #eef2f6; padding: 46px 0 40px; }
.site-footer .container {
  max-width: none;
  width: 100%;
  padding: 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 0.95fr 0.85fr 1.15fr 1.05fr 1.9fr;
  gap: 20px 24px;
  align-items: start;
}
.footer-brand-logo { display: block; height: 52px; width: auto; max-width: none; }
.footer-brand .social {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 10px;
  margin-top: 22px;
}
.footer-brand .social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .2s;
}
.footer-brand .social a img { width: 16px; height: 16px; display: block; }
.footer-brand .social a:hover { background: var(--cyan); }
.footer-col h4 {
  font-family: "Poppins", sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-ink);
  margin-bottom: 14px;
  line-height: 1.2;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #2f7eb5;
  font-size: 19px;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.25;
}
.footer-links a:hover { color: var(--cyan); }
.footer-col p {
  font-size: 18px;
  color: #5a6570;
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.3;
}
.footer-col .fi {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-address span { color: #5a6570; }
.footer-contact a {
  color: #2f7eb5;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: anywhere;
}
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .note { color: #5a6570; }
.subscribe p { display: block; margin-bottom: 14px; color: #5a6570; font-size: 18px; line-height: 1.3; }
.sub-fields { display: flex; gap: 10px; margin-bottom: 4px; }
.sub-fields input {
  flex: 1; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-family: "Mulish", sans-serif; font-size: 13px; outline: none;
}
.sub-fields input:focus { border-color: var(--cyan); }
.sub-form .consent.small a { color: #2f7eb5; font-weight: 700; text-decoration: none; }
.sub-form .consent.small a:hover { text-decoration: underline; }
.sub-form .btn { margin-top: 6px; padding: 11px 30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .esquema-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
  .intro br.lb,
  .esquema br.lb,
  .contact br.lb { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    margin-right: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #eef2f6;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav li { padding: 4px 24px; }
  .main-nav li a { display: block; padding: 8px 0; }
  .nav-cta { padding: 10px 24px !important; }
  .nav-cta .btn { width: 100%; }

  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-text h2 { font-size: 27px; }
  .contact-card { max-width: 500px; }
}

@media (max-width: 640px) {
  .hero img { height: 300px; }
  .course-title { font-size: 26px; }
  .section-title { font-size: 22px; }
  .contact-text h2 { font-size: 23px; }
  .cta-inner { justify-content: center; text-align: center; }
  .cta-facts { gap: 16px 22px; justify-content: center; }
  .btn-buy { width: 100%; }
  .esquema-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .row.two { grid-template-columns: 1fr !important; }
  .sub-fields { flex-direction: column; }
  .cta-bar { position: static; }
}

/* =========================================================
   CHECKOUT MODAL (compra Stripe)
   ========================================================= */
.checkout-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2147483647 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.checkout-modal-backdrop.is-open {
  display: flex;
}
.checkout-modal-dialog {
  background: #ffffff;
  width: 96%;
  max-width: 760px;
  min-width: 320px;
  max-height: 94vh;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  position: relative;
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
}
.checkout-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #4b5563;
  z-index: 2;
}
.checkout-modal-content {
  padding: 2.75rem 0 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}
.checkout-modal-content__summary {
  margin: 0.875rem 1.25rem 0;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.875rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: #f8fafc;
  flex-shrink: 0;
}
.checkout-modal-content__summary-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.checkout-modal-content__certifier-logo {
  width: 64px;
  max-width: 64px;
  height: auto;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.15rem;
  border: 1px solid #e5e7eb;
}
.checkout-modal-content__course-name {
  color: #0f172a;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  margin: 0;
}
.checkout-modal-content__summary-price {
  text-align: right;
  flex-shrink: 0;
}
.checkout-modal-content__price-label {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}
.checkout-modal-content__price-value {
  color: #0f172a;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0;
  white-space: nowrap;
}
.checkout-modal-content__invoice-notice {
  margin: 0.625rem 1.25rem 0;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  flex-shrink: 0;
}
.checkout-modal-content__invoice-notice-text {
  color: #1e3a5f;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}
.checkout-modal-content__invoice-notice-link {
  color: #15497a;
  font-weight: 700;
  text-decoration: underline;
}
.checkout-modal-content__form {
  flex: 1;
  min-height: 0;
  padding: 0.875rem 1.25rem 1.25rem;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}
.checkout-modal-content__fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.checkout-modal-content__status {
  color: #0f172a;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}
.checkout-modal-content__name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.checkout-modal-content__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}
.checkout-modal-content__field input,
.checkout-modal-content__field select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-family: "Mulish", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #0f172a;
  outline: none;
  background: #fff;
}
.checkout-modal-content__field input:focus,
.checkout-modal-content__field select:focus {
  border-color: var(--cyan);
}
.checkout-modal-content__pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem auto 0;
  min-width: 220px;
  padding: 0.95rem 2.5rem;
  border: none;
  border-radius: 0.65rem;
  background: var(--cyan);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.checkout-modal-content__pay-btn:hover:not(:disabled) {
  background: var(--cyan-dark);
}
.checkout-modal-content__pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.checkout-modal-content__pay-btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.checkout-modal-content__pay-btn--outline:hover:not(:disabled) {
  background: #f1f5f9;
}
body.checkout-open header,
body.checkout-open nav {
  pointer-events: none;
  z-index: 0 !important;
}
body.checkout-open > :not(.checkout-modal-backdrop) {
  position: relative;
  z-index: 0 !important;
  pointer-events: none !important;
}
body.checkout-open iframe[name^='__privateStripeFrame'],
body.checkout-open iframe[src*='js.stripe.com'],
body.checkout-open iframe[src*='hooks.stripe.com'] {
  z-index: 2147483648 !important;
}
@media (max-width: 768px) {
  .checkout-modal-backdrop { padding: 0.5rem; }
  .checkout-modal-dialog {
    width: 98%;
    max-height: 96vh;
    border-radius: 1rem;
  }
  .checkout-modal-content {
    max-height: 96vh;
  }
  .checkout-modal-content__summary-price {
    text-align: left;
    width: 100%;
  }
  .checkout-modal-content__name-row {
    grid-template-columns: 1fr;
  }
  .checkout-modal-content__pay-btn {
    width: 100%;
    min-width: 0;
  }
}
