:root {
  --bg: #fff9f0;
  --surface: #ffffff;
  --ink: #2a1f17;
  --muted: #7a6a5a;
  --brand: #f2681c;
  --brand-dark: #c24e0e;
  --accent: #f5b301;
  --green: #1fa65a;
  --berry: #d6336c;
  --line: #f0e2d0;
  --success: #1fa65a;
  --danger: #d6336c;
  --warning: #e0940a;
  --sidebar: #2a1f17;
  --sidebar-ink: #fdf3e7;
  --shadow: 0 12px 30px rgba(42, 31, 23, 0.1);
  --radius: 16px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
p { margin: 0 0 1rem; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 1.35rem;
}
.brand-mark--logo { background: #fffdf8; border: 1px solid rgba(42, 31, 23, 0.08); padding: 3px; }
.brand-mark--logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #19120c;
  padding: clamp(4rem, 10vw, 8rem) 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-layer {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-layer.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(25, 18, 12, 0.72), rgba(25, 18, 12, 0.72));
}
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.hero p { font-size: 1.1rem; color: #efe6da; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; }
.hero-stats span { color: #d9cdbd; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--brand); }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Course cards ---------- */
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-card .thumb { height: 210px; background-size: cover; background-position: center; background-color: #e2d8ca; }
.course-card .body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { margin-bottom: 0.3rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.chip {
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: #f3ece2; color: var(--brand-dark);
}
.course-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature / instructor cards ---------- */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature .ico { font-size: 1.8rem; margin-bottom: 0.6rem; }
.instructor { text-align: center; }
.instructor .avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 0.9rem;
  background-size: cover; background-position: center; background-color: #e2d8ca; border: 4px solid #fff; box-shadow: var(--shadow);
}

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.quote p { font-style: italic; }
.quote .who { font-weight: 700; font-family: var(--font-head); margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--sidebar); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.cta p { color: #d8ccbd; }

/* ---------- Footer ---------- */
.footer { background: #1c1611; color: #cdbfae; padding: 3rem 0 1.6rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--font-head); margin-bottom: 0.6rem; }
.footer a { color: #cdbfae; display: block; padding: 0.2rem 0; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #322820; margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: 0.85rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: linear-gradient(rgba(30, 21, 14, 0.68), rgba(30, 21, 14, 0.68)),
    url("/img/auth-panaderia.jpg") center/cover;
  color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside .brand { color: #fff; }
.auth-aside blockquote { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.4; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.2rem; }
.auth-card { width: min(420px, 100%); }
.auth-card .back { font-size: 0.9rem; color: var(--muted); display: inline-block; margin-bottom: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid rgba(180, 85, 45, 0.35); border-color: var(--brand);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-msg { border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; margin-bottom: 1rem; display: none; }
.form-msg.error { display: block; background: #fdeceb; color: var(--danger); }
.form-msg.success { display: block; background: #e9f5ee; color: var(--success); }
.hint { font-size: 0.82rem; color: var(--muted); }
.demo-box { background: #f3ece2; border: 1px dashed var(--accent); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.85rem; margin-top: 1rem; }
.demo-box code { background: #fff; padding: 0.1rem 0.35rem; border-radius: 4px; }

/* ---------- Panel ---------- */
.panel { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-ink); padding: 1.6rem 1.1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; margin-bottom: 1.8rem; }
.side-user { display: flex; gap: 0.8rem; align-items: center; padding: 0.9rem; background: #2f261d; border-radius: 12px; margin-bottom: 1.5rem; }
.side-user .pic { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; background-color: #4a3b2c; flex: none; }
.side-user .name { font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.side-user .role { font-size: 0.75rem; color: #b9a892; }
.tab-link {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  background: none; border: 0; color: #cdbfae; font-family: inherit; font-size: 0.95rem;
  padding: 0.7rem 0.8rem; border-radius: 10px; cursor: pointer; margin-bottom: 0.25rem;
}
.tab-link:hover { background: #2f261d; color: #fff; }
.tab-link.active { background: var(--brand); color: #fff; font-weight: 600; }
.tab-link .ico { width: 20px; text-align: center; }
.sidebar .logout { margin-top: 1.4rem; }

.panel-main { padding: 2rem clamp(1rem, 4vw, 2.6rem); min-width: 0; }
#adminContent, #adminMain { min-width: 0; max-width: 100%; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.panel-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.2rem; }
.panel-section { display: none; }
.panel-section.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.stat .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat .value { font-family: var(--font-head); font-size: 1.8rem; }
.stat .value.small { font-size: 1.15rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table tbody tr:hover { background: #fbf8f3; }

.badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.pagado, .badge.activo, .badge.ok { background: #e9f5ee; color: var(--success); }
.badge.pendiente, .badge.vencido { background: #fbf0dc; color: var(--warning); }

.progress { height: 8px; background: #efe7dc; border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }

.profile-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; }
.profile-photo { width: 180px; height: 180px; border-radius: 20px; background-size: cover; background-position: center; background-color: #e2d8ca; }
.sensitive { background: #fbf0dc; border: 1px solid #eddcb8; border-radius: 10px; padding: 0.5rem 0.8rem; font-size: 0.8rem; color: #8a6415; display: inline-block; margin-bottom: 0.8rem; }

.course-block { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin-bottom: 1.2rem; background: #fff; }
.course-block .top { display: flex; gap: 1rem; align-items: center; }
.course-block .thumb { width: 96px; height: 96px; border-radius: 12px; background-size: cover; background-position: center; flex: none; background-color: #e2d8ca; }
.course-block .top h4 { margin: 0 0 0.2rem; font-family: var(--font-head); font-size: 1.15rem; }
.subject-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.subject-list li { background: #faf7f2; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.88rem; }
.subject-list .prof { display: block; color: var(--muted); font-size: 0.78rem; }

.doc-item, .pay-item, .sched-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.7rem; background: #fff;
}
.sched-item { border-left: 4px solid var(--brand); }

.empty { text-align: center; color: var(--muted); padding: 2rem; }
.spinner { text-align: center; padding: 3rem; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 100; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25, 18, 12, 0.6); }
.modal-card {
  position: relative; z-index: 1; width: min(680px, 92%); max-height: 88vh; overflow-y: auto;
  margin: 5vh auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 0.6rem; right: 0.8rem; z-index: 2; background: rgba(255,255,255,0.9);
  border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-hero { height: 220px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.modal-hero-text { background: linear-gradient(transparent, rgba(20,14,9,.8)); width: 100%; padding: 1.4rem; }
.modal-hero-text h2 { color: #fff; margin: 0; }
.modal-content { padding: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .panel { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar .tabs { display: flex; overflow-x: auto; gap: 0.4rem; }
  .tab-link { white-space: nowrap; margin-bottom: 0; }
  .side-user { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .subject-list { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 1rem 4%; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Admin ---------- */
.admin-toolbar { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.2rem; flex-wrap:wrap; }
.admin-toolbar h3 { margin:0; }
.editor { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.editor .full { grid-column:1/-1; }
.editor textarea { min-height:80px; resize:vertical; }
.pill-cat { display:inline-block; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:.15rem .5rem; border-radius:999px; background:#fdeede; color:var(--brand-dark); }
.pill-cat.carrera { background:#e6f6ec; color:var(--green); }
.pill-cat.especial { background:#fce9f1; color:var(--berry); }
.pill-cat.taller { background:#e8f0fb; color:#2a5db0; }
.row-actions { display:flex; gap:.4rem; }
.thumb-sm { width:48px; height:36px; border-radius:6px; object-fit:cover; background:#f0e2d0; }
.modal-inline { position:fixed; inset:0; background:rgba(42,31,23,.55); display:none; place-items:center; z-index:200; padding:1rem; }
.modal-inline.open { display:grid; }
.modal-inline .box { background:#fff; border-radius:var(--radius); width:min(720px,100%); max-height:90vh; overflow:auto; padding:1.5rem; }
@media (max-width:700px){ .editor { grid-template-columns:1fr; } }

/* ---------- Admin extras ---------- */
.side-group { font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color:#9d8b76; margin:1rem .5rem .3rem; }
.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  padding-bottom: 1rem;
  align-items: start;
}
.kanban-col { background:#fff; border:1px solid var(--line); border-radius:14px; padding:.8rem; min-height:180px; }
.kanban-col h4 { display:flex; justify-content:space-between; font-size:.85rem; margin:0 0 .6rem; }
.kanban-col h4 span { color:var(--muted); font-weight:500; }
.kanban-card { background:#fff9f0; border:1px solid var(--line); border-radius:10px; padding:.6rem .7rem; margin-bottom:.6rem; cursor:grab; }
.kanban-card.dragging { opacity:.4; }
.kanban-col[data-etapa] { border-top:4px solid var(--brand); }
.bars { display:flex; flex-direction:column; gap:.5rem; }
.bar-row { display:grid; grid-template-columns:150px 1fr 40px; align-items:center; gap:.7rem; font-size:.88rem; }
.bar { background:#f0e2d0; border-radius:999px; height:10px; overflow:hidden; }
.bar > i { display:block; height:100%; background:linear-gradient(90deg,var(--brand),var(--accent)); }
.task-row { display:flex; justify-content:space-between; align-items:center; gap:1rem; border-bottom:1px solid var(--line); padding:.7rem 0; }

/* ==========================================================================
   UI System v2 — profesional
   ========================================================================== */
:root {
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(42,31,23,.06), 0 4px 12px rgba(42,31,23,.05);
  --shadow-md: 0 10px 30px rgba(42,31,23,.12);
  --ring: 0 0 0 3px rgba(242,104,28,.28);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Topbar */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: .7rem 1.4rem; position: sticky; top: 0; z-index: 30;
}
.topbar .search { position: relative; flex: 1; max-width: 520px; }
.topbar .search input {
  width: 100%; padding: .6rem .9rem .6rem 2.2rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); font-family: inherit; font-size: .92rem;
}
.topbar .search::before { content: "⌕"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.topbar .spacer { flex: 1; }
.search-results {
  position: absolute; top: 110%; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md); max-height: 340px; overflow: auto; z-index: 40; display: none;
}
.search-results.open { display: block; }
.search-results button { display: block; width: 100%; text-align: left; padding: .6rem .9rem; border: 0; background: none; cursor: pointer; font-family: inherit; }
.search-results button:hover { background: var(--bg); }
.search-results .sr-type { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Page header */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 .15rem; }
.page-head .crumb { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Inline tabs */
.tabbar { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; flex-wrap: wrap; }
.tabbtn {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: .6rem .9rem; cursor: pointer;
  font-family: inherit; font-size: .93rem; color: var(--muted); font-weight: 500; margin-bottom: -1px;
}
.tabbtn:hover { color: var(--ink); }
.tabbtn.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* KPI */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.kpi .k-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi .k-value { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; }
.kpi .k-hint { font-size: .8rem; color: var(--muted); }

/* Badges extra */
.badge.info { background: #e8f0fb; color: #2a5db0; }
.badge.warn { background: #fbf0dc; color: var(--warning); }
.badge.danger { background: #fce9f1; color: var(--danger); }
.badge.muted { background: #efe7dc; color: var(--muted); }

/* Empty state */
.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--muted); }
.empty-state .ico { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #efe7dc 25%, #f6efe6 37%, #efe7dc 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; height: 14px; margin: .5rem 0; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* Toasts */
.toast-wrap { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 300; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: #241c16; color: #fff; padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow-md); font-size: .9rem; display: flex; align-items: center; gap: .6rem; animation: toastIn .2s ease; max-width: 360px; }
.toast.success { background: #1c6b3f; }
.toast.error { background: #a32b4e; }
.toast.info { background: #2a3a55; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: #d9cbba; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .sl::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .sl { background: var(--green); }
.switch input:checked + .sl::before { transform: translateX(18px); }

/* Kanban v2 */
.kanban-col { background: #fbf7f1; border: 1px solid var(--line); border-radius: 14px; padding: .7rem; min-height: 200px; min-width: 0; transition: background .15s, box-shadow .15s; }
.kanban-col.drop { background: #fff4e6; box-shadow: inset 0 0 0 2px var(--brand); }
.kanban-col h4 { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin: 0 0 .7rem; letter-spacing: .02em; }
.kanban-col h4 .count { background: #efe7dc; color: var(--muted); border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; }
.kanban-col[data-etapa] { border-top: 3px solid var(--brand); }
.kanban-col[data-etapa="nuevo"] { border-top-color: #f5b301; }
.kanban-col[data-etapa="contactado"] { border-top-color: #3ba0d8; }
.kanban-col[data-etapa="documentacion"] { border-top-color: #8a6bd1; }
.kanban-col[data-etapa="inscrito"] { border-top-color: #f2681c; }
.kanban-col[data-etapa="en_curso"] { border-top-color: #1fa65a; }
.kanban-col[data-etapa="certificado"] { border-top-color: #0f7a44; }
.kanban-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; margin-bottom: .6rem; cursor: grab; box-shadow: var(--shadow-sm); min-width: 0; overflow-wrap: anywhere; }
.kanban-card:hover { border-color: var(--brand); }
.kanban-card.dragging { opacity: .45; }
.kanban-card .kc-name { font-weight: 600; font-size: .92rem; }
.kanban-card .kc-meta { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.kanban-card .kc-flags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .5rem; }
.kanban-card .kc-flags .badge { font-size: .66rem; }

/* Profile */
.profile-header { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.profile-avatar { width: 64px; height: 64px; border-radius: 16px; background: #e2d8ca center/cover; flex: none; }
.profile-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 820px) { .profile-grid-2 { grid-template-columns: 1fr; } }

/* Table improvements */
.table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.table tbody tr:nth-child(even) { background: #fffdfa; }
.table td .actions { display: flex; gap: .3rem; justify-content: flex-end; }

.btn-danger { background: #fce9f1; color: var(--danger); }
.btn-danger:hover { background: #f7d6e4; }
.btn-success { background: var(--green); color: #fff; }

/* Kanban responsive: filas envolventes, sin scroll horizontal */
@media (min-width: 1400px) {
  .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .kanban { grid-template-columns: 1fr; gap: .7rem; }
  .kanban-col { padding: .6rem; }
}

/* ============================================================
   Landing editorial — Fraunces + Manrope
   ============================================================ */
body.landing {
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #fbf5ea;
  --surface: #fffaf3;
  --ink: #2b1c12;
  --muted: #756457;
  --line: #ead9c5;
  --shadow: 0 24px 60px rgba(52, 32, 18, 0.14);
  background: var(--bg);
  color: var(--ink);
}

body.landing .container { width: min(1220px, 92%); }
body.landing .nav {
  background: rgba(251, 245, 234, 0.88);
  border-bottom-color: rgba(234, 217, 197, 0.9);
}
body.landing .nav-inner { padding: 1rem 0; }
body.landing .brand { font-size: 2rem; letter-spacing: -0.03em; }
body.landing .nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
body.landing .nav-links a:hover { background: rgba(242, 104, 28, 0.1); color: var(--brand-dark); }
body.landing .nav-toggle { color: var(--ink); }

/* Hero */
body.landing .hero {
  display: flex;
  align-items: center;
  min-height: min(900px, 92vh);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(5rem, 8vw, 7rem);
}
body.landing .hero::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(242, 104, 28, 0.22), transparent 40%),
    linear-gradient(100deg, rgba(22, 13, 8, 0.94) 0%, rgba(25, 15, 9, 0.82) 42%, rgba(25, 15, 9, 0.35) 75%, rgba(25, 15, 9, 0.22) 100%);
}
body.landing .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
body.landing .hero-content { max-width: 720px; }
body.landing .hero .hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: #f6c45a;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.25;
}
body.landing .hero .hero-brand > span:last-child { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
body.landing .hero-brand-mark {
  flex: 0 0 auto;
  width: 2.15em;
  height: 2.15em;
  padding: 0.2em;
  border-radius: 0.32em;
  border: 1px solid rgba(246, 196, 90, 0.45);
  background: #fffdf8;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
body.landing .hero-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
body.landing .hero h1 {
  max-width: 13ch;
  margin: 1.1rem 0 1.2rem;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
body.landing .hero-lead {
  max-width: 58ch;
  margin-bottom: 0;
  color: #e8dbcb;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}
body.landing .hero-actions { gap: 0.7rem; margin-top: 2rem; }
body.landing .hero-actions .btn { padding: 0.9rem 1.5rem; }
body.landing .hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2.6rem;
}
body.landing .hero-stats > div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
body.landing .hero-stats strong { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 600; }
body.landing .hero-stats span {
  color: #cbb9a6;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Collage del hero */
body.landing .hero-visual { position: relative; min-height: 540px; }
body.landing .hero-visual-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}
body.landing .hero-visual-card--main { top: 0; right: 0; width: min(370px, 82%); height: 470px; }
body.landing .hero-visual-card--small {
  bottom: 0;
  left: 0;
  width: 235px;
  height: 295px;
  border: 6px solid rgba(255, 250, 243, 0.92);
  border-radius: 26px;
  transform: rotate(-7deg);
}
body.landing .hero-visual-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 19, 11, 0.72);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
body.landing .hero-visual-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
body.landing .hero-visual-badge span { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
body.landing .hero-visual-badge strong { font-family: var(--font-head); font-size: 1.15rem; }
body.landing .hero-visual-badge--top { top: 2rem; left: -1rem; }
body.landing .hero-visual-badge--bottom { right: -1rem; bottom: 2.5rem; }
body.landing .hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
body.landing .hero-scroll span { color: var(--accent); font-size: 1rem; }

/* Secciones y encabezados */
body.landing .section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
body.landing .section--warm { background: linear-gradient(180deg, #f7ecdc 0%, #fbf5ea 100%); }
body.landing .section--features { background: var(--surface); }
body.landing .section--validity { background: linear-gradient(135deg, #f4e5d1 0%, #fbf5ea 55%, #f8eee1 100%); }
body.landing .section--testimonials { background: #f7ecdf; }
body.landing .section--contact { background: var(--surface); }
body.landing .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  text-align: left;
}
body.landing .section-head > div { max-width: 760px; }
body.landing .section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
body.landing .section-head .muted { max-width: 470px; margin: 0 0 0.4rem; font-size: 1rem; line-height: 1.6; }
body.landing .section-head--center { display: block; max-width: 760px; margin-inline: auto; text-align: center; }
body.landing .section-head--center > div { max-width: none; }
body.landing .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
body.landing .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--brand); }
body.landing .grid { gap: 1.5rem; }
body.landing .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.landing .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tarjetas de programa */
body.landing .course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(52, 32, 18, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
body.landing .course-card:hover {
  border-color: rgba(242, 104, 28, 0.35);
  box-shadow: 0 28px 60px rgba(52, 32, 18, 0.16);
  transform: translateY(-8px);
}
body.landing .course-media { position: relative; height: 260px; overflow: hidden; }
body.landing .course-media .thumb { height: 100%; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
body.landing .course-card:hover .course-media .thumb { transform: scale(1.06); }
body.landing .course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.12) 0%, transparent 35%, rgba(20, 12, 8, 0.28) 100%);
  pointer-events: none;
}
body.landing .course-media .pill-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(31, 19, 11, 0.82);
  color: #fff;
  backdrop-filter: blur(8px);
}
body.landing .price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.42rem 0.8rem;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.96);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(20, 12, 8, 0.22);
}
body.landing .course-card .body { padding: 1.6rem; }
body.landing .course-card h3 { margin: 0 0 0.6rem; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.02em; }
body.landing .course-card .muted { font-size: 0.94rem; line-height: 1.55; }
body.landing .course-card .course-meta { margin: 1rem 0; }
body.landing .course-card .chip { background: #f5e9da; color: #7a4a2c; }
body.landing .course-card .course-award { min-height: 2.2rem; }
body.landing .course-card .btn { align-self: flex-start; margin-top: auto; padding: 0.72rem 1.15rem; }

/* Beneficios */
body.landing .feature {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
body.landing .feature::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 104, 28, 0.12), transparent 70%);
}
body.landing .feature .ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: #f9e3d2;
  font-size: 1.5rem;
}
body.landing .feature h3 { margin-bottom: 0.4rem; font-size: 1.35rem; }

/* Testimonios */
body.landing .quote {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
body.landing .quote::before {
  content: "“";
  position: absolute;
  top: -0.4rem;
  right: 1.4rem;
  color: rgba(242, 104, 28, 0.18);
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 1;
}
body.landing .quote p { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; font-style: normal; line-height: 1.5; }
body.landing .quote .who {
  margin-top: 1.2rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Validez */
body.landing .validity-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
body.landing .validity-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
body.landing .validity-seal {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(242, 104, 28, 0.35);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.65);
}
body.landing .validity-seal strong { color: var(--brand-dark); font-family: var(--font-head); font-size: 1.3rem; }
body.landing .validity-seal span { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
body.landing .validity-card {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
body.landing .validity-card p { margin: 0; font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.55; }

/* CTA */
body.landing .cta {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 104, 28, 0.45), transparent 35%),
    linear-gradient(135deg, #24150d 0%, #3a2114 55%, #5b2f1c 100%);
  text-align: left;
}
body.landing .cta::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
body.landing .cta-copy { position: relative; z-index: 1; max-width: 720px; }
body.landing .cta .eyebrow { color: var(--accent); }
body.landing .cta .eyebrow::before { background: var(--accent); }
body.landing .cta h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
body.landing .cta p { max-width: 56ch; color: #e3d2c1; }
body.landing .cta .hero-actions { position: relative; z-index: 1; margin-top: 0; }

/* Contacto */
body.landing .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
body.landing .contact-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; }
body.landing .contact-links { display: grid; gap: 0.6rem; margin-top: 1.6rem; }
body.landing .contact-links a,
body.landing .contact-links span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.92rem;
}
body.landing .contact-links a::before { content: "→"; color: var(--brand); }
body.landing .contact-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
body.landing .landing-form .form-field input,
body.landing .landing-form .form-field textarea { border-color: var(--line); background: #fffdf9; }

/* Footer */
body.landing .footer { margin-top: 0; padding: 4rem 0 1.6rem; background: #21140d; }
body.landing .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; }
body.landing .footer .brand { font-size: 2rem; }
body.landing .footer h4 { color: #f0dcc9; font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }
body.landing .footer a:hover { color: #fff; }

/* Entrada suave */
@keyframes landingIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
body.landing .hero-content,
body.landing .hero-visual { animation: landingIn 0.8s ease both; }
body.landing .hero-visual { animation-delay: 0.12s; }

@media (max-width: 1180px) {
  body.landing .hero-inner { grid-template-columns: 1fr; }
  body.landing .hero-visual { display: none; }
  body.landing .hero h1 { max-width: 15ch; }
  body.landing .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  body.landing .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6%;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 245, 234, 0.98);
    box-shadow: 0 18px 40px rgba(42, 31, 23, 0.12);
  }
  body.landing .nav-links.open { display: flex; }
  body.landing .nav-toggle { display: block; }
  body.landing .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.landing .validity-grid,
  body.landing .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.landing .grid-3,
  body.landing .grid-4 { grid-template-columns: 1fr; }
  body.landing .section-head { display: block; }
  body.landing .section-head .muted { margin-top: 1rem; }
  body.landing .hero { min-height: auto; }
  body.landing .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  body.landing .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.landing .hero-actions .btn { flex: 1; }
  body.landing .hero-scroll { display: none; }
  body.landing .course-media { height: 220px; }
  body.landing .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  body.landing .nav-actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.landing .hero-content,
  body.landing .hero-visual { animation: none; }
  body.landing .course-card,
  body.landing .course-media .thumb { transition: none; }
}

/* ============================================================
   Panel interno y panel del alumno — MVP
   ============================================================ */
.admin-app, .student-app {
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  background: #f6f1e8;
  color: #2b1c12;
}
body.admin-app, body.student-app { font-family: var(--font-body); }
.admin-app .app, .student-app .app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 1.5rem 1rem; color: #f5eadc;
  background: #261a12; display: flex; flex-direction: column; gap: 1rem;
  min-width: 0;
}
.app-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-family: var(--font-head); font-size: 1.4rem; letter-spacing: -0.03em; }
.app-brand small { display: block; width: 100%; color: #bda994; font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; }
.app-brand .brand-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem; }
.app-user { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.04); }
.app-user-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #3a2a1d center/cover; color: #f5b301; font-weight: 800; }
.app-user strong { display: block; font-size: 0.85rem; line-height: 1.2; }
.app-user small { display: block; color: #bda994; font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; }
.app-nav { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; max-width: 100%; }
.app-nav button {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  padding: 0.7rem 0.8rem; border: 0; border-radius: 10px;
  background: transparent; color: #d6c5b3; font-family: inherit; font-size: 0.9rem;
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.app-nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-nav button.active { background: var(--brand); color: #fff; font-weight: 700; }
.app-nav .nav-ico { width: 18px; text-align: center; opacity: .9; }
.app-nav b { margin-left: auto; min-width: 20px; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(0,0,0,.25); font-size: 0.68rem; text-align: center; }
.app-logout { margin-top: auto; color: #d6c5b3; border-color: rgba(255,255,255,.15); }
.app-body { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(246,241,232,.92); border-bottom: 1px solid #e8dccd; backdrop-filter: blur(12px);
}
.app-heading { flex: 1; min-width: 0; }
.app-heading h1 { font-family: var(--font-head); font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0; letter-spacing: -0.02em; }
.app-heading p { margin: 0.1rem 0 0; color: #7a6a5a; font-size: 0.82rem; }
.app-top-actions { display: flex; align-items: center; gap: 0.6rem; }
.app-search { position: relative; width: min(300px, 28vw); }
.app-search input { width: 100%; padding: 0.55rem 0.8rem; border: 1px solid #e8dccd; border-radius: 999px; background: #fffaf3; font-family: inherit; font-size: 0.86rem; }
.app-search-results { position: absolute; top: 110%; left: 0; right: 0; z-index: 40; display: none; background: #fff; border: 1px solid #e8dccd; border-radius: 12px; box-shadow: 0 18px 40px rgba(42,31,23,.15); overflow: hidden; }
.app-search-results.open { display: block; }
.app-search-results button { display: block; width: 100%; padding: 0.6rem 0.8rem; border: 0; background: none; text-align: left; font-family: inherit; cursor: pointer; }
.app-search-results button:hover { background: #fbf5ea; }
.app-search-results strong { display: block; font-size: 0.85rem; }
.app-search-results small, .search-empty { display: block; padding: 0.2rem 0; color: #7a6a5a; font-size: 0.75rem; }
.search-empty { padding: 0.7rem 0.8rem; }
.app-menu-toggle { display: none; border: 1px solid #e8dccd; background: #fffaf3; border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 1.1rem; cursor: pointer; }
.app-main { padding: clamp(1rem, 3vw, 2rem); max-width: 1440px; width: 100%; margin: 0 auto; }

/* Encabezados y estructura */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-header h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0.15rem 0 0.25rem; }
.page-header p { margin: 0; color: #7a6a5a; font-size: 0.9rem; }
.page-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.eyebrow { margin: 0; color: var(--brand-dark); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.kpi-card { padding: 1rem 1.1rem; border: 1px solid #e8dccd; border-radius: 16px; background: #fffaf3; }
.kpi-card span { display: block; color: #7a6a5a; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi-card strong { display: block; margin-top: 0.2rem; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; }
.kpi-card small { display: block; margin-top: 0.15rem; color: #7a6a5a; font-size: 0.75rem; }
.kpi-card.danger strong { color: var(--danger); }
.kpi-card.warning strong { color: var(--warning); }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel-card { border: 1px solid #e8dccd; border-radius: 18px; background: #fffaf3; padding: 1.2rem; min-width: 0; }
.panel-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.panel-card-head h3 { margin: 0; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -0.02em; }
.panel-card-head p { margin: 0.15rem 0 0; color: #7a6a5a; font-size: 0.8rem; }
.panel-card-head h4 { margin: 0 0 0.6rem; font-size: 0.9rem; }
.alert-grid { display: grid; gap: 0.5rem; }
.alert-card { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.8rem 0.9rem; border: 1px solid #e8dccd; border-radius: 12px; background: #fff; text-align: left; font-family: inherit; cursor: pointer; }
.alert-card:hover { border-color: var(--brand); }
.alert-card span { flex: 1; font-size: 0.88rem; }
.alert-card strong { font-size: 1.1rem; }
.alert-card i { color: #7a6a5a; font-style: normal; }
.alert-card.danger { border-left: 4px solid var(--danger); }
.alert-card.warning { border-left: 4px solid var(--warning); }
.alert-card.info { border-left: 4px solid #2a5db0; }
.alert-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 1.1rem; border-radius: 14px; margin-bottom: 1rem; }
.alert-banner.danger { background: #fce9e9; border: 1px solid #f0c2c2; color: #8a1f3d; }
.alert-banner p { margin: 0.2rem 0 0; font-size: 0.82rem; }

/* Listas simples */
.simple-list { display: flex; flex-direction: column; gap: 0.45rem; }
.simple-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #eee2d3; border-radius: 12px; background: #fff; text-align: left; font-family: inherit; cursor: pointer; }
.simple-row:hover { border-color: var(--brand); }
.simple-row.static { cursor: default; }
.simple-row.static:hover { border-color: #eee2d3; }
.simple-row strong { display: block; font-size: 0.88rem; }
.simple-row small { display: block; color: #7a6a5a; font-size: 0.75rem; margin-top: 0.1rem; }
.simple-row i { color: #7a6a5a; font-style: normal; }

/* Pensum del alumno */
.pensum-list { display: flex; flex-direction: column; gap: 0.4rem; }
.pensum-subject { border: 1px solid #eee2d3; border-radius: 12px; background: #fff; overflow: hidden; }
.pensum-subject[open] { border-color: var(--brand); }
.pensum-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.8rem; cursor: pointer; list-style: none; }
.pensum-summary::-webkit-details-marker { display: none; }
.pensum-summary strong { display: block; font-size: 0.88rem; }
.pensum-summary small { display: block; color: #7a6a5a; font-size: 0.75rem; margin-top: 0.1rem; }
.pensum-count { flex: 0 0 auto; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-dark); background: #fdeede; border-radius: 999px; padding: 0.15rem 0.55rem; }
.pensum-summary:hover .pensum-count { background: #fbdcc4; }
.pensum-body { padding: 0 0.9rem 0.9rem 1.1rem; }
.pensum-body h5 { margin: 0.85rem 0 0.25rem; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: #7a6a5a; }
.pensum-body h5:first-child { margin-top: 0.2rem; }
.pensum-body ul { margin: 0; padding-left: 1rem; }
.pensum-body li { font-size: 0.82rem; line-height: 1.5; }
.pensum-body li::marker { color: var(--accent); }
.row-actions { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.simple-row select { padding: 0.4rem; border: 1px solid #e8dccd; border-radius: 8px; font-family: inherit; font-size: 0.8rem; background: #fffaf3; }
.class-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #eee2d3; }
.class-row:last-child { border-bottom: 0; }
.class-row small { display: block; color: #7a6a5a; font-size: 0.75rem; }
.class-time { text-align: right; font-size: 0.82rem; }
.detail-list { display: grid; gap: 0.5rem; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.45rem; border-bottom: 1px solid #f2e8db; }
.detail-list span { color: #7a6a5a; font-size: 0.78rem; }
.detail-list strong { font-size: 0.82rem; text-align: right; }
.timeline { display: flex; flex-direction: column; gap: 0.6rem; }
.timeline small { display: block; color: #7a6a5a; font-size: 0.68rem; }
.timeline span { display: block; font-size: 0.82rem; }
.note-row { padding: 0.7rem 0.8rem; border: 1px solid #eee2d3; border-radius: 12px; background: #fff; }
.note-row p { margin: 0 0 0.3rem; font-size: 0.84rem; }
.note-row small { color: #7a6a5a; font-size: 0.72rem; }
.next-class { display: grid; gap: 0.2rem; padding: 1rem; border-radius: 12px; background: #fbf1e4; }
.next-class strong { font-family: var(--font-head); font-size: 1.2rem; }
.next-class span { color: #7a6a5a; font-size: 0.82rem; }

/* Filtros, tabs y tablas */
.filters-bar, .academic-toolbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters-bar input, .filters-bar select, .academic-toolbar select, .field-inline select, .inline-stage select {
  padding: 0.5rem 0.7rem; border: 1px solid #e8dccd; border-radius: 10px; background: #fffaf3; font-family: inherit; font-size: 0.84rem;
}
.filters-bar input { min-width: 220px; flex: 1; }
.field-inline { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #7a6a5a; }
.segmented { display: flex; gap: 0.3rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; border-bottom: 1px solid #e8dccd; }
.segmented button { flex: none; padding: 0.5rem 0.8rem; border: 0; border-radius: 999px; background: transparent; color: #7a6a5a; font-family: inherit; font-size: 0.84rem; cursor: pointer; }
.segmented button:hover { background: #efe4d5; color: #2b1c12; }
.segmented button.active { background: var(--brand); color: #fff; font-weight: 700; }
.segmented b { margin-left: 0.3rem; font-size: 0.7rem; opacity: 0.85; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th, .data-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid #f0e5d8; text-align: left; font-size: 0.84rem; vertical-align: middle; }
.data-table th { color: #7a6a5a; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.data-table td small { display: block; color: #7a6a5a; font-size: 0.72rem; }
.data-table tbody tr:hover { background: #fcf7ef; }
.inline-stage { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; }
.inline-stage label { font-size: 0.78rem; color: #7a6a5a; }

/* Ficha del alumno */
.student-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.student-avatar { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #eadbc7 center/cover; color: var(--brand-dark); font-family: var(--font-head); font-size: 1.3rem; }
.student-title { flex: 1; min-width: 180px; }
.student-title h2 { margin: 0; font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -0.02em; }
.student-title p { margin: 0.15rem 0 0; color: #7a6a5a; font-size: 0.82rem; }
.student-status { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.student-actions { margin-bottom: 1rem; }
.progress { height: 8px; border-radius: 999px; background: #efe2d2; overflow: hidden; }
.progress i, .progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.progress-inline { width: 90px; height: 7px; border-radius: 999px; background: #efe2d2; overflow: hidden; flex: none; }
.progress-inline i { display: block; height: 100%; background: var(--brand); }
.course-panel { margin-bottom: 1rem; }
.course-panel h4 { margin: 0 0 0.5rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7a6a5a; }
.grade-value { font-family: var(--font-head); font-size: 1.3rem; }
.payment-row, .enroll-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem; border: 1px solid #eee2d3; border-radius: 12px; background: #fff; flex-wrap: wrap; }
.payment-row strong, .enroll-row strong { display: block; font-size: 0.86rem; }
.payment-row small, .enroll-row small { display: block; color: #7a6a5a; font-size: 0.74rem; margin-top: 0.15rem; }
.payment-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.payment-actions b { font-family: var(--font-head); font-size: 1rem; }
.attendance-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid #f2e8db; }
.attendance-row:last-child { border-bottom: 0; }
.attendance-row select { padding: 0.4rem; border: 1px solid #e8dccd; border-radius: 8px; background: #fffaf3; font-family: inherit; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.task-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid #f2e8db; }
.task-item:last-child { border-bottom: 0; }
.task-item small { display: block; color: #7a6a5a; font-size: 0.72rem; }
.message-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.8rem; border: 1px solid #eee2d3; border-radius: 12px; background: #fff; }
.message-row.unread { border-left: 4px solid var(--brand); background: #fffdf8; }
.message-row p { margin: 0.3rem 0 0; font-size: 0.84rem; }
.message-row small { color: #7a6a5a; font-size: 0.73rem; }
.perm-group { margin-bottom: 0.9rem; }
.perm-group > strong { display: block; margin-bottom: 0.35rem; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7a6a5a; }
.perm-group > div { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.check-line { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 500; }
.check-line input { width: auto; }

/* Formularios y modal */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.4rem; grid-column: 1 / -1; }
.app-modal { width: min(720px, 94%); max-height: 90vh; overflow: auto; }
.app-modal.wide { width: min(900px, 96%); }
.app-modal-head { padding: 1.4rem 1.5rem 0.5rem; }
.app-modal-head h2 { margin: 0; font-family: var(--font-head); font-size: 1.45rem; }
.app-modal-head p { margin: 0.2rem 0 0; color: #7a6a5a; font-size: 0.82rem; }
.app-modal-body { padding: 0.8rem 1.5rem 1.5rem; }
.app-modal-body h4 { margin: 0.3rem 0 0.6rem; }

/* Responsive */
@media (max-width: 1050px) {
  .dashboard-grid, .two-col, .task-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-app .app, .student-app .app { grid-template-columns: 1fr; }
  .app-sidebar { position: static; height: auto; overflow: visible; padding: 0.8rem 1rem; }
  .app-brand { font-size: 1.2rem; }
  .app-brand small { display: none; }
  .app-user { display: none; }
  .app-nav { flex-direction: row; overflow-x: auto; padding-bottom: 0.2rem; }
  .app-nav button { width: auto; flex: none; white-space: nowrap; }
  .app-logout { display: none; }
  .app-topbar { flex-wrap: wrap; }
  .app-search { width: 100%; order: 3; }
  .app-menu-toggle { display: none; }
  .app-main { padding: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-head { align-items: flex-start; }
  .student-title { flex-basis: calc(100% - 70px); }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .page-header { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .filters-bar input { min-width: 100%; }
  .data-table { min-width: 540px; }
  .app-heading h1 { font-size: 1.25rem; }
  .app-heading p { font-size: 0.75rem; }
}

.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-summary { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.2rem; }
.profile-summary h3 { margin: 0; font-family: var(--font-head); font-size: 1.4rem; }
.profile-summary p { margin: 0.15rem 0 0; color: #7a6a5a; font-size: 0.82rem; }
@media (max-width: 1050px) { .schedule-grid { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* ---------- Sitio: WhatsApp, registro oficial y testimonios ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.38);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); color: #fff; }
.wa-float svg { display: block; }

.site-registro {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.2rem; padding: 0.75rem 0.9rem;
  border: 1px solid #e6d6bf; border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  max-width: 380px;
}
.site-registro-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e6f6ec; color: var(--green); font-weight: 700; font-size: 0.9rem;
}
.site-registro strong { display: block; font-size: 0.86rem; }
.site-registro small { display: block; color: var(--muted); font-size: 0.72rem; line-height: 1.35; }

.quote-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }

/* ---------- Verificación de certificados ---------- */
.verify-form { display: flex; gap: 0.6rem; margin: 1.4rem 0; }
.verify-form input { flex: 1; padding: 0.75rem 0.9rem; border: 1px solid #e6d6bf; border-radius: 12px; font-family: inherit; font-size: 0.95rem; background: #fff; }
.verify-result { margin-top: 1rem; }
.verify-card { border-radius: 18px; padding: 1.4rem; border: 1px solid #e8dccd; background: #fffaf3; }
.verify-ok { border-color: #bfe6cd; background: #f2fbf5; }
.verify-bad { border-color: #f0c2c2; background: #fdf2f2; }
.verify-badge { display: inline-block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); margin-bottom: 0.6rem; }
.verify-bad .verify-badge { color: var(--danger); }
.verify-card h3 { margin: 0 0 1rem; font-family: var(--font-head); }
.verify-qr { width: 132px; height: 132px; margin-top: 1rem; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid #eee2d3; }

/* ---------- Certificado imprimible ---------- */
.cert-page { background: #efe6da; }
.cert-toolbar { display: flex; justify-content: space-between; align-items: center; max-width: 920px; margin: 1rem auto; padding: 0 1rem; }
.cert-wrap { max-width: 920px; margin: 0 auto 2rem; padding: 0 1rem; }
.cert-sheet {
  position: relative; background: #fffdf8; border: 1px solid #e3d3bd; border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 18px 40px rgba(42, 31, 23, 0.12);
  border-top: 8px solid var(--brand); overflow: hidden;
}
.cert-head { display: flex; align-items: center; gap: 1rem; justify-content: space-between; border-bottom: 1px solid #eee2d3; padding-bottom: 1rem; }
.cert-brand img { height: 64px; width: auto; object-fit: contain; }
.cert-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--brand-dark); }
.cert-academy { text-align: right; }
.cert-academy strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.cert-academy span { color: #7a6a5a; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; }
.cert-body { text-align: center; padding: 2.2rem 0 1.6rem; }
.cert-kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; color: var(--brand-dark); font-weight: 700; margin-bottom: 0.6rem; }
.cert-title { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 1.4rem; }
.cert-text { margin: 0.35rem 0; color: #6b5b4c; font-size: 0.92rem; }
.cert-name { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0.4rem 0; color: var(--ink); }
.cert-program { font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--brand-dark); margin: 0.4rem 0 0.2rem; }
.cert-sub { color: var(--muted); font-size: 0.85rem; margin: 0; }
.cert-date { margin-top: 1.4rem; color: #6b5b4c; font-size: 0.85rem; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; border-top: 1px solid #eee2d3; padding-top: 1.2rem; }
.cert-sign { flex: 1; text-align: center; }
.cert-line { display: block; height: 1px; background: #b9a894; margin: 0 auto 0.45rem; width: 70%; }
.cert-sign small { color: var(--muted); font-size: 0.75rem; }
.cert-qr { text-align: center; width: 150px; }
.cert-qr img { width: 116px; height: 116px; margin: 0 auto 0.3rem; }
.cert-qr small { display: block; color: var(--muted); font-size: 0.62rem; word-break: break-all; line-height: 1.3; }
.cert-note { text-align: center; color: var(--muted); font-size: 0.75rem; margin-top: 1rem; }

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .no-print, .wa-float { display: none !important; }
  .cert-page { background: #fff; }
  .cert-wrap { max-width: none; margin: 0; padding: 0; }
  .cert-sheet { box-shadow: none; border-radius: 0; border: 2px solid #d9c7b0; }
}

.nosotros-logo { height: clamp(96px, 13vw, 150px); width: auto; margin: 0 0 1.4rem; }

@media (max-width: 640px) {
  body.landing .hero .hero-brand { font-size: 0.82rem; letter-spacing: 0.2em; gap: 0.55rem; }
  body.landing .hero-brand-mark { border-radius: 0.28em; }
}
