:root {
  --sky: #35aefd;
  --sky-deep: #1b93e6;
  --blue: #125eaa;
  --navy: #0b3d6e;
  --ink: #16324f;
  --text: #3c5164;
  --muted: #6d8092;
  --line: #e4edf5;
  --paper: #f4f8fb;
  --white: #ffffff;
  --ok: #14875c;
  --ok-soft: #e7f7f0;
  --warn: #b7791f;
  --warn-soft: #fff6e5;
  --danger: #c24141;
  --shadow: 0 10px 24px rgba(11, 39, 68, 0.08);
  --radius: 12px;
  --font: "Outfit", sans-serif;
  --header: 72px;
}
::selection { background: #d4e8f7; color: #0b3d6e; }
:focus-visible { outline: 2px solid #125eaa; outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #b7c9d8; border-radius: 99px; border: 2px solid #f4f8fb; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; caret-color: var(--blue); }
input, select, textarea { border-radius: 8px; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { display: none; }
.lead { color: var(--text); font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 8px 16px rgba(11, 61, 110, .16); }
.btn-primary:hover { background: var(--navy); }
.btn-sky { background: var(--sky); color: #063154; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid #c9dced; }
.btn-white { background: white; color: var(--navy); }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.topbar {
  background: var(--navy);
  color: #d7e8f8;
  font-size: 13px;
}
.topbar .wrap, .header .wrap, .footer-grid { display: flex; align-items: center; }
.topbar .wrap { justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a:hover { color: white; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--header);
}
.header .wrap { height: 100%; justify-content: space-between; gap: 20px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 560; color: var(--navy); }
.nav a { position: relative; padding: 6px 0; }
.nav a.active, .nav a:hover { color: var(--blue); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #071e36 0%, #0b3d6e 58%, #125eaa 100%);
  color: white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; font-weight: 650; letter-spacing: -0.03em; }
.hero .lead { color: #d5e9f8; margin: 18px 0 26px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-panel img { height: 108px; width: 100%; object-fit: contain; border-radius: 8px; background: white; padding: 8px; }
.hero-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #e7f4ff;
}

.section { padding: 76px 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.12; }
.section-head p { margin-top: 10px; color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card .media { height: 170px; background: #d7e6f3 center/cover no-repeat; }
.card .body, .pad { padding: 18px 18px 20px; }
.card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.card p { color: var(--text); font-size: 14.5px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e8f5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}
.meta { display: flex; gap: 12px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.plan-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0; color: var(--text); font-size: 13px; }
.plan-bar { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-bar strong { font-size: 16px; letter-spacing: -0.02em; }
.plan-bar .btn { width: 100%; }
.plan-sheet { display: grid; gap: 12px; align-content: start; }
.plan-sheet .btn { width: 100%; }
.plan-sheet ul { margin: 0; padding: 0; list-style: none; display: grid; }
.plan-sheet li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-sheet li span { color: var(--text); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why article {
  padding: 18px 20px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.why strong { display: block; font-size: 18px; margin-bottom: 6px; }
.why span { color: var(--text); font-size: 15px; line-height: 1.55; }
.mark {
  display: block;
  width: auto; height: auto;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.portrait-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { background: white; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.person img { height: 260px; width: 100%; object-fit: cover; object-position: top; background: #d9e7f3; }
.person div { padding: 14px 16px 16px; }
.person small { color: var(--muted); }

.band {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.band p { color: #e4f2fc; margin-top: 8px; max-width: 560px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}
.chip.on { background: var(--navy); color: white; border-color: var(--navy); }

.form {
  display: grid;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--navy); }
input, select, textarea {
  border: 1px solid #d5e2ee;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  color: var(--ink);
  background: #fbfdff;
}
textarea { min-height: 120px; resize: vertical; }
.notice {
  background: var(--ok-soft);
  color: #0f6b48;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.demo-box {
  background: #f3f8fd;
  border: 1px dashed #b7d4ee;
  border-radius: 16px;
  padding: 14px;
  font-size: 14px;
  color: var(--text);
}
.demo-box button { margin: 6px 8px 0 0; }

.footer { background: #072744; color: #d5e4f2; padding: 48px 0 18px; }
.footer-grid { align-items: flex-start; justify-content: space-between; gap: 28px; display: grid; grid-template-columns: 1.3fr repeat(3, .8fr); }
.footer h4 { color: white; margin-bottom: 10px; }
.footer a, .footer p { color: #c5d8ea; font-size: 14px; }
.footer li { list-style: none; margin: 7px 0; }
.footer ul { margin: 0; padding: 0; }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 14px; font-size: 12px; color: #9eb4c9; }
.footer img { height: 42px; width: auto; margin-bottom: 12px; }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  background: #1fa855; color: white; border-radius: 999px;
  padding: 12px 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(20,120,60,.3);
}

.page-hero { padding: 42px 0 10px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; }

.detail { display: grid; grid-template-columns: 1.4fr .7fr; gap: 22px; align-items: start; }
.cover { height: 280px; border-radius: 22px; background: #d5e4f1 center/cover no-repeat; }
.lesson-list { display: grid; gap: 10px; margin-top: 16px; }
.lesson-list article { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }

.login-layout { display: grid; grid-template-columns: .9fr 1.1fr; min-height: calc(100vh - 120px); }
.login-side {
  background: linear-gradient(180deg, #08345f, #125eaa);
  color: white;
  padding: 48px 36px;
}
.login-side h1 { font-size: 36px; letter-spacing: -0.03em; margin: 12px 0; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8fbfe; }

.bar { height: 8px; background: #e6eef6; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); }

.cert-sheet {
  width: min(820px, calc(100% - 40px));
  margin: 28px auto;
  background: white;
  border: 10px solid #0b3d6e;
  outline: 3px solid #35aefd;
  outline-offset: -16px;
  padding: 42px 48px 36px;
  text-align: center;
  color: #16324f;
}
.cert-sheet h1 { font-size: 34px; letter-spacing: .14em; font-weight: 650; margin: 8px 0 4px; }
.cert-name { font-size: 32px; color: #125eaa; margin: 10px 0; }
.cert-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; text-align: left; }
.cert-meta div { background: #f4f8fb; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.signs { display: flex; justify-content: space-between; margin-top: 36px; gap: 20px; }
.signs div { width: 220px; border-top: 1px solid #9bb0c4; padding-top: 8px; font-size: 13px; }
.cert-qr { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; text-align: left; }
.cert-qr svg { width: 96px; height: 96px; display: block; }
.cert-qr p { font-size: 13px; color: #16324f; line-height: 1.4; }

body.campus { background: var(--c-bg); color: var(--c-text); }
.campus-shell { display: grid; grid-template-columns: 92px 1fr; min-height: 100vh; }
.side {
  background: #0b2744;
  padding: 14px 8px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.side-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: white; display: grid; place-items: center; margin-bottom: 16px;
}
.side-logo img { width: 28px; height: 28px; object-fit: contain; }
.side nav { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.side-foot { margin-top: auto; }
.side a, .side button {
  width: 76px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}
.side svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side a:hover, .side button:hover { background: rgba(255,255,255,.08); }
.side a.on { background: #125eaa; color: white; }
.main { padding: 22px 26px 48px; }
.campus-top {
  height: 168px;
  border-radius: 22px;
  background: #0b3d6e;
  position: relative;
  margin-bottom: 54px;
}
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: #0e1726; color: white; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; border: 4px solid #0e1726;
  position: absolute; left: 28px; bottom: -36px;
}
.profile-id { padding: 8px 28px 0 140px; }
.profile-id h1 { font-size: 28px; }
.profile-id p { color: var(--c-dim); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat {
  background: var(--c-panel); border: 1px solid var(--c-line);
  border-radius: 16px; padding: 14px 16px;
}
.stat b { display: block; font-size: 26px; color: var(--c-strong); }
.stat span { color: var(--c-dim); font-size: 13px; }
.panel {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 16px;
}
.panel h2, .panel h3 { margin-bottom: 10px; }
.dark-card {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
}
.dark-card .media { height: 120px; background: #24344c center/cover no-repeat; }
.dark-card .body { padding: 12px 14px 14px; }
.dark-card p, .muted, .profile-id p, .stat span { color: var(--c-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.q { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.q label { color: var(--c-soft); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.pill { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.pill.ok { background: rgba(20,135,92,.2); color: #8decc4; }
.pill.warn { background: rgba(183,121,31,.2); color: #ffd489; }
.pill.sky { background: rgba(53,174,253,.16); color: var(--c-link); }
.campus .btn-ghost { color: #d5e8f8; border-color: rgba(255,255,255,.16); }
.campus label { color: var(--c-soft); }
form.panel { display: grid; gap: 12px; }
.campus input, .campus select, .campus textarea { background: var(--c-bg); color: var(--c-strong); border-color: var(--c-line-2); }
.campus input::placeholder, .campus textarea::placeholder { color: var(--c-dim); }
.campus table, .campus .table-wrap { background: transparent; color: var(--c-text); }
.campus th { background: var(--c-panel); color: var(--c-dim); }
.campus td, .campus th { border-color: var(--c-line); }
.lesson-read { background: var(--c-panel); border-radius: 16px; padding: 16px 18px; }
.mobile-side { display: none; }

.learn-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.learn-head h1 { font-size: 28px; letter-spacing: -0.03em; }
.learn-filters { display: flex; gap: 8px; }
.learn-filters button {
  border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer;
  background: var(--c-panel); color: var(--c-soft); font-weight: 650;
}
.learn-filters button.on { background: #125eaa; color: white; }
.learn-title { margin: 8px 0 10px; font-size: 20px; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.learn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 14px; overflow: auto; padding-bottom: 8px; margin-bottom: 18px; }
.learn-card { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.learn-cover { display: block; height: 148px; background: #24344c center/cover no-repeat; position: relative; }
.learn-cover span { position: absolute; top: 10px; left: 10px; background: #125eaa; color: white; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.learn-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.learn-body h3 { font-size: 16px; line-height: 1.3; }
.learn-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--c-dim); }
.campus .plan-facts { color: var(--c-soft); margin: 0; }
.campus .plan-bar { border-top-color: var(--c-line); }
.campus .plan-bar strong { color: var(--c-strong); font-size: 14px; font-weight: 600; }
.back-link { color: var(--c-link); font-size: 14px; font-weight: 600; }
.course-title { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; margin: 8px 0 6px; }
.course-page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; margin-top: 8px; }
.course-main { display: grid; gap: 12px; }
.course-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.course-tabs a { padding: 8px 12px; border-radius: 8px; color: var(--c-soft); font-weight: 600; }
.course-tabs a.on { background: #125eaa; color: white; }
.session-card, .exam-card { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 12px; padding: 14px 16px; }
.session-card h3, .exam-card h3 { margin-bottom: 8px; }
.rec-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 8px 0 12px; }
.rec-thumb { height: 86px; border-radius: 8px; background: #24344c center/cover no-repeat; display: grid; place-items: center; position: relative; }
.rec-thumb svg, .rec-copy .btn svg, .mat svg, .file-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rec-thumb svg { width: 28px; height: 28px; color: var(--c-strong); background: rgba(11, 39, 68, .55); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.rec-copy { display: grid; justify-items: start; gap: 4px; }
.rec-copy p { color: var(--c-soft); font-size: 13px; }
.rec-time { display: inline-flex; border: 1px solid var(--c-line-2); border-radius: 8px; padding: 2px 8px; }
.mat { border-top: 1px solid var(--c-line); }
.mat summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; font-weight: 650; }
.mat summary::-webkit-details-marker { display: none; }
.mat summary span { display: inline-flex; align-items: center; gap: 8px; }
.mat summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.mat[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.mat-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.mat-file span { display: inline-flex; align-items: center; gap: 8px; }
.file-lock { border: 0; background: transparent; color: var(--c-soft); cursor: pointer; padding: 6px; }
.lock-note { color: #ffd489; font-size: 13px; margin: 4px 0 8px; }
.session-card a, .course-main .back-link { color: var(--c-link); }
.rec-copy .btn { color: #d5e8f8; }
.course-side { display: grid; gap: 12px; }
.grade-big { font-size: 28px; font-weight: 650; margin: 6px 0 10px; }
.course-side table { font-size: 13px; }
.exam-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.exam-status div { background: var(--c-panel); border-radius: 10px; padding: 10px 12px; }
.exam-status span { display: block; color: var(--c-soft); font-size: 12px; margin-bottom: 4px; }
.exam-form .q, #exam-form .q { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 12px; padding: 14px; margin-top: 12px; }
#exam-form label { border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 10px; }
.main:has(.room) { padding: 14px; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.stage-wrap { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 10px; align-content: start; }
.slides { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
.slides a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #162236; color: white; font-weight: 700; }
.slides a.on { background: #125eaa; }
.stage { background: white; color: #16324f; border-radius: 18px; padding: 28px 28px 22px; min-height: 420px; }
.stage-kicker { color: #125eaa; font-size: 14px; font-weight: 600; }
.stage h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; margin: 8px 0 18px; }
.stage-grid { display: grid; grid-template-columns: 1.1fr .7fr; gap: 14px; }
.stage-idea { background: #102848; color: white; border-radius: 18px; padding: 18px; }
.stage-idea strong { color: #8ecbff; }
.stage-idea p { margin-top: 8px; }
.stage-points { display: grid; gap: 10px; }
.stage-points p { background: #f4f8fb; border-radius: 14px; padding: 12px 14px; }
.stage-points b { display: block; font-size: 20px; }
.stage-points span { color: #5d7386; font-size: 13px; }
.player-bar, .material { grid-column: 2; background: #121c2e; border-radius: 14px; padding: 12px 14px; }
.player-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.player-bar p, .player-progress span { color: #9fb0c4; font-size: 13px; }
.player-progress { min-width: 180px; flex: 1; }
.material summary { cursor: pointer; font-weight: 700; }
.material ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.material a { color: var(--c-link); }
.comments { background: var(--c-panel); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 48px); }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comments h2 { font-size: 16px; }
.chat-sort { display: flex; gap: 4px; }
.chat-sort button { border: 0; background: transparent; color: var(--c-soft); border-radius: 8px; padding: 4px 8px; cursor: pointer; font-weight: 650; }
.chat-sort button.on { background: #125eaa; color: white; }
.chat-count { color: var(--c-soft); font-size: 13px; margin-top: 8px; }
.comment-list { display: grid; gap: 12px; margin: 12px 0; overflow: auto; flex: 1; align-content: start; }
.comment-list article { display: flex; gap: 10px; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #125eaa; color: white; font-size: 11px; flex: none; }
.chat-time { display: block; color: var(--c-dim); font-size: 12px; margin-top: 2px; }
.comment-list p { color: var(--c-soft); font-size: 14px; margin-top: 4px; }
.chat-actions { display: flex; gap: 12px; margin-top: 6px; }
.chat-actions button { border: 0; background: transparent; color: var(--c-link); padding: 0; cursor: pointer; font-weight: 650; font-size: 13px; }
.chat-actions button.on { color: #7ec8ff; }
.chat-replies { margin: 8px 0 0 42px; display: grid; gap: 10px; }
#reply-label { color: var(--c-link); font-size: 13px; }
#note-form { display: grid; gap: 8px; margin-top: auto; }
.watch-stage { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; }
.player { background: #070d16; border-radius: 12px; overflow: hidden; }
.player-screen { min-height: 380px; background: #070d16 center/cover no-repeat; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; padding: 28px; }
.player-screen h2 { color: white; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em; max-width: 16ch; }
.player-play { width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: white; cursor: pointer; display: grid; place-items: center; }
.player-play svg, .player-controls svg, .watch-main .mat svg, .watch-main .file-lock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.player-script { min-height: 380px; padding: 28px; color: #e7eef7; font-size: 16px; line-height: 1.6; }
.player-screen[hidden], .player-script[hidden] { display: none; }
.player-controls { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #0c1522; color: white; }
.player-controls button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: white; cursor: pointer; }
.player-controls p { color: #c5d4e4; font-size: 13px; }
.player-controls span { margin-left: auto; color: #c5d4e4; font-variant-numeric: tabular-nums; }
.watch-advance { margin: 12px 0 6px; }
.watch-main { display: grid; gap: 8px; align-content: start; }
.watch-main .mat { background: var(--c-panel); border-radius: 12px; padding: 0 14px; border-top: 0; margin-top: 6px; }
#note-form textarea { min-height: 72px; }
@media (max-width: 1100px) {
  .room, .stage-grid, .course-page, .exam-status, .watch-stage { grid-template-columns: 1fr; }
  .slides { flex-direction: row; grid-row: auto; }
  .player-bar, .material { grid-column: auto; }
  .learn-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero-grid, .split, .detail, .login-layout, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .cards, .why, .course-grid, .grid-3, .stat-row { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute; top: var(--header); left: 0; right: 0;
    background: white; flex-direction: column; align-items: flex-start;
    padding: 16px 20px 20px; border-bottom: 1px solid var(--line); gap: 12px;
  }
  .nav.open { display: flex; }
  .campus-shell { grid-template-columns: 78px 1fr; }
  .side a, .side button { width: 68px; font-size: 9px; padding: 6px 2px; }
  .main { padding: 16px 14px 32px; }
  .profile-id { padding-left: 28px; padding-top: 48px; }
  .band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .cards, .why, .course-grid, .grid-3, .stat-row, .portrait-row, .hero-panel, .cert-meta, .learn-grid, .rec-row { grid-template-columns: 1fr; }
  .wrap { width: min(1140px, calc(100% - 28px)); }
  .cert-sheet { padding: 28px 16px; }
  .topbar .wrap { flex-wrap: wrap; justify-content: space-between; padding: 6px 0; }
  .hero-grid { padding-bottom: 28px; }
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .wa { right: 12px; bottom: 12px; }
  .campus-shell { display: block; min-height: 100vh; }
  .side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    padding: 6px 4px 8px;
    border-right: 0;
    z-index: 20;
  }
  .side-logo { display: none; }
  .side nav { flex-direction: row; justify-content: space-around; gap: 2px; }
  .side-foot { margin-top: 0; }
  .side a, .side button { width: 64px; font-size: 10px; }
  .main { padding-bottom: 92px; }
}

@media print {
  body * { visibility: hidden; }
  #certificado, #certificado * { visibility: visible; }
  #certificado { position: absolute; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}

/* ---------- Ajustes para Botble ---------- */
.ck-content > * + * { margin-top: 12px; }
.ck-content ul { padding-left: 20px; }
.split-list { margin: 14px 0; padding-left: 20px; }
.split-list li { margin: 6px 0; }
.form .hp { position: absolute; left: -9999px; }
.section-head .lead { margin-top: 8px; }

/* ---------- Bloque «Equipo»: tarjetas de instructor ---------- */
.team-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.team-layout.is-wide { grid-template-columns: 1fr; gap: 32px; }
.team-layout.is-wide .team-intro { max-width: 760px; }
.team-intro h2 { margin: 0; }
.team-intro .lead { margin-top: 10px; }
.team-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.team-figures div { padding: 14px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.team-figures dt { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--blue); }
.team-figures dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.team-cta { margin-top: 22px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.team-layout:not(.is-wide) .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.team-card:hover, a.team-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe2f3; }
a.team-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.team-photo { position: relative; aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, #d9e7f3, #eef5fb); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
a.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgba(11, 39, 68, .78), transparent); pointer-events: none; }
.team-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 700; color: var(--blue); }
.team-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: #ffc531; color: #3d2b00; font-size: 12px; font-weight: 700; }
.team-years { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: 13px; }
.team-years b { font-size: 20px; margin-right: 2px; }
.team-body { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.team-name { font-size: 17px; color: var(--ink); line-height: 1.25; }
.team-role { color: var(--text); font-size: 14px; line-height: 1.4; }
.team-license { color: var(--muted); font-size: 12px; }
.team-bio { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.team-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.team-tags li { list-style: none; margin: 0; padding: 3px 9px; border-radius: 999px; background: #e8f4fe; color: var(--blue); font-size: 12px; font-weight: 600; }
.team-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.team-more { color: var(--blue); font-weight: 700; }
a.team-card:hover .team-more span { display: inline-block; transform: translateX(3px); transition: transform .2s ease; }
@media (max-width: 960px) { .team-layout { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .team-layout:not(.is-wide) .team-grid, .team-grid { grid-template-columns: 1fr; } .team-photo { aspect-ratio: 4 / 3.4; } }
@media (prefers-reduced-motion: reduce) { .team-card, .team-photo img { transition: none; } a.team-card:hover { transform: none; } }
.team-tags li::before, .team-tags li::marker { content: none; display: none; }
@media (max-width: 560px) { .team-figures { grid-template-columns: 1fr 1fr; } }
.team-card ul.team-tags { padding-left: 0 !important; margin-left: 0 !important; }

/* ---------- Tarjetas con botón y formulario de contacto con asunto ---------- */
.card .body { display: flex; flex-direction: column; }
.card-cta { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.card-cta:hover span { display: inline-block; transform: translateX(3px); transition: transform .2s ease; }
.form select { width: 100%; }
.form .ss-subject-note { margin: -4px 0 4px; font-size: 13px; color: var(--muted); }
.team-layout.is-wide .team-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1100px) { .team-layout.is-wide .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .team-layout.is-wide .team-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Íconos, cifras, FAQ, logos y accesos ---------- */
.ss-icon { width: 24px; height: 24px; flex: none; }
.stats-block { padding-top: 40px; padding-bottom: 40px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0; }
.stats-block .section-head + .stats-row { margin-top: 28px; }
.stat { position: relative; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--sky), var(--blue)); }
.stat-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e8f4fe; color: var(--blue); margin-bottom: 12px; }
.stat dt { font-size: clamp(30px, 3.4vw, 40px); line-height: 1; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header) + 24px); }
.faq-intro h2 { margin: 0 0 10px; }
.faq-intro .btn { margin-top: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #cfe2f3; box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; color: var(--ink); font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--paper); }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .2s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-item summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 14px; }
.faq-answer { padding: 0 20px 18px; color: var(--text); line-height: 1.6; }
.faq-answer p { margin: 0 0 8px; }

.logos-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.logos-block .section-head + .logos-row { margin-top: 26px; }
.logos-row li { margin: 0; }
.logos-row li::before, .logos-row li::marker { content: none; }
.logos-row a, .logos-row li > img { color: inherit; text-decoration: none; }
.logos-row li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: center; }
.logos-row img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.logos-row span { font-size: 13px; color: var(--muted); font-weight: 600; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.links-block .section-head + .links-grid { margin-top: 26px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe2f3; }
.link-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e8f4fe; color: var(--blue); margin-bottom: 8px; }
.link-card strong { color: var(--ink); font-size: 17px; }
.link-text { color: var(--muted); font-size: 14px; line-height: 1.5; }
.link-more { margin-top: auto; padding-top: 10px; color: var(--blue); font-weight: 700; font-size: 14px; }

.split-img { border-radius: 20px; box-shadow: var(--shadow); max-height: 460px; object-fit: cover; }

/* ---------- Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.contact-info h1 { margin: 4px 0 10px; }
.contact-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-cards li { margin: 0; }
.contact-cards li::before, .contact-cards li::marker { content: none; }
.contact-card { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: #cfe2f3; box-shadow: var(--shadow); }
.contact-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.contact-card b { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.contact-card em { font-style: normal; color: var(--muted); font-size: 13px; }
.contact-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e8f4fe; color: var(--blue); flex: none; }
.contact-card.is-whatsapp { grid-column: 1 / -1; background: #f0fbf4; border-color: #c6ecd3; }
.contact-card.is-whatsapp .contact-icon { background: #25d366; color: #fff; }
.contact-next { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-next li { counter-increment: step; position: relative; padding-left: 46px; display: flex; flex-direction: column; }
.contact-next li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.contact-next b { color: var(--ink); }
.contact-next span { color: var(--muted); font-size: 14px; }
.contact-form h2 { margin: 0 0 6px; font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-legal { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.contact-map { line-height: 0; }
.contact-map iframe { width: 100%; height: 360px; border: 0; filter: saturate(.9); }

@media (max-width: 960px) {
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
}
@media (max-width: 560px) {
  .contact-cards, .form-row { grid-template-columns: 1fr; }
  .stat { padding: 18px; }
}
.split > .company-steps { align-self: start; margin-top: 8px; }

/* ---------- Redes sociales ---------- */
.ss-icon.is-sm { width: 16px; height: 16px; }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a { display: inline-flex; align-items: center; opacity: .9; }
.topbar-social a:hover { opacity: 1; }
.footer-social, .contact-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.footer-social a, .contact-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: background .2s, color .2s; }
.footer-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--sky); }
.contact-social { margin-top: 20px; }
.contact-social span { font-weight: 700; color: var(--ink); margin-right: 4px; }
.contact-social a { background: #e8f4fe; color: var(--blue); }
.contact-social a:hover { background: var(--blue); color: #fff; }

/* ---------- Tarjetas: etiqueta y beneficios con ícono ---------- */
.card-tag { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: #e8f4fe; color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.why-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e8f4fe; color: var(--blue); margin-bottom: 12px; }

/* ---------- Logos de clientes ---------- */
.logos-block.is-clients .logos-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.logos-block.is-clients .logos-row li { padding: 14px; min-height: 96px; justify-content: center; }
.logos-block.is-clients img, .logos-marquee img { filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logos-block.is-clients li:hover img, .logos-marquee li:hover img { filter: none; opacity: 1; }
.logos-block.is-clients img { height: 56px; }
.logos-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-block .section-head + .logos-marquee { margin-top: 26px; }
.logos-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; width: max-content; animation: ss-marquee 45s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-track li { flex: none; width: 170px; height: 96px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.logos-track li::before, .logos-track li::marker { content: none; }
.logos-track img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes ss-marquee { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logos-track li[aria-hidden="true"] { display: none; } }

/* ---------- Cartas de recomendación ---------- */
.letters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.letters-block .section-head + .letters-grid { margin-top: 26px; }
.letter-card { margin: 0; }
.letter-open { width: 100%; height: 100%; display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s; }
.letter-open:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfe2f3; }
.letter-open:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.letter-thumb { width: 72px; height: 72px; flex: none; border-radius: 12px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.letter-thumb img { max-width: 64px; max-height: 64px; object-fit: contain; }
.letter-thumb img.is-doc { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.letter-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.letter-body small { color: var(--sky-deep); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.letter-body strong { color: var(--ink); font-size: 16px; }
.letter-quote { color: var(--muted); font-size: 13px; font-style: italic; }
.letter-more { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 700; font-size: 13px; margin-top: 4px; }
.letter-dialog { width: min(760px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.letter-dialog::backdrop { background: rgba(11, 21, 32, .7); }
.letter-dialog-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.letter-dialog-bar button { border: 0; background: var(--paper); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.letter-dialog img { display: block; width: 100%; height: auto; }

/* =====================================================================
   Identidad Sky Safety · señalética de obra
   Barlow Condensed (rótulos de planta y carretera) + Barlow para leer.
   Azul de marca, azul mina profundo y amarillo de seguridad (ISO 3864)
   usado solo como señal: lo activo, lo verificado y la franja del inicio.
   ===================================================================== */
:root {
  --mina: #0b2e4f;
  --senal: #ffc20e;
  --senal-ink: #3a2c00;
  --roca: #5b6b7a;
  --papel: #f2f5f8;
  --regla: #d7e0e8;
  --font: "Barlow", system-ui, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --radius: 4px;
  --shadow: none;
  --paper: var(--papel);
  --line: var(--regla);
}
body { font-size: 16.5px; line-height: 1.6; color: #1d3247; }
.lead { font-size: 18px; line-height: 1.55; }
h1, h2, h3,
.section-head h2, .page-hero h1, .hero h1, .band h2, .team-intro h2, .faq-intro h2 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--mina);
}
.section-head h2, .team-intro h2, .faq-intro h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { font-size: 17px; max-width: 62ch; }
.section.alt { background: var(--papel); }

/* Botones: rectos, firmes, sin levitar */
.btn { border-radius: var(--radius); font-weight: 600; font-size: 15px; padding: 12px 20px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { transform: none; }
.btn-primary { box-shadow: none; }
.btn-ghost { border-color: #b9c9d8; color: var(--mina); }
.btn-ghost:hover { border-color: var(--mina); background: #fff; }
.btn-sky { background: var(--senal); color: var(--senal-ink); }
.btn-sky:hover { background: #ffd447; }
.btn-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.band .btn-white { background: #fff; color: var(--mina); border: 0; }
.band .btn-white:hover { background: var(--senal); color: var(--senal-ink); }
:focus-visible { outline: 3px solid var(--senal); outline-offset: 2px; }

/* Cabecera: el menú activo se marca en amarillo, como una señal */
.header { border-bottom-color: var(--regla); }
.nav { font-weight: 500; font-size: 15.5px; color: var(--mina); }
.nav a.active::after { height: 3px; bottom: -6px; border-radius: 0; background: var(--senal); }
.nav a.active, .nav a:hover { color: var(--mina); }

/* Inicio: foto del equipo en campo bajo un velo azul mina y franja de seguridad */
.hero {
  background:
    linear-gradient(100deg, rgba(8, 31, 54, .96) 0%, rgba(11, 46, 79, .9) 46%, rgba(11, 46, 79, .55) 100%),
    url("../images/tres-trabajadores-de-la-construccion-multietnicos-charlando-scaled.jpg") center 30% / cover no-repeat,
    var(--mina);
}
.hero-grid { padding: 96px 0 88px; }
.hero h1 { color: #fff; font-size: clamp(44px, 6vw, 76px); line-height: .98; font-weight: 700; max-width: 12ch; }
.hero .lead { color: #dbe8f4; font-size: 19px; margin: 22px 0 30px; }
.hero-panel { background: rgba(255,255,255,.96); padding: 14px; gap: 1px; border-radius: var(--radius); grid-template-columns: 1fr 1fr; }
.hero-panel img { background: transparent; border-radius: 0; height: 104px; padding: 12px; outline: 1px solid var(--regla); }
.hero-note { color: var(--mina); font-size: 13px; font-weight: 600; padding: 10px 4px 2px; }
.hero-note span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--senal); vertical-align: 1px; }
.hero-stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--senal) 0 18px, #1b1b1b 18px 36px);
}

/* Páginas internas: título grande, alineado a la izquierda, con regla inferior */
.page-hero { padding: 64px 0 34px; border-bottom: 1px solid var(--regla); margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1; font-weight: 700; max-width: 18ch; }
.page-hero .lead { margin-top: 16px; max-width: 60ch; }

/* Servicios y cursos: foto con el texto debajo, sin caja ni sombra */
.cards, .course-grid { gap: 40px 28px; }
.card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.card .media { height: 210px; border-radius: var(--radius); }
.card .body { padding: 18px 0 0; }
.card h3 { font-family: var(--font-head); font-size: 24px; line-height: 1.1; font-weight: 600; margin-bottom: 8px; }
.card h3 a:hover { color: var(--blue); }
.card p { font-size: 15.5px; color: #44586b; }
.card-tag, .tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 8px; padding: 0;
  background: none; border-radius: 0;
  color: var(--roca); font-size: 13px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
}
.card-tag::before, .tag::before { content: ""; width: 8px; height: 8px; background: var(--blue); }
.card-cta { padding-top: 12px; color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(18, 94, 170, .35); }
.card-cta:hover { text-decoration-color: currentColor; }
.plan-facts { gap: 4px 16px; font-size: 14px; color: var(--roca); }
.plan-facts span + span::before { content: none; }

/* «Por qué elegirnos»: lista de verificación de inspección */
.why { gap: 0 40px; }
.why article { padding: 22px 0 24px; border-top: 1px solid var(--regla); }
.why strong { font-family: var(--font-head); font-size: 23px; font-weight: 600; line-height: 1.15; color: var(--mina); margin-bottom: 6px; }
.why span { font-size: 15.5px; }
.why.is-check article { position: relative; padding-left: 44px; }
.why.is-check .why-icon { display: none; }
.why.is-check article::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 26px; height: 26px;
  background: var(--mina) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc20e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-radius: 3px;
}
.why-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--papel); color: var(--mina); }
/* Pasos reales (1, 2, 3…): número grande, rótulo condensado */
.why.is-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.why.is-steps article { border-top: 3px solid var(--mina); }
.why.is-steps .mark { font-family: var(--font-head); font-size: 54px; line-height: 1; font-weight: 700; color: var(--blue); margin-bottom: 12px; }

/* Cifras: números grandes separados por reglas, sin tarjetas */
.stats-block { padding: 40px 0 56px; }
.stats-row { gap: 0; border-top: 3px solid var(--mina); }
.stat { background: none; border: 0; border-right: 1px solid var(--regla); border-radius: 0; box-shadow: none; padding: 22px 24px 4px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat::after, .stat-icon { display: none; }
.stat dt { font-family: var(--font-head); font-size: clamp(46px, 5vw, 64px); font-weight: 700; color: var(--mina); letter-spacing: 0; }
.stat dd { font-size: 15px; color: var(--roca); max-width: 22ch; }

/* Banda de llamada: azul mina, recta, alineada a la izquierda */
.band { border-radius: var(--radius); background: var(--mina); padding: 44px 48px; border-left: 10px solid var(--senal); }
.band h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; font-weight: 600; }
.band p { color: #cfdeec; font-size: 17px; }

/* Especialistas: retratos sobrios, silueta con casco cuando falta la foto */
.team-card { border-radius: var(--radius); border-color: var(--regla); }
a.team-card:hover, a.team-card:focus-visible { transform: none; box-shadow: none; border-color: var(--mina); }
a.team-card:hover .team-photo img { transform: none; }
.team-photo { background: #dfe7ee; }
.team-photo::after { height: 38%; background: linear-gradient(to top, rgba(11, 46, 79, .72), transparent); }
.team-initials { color: #b5c5d4; padding: 18% 22% 0; }
.team-initials svg { width: 100%; height: 100%; display: block; }
.team-badge { border-radius: 2px; background: var(--senal); color: var(--senal-ink); }
.team-name { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--mina); }
.team-tags li { border-radius: 2px; background: var(--papel); color: var(--mina); font-weight: 500; }
.team-more { font-weight: 600; }
.team-figures div { border-radius: 0; background: none; border: 0; border-top: 3px solid var(--mina); padding: 12px 0 0; }
.team-figures dt { font-family: var(--font-head); font-size: 40px; color: var(--mina); }

/* Logos: sin cajas, en gris hasta que se pasa el cursor */
.logos-track li, .logos-row li { border: 0; background: none; border-radius: 0; }
.logos-block.is-clients .logos-row li { border: 0; }
.logos-row { gap: 8px 24px; }

/* Cartas y accesos: reglas finas en lugar de tarjetas flotantes */
.letter-open, .link-card { border-radius: var(--radius); box-shadow: none; }
.letter-open:hover, a.link-card:hover { transform: none; box-shadow: none; border-color: var(--mina); }
.letter-body small { color: var(--roca); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.letter-thumb, .link-icon, .contact-icon { border-radius: var(--radius); }
.link-card strong { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.link-icon { background: var(--papel); color: var(--mina); }

/* Preguntas frecuentes: lista con reglas */
.faq-list { gap: 0; border-top: 3px solid var(--mina); }
.faq-item, .faq-item[open] { border: 0; border-bottom: 1px solid var(--regla); border-radius: 0; box-shadow: none; background: none; }
.faq-item summary { padding: 20px 52px 20px 0; font-size: 17px; }
.faq-answer { padding: 0 0 20px; max-width: 64ch; }
.faq-toggle { right: 0; border-radius: 2px; }
.faq-toggle::before, .faq-toggle::after { background: var(--mina); }

/* Contacto */
.contact-card { border-radius: var(--radius); }
a.contact-card:hover { box-shadow: none; border-color: var(--mina); }
.contact-card small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.contact-next li::before { border-radius: 2px; background: var(--mina); color: var(--senal); font-family: var(--font-head); font-size: 17px; }
.form, .contact-form { border-radius: var(--radius); }
.form input, .form select, .form textarea { border-radius: var(--radius); }
.split-img { border-radius: var(--radius); box-shadow: none; }

/* Pie: azul mina */
.footer { background: var(--mina); }
.footer h4 { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: 0; }

.chip { border-radius: var(--radius); }
.chip.on { background: var(--mina); border-color: var(--mina); }
.filters .chip { font-weight: 600; }

@media (max-width: 1000px) {
  .why.is-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; border-bottom: 1px solid var(--regla); padding-left: 0; }
}
@media (max-width: 640px) {
  .hero-grid { padding: 64px 0 56px; }
  .hero h1 { font-size: 44px; }
  .why.is-steps { grid-template-columns: 1fr; }
  .band { padding: 32px 24px; border-left-width: 6px; }
  .page-hero { padding: 44px 0 26px; }
  .cards, .course-grid { gap: 36px; }
}

/* Ajustes finos de la identidad */
.band .btn { white-space: nowrap; flex: none; }
.page-hero { border-bottom: 0; }
.split h2, .contact-info h1 { font-family: var(--font-head); font-weight: 600; color: var(--mina); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; }
.contact-form h2, .form h2 { font-family: var(--font-head); font-size: 28px; font-weight: 600; }
.link-card strong, .why strong, .team-name, .card h3 { line-height: 1.1; }
.company-steps .mark { font-family: var(--font-head); font-size: 44px; line-height: 1; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.company-steps article { border-top: 3px solid var(--mina); }

/* ---------- Encabezado con fotos (Empresas y otras páginas internas) ---------- */
.page-hero-media { background: #fff; padding: 56px 0 64px; overflow: hidden; }
.phm-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.phm-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--blue); font-weight: 600; font-size: 15px; }
.phm-kicker::before { content: ""; width: 10px; height: 10px; background: var(--senal); }
.phm-copy h1 { font-family: var(--font-head); font-weight: 700; color: var(--mina); font-size: clamp(40px, 4.6vw, 62px); line-height: 1; max-width: 17ch; }
.phm-copy .lead { margin-top: 22px; max-width: 46ch; font-size: 19px; }
.phm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phm-proof { list-style: none; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--regla); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.phm-proof li { margin: 0; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--mina); }
.phm-proof li::before { content: ""; width: 18px; height: 18px; border-radius: 2px; flex: none; background: var(--mina) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc20e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.phm-media { position: relative; margin: 0; padding: 0 0 72px 64px; }
.phm-main { width: 100%; height: auto; aspect-ratio: 10 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(11, 46, 79, .45); }
.phm-media::before { content: ""; position: absolute; right: -18px; top: 28px; width: 10px; height: 46%; background: var(--senal); }
.phm-second { position: absolute; left: 0; bottom: 0; width: 50%; height: auto; aspect-ratio: 900 / 620; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 18px 40px -18px rgba(11, 46, 79, .5); }
.phm-badge { position: absolute; left: 88px; top: 24px; display: flex; align-items: center; gap: 12px; max-width: 250px; padding: 14px 16px; background: var(--mina); color: #fff; border-radius: var(--radius); font-size: 14px; font-weight: 500; line-height: 1.35; }
.phm-badge svg { width: 30px; height: 30px; flex: none; color: #2f8de4; }
.page-hero-media + .stats-block { background: var(--papel); padding-top: 40px; }
@media (max-width: 960px) {
  .page-hero-media { background: #fff; padding: 40px 0 48px; }
  .phm-grid { grid-template-columns: 1fr; gap: 40px; }
  .phm-media { padding: 0 0 56px 40px; max-width: 560px; }
  .phm-media::before { right: -10px; }
  .phm-badge { left: 56px; }
  .page-hero-media + .stats-block { background: #fff; }
}
@media (max-width: 560px) {
  .phm-media { padding: 0 0 40px 24px; }
  .phm-badge { left: 36px; top: 12px; max-width: 200px; font-size: 13px; }
  .phm-second { border-width: 4px; }
}
.catalog-filters { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 36px; scroll-margin-top: calc(var(--header) + 16px); }
.catalog-filters > span { font-weight: 600; color: var(--mina); }
.catalog-filters .filters { margin: 0; }
#catalogo { scroll-margin-top: calc(var(--header) + 24px); }
.page-hero-media + .catalog-filters { border-top: 1px solid var(--regla); }
