/* Primera prueba editorial: estilos acotados al equipo y sus perfiles. */
.teachers {
  --team-bg: var(--bg-alt);
  --team-card: var(--surface);
  --team-ink: var(--ink);
  --team-muted: var(--muted);
  --team-line: var(--border);
  --team-accent: var(--accent);
  --team-tint: var(--tint);
  background: var(--team-bg);
  color: var(--team-ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  padding: 100px 0 88px;
}
.teachers [hidden] { display: none !important; }
.teachers .section-head { text-align: left; max-width: none; margin-bottom: 48px; }
.teachers .eyebrow { color: var(--team-accent); letter-spacing: .18em; font-size: .76rem; }
.teachers h2, .teachers h3, .teachers h4 { color: var(--team-ink); }
.teachers h2, .teachers .profe-name, .profile-name, .profile-block h4 {
  font-family: var(--font-display);
  font-weight: 400;
}
.teachers h2 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.04em; }
.teachers h2 em { color: var(--team-accent); font-weight: 400; }
.teachers .section-head p { color: var(--team-muted); margin-top: 22px; }
.teachers .carousel { position: relative; display: block; }
.teachers .carousel-viewport { padding: 4px 2px 12px; }
.teachers .carousel-track { gap: 24px; }
.teachers .carousel-loading { color: var(--team-muted); }
.teachers .profe-card { background: var(--team-card); border: 1px solid var(--team-line); border-radius: 3px; box-shadow: none; position: relative; }
.teachers .profe-photo { aspect-ratio: 4 / 3; background: var(--team-tint); object-position: center 30%; transition: filter .3s; }
.teachers .profe-card:hover .profe-photo { filter: saturate(1.1); }
.teachers .profe-body { padding: 25px 25px 20px; }
.teacher-area { color: var(--team-accent); font-size: .73rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.teachers .profe-subject { background: none; padding: 0; color: var(--team-muted); font-weight: 400; margin: 12px 0 0; font-size: .95rem; }
.teachers .profe-name { font-size: 1.48rem; line-height: 1.2; margin-top: 13px; }
.teachers .profe-bio { color: var(--team-muted); font-size: .96rem; margin-top: 13px; }
.teacher-open { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid var(--team-line); background: none; color: var(--team-ink); padding: 17px 0 0; margin-top: 22px; font: inherit; cursor: pointer; text-align: left; }
.teacher-open::after { content: "↗"; color: var(--team-accent); font-size: 1.3rem; }
.teacher-open::before { content: ""; position: absolute; inset: 0; }
.teachers button:focus-visible, .teachers a:focus-visible { outline: 3px solid var(--team-accent); outline-offset: 5px; }
.teachers .profe-card:focus-within { outline: 2px solid var(--team-accent); outline-offset: -2px; }
.teachers .carousel-arrow { position: absolute; top: -83px; right: 0; width: 50px; height: 50px; border: 1px solid var(--team-ink); background: var(--team-ink); color: var(--team-bg); box-shadow: 0 4px 12px rgba(0,0,0,.12); font-size: 2.1rem; }
.teachers .carousel-arrow.prev { right: 64px; }
.teachers .carousel-arrow:hover:not(:disabled) { background: var(--team-accent); border-color: var(--team-accent); }
.teachers .carousel-arrow:disabled { opacity: .4; box-shadow: none; }
.teachers .carousel-dots { margin-top: 23px; }
.teachers .carousel-dots button { background: transparent; width: 28px; height: 28px; display: grid; place-items: center; }
.teachers .carousel-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--team-muted); transition: width .2s, background .2s; }
.teachers .carousel-dots button.active { background: transparent; transform: none; }
.teachers .carousel-dots button.active::before { width: 24px; background: var(--team-accent); }
.teachers-hint { margin-top: 25px; text-align: center; color: var(--team-muted); font-size: .9rem; }
.teachers-stage { position: relative; }
.teacher-profile { border-top: 1px solid var(--team-line); padding-top: 22px; }
.profile-back { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: var(--team-ink); border: 1px solid var(--team-ink); border-radius: 8px; color: var(--team-bg); font: inherit; font-weight: 700; cursor: pointer; padding: 11px 20px; margin-bottom: 28px; box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: background .2s, border-color .2s; }
.profile-back:hover { background: var(--team-accent); border-color: var(--team-accent); }
.profile-back span { color: inherit; font-size: 1.3rem; line-height: 1; }
.profile-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 70px); }
.profile-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; background: var(--team-tint); border-radius: 3px; }
.profile-photo-note { border-top: 1px solid var(--team-line); margin-top: 20px; padding-top: 15px; color: var(--team-muted); font-size: .88rem; }
.profile-name { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0; overflow-wrap: anywhere; }
.profile-subject { color: var(--team-accent); font-size: 1.1rem; }
.profile-intro { color: var(--team-muted); margin-top: 22px; font-size: 1.06rem; }
.profile-demo { display: inline-block; color: var(--team-muted); background: var(--team-tint); border: 1px solid var(--team-line); padding: 7px 12px; font-size: .8rem; margin: 24px 0 0; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--team-line); border-bottom: 1px solid var(--team-line); padding: 24px 0; margin: 22px 0 28px; }
.profile-stats > div { display: flex; flex-direction: column; }
.profile-stats dt { font-size: .85rem; color: var(--team-muted); }
.profile-stats dd { order: -1; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--team-ink); margin-bottom: 5px; }
.profile-block { margin-top: 28px; }
.profile-block h4 { font-size: 1.45rem; margin-bottom: 15px; }
.profile-education { list-style: none; display: grid; gap: 12px; color: var(--team-muted); }
.profile-education li { border-left: 2px solid var(--team-accent); padding-left: 15px; }
.profile-quotes { display: grid; gap: 18px; }
.profile-quote { background: var(--team-card); border: 1px solid var(--team-line); padding: 20px 24px; }
.profile-quote p { color: var(--team-ink); }
.teacher-flight { position: fixed; z-index: 110; pointer-events: none; object-fit: cover; object-position: center 30%; border-radius: 3px; }
/* Cada disciplina tiene un gesto propio; nunca cubre el nombre del profesor. */
.area-signature { display: block; color: var(--team-accent); width: fit-content; max-width: 100%; }
.area-signature .teacher-area { display: block; }
.area-motif { display: block; width: 100%; min-width: 150px; max-width: 260px; height: 36px; margin-top: 3px; overflow: visible; pointer-events: none; }
.area-guide { opacity: .25; }
.area-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.area-point, .area-points circle { fill: var(--team-card); }
.area-pen { transform-origin: 244px 10px; }
.profe-card:hover .area-draw, .profe-card:focus-within .area-draw, .profile-content .area-draw { animation: area-trace 1.8s cubic-bezier(.25,.6,.3,1) both; }
.profe-card:hover .area-points, .profe-card:focus-within .area-points, .profile-content .area-points { animation: area-connect 1.8s ease-out both; }
.profe-card:hover .area-point, .profe-card:focus-within .area-point, .profile-content .area-point { animation: area-point 1.8s ease-out both; }
.profe-card:hover .area-pen, .profe-card:focus-within .area-pen, .profile-content .area-pen { animation: area-write 1.8s ease-out both; }
@keyframes area-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes area-connect { 0%, 20% { opacity: .2; } 100% { opacity: 1; } }
@keyframes area-point { 0%, 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes area-write { from { opacity: 0; transform: translateX(-25px) rotate(-12deg); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .teachers { padding: 64px 0; }
  .teachers .section-head { margin-bottom: 80px; }
  .teachers .carousel-arrow { top: -58px; }
  .teachers .profe-body { padding: 22px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-portrait { aspect-ratio: 4 / 3; max-height: 400px; }
  .profile-photo-note { display: none; }
  .profile-stats { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .teachers *, .teacher-flight { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
