/* VACU · Doctor of Leadership (D.Lead.) · estilos del sitio */

:root {
  --navy: #0f2747;
  --navy-deep: #0a1c34;
  --blue: #1B3A6B;
  --gold: #E8A020;
  --gold-dark: #c98a12;
  --ink: #1c2430;
  --muted: #5b6778;
  --line: #dde3ec;
  --soft: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 39, 71, 0.10);
  --max: 1180px;
  --serif: Georgia, "Times New Roman", "Noto Serif KR", "Nanum Myeongjo", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

:lang(ko) {
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", Georgia, serif;
  --sans: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
}

:lang(zh) {
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

:lang(ko) body, :lang(zh) body { line-height: 1.8; word-break: keep-all; }
:lang(zh) body { word-break: normal; }

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

a { color: var(--blue); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 200;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.2;
  padding: 14px 24px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn .icon { width: 18px; height: 18px; flex: none; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-uni { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #c9d6e8; }
.brand-prog { font-family: var(--serif); font-size: 19px; font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; }
.main-nav a:hover { color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--gold); }

.lang-switch { display: flex; gap: 4px; align-items: center; font-size: 14px; }
.lang-switch a {
  color: #c9d6e8; text-decoration: none; padding: 4px 8px; border-radius: 6px; font-weight: 600;
}
.lang-switch a:hover { color: var(--white); background: rgba(255, 255, 255, 0.10); }
.lang-switch a[aria-current="true"] { color: var(--navy); background: var(--white); }

.header-cta { padding: 10px 18px; font-size: 15px; }

.menu-toggle {
  display: none; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.6); color: var(--white);
  border-radius: 8px; padding: 8px 12px; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ---------- Portada ---------- */

.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 70% center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 52, 0.92) 0%, rgba(10, 28, 52, 0.70) 38%, rgba(10, 28, 52, 0.15) 70%, rgba(10, 28, 52, 0.05) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 0 104px; max-width: 620px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
:lang(ko) .eyebrow, :lang(zh) .eyebrow { letter-spacing: 0.6px; }
.hero h1 { color: var(--white); font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 18px; }
.hero h1 .abbr { color: var(--gold); font-size: 0.55em; display: block; margin-top: 8px; letter-spacing: 1px; }
.hero p.lead { font-size: 19px; color: #e4ebf5; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero--plain { background: var(--navy) url("../img/IMG-13_fondo_textura.webp") center / cover no-repeat; }
.hero--plain::after { background: linear-gradient(90deg, rgba(10, 28, 52, 0.55), rgba(10, 28, 52, 0.15)); }

/* ---------- Secciones ---------- */

.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #e4ebf5; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section--navy .section-head p { color: #c9d6e8; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; display: block; }
.section--navy .kicker { color: var(--gold); }

/* ---------- Tarjetas de los dos tracks ---------- */

.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.track-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 36px 34px; box-shadow: var(--shadow);
}
.track-card h3 { font-size: 28px; margin-bottom: 6px; }
.track-card .track-label { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.track-card p { color: var(--ink); flex: 1; font-size: 18px; }
.track-card .btn { align-self: flex-start; margin-top: 10px; }
.badge-soon {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: #fdf1db;
  border: 1px solid #f3d293; border-radius: 99px; padding: 3px 12px; margin-bottom: 14px; align-self: flex-start;
}

/* ---------- Franja de datos ---------- */

.facts { background: var(--navy) url("../img/IMG-13_fondo_textura.webp") center / cover no-repeat; color: var(--white); padding: 36px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 3px solid var(--gold); }
.facts strong { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--white); }
.facts span { font-size: 14px; color: #c9d6e8; line-height: 1.4; }

/* ---------- Navegación interna del track ---------- */

.page-nav { position: sticky; top: 74px; z-index: 90; background: var(--white); border-bottom: 1px solid var(--line); }
.page-nav ul { list-style: none; margin: 0 auto; padding: 0 24px; max-width: var(--max); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.page-nav ul::-webkit-scrollbar { display: none; }
.page-nav a {
  display: block; white-space: nowrap; padding: 14px 12px; font-size: 15px; font-weight: 600;
  color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent;
}
.page-nav a:hover { color: var(--navy); }
.page-nav a.is-active { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- Texto con imagen ---------- */

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.prose p { font-size: 18px; }

/* ---------- Cómo se estudia ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: paso; }
.step { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.step-body { padding: 22px 22px 26px; }
.step-body h3 { font-size: 20px; margin-bottom: 8px; }
.step-body h3::before {
  counter-increment: paso; content: counter(paso);
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 10px;
  border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--sans); font-size: 15px; vertical-align: 2px;
}
.step-body p { font-size: 16px; color: var(--muted); margin: 0; }

.grading { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.grading div { padding: 22px 26px; border-right: 1px solid var(--line); }
.grading div:last-child { border-right: 0; }
.grading strong { display: block; font-family: var(--serif); font-size: 34px; color: var(--navy); line-height: 1.1; }
.grading span { color: var(--muted); font-size: 15px; }
.grading-note { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- Acordeones ---------- */

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 700; color: var(--navy); font-size: 18px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 400;
  color: var(--navy); border: 1.5px solid var(--line); transition: transform 0.2s ease, background 0.2s ease;
}
.accordion details[open] summary::after { content: "\2212"; background: var(--gold); border-color: var(--gold); }
.accordion .code { flex: none; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--gold-dark); min-width: 72px; }
.accordion .credits { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.accordion .panel { padding: 0 4px 22px 92px; color: var(--ink); }
.accordion--faq .panel { padding-left: 4px; }
.accordion .panel p:last-child { margin-bottom: 0; }

.outcomes { margin: 0; padding-left: 22px; }
.outcomes li { margin-bottom: 8px; }

/* ---------- Tabla de libros ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
table.books { width: 100%; border-collapse: collapse; font-size: 16px; }
table.books th, table.books td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.books th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; }
table.books td:first-child { white-space: nowrap; font-weight: 700; color: var(--navy); }
table.books tr:last-child td { border-bottom: 0; }
table.books .book-title { font-style: italic; }
table.books .isbn { color: var(--muted); font-size: 14px; }

/* ---------- Bloques informativos ---------- */

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-size: 21px; }
.info-card p { color: var(--muted); font-size: 16px; }
.info-card .btn { margin-top: 6px; }

.pending {
  border: 2px dashed var(--gold); background: #fffaf0; border-radius: var(--radius); padding: 22px 26px; color: var(--ink);
}
.accreditation { max-width: 860px; }
.pending-tag {
  display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 700; color: #8a5a00;
  background: #fffaf0; border: 1.5px dashed var(--gold); border-radius: 6px; padding: 1px 8px; vertical-align: 2px;
}

/* ---------- Banda con imagen ---------- */

.band { position: relative; color: var(--white); overflow: hidden; background: var(--navy); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 52, 0.94) 0%, rgba(10, 28, 52, 0.80) 45%, rgba(10, 28, 52, 0.25) 100%); }
.band .container { position: relative; z-index: 2; }

/* ---------- Formulario ---------- */

.inquiry { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.inquiry-intro h2 { color: var(--white); }
.inquiry-intro p { color: #d9e3f0; font-size: 18px; }
.inquiry-intro .contact-line { margin-top: 18px; font-size: 16px; }
.inquiry-intro a { color: var(--gold); }
form.inquiry-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid #c8d1de; border-radius: 8px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.15); }
.form-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-status { font-size: 15px; font-weight: 600; color: var(--blue); min-height: 1.2em; margin: 0; }

/* ---------- Video ---------- */

.video-teaser { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.video-thumb {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--navy); width: 100%;
}
.video-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.9; transition: opacity 0.2s ease, transform 0.4s ease; }
.video-thumb:hover img { opacity: 1; transform: scale(1.02); }
.video-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.video-thumb .play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--navy); }

dialog.video-dialog { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: hidden; }
dialog.video-dialog::backdrop { background: rgba(6, 16, 31, 0.86); }
dialog.video-dialog video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.dialog-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.92); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- Pie ---------- */

.site-footer { background: var(--navy-deep); color: #b9c7da; padding: 48px 0 40px; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { display: block; color: var(--white); font-family: var(--serif); font-size: 18px; }
.site-footer a { color: #e4ebf5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Barra fija en el teléfono ---------- */

.mobile-cta { display: none; }

/* ---------- Aparecer al bajar (solo con JavaScript y sin pedido de menos movimiento) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .video-thumb img { transition: none; }
}

/* ---------- Pantallas medianas ---------- */

@media (max-width: 1080px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 16px; }
  .main-nav .nav-extra { display: none; }
}

/* ---------- Teléfono ---------- */

@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 74px; }
  .menu-toggle { display: inline-block; }
  .header-inner { min-height: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand-prog { font-size: 17px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 2px solid var(--gold); padding: 8px 24px 18px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.10); font-size: 17px; }
  .main-nav .nav-extra { display: block; }
  .main-nav .lang-switch { padding-top: 14px; flex-wrap: wrap; }
  .main-nav .lang-switch a { border-bottom: 0; padding: 6px 10px; font-size: 15px; }
  .header-cta { display: none; }
  .page-nav { top: 66px; }

  .hero::after { background: linear-gradient(180deg, rgba(10, 28, 52, 0.90) 0%, rgba(10, 28, 52, 0.72) 45%, rgba(10, 28, 52, 0.20) 100%); }
  .hero picture img { object-position: center bottom; }
  .hero--business picture img { object-position: 76% center; }
  .brand-uni { font-size: 10px; letter-spacing: 0.8px; }
  .hero-content { padding: 56px 0 300px; }
  .hero p.lead { font-size: 17px; }
  .hero--plain .hero-content { padding-bottom: 64px; }

  .section { padding: 60px 0; }
  .tracks, .split, .inquiry, .video-teaser, .info-grid { grid-template-columns: 1fr; gap: 28px; }
  .track-card { padding: 28px 24px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .grading { grid-template-columns: 1fr; }
  .grading div { border-right: 0; border-bottom: 1px solid var(--line); }
  .grading div:last-child { border-bottom: 0; }
  .accordion .panel { padding-left: 4px; }
  .accordion summary { flex-wrap: wrap; gap: 4px 12px; font-size: 17px; }
  .accordion .code { min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  form.inquiry-form { padding: 24px 20px; }
  .band::after { background: rgba(10, 28, 52, 0.86); }

  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 28, 52, 0.97); border-top: 2px solid var(--gold);
  }
  .mobile-cta .btn { flex: 1; padding: 12px 10px; font-size: 15px; }
}
