/* Casa Prometeo · Sistema editorial, con tema automático del sistema. */
:root {
  color-scheme: light;
  --ink: #193d50;
  --muted: #59666b;
  --bg: #fcfaf6;
  --bg-alt: #f5f1e9;
  --surface: #fcfaf6;
  --tint: #eae5da;
  --border: #d7d3c9;
  --accent: #936019;
  --header-bg: rgba(252,250,246,.95);
  --footer-bg: #193d50;
  --footer-ink: #f2eee5;
  --footer-muted: #c9d1d2;
  --error: #b33535;
  --radius: 3px;
  --radius-sm: 6px;
  --container: 1140px;
  --header-h: 80px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f2eee5;
    --muted: #b5c0c5;
    --bg: #152630;
    --bg-alt: #111f29;
    --surface: #192a35;
    --tint: #253743;
    --border: #384953;
    --accent: #dfb56f;
    --header-bg: rgba(21,38,48,.95);
    --footer-bg: #0b1720;
    --error: #ff9292;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--bg); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.8rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.6rem; letter-spacing: -.02em; }
h1 em { font-weight: 400; color: var(--accent); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.section { padding: 100px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: left; max-width: 760px; margin: 0 0 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 20px; max-width: 600px; }

/* Acciones de alto contraste. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: .7rem 1.3rem; transition: background .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--tint); border-color: var(--ink); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Encabezado y portada. */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); }
.brand-name strong { color: var(--ink); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover:not(.btn) { color: var(--accent); }
.nav-cta { color: var(--bg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--ink); border-radius: 2px; }
.hero { background: var(--bg-alt); padding: 90px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr .8fr; gap: 64px; align-items: center; }
.hero-text .lead { font-size: 1.12rem; color: var(--muted); margin: 25px 0 30px; max-width: 520px; }
.hero-text .lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--border); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; color: var(--ink); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-art-label { color: var(--accent); text-align: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; max-width: 270px; }
.hero-emblem { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; }
.hero-emblem::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--border); border-radius: 50%; }
.hero-emblem::after { content: "✦"; position: absolute; top: -15px; left: calc(50% - 12px); background: var(--bg-alt); color: var(--accent); font-size: 1.4rem; padding: 0 5px; }
.hero-logo { width: 72%; position: relative; }
.hero-art-note { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1rem; }

/* Cursos, beneficios y voces de estudiantes. */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.feature-icon { font-family: var(--font); color: var(--accent); letter-spacing: .12em; font-size: .85rem; margin-bottom: 26px; }
.feature-card h3, .benefit h3 { margin-bottom: 15px; }
.feature-card p, .benefit p { color: var(--muted); }
.check-list { list-style: none; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: "↗"; position: absolute; left: 0; color: var(--accent); }
.benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.benefit { border-top: 1px solid var(--border); padding: 25px 0 0; }
.benefit h3 { font-size: 1.4rem; }
.testimonial { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.testimonial::before { content: "“"; display: block; font-family: var(--font-display); color: var(--accent); font-size: 3.5rem; line-height: 1; height: 42px; }
.testimonial p { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.65; margin-bottom: 24px; }
.testimonial footer { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 16px; }
.testimonial footer span { font-size: .88rem; color: var(--muted); }

/* Mecánica del carrusel; presentación en teachers.css. */
.carousel { display: flex; align-items: center; gap: 12px; }
.carousel-viewport { overflow: hidden; flex: 1; }
.carousel-track { display: flex; gap: 24px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.carousel-loading { padding: 40px; text-align: center; color: var(--muted); width: 100%; }
.profe-card { overflow: hidden; flex: 0 0 calc((100% - 48px) / 3); display: flex; flex-direction: column; }
.profe-photo { width: 100%; object-fit: cover; }
.profe-body { flex: 1; display: flex; flex-direction: column; }
.profe-subject { display: inline-block; align-self: flex-start; }
.carousel-arrow { border-radius: 50%; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.carousel-arrow:hover:not(:disabled) { transform: scale(1.06); }
.carousel-arrow:disabled { cursor: default; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; }
.carousel-dots button { border-radius: 50%; border: 0; cursor: pointer; }

/* Preguntas y contacto. */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 22px 2px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 25px 24px 2px; }
.section-cta { background: var(--bg-alt); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; min-width: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; font: inherit; font-weight: 400; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); opacity: 1; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: .85rem; color: var(--muted); }
.field-error { border-color: var(--error) !important; }

/* Pie de página y redes. */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-top: 60px; padding-bottom: 60px; flex-wrap: wrap; }
.footer-logo { height: 60px; width: auto; background: #fff; padding: 8px; border-radius: 3px; margin-bottom: 20px; }
.footer-brand p { max-width: 310px; color: var(--footer-muted); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-social { display: flex; flex-direction: column; gap: 16px; }
.footer-social-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--footer-muted); }
.social-icons { display: flex; gap: 12px; }
.social-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #647883; display: grid; place-items: center; color: var(--footer-ink); transition: background .2s; }
.social-icon:hover { background: #304d5c; }
.footer-bottom { border-top: 1px solid #526570; padding: 20px 0; font-size: .85rem; color: var(--footer-muted); }
.footer-bottom p { text-align: center; }
.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; background: #236946; color: #fff; border: 1px solid #81bc9a; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.15); z-index: 90; transition: background .2s; }
.whatsapp-fab:hover { background: #1b5237; }

@media (max-width: 980px) {
  .nav { gap: 16px; }
  .nav a { font-size: .88rem; }
  .hero-inner { gap: 30px; grid-template-columns: 1.3fr .7fr; }
  .hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
  .profe-card { flex: 0 0 calc((100% - 24px) / 2); }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .nav { position: absolute; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 12px 0; font-size: 1rem; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: clamp(2.7rem, 8vw, 4rem); }
  .hero-text .lead { max-width: 600px; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 50px; }
  .section-head { margin-bottom: 32px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.6rem; }
  .hero-actions .btn { width: 100%; }
  .cards-2, .cards-3, .benefits-grid, .form-row { grid-template-columns: 1fr; }
  .feature-card, .testimonial, .contact-form { padding: 25px; }
  .profe-card { flex: 0 0 100%; }
  .footer-inner { gap: 32px; }
  .footer-bottom { padding-bottom: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
