/* ESCAS — Escuela de Ciencias Aplicadas a la Salud */
:root {
  --brand: #2f4faa;
  --brand-deep: #1d3480;
  --ink: #141c42;
  --text: #2c3452;
  --muted: #5d6685;
  --mint: #33dbb7;
  --mint-deep: #13a888;
  --mint-soft: #e5f8f3;
  --blue-soft: #eef1fa;
  --paper: #f6f7fb;
  --white: #fff;
  --line: #e2e6f0;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 28, 66, .05), 0 12px 32px -12px rgba(20, 28, 66, .18);
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; font-variation-settings: "opsz" 96, "SOFT" 30; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--paper); }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* Kicker with the "+" from the logo */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.kicker::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--mint), var(--mint)) center/100% 5px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center/5px 100% no-repeat;
  border-radius: 2px;
}
.kicker--light { color: #cfe0ff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 79, 170, .6); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { background: #2cc9a7; color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--wa { background: var(--wa); color: #0b3d20; }
.btn--wa:hover { background: #1fbe5b; color: #0b3d20; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .95rem;
}
.nav a:not(.btn):hover { background: var(--blue-soft); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--blue-soft); }
.nav .btn { margin-left: 10px; padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 78px; left: 0; width: 100%; height: calc(100dvh - 78px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 20px 32px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a:not(.btn) { font-size: 1.25rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { background: none; }
  .nav .btn { margin: 20px 0 0; padding: 16px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { height: 40px; }
}

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 58%; height: 100%;
  background: radial-gradient(60% 60% at 70% 40%, var(--mint-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--mint-soft); color: #0c6b56; font-weight: 700; font-size: .85rem; margin-bottom: 22px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 4px rgba(19, 168, 136, .18); }
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media picture img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; object-position: 58% 40%; border-radius: 28px; }
.hero-media::before {
  content: ""; position: absolute; width: 120px; height: 120px; right: -26px; top: -26px; z-index: -1;
  background:
    linear-gradient(var(--mint), var(--mint)) center/100% 40px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center/40px 100% no-repeat;
  border-radius: 14px; opacity: .9;
}
.next-card {
  position: absolute; left: -28px; bottom: 28px; max-width: 300px; background: #fff; border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: block;
}
.next-card:hover { color: var(--text); transform: translateY(-2px); }
.next-card { transition: transform .2s; }
.next-card small { display: block; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-deep); }
.next-card strong { display: block; color: var(--ink); line-height: 1.3; margin: 4px 0 6px; }
.next-card span { font-size: .9rem; color: var(--muted); }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 500 2rem/1 var(--display); color: var(--ink); }
.hero-stats span { font-size: .88rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 100%; }
  .hero-media { max-width: 520px; margin-top: 8px; }
  .hero-media picture img { aspect-ratio: 16/11; }
  .hero-media::before { width: 80px; height: 80px; right: -10px; top: -14px; background-size: 100% 26px, 26px 100%; }
  .next-card { position: relative; left: auto; bottom: auto; margin: -40px 16px 0; max-width: none; }
  .hero-stats { gap: 16px; }
  .hero-stats div { flex: 1; }
  .hero-stats b { font-size: 1.6rem; }
  .hero-stats span { font-size: .8rem; line-height: 1.35; }
}

/* Credentials strip */
.creds { border-block: 1px solid var(--line); padding: 26px 0; background: #fff; }
.creds .wrap { display: flex; align-items: center; gap: 18px 36px; flex-wrap: wrap; justify-content: center; }
.creds p { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.creds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.creds li { font: 600 1.05rem/1 var(--display); color: var(--ink); opacity: .78; white-space: nowrap; }

/* Course cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 600 .92rem/1 var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.course-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.course-card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tag { font: 800 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.status { font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--brand-deep); }
.status--open { background: var(--mint-soft); color: #0c6b56; }
.status--free { background: #fff3d6; color: #7a5200; }
.status--live { background: #f1eefc; color: #4b3a99; }
.course-card h3 { font: 500 1.4rem/1.22 var(--display); letter-spacing: -.01em; margin-bottom: 10px; }
.course-card h3 a { color: var(--ink); text-decoration: none; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.course-card p { color: var(--muted); font-size: .96rem; }
.facts { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: .9rem; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li b { min-width: 84px; font-weight: 700; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.course-card--featured { background: var(--ink); border-color: var(--ink); color: #c9d0ea; }
.course-card--featured h3 a { color: #fff; }
.course-card--featured p { color: #b8c1e0; }
.course-card--featured .tag { color: var(--mint); }
.course-card--featured .facts { border-color: rgba(255, 255, 255, .2); }
.course-card--featured .facts b { color: #fff; }

/* Split / feature blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { border-radius: 24px; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mint-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--mint-deep); }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Director */
.director { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.director-photo { position: relative; }
.director-photo img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.director-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); font-size: .88rem; }
.director-photo figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.director blockquote { margin: 0 0 24px; font: 400 clamp(1.3rem, 2.3vw, 1.7rem)/1.4 var(--display); color: var(--ink); }
.director ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0 0 28px; }
.director ul li { padding-left: 26px; position: relative; }
.director ul li::before { content: "+"; position: absolute; left: 4px; top: -1px; font-weight: 800; color: var(--mint-deep); }
@media (max-width: 800px) { .director { grid-template-columns: 1fr; } .director-photo { max-width: 340px; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.stars { color: #f2b01e; letter-spacing: 3px; margin-bottom: 14px; }
.quote p { font: 400 1.22rem/1.5 var(--display); color: var(--ink); flex: 1; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; flex: none; }
.quote footer b { color: var(--ink); display: block; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Masterclass band */
.band {
  position: relative; overflow: hidden; background: var(--ink); color: #c9d0ea; border-radius: 28px;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; opacity: .12;
  background:
    linear-gradient(var(--mint), var(--mint)) center/100% 80px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center/80px 100% no-repeat;
  border-radius: 28px; pointer-events: none;
}
.band h2 { color: #fff; }
.band h2 em { color: var(--mint); }
.band .meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.band .meta li { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 7px 14px; font-size: .88rem; color: #fff; }
.band .form-card { position: relative; z-index: 1; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); color: var(--text); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .95rem; }
.lead-form { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f4faa' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field input:user-invalid { border-color: #d64545; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }
.form-success { text-align: center; padding: 20px 6px; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .tick svg { width: 28px; height: 28px; }
.form-success h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; }
.form-error { color: #b42318; font-size: .9rem; margin: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--mint-soft); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.newsletter .lead-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.newsletter .lead-form .check { grid-column: 1 / -1; }
.newsletter .field input { background: #fff; }
@media (max-width: 900px) { .newsletter { grid-template-columns: 1fr; } .newsletter .lead-form { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; transition: transform .25s;
  background:
    linear-gradient(var(--brand), var(--brand)) center/100% 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center/2px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 680px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--paper), #fff); }
.page-hero .lede { max-width: 680px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 8px; }

/* Course detail */
.course-hero .tag-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.course-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 900px; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.course-aside { position: sticky; top: 100px; }
@media (max-width: 980px) { .course-layout { grid-template-columns: 1fr; } .course-aside { position: static; } }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; }
.fact-grid div { background: #fff; padding: 18px 20px; }
.fact-grid dt { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact-grid dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .fact-grid { grid-template-columns: 1fr; } }
.prose h2 { font-size: 1.7rem; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%2313a888' stroke-width='2.2'/%3E%3C/svg%3E") center no-repeat;
}
.teacher { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.teacher img, .teacher .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font-size: 1.2rem; }
.teacher b { color: var(--ink); display: block; }
.teacher span { font-size: .92rem; color: var(--muted); }
.aside-wa { margin-top: 14px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; scroll-margin-top: 110px; }
.member-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.member-head img, .member-head .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; font-size: 1.5rem; }
.member h3 { margin: 0; font-size: 1.15rem; }
.member-role { font-size: .88rem; color: var(--mint-deep); font-weight: 700; }
.member p { font-size: .94rem; color: var(--muted); margin: 0; }
.member--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; background: var(--paper); border: 0; }
.member--lead img { width: 100%; border-radius: 20px; aspect-ratio: 1; object-fit: cover; }
.member--lead h3 { font: 500 2rem/1.1 var(--display); margin-bottom: 6px; }
.member--lead p { font-size: 1.02rem; }
@media (max-width: 720px) { .member--lead { grid-template-columns: 1fr; } .member--lead img { max-width: 260px; } }
.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--ink); }

/* References */
.refs { list-style: none; padding: 0; margin: 0; counter-reset: ref; display: grid; gap: 16px; }
.refs li { counter-increment: ref; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 76px; }
.refs li::before { content: counter(ref, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font: 500 1.6rem/1 var(--display); color: var(--mint-deep); }
.refs .authors { font-weight: 700; color: var(--ink); }
.refs .title { font-style: italic; display: block; margin: 4px 0; color: var(--ink); }
.refs .journal { color: var(--muted); font-size: .94rem; }
.refs a { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 14px; margin: 28px 0; }
.channel { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.channel:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.channel .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--brand); flex: none; }
.channel .ic svg { width: 22px; height: 22px; }
.channel--wa .ic { background: #dcf8e7; color: #128c4a; }
.channel b { display: block; color: var(--ink); }
.channel span { font-size: .92rem; color: var(--muted); }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.draft-note { background: #fff3d6; color: #6b4a00; border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: #aab3d4; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer img { height: 48px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #d7ddf3; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer p { font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.socials a:hover { border-color: var(--mint); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #0b3d20; text-decoration: none; font-weight: 800; font-size: .95rem;
  padding: 14px 18px 14px 14px; border-radius: 999px; box-shadow: 0 10px 28px -8px rgba(18, 140, 74, .6);
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); color: #0b3d20; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; right: 16px; bottom: 16px; } }

/* Reveal (only when JS adds .js; content stays visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
