/* ============================================================
   ALEX REYES · alexreyes.es · style.css
   Tech Minimal · HTML puro · sin framework
   ============================================================ */

:root {
  --bg: #ffffff; --bg-subtle: #f9f9f9; --bg-hover: #f4f4f4;
  --border: #e8e8e8; --border-strong: #d0d0d0;
  --text: #0a0a0a; --text-soft: #525252; --text-faint: #888888;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 10px; --radius-sm: 6px;
}
[data-theme="dark"] {
  --bg: #0a0a0a; --bg-subtle: #111111; --bg-hover: #1a1a1a;
  --border: #222222; --border-strong: #333333;
  --text: #f0f0f0; --text-soft: #a0a0a0; --text-faint: #666666;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--text); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.7; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
[data-theme="dark"] nav { background: rgba(10,10,10,0.92); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-brand {
  font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; flex-shrink: 0;
}
.nav-brand::before {
  content: ""; width: 8px; height: 8px;
  background: var(--text); border-radius: 50%; display: inline-block;
}
.nav-brand:hover { opacity: 1; }
.nav-links { display: flex; gap: 0.1rem; flex: 1; }
.nav-links a {
  font-size: 0.85rem; color: var(--text-faint);
  padding: 0.35rem 0.65rem; border-radius: var(--radius-sm);
  font-weight: 400;
}
.nav-links a:hover, .nav-links a.nav-active {
  color: var(--text); background: var(--bg-hover); opacity: 1;
}
.nav-links a.nav-active { font-weight: 500; }
.nav-right {
  display: flex; align-items: center;
  gap: 0.8rem; margin-left: auto;
}
.theme-btn {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.4rem;
  cursor: pointer; color: var(--text-soft);
  display: flex; align-items: center; transition: all 0.15s;
}
.theme-btn:hover { border-color: var(--border-strong); background: var(--bg-hover); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
.nav-hamburger {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.4rem;
  cursor: pointer; color: var(--text-soft);
  align-items: center; transition: all 0.15s;
}
.nav-hamburger:hover { border-color: var(--border-strong); background: var(--bg-hover); }

/* ---- LANG SELECTOR ---- */
.lang-sw {
  display: flex; align-items: center; gap: 0.2rem;
  font-size: 0.75rem; font-weight: 500;
}
.lang-sw a {
  color: var(--text-faint);
  padding: 0.2rem 0.35rem; border-radius: 4px;
}
.lang-sw a:hover { color: var(--text); opacity: 1; }
.lang-sw a.lang-active { color: var(--text); font-weight: 600; }
.lang-sw .lang-sep { color: var(--border-strong); }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ---- HERO ---- */
.hero { padding: 5rem 0 3rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-name-full {
  font-size: 0.88rem; color: var(--text-faint);
  font-style: italic; margin-top: -1rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; background: var(--bg-subtle);
  border-radius: 100px; font-size: 0.75rem; font-weight: 500;
  color: var(--text-soft); width: fit-content;
}
.pill::before {
  content: ""; width: 7px; height: 7px;
  background: #10b981; border-radius: 50%;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1.08;
}
.hero-desc {
  font-size: 1.08rem; line-height: 1.65;
  color: var(--text-soft); max-width: 38rem;
}
.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.meta-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600; color: var(--text-faint);
}
.meta-value { font-size: 0.9rem; font-weight: 500; }
.hero-photo { display: flex; justify-content: center; }
.photo-frame-img {
  width: 100%; max-width: 300px; aspect-ratio: 4/5;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}

/* ---- IDENTITY CARDS (Docencia + Doctorado info under hero) ---- */
.identity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.identity-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.identity-card-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.identity-list {
  margin: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.identity-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.6rem;
  align-items: baseline;
}
.identity-list dt {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
  color: var(--text-faint);
}
.identity-list dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

/* ---- NEWS (Últimas novedades) ---- */
.news-section { padding: 2.5rem 0 3rem; border-top: 1px solid var(--border); }
.news-header { margin-bottom: 1.4rem; }
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.news-col-title {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin: 0 0 1rem;
}
.news-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.news-list li {
  display: grid; grid-template-columns: 80px 1fr; gap: 0.9rem;
  padding-bottom: 1rem; border-bottom: 1px dashed var(--border);
}
.news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.news-date {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--text-faint); padding-top: 0.15rem;
  text-transform: lowercase;
}
.news-text {
  font-size: 0.92rem; color: var(--text-soft);
  line-height: 1.55; text-decoration: none;
  display: block;
}
a.news-text:hover { color: var(--text); }
a.news-text strong { color: var(--text); font-weight: 600; }

/* ---- ABOUT ---- */
.about-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.about-grid {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 3rem; align-items: start;
}
.about-text p { color: var(--text-soft); line-height: 1.75; font-size: 1rem; }

/* ---- SECTIONS ---- */
.sections { padding: 3rem 0 5rem; }
.section-label {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* ---- AHORA MISMO ---- */
.now-section { padding: 2rem 0 3rem; border-top: 1px solid var(--border); }
.now-header { margin-bottom: 1.2rem; }
.now-grid { display: flex; flex-direction: column; gap: 0.8rem; }
.now-item {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.95rem; color: var(--text-soft);
}
.now-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; flex-shrink: 0;
  animation: pulse 2s infinite;
}
.now-dot-blue { background: #6366f1; animation: none; }
.now-dot-orange { background: #d97706; animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- DOS CAMINOS ---- */
.two-paths {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.path { padding: 2.5rem; }
.path-teaching { border-right: 1px solid var(--border); }
.path-header { margin-bottom: 0.5rem; }
.path-header h2 { font-size: 1.4rem; margin: 0.5rem 0 0.8rem; }
.path-header p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  border: none; font-family: var(--font); transition: opacity 0.15s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-secondary {
  background: var(--bg-subtle); color: var(--text);
  border: 1px solid var(--border);
}
.btn:hover { opacity: 0.8; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-kicker { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.card h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; }

/* ---- ITEM LIST ---- */
.item-list { list-style: none; margin-top: 1.2rem; border-top: 1px solid var(--border); }
.item-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 0; border-bottom: 1px solid var(--border); gap: 1rem;
}
.item-list a { font-size: 0.92rem; color: var(--text-soft); flex: 1; }
.item-list a:hover { color: var(--text); opacity: 1; }

/* ---- TAGS ---- */
.tag {
  font-size: 0.7rem; font-weight: 500;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  white-space: nowrap; font-family: var(--mono);
}
.tag-green { color: #059669; background: rgba(5,150,105,0.1); }
.tag-purple { color: #6366f1; background: rgba(99,102,241,0.1); }
.tag-orange { color: #d97706; background: rgba(217,119,6,0.1); }
.tag-red { color: #dc2626; background: rgba(220,38,38,0.1); }
.tag-gray { color: var(--text-faint); background: var(--bg-hover); }

/* ---- DOTS ---- */
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; display: inline-block; flex-shrink: 0;
}
.dot-purple { background: #6366f1; }

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 0.82rem; color: var(--text-faint);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text); opacity: 1; }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-soft); }

/* ---- COURSES / SUBJECT CARDS ---- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.subject-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.subject-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); opacity: 1;
}
.subject-card-level {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint);
}
.subject-card h3 { font-size: 1.1rem; line-height: 1.3; }
.subject-card p {
  font-size: 0.88rem; color: var(--text-soft);
  line-height: 1.55; flex: 1;
}
.subject-card-footer {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 0.5rem;
}

/* ---- ARCHIVE ---- */
.archive-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.archive-card {
  background: var(--bg-subtle); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.archive-card-header {
  margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.archive-list { display: flex; flex-direction: column; gap: 0.5rem; }
.archive-list a { font-size: 0.88rem; color: var(--text-soft); }
.archive-list a:hover { color: var(--text); opacity: 1; }
.archive-item {
  font-size: 0.88rem; color: var(--text-soft);
  padding: 0.25rem 0;
  text-decoration: none;
  display: block;
  transition: color 0.15s, padding-left 0.15s;
}
a.archive-item:hover {
  color: var(--text);
  padding-left: 0.3rem;
}

/* ---- CV ---- */
.cv-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.cv-section:last-child { border-bottom: none; }
.cv-section-title {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-faint);
  font-weight: 600; margin-bottom: 1.5rem;
}
.cv-entry {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.cv-entry:last-child { margin-bottom: 0; }
.cv-period {
  font-size: 0.82rem; color: var(--text-faint);
  font-family: var(--mono); padding-top: 0.15rem;
}
.cv-role { font-weight: 600; font-size: 0.98rem; margin-bottom: 0.2rem; }
.cv-org { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 0.5rem; }
.cv-desc { font-size: 0.88rem; color: var(--text-faint); line-height: 1.6; }

/* ---- NOTES ---- */
.note-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.note-item:last-child { border-bottom: none; }
.note-date {
  font-size: 0.8rem; color: var(--text-faint);
  font-family: var(--mono); padding-top: 0.3rem;
}
.note-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.note-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; }

/* ---- CHAPTER LIST (acordeón) ---- */
.chapter-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.chapter-item {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s;
}
.chapter-item:hover { border-color: var(--border-strong); }
.chapter-header {
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  cursor: pointer; user-select: none;
}
.chapter-num {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-faint); min-width: 2rem; font-weight: 500;
}
.chapter-title { flex: 1; font-weight: 500; font-size: 0.98rem; }
.chapter-arrow {
  color: var(--text-faint);
  transition: transform 0.2s; font-size: 0.8rem;
}
.chapter-item.open .chapter-arrow { transform: rotate(180deg); }
.chapter-body {
  display: none; padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.chapter-item.open .chapter-body { display: block; }
.chapter-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem; margin-top: 1rem;
}
.chapter-section {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-soft);
}
.chapter-section.available { cursor: pointer; }
.chapter-section.available:hover {
  border-color: var(--border-strong); color: var(--text);
}
.chapter-section.empty { opacity: 0.5; cursor: default; }
.chapter-section svg { flex-shrink: 0; }

/* ---- PROMO TABS ---- */
.promo-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.promo-tab {
  padding: 0.6rem 1.2rem; font-size: 0.88rem; font-weight: 500;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer; color: var(--text-faint);
  border: 1px solid transparent; border-bottom: none;
  background: none; font-family: var(--font);
  transition: all 0.15s; margin-bottom: -1px;
}
.promo-tab.active {
  color: var(--text); background: var(--bg);
  border-color: var(--border); border-bottom-color: var(--bg);
}
.promo-panel { display: none; }
.promo-panel.active { display: block; }

/* ---- LEVEL BADGE ---- */
.level-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.6rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; font-family: var(--mono);
}
.level-hl { background: rgba(99,102,241,0.12); color: #6366f1; }
.level-sl { background: rgba(16,185,129,0.12); color: #059669; }

/* ---- INFO GRID ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.info-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.2rem;
}
.info-card-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
  color: var(--text-faint); margin-bottom: 0.3rem;
}
.info-card-value { font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* ---- MATH BLOCK ---- */
.math-block {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin: 1.5rem 0; text-align: center;
  overflow-x: auto; font-size: 1rem;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.contact-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.contact-card-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600; color: var(--text-faint);
}
.contact-card-value {
  font-size: 0.95rem; font-weight: 500;
  font-family: var(--mono); word-break: break-all;
}

/* ---- FOOTER ---- */
footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-faint);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.2rem; }
  .nav-inner { padding: 0 1.2rem; gap: 0.8rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .two-paths { grid-template-columns: 1fr; }
  .identity-cards { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 2rem; }
  .news-list li { grid-template-columns: 70px 1fr; gap: 0.6rem; }
  .path-teaching { border-right: none; border-bottom: 1px solid var(--border); }
  .archive-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.3rem; }
  .note-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .chapter-sections { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .lang-sw { font-size: 0.7rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.2rem 1rem;
    gap: 0.15rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }
  nav.open .nav-links { display: flex; }
  .nav-links a {
    font-size: 0.98rem;
    padding: 0.75rem 0.65rem;
    border-radius: var(--radius-sm);
  }
}

/* ---- EXAM LIST (sección "Exámenes anteriores" en página de promoción) ---- */
.exam-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.exam-card {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.2s, transform 0.15s;
}
.exam-card:hover { border-color: var(--border-strong); }
.exam-card-head {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.exam-card-date {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--text-faint); text-transform: lowercase;
}
.exam-card-title {
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  margin: 0; color: var(--text);
}
.exam-card-meta {
  font-size: 0.82rem; color: var(--text-soft); margin: 0;
}
.exam-card-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem;
}
.exam-card-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border); color: var(--text);
  background: var(--bg); transition: all 0.15s;
}
.exam-card-btn:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.exam-card-btn.html { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.25); color: #6366f1; }
.exam-card-btn.html:hover { background: rgba(99,102,241,0.14); }
.exam-card-btn.pdf { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.2); color: #b91c1c; }
.exam-card-btn.pdf:hover { background: rgba(220,38,38,0.12); }
[data-theme="dark"] .exam-card-btn.html { color: #a5b4fc; }
[data-theme="dark"] .exam-card-btn.pdf { color: #fca5a5; }
