:root {
  --bg: #faf7ff;
  --bg-alt: #f2ecfd;
  --surface: #ffffff;
  --ink: #1f1a24;
  --deep: #2e1065;
  --ink-soft: #4a4458;
  --muted: #6f6880;
  --line: #e7e0f3;
  --sand: #c4a9f5;
  --accent: #7c3aed;
  --accent-soft: #efe7fe;
  --focus: #7c3aed;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(31, 26, 36, .06), 0 8px 24px rgba(124, 58, 237, .08);
  --serif: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fucsia: #e91e8c;
  --coral: #ff6b4a;
  --header-h: 94px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: #1c0e38; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--deep); color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 250, 248, .86); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-words { display: inline-flex; flex-direction: column; gap: 4px; align-items: stretch; }
.brand-tagline { font-size: 11px; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.brand-mark { width: 60px; height: 60px; display: block; object-fit: contain; flex: none; }
.brand-text { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); display: flex; justify-content: space-between; }
.brand-text span { color: inherit; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-soft); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 500; margin-bottom: 22px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; text-align: left; text-wrap: pretty; }
.lead p { margin: 0; }
.lead p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-facts { display: flex; gap: 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; color: var(--accent); }
.hero-facts dd { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-art img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); opacity: .85; }
.hero-art .lines path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 2.2s .5s ease forwards; }
.hero-art .dune { transform-box: fill-box; animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero-art .d2 { animation-delay: .12s; }
.hero-art .d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Pillars */
.pillars { background: #272036; color: #fff; padding: 44px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.pillar { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.pillar h2 { font-size: 26px; margin: 0 0 8px; }
.pillar p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.55; max-width: 30em; text-wrap: pretty; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.section-lead { color: var(--ink-soft); font-size: 17px; }
.section-lead a { color: var(--accent); }

/* Filters */
.filters { display: grid; gap: 16px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.filter-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; width: 112px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.segmented button { height: 32px; padding: 0 16px; border: 0; background: none; border-radius: 999px; font-size: 14px; cursor: pointer; color: var(--ink-soft); transition: background .2s, color .2s; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(42,22,80,.12); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { height: 40px; width: 240px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(109,51,201,.15); }
.results-bar { display: flex; align-items: center; gap: 16px; }
.results-count { font-size: 14px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109,51,201,.35); }
.link-btn:hover { text-decoration-color: currentColor; }

/* Course grid */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; transition: border-color .2s, box-shadow .25s, transform .25s;
  animation: fadeUp .4s ease both;
}
.course:hover { border-color: #d2c6e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.course-area { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.course h3 { font-size: 26px; margin-bottom: 12px; }
.course-teacher { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.course-detail { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; font-size: 15px; color: var(--ink-soft); }
.course-detail li { position: relative; padding-left: 16px; }
.course-detail li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
.course-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.tag-mode { background: var(--accent-soft); color: #5a2aa8; }
.course-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; }
.course-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.course-cta:hover svg { transform: translateX(3px); }
.empty { padding: 40px 0; color: var(--ink-soft); text-align: center; }
.empty a { color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.member:hover { border-color: #d2c6e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.member .avatar { width: 52px; height: 52px; font-size: 18px; font-family: var(--serif); font-weight: 500; }
.member-name { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.member-subjects { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.mode-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 24px; }
.mode-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mode h3 { font-size: 28px; margin-bottom: 12px; }
.mode .link-btn { margin-top: auto; align-self: flex-start; }
.mode p { color: var(--ink-soft); margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--line); }
.step { position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; margin-bottom: 20px; position: relative; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 500; cursor: pointer; }
.faq-q .pm { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.faq-q .pm::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .pm::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-soft); padding: 0 40px 22px 0; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.contact-list { margin: 40px 0 0; display: grid; gap: 20px; }
.contact-list dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: 17px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23776f88' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(109,51,201,.15); background: #fff; }
.field.invalid input, .field.invalid select { border-color: #b4412f; }
.field-error { font-size: 13px; color: #b4412f; min-height: 0; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--deep); color: rgba(255,255,255,.8); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 52px; height: 52px; }
.footer-brand strong { font-family: var(--serif); font-weight: 500; font-size: 20px; color: #fff; }
.footer-brand p { font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.55); width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--deep); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(46,16,101,.25);
  transform: translateY(90px); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .2s;
}
.wa-float.visible { transform: none; }
.wa-float:hover { background: #1c0e38; }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .modes, .team { grid-template-columns: repeat(2, 1fr); }
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; height: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-art { max-width: 440px; margin: 8px auto 0; width: 100%; }
  .pillars-grid { grid-template-columns: 1fr; gap: 32px; }
  .search { margin-left: 0; width: 100%; }
  .filter-row { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .segmented { align-self: flex-start; }
  .search input { width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 24px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 28px; }
  .course-grid, .modes, .team { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .filter-label { width: 100%; }
  .chips { margin: 0 -16px; padding: 2px 16px 4px; }
  .course { padding: 20px; }
  .course h3 { font-size: 24px; }
  .mode, .form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .brand-text { font-size: 20px; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-tagline { font-size: 9px; letter-spacing: .09em; }
  .brand { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-art .lines path { stroke-dashoffset: 0; }
}


/* ===== Ajustes pedidos por Karina (nov 2026) ===== */

/* Marca: nombre más grande, palabras juntas; el lema toma su ancho desde app.js */
.brand-mark { width: 64px; height: 64px; }
.brand-text { font-size: 32px; font-weight: 600; display: block; white-space: nowrap; justify-content: initial; }
.brand-text span + span { margin-left: .25em; }
.brand-words { align-items: flex-start; gap: 5px; }
.brand-tagline { font-size: 11px; letter-spacing: 0; white-space: nowrap; font-weight: 500; }

/* Texto del inicio: renglones parejos */
.lead p { text-wrap: balance; }

/* Números del inicio centrados bajo sus títulos */
.hero-facts div { align-items: center; text-align: center; }

/* Recuadro del lema: color #561269, a medio centímetro de los números */
.hero { padding-bottom: 19px; }
.hero-inner { align-items: end; }
.hero-art { align-self: center; }
.pillars { background: #561269; }
.pillar { border-top-color: rgba(255,255,255,.28); }
.pillar p { color: rgba(255,255,255,.85); }

/* Títulos de sección (NUESTRAS MATERIAS, DOCENTES, etc.) y frases que los acompañan: 15, parejos */
.eyebrow { font-size: 15px; font-weight: 700; }
.section-lead { font-size: 15px; }
.lead-2 { white-space: normal; }

/* Filtros: ÁREA, NIVEL, PRESENCIAL EN más visibles */
.filter-label { font-size: 14px; font-weight: 700; color: var(--ink); width: 150px; }
@media (min-width: 641px) { .filter-row > .chips { flex: 1; min-width: 0; } }

/* Botones de filtro: borde como "Consultar por WhatsApp"; áreas en negrita */
.chip { border-color: var(--ink); }
#filterArea .chip { font-weight: 700; }

/* Área en cada tarjeta en negrita */
.course-area { font-weight: 700; }

/* Pasos para empezar: texto dos puntos más grande */
.step p { font-size: 17px; }

@media (max-width: 640px) {
  .brand-text { font-size: 22px; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-tagline { font-size: 8px; }
  .lead-2 br { display: none; }
}
@media (max-width: 860px) {
  .hero-art { order: -1; margin: 0 auto 8px; }
}
@media (max-width: 640px) { .lead p { text-wrap: pretty; } }

/* Formulario de Google */
.gform h3 { font-size: 26px; }
.gform p { color: var(--ink-soft); }
.gform.embedded { padding: 8px; gap: 8px; }
.gform-frame { width: 100%; height: 900px; border: 0; border-radius: var(--radius); background: #fff; }
.form-note a { color: var(--accent); }

/* Ventana de cada docente */
.bio { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 0; border-radius: var(--radius-lg); padding: 32px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(31,26,36,.28); }
.bio::backdrop { background: rgba(31, 26, 36, .55); }
.bio[open] { animation: bioIn .2s ease; }
@keyframes bioIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bio-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 999px; }
.bio-close:hover { background: var(--bg-alt); color: var(--ink); }
.bio-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-right: 40px; }
.bio-head .avatar { width: 60px; height: 60px; font-size: 22px; flex: none; }
.bio-head h3 { font-size: 28px; }
.bio-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.bio-text { display: grid; gap: 10px; margin-bottom: 24px; font-size: 16px; color: var(--ink-soft); }
.bio-label { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.bio-subjects { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.bio-subjects li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.bio-subjects span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .bio { padding: 24px 20px; } .bio-head h3 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .bio[open] { animation: none; } }

/* Aviso de que las tarjetas de docentes se pueden tocar */
.team-hint { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.team-hint svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-hint strong { color: var(--accent); }
.member { cursor: pointer; text-align: left; }
.member-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.member:hover .member-more { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .team-hint { border-radius: var(--radius); align-items: flex-start; } }

/* Materias: título y frase en un renglón (en pantallas anchas) */
.head-wide { max-width: none; }
@media (min-width: 1000px) { .head-wide h2, .head-wide .section-lead { white-space: nowrap; } }

/* Tarjetas de docentes: solo el nombre */
.team { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.member { display: flex; align-items: center; justify-content: center; padding: 18px 16px; min-height: 0; text-align: center; }
.member-name { font-size: 20px; }
.member:hover .member-name { color: var(--accent); }
@media (max-width: 640px) { .team { grid-template-columns: 1fr 1fr; gap: 10px; } .member { padding: 14px 10px; } .member-name { font-size: 17px; } }
/* Celular: que los filtros no ensanchen la página (los botones se deslizan de costado) */
.filters, .filter-row, .chips { min-width: 0; max-width: 100%; }
@media (max-width: 860px) { .filter-label { width: 100%; } .filters { overflow: hidden; } }

/* Contacto simple: WhatsApp con número + botón del formulario */
.contact-simple { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-simple h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.btn-wa { background: #561269; color: #fff; padding: 16px 28px; font-size: 17px; gap: 12px; }
.btn-wa:hover { background: #45104f; color: #fff; }
.btn-wa svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn-wa strong { font-weight: 700; margin-left: 4px; white-space: nowrap; }
@media (max-width: 640px) { .contact-actions { flex-direction: column; width: 100%; } .btn-wa { width: 100%; justify-content: center; padding: 16px; } }

/* Inicio: botones del mismo tamaño */
.hero-actions .btn { min-width: 240px; }

/* Filtros: ÁREA, NIVEL, SEDES alineados con el primer renglón de opciones */
@media (min-width: 861px) {
  .filter-row { align-items: flex-start; }
  .filter-label { line-height: 38px; }
  #lblSede { line-height: 42px; }
}

/* Tarjetas de materias más chicas, tres por renglón */
.course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.course { padding: 18px 18px 16px; border-radius: var(--radius); }
.course-area { font-size: 11px; margin-bottom: 6px; }
.course h3 { font-size: 21px; margin-bottom: 8px; }
.course-teacher { font-size: 14px; margin-bottom: 10px; }
.course-teacher .avatar { width: 26px; height: 26px; font-size: 12px; }
.course-detail { font-size: 14px; margin-bottom: 12px; gap: 2px; }
.course-detail li::before { top: 9px; }
.course-meta { margin-bottom: 12px; }
.course-meta .tag { font-size: 12px; }
@media (max-width: 760px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .course-grid { grid-template-columns: 1fr; } }

/* Contacto: los dos botones iguales */
.contact-actions .btn-wa { min-width: 300px; }
@media (max-width: 640px) { .contact-actions .btn-wa { min-width: 0; } }

/* Línea violeta que separa las secciones (desde Nuestras materias), cortada 2 cm antes de cada margen */
.sep {
  border: 0; height: 1px; background: #7C3AED;
  box-shadow: 0 3px 6px rgba(124, 58, 237, .18);
  margin: 0 76px 56px;
}
.sep-in { margin: 0 76px 28px; }
@media (max-width: 860px) { .sep, .sep-in { margin-left: 24px; margin-right: 24px; } }

/* Menos espacio entre secciones */
.section { padding: 56px 0 72px; }
@media (max-width: 860px) { .section { padding: 40px 0 56px; } .sep { margin-bottom: 40px; } }

/* Sin la línea finita bajo los filtros (la reemplaza la violeta) */
.filters { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }

/* Docentes: menos espacio entre la presentación y las tarjetas */
#docentes .section-head { margin-bottom: 24px; }

/* ===== Ajuste 26/11: línea en el cambio de fondo, color lila suave, distancias ===== */
.sep, .sep-in {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(183,156,247,0) 0%, #B79CF7 18%, #B79CF7 82%, rgba(183,156,247,0) 100%);
  box-shadow: 0 4px 12px rgba(167, 139, 250, .35);
}
/* La línea de arriba de cada sección va justo donde cambia el color del fondo */
.section { padding-top: 0; }
.section > .wrap > .sep:first-child { margin-top: 0; margin-bottom: 48px; }
/* Distancias pedidas */
#propuesta { padding-bottom: 52px; }   /* tarjetas de materias → Docentes: 2 cm menos */
#docentes  { padding-bottom: 38px; }   /* tarjetas de docentes → Cómo empezar: 1 cm */
#metodo    { padding-bottom: 52px; }   /* Cómo empezar → Contacto: 2 cm menos */
@media (max-width: 860px) {
  .section > .wrap > .sep:first-child { margin-bottom: 36px; }
  #propuesta, #metodo { padding-bottom: 40px; }
  #docentes { padding-bottom: 30px; }
}

/* Recuadro del lema: tonos suavizados con un difuso delicado */
.pillars {
  background:
    radial-gradient(ellipse 60% 120% at 10% 0%, rgba(233, 30, 140, .16), transparent 60%),
    radial-gradient(ellipse 55% 120% at 90% 100%, rgba(183, 156, 247, .28), transparent 62%),
    radial-gradient(ellipse 40% 90% at 50% 50%, rgba(124, 58, 237, .14), transparent 70%),
    linear-gradient(180deg, #5c1a72 0%, #561269 100%);
  box-shadow: 0 10px 28px -12px rgba(86, 18, 105, .45);
}
.pillar { border-top-color: rgba(255, 255, 255, .22); }
.pillar h2 { color: #fff; text-shadow: 0 1px 12px rgba(255, 255, 255, .12); }
.pillar p { color: rgba(255, 255, 255, .82); }

/* Pie de página: una sola fila, alto máximo ~3 cm */
.site-footer { padding: 18px 0; }
.footer-inner { flex-wrap: nowrap; gap: 24px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand strong { font-size: 17px; }
.footer-brand p { font-size: 12px; }
.footer-copy { width: auto; padding-top: 0; border-top: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px 20px; }
  .footer-copy { width: 100%; white-space: normal; }
}

/* Recuadro del lema: alto máximo ~3,5 cm */
.pillars { padding: 14px 0 16px; }
.pillars-grid { gap: 32px; }
.pillar { padding-top: 10px; }
.pillar h2 { font-size: 20px; margin-bottom: 4px; }
.pillar p { font-size: 13.5px; line-height: 1.45; max-width: none; }

/* Encabezado: línea lila de punta a punta */
.site-header, .site-header.scrolled { border-bottom: 0; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #B79CF7; box-shadow: 0 4px 12px rgba(167, 139, 250, .35); pointer-events: none;
}

/* Encabezado: fondo lila rosado suave, con un difuso leve */
.site-header {
  background:
    radial-gradient(ellipse 50% 140% at 15% 0%, rgba(234, 217, 233, .9), transparent 70%),
    radial-gradient(ellipse 50% 140% at 85% 100%, rgba(233, 220, 236, .9), transparent 70%),
    rgba(232, 218, 234, .94);
}

/* Redes sociales en Contacto */
.social { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.social[hidden], .social-btn[hidden] { display: none; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #561269; color: #561269; text-decoration: none; font-size: 14px; font-weight: 500; background: var(--surface); }
.social-btn:hover { background: #561269; color: #fff; }
.social-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.social-btn .dot { fill: currentColor; stroke: none; }

/* Imagen del inicio: 2 cm más arriba (en computadora) */
@media (min-width: 861px) { .hero-art { transform: translateY(-76px); } }

/* Botón flotante en verde WhatsApp */
.wa-float { background: #25D366; box-shadow: 0 6px 18px rgba(37, 211, 102, .4); }
.wa-float:hover { background: #1EBE5A; }

/* Instagram y Facebook con los colores de cada red */
.social-btn { border: 0; color: #fff; padding: 0 20px; font-weight: 600; }
.social-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
.social-fb { background: #1877F2; }
.social-ig:hover, .social-fb:hover { color: #fff; filter: brightness(1.08); }

/* Encabezado: ya no queda fijo al bajar */
.site-header { position: relative; }
html { scroll-padding-top: 12px; }
@media (max-width: 860px) { .nav { position: absolute; inset: 100% 0 auto 0; } }

/* Encabezado: lila más suave, con degradado como la línea */
.site-header {
  background: linear-gradient(90deg, #FAF7FF 0%, #F1E8F3 22%, #F1E8F3 78%, #FAF7FF 100%);
  backdrop-filter: none;
}

/* Imagen del inicio a la altura de "Clases con docentes…" */
@media (min-width: 861px) {
  .hero-art { transform: none; align-self: start; }
}

/* Imagen del inicio: 2 cm más a la derecha y un poco más grande (sin pegarse al borde de la pantalla) */
@media (min-width: 861px) {
  .hero-art { margin-right: calc(-1 * min(76px, max(0px, (100vw - 1160px) / 2))); }
}
/* Corrección: la imagen va 2 cm a la IZQUIERDA (no a la derecha) */
@media (min-width: 861px) {
  .hero-art { margin-right: 0; margin-left: -76px; }
}
@media (min-width: 861px) and (max-width: 1099px) { .hero-art { margin-left: -32px; } }

/* Menos margen a los costados en pantallas grandes */
.wrap { max-width: 1440px; padding: 0 40px; }
@media (max-width: 860px) { .wrap { padding: 0 20px; } }

/* Tarjetas de docentes más grandes */
.team { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member { padding: 26px 20px; border-radius: var(--radius-lg); }
.member-name { font-size: 23px; }
@media (max-width: 640px) { .team { grid-template-columns: 1fr 1fr; gap: 10px; } .member { padding: 20px 10px; } .member-name { font-size: 18px; } }
.wrap { max-width: 1640px; }
/* Imagen del inicio: tamaño tope para que siga alineada con el título en pantallas grandes */
@media (min-width: 861px) { .hero-art { max-width: 660px; justify-self: end; width: calc(100% + 76px); } }
@media (min-width: 861px) and (max-width: 1099px) { .hero-art { width: calc(100% + 32px); } }
