/* Identidad de Chaca Amaguaña sobre la base oscura de Arena Castell. */
@font-face {
  font-family: "Chaca Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Chaca Oswald";
  src: url("fonts/oswald-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
body[data-page="super-chaca"],
body[data-page="escuela-form"] {
  --chaca-red: #e21e36;
  --chaca-red-soft: #ff6170;
  --chaca-line: #563239;
  --chaca-display: "Chaca Oswald", "Arial Narrow", sans-serif;
  --chaca-body: "Chaca Manrope", "Segoe UI", sans-serif;
  font-family: var(--chaca-body);
  background: radial-gradient(ellipse 900px 550px at 100% 12%, rgba(126, 23, 37, .14), transparent 72%), #0c0e0f;
}
body[data-page="super-chaca"] .school-page h1,
body[data-page="super-chaca"] .school-page h2,
body[data-page="super-chaca"] .school-page h3,
body[data-page="escuela-form"] .page-intro h1,
body[data-page="escuela-form"] .form-block legend {
  font-family: var(--chaca-display);
  letter-spacing: -.01em;
}
body[data-page="super-chaca"] .school-page .btn:not(.secondary),
body[data-page="escuela-form"] .btn[type="submit"] {
  background: var(--chaca-red);
  border-color: var(--chaca-red);
  color: #fff;
}
body[data-page="super-chaca"] .school-page .btn:not(.secondary):hover,
body[data-page="escuela-form"] .btn[type="submit"]:hover {
  background: #ff314b;
  border-color: #ff314b;
}
body[data-page="super-chaca"] .school-page a:focus-visible,
body[data-page="escuela-form"] a:focus-visible,
body[data-page="escuela-form"] button:focus-visible {
  outline-color: #ff8390;
}
.school-intro { padding-bottom: 8px; }
.school-intro .breadcrumb { margin-bottom: 12px; }
.school-page { padding-bottom: 82px; }
.school-kicker {
  margin-bottom: 18px;
  color: #ff9da5;
  font: 700 12px/1.4 var(--chaca-body, "Segoe UI", sans-serif);
  letter-spacing: .18em;
}
.school-kicker span { color: #798084; padding: 0 7px; }
.school-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  min-height: 580px;
  overflow: hidden;
  border: 1px solid #524246;
  border-radius: 20px;
  background: linear-gradient(132deg, #252023 0%, #171a1c 50%, #101314 100%);
}
.school-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 4px;
  background: linear-gradient(90deg, #e21e36, #ff7784 60%, transparent);
  z-index: 2;
}
.school-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 72px);
  z-index: 1;
}
.school-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.01;
  text-transform: uppercase;
}
.school-hero h1 span { color: #ff596a; }
.school-hero-lead { max-width: 550px; color: #e3e0e0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.7; }
.school-hero-facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 30px; }
.school-hero-facts span { padding: 7px 12px; border: 1px solid #755258; border-radius: 100px; color: #ece7e7; font-size: 12px; }
.school-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.school-hero-visual { position: relative; min-height: 470px; overflow: hidden; background: #121416 url("familia-chaca.jpg") center 36% / cover no-repeat; }
.school-hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,13,.25), transparent 44%), linear-gradient(0deg, rgba(10,12,13,.75), transparent 34%); pointer-events: none; }
.school-hero-photo { height: 100%; margin: 0; }
.school-hero-photo img { display: block; width: 100%; height: 100%; min-height: 580px; object-fit: cover; object-position: center 36%; }
.school-hero-photo figcaption { position: absolute; right: 24px; bottom: 24px; z-index: 2; color: #fff; font-size: 12px; text-shadow: 0 2px 8px #000; }
.school-crest { position: absolute; z-index: 2; top: 28px; right: 28px; width: clamp(96px, 11vw, 150px); padding: 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: #fff; box-shadow: 0 12px 40px #0008; transform: rotate(2deg); }
.school-crest img { display: block; width: 100%; height: auto; border-radius: 9px; }
.school-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(25px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  margin: 24px 0 70px;
  border: 1px solid #493c3f;
  border-radius: 16px;
  background: linear-gradient(118deg, #1c2022, #24191d 72%, #2c171d);
}
.school-pricing h2 { max-width: 570px; margin: 0 0 12px; font-size: clamp(32px, 3.3vw, 48px); text-transform: uppercase; }
.school-pricing p:last-child { max-width: 580px; margin-bottom: 0; color: #d3ccce; }
.school-price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.school-price-list > div { display: flex; flex-direction: column; padding: 20px; border: 1px solid #76545a; border-radius: 12px; background: rgba(9,11,12,.45); }
.school-price-list span { color: #ded6d7; font-size: 12px; }
.school-price-list strong { margin: 5px 0; color: #fff; font: 700 clamp(38px, 4vw, 58px)/1.1 var(--chaca-display); }
.school-price-list small { color: #ff9ca6; font-size: 11px; }
.school-uniforms { grid-column: 1 / -1; min-width: 0; padding-top: 25px; border-top: 1px solid #61454b; }
.school-uniforms-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.school-uniforms-heading .school-kicker { margin-bottom: 6px; }
.school-uniforms-heading h3 { margin: 0; font-size: clamp(25px, 2.6vw, 34px); text-transform: uppercase; }
.school-uniforms-heading > span { color: #d3c8ca; font-size: 12px; }
.school-uniform-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.school-uniform { min-width: 0; margin: 0; }
.school-uniform a { display: flex; align-items: center; justify-content: center; height: clamp(250px, 29vw, 390px); overflow: hidden; border: 1px solid #66575a; border-radius: 10px; background: #e9e8e9; }
.school-uniform a:hover { border-color: #ff9da5; }
.school-uniform img { display: block; width: 100%; height: 100%; object-fit: contain; }
.school-uniform figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px 0; color: #f2eded; font-size: 13px; font-weight: 700; }
.school-uniform figcaption span { color: #ff9da5; }
.school-section-heading { align-items: end; }
.school-section-heading h2 { text-transform: uppercase; }
.school-page .category-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 24px 0 72px; }
.school-page .category { padding: 20px 8px; border-color: #524044; background: linear-gradient(150deg, #222629, #1c1d20); }
.school-page .category strong { color: #fff; font: 700 25px/1.1 var(--chaca-display); }
.school-page .category span { display: block; margin-top: 7px; color: #d0c8ca; font-size: 11px; }
.school-page .school-schedules { gap: clamp(22px, 4vw, 60px); align-items: start; margin: 0 0 75px; scroll-margin-top: 110px; }
.school-page .school-schedules h2 { margin: 0 0 22px; font-size: clamp(27px, 2.8vw, 38px); text-transform: uppercase; }
.school-page .school-schedules .panel { border-color: #524044; background: linear-gradient(145deg, #252125, #191d1f); }
.school-page .event-facts dd { color: #fff; font-size: 16px; }
.school-page .check-list li::marker { color: #ff596a; }
.school-social-link { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 18px; color: #ffabb4; font-weight: 700; text-decoration: none; }
.school-social-link:hover { color: #fff; text-decoration: underline; }
.school-social-link:focus-visible { outline: 2px solid #ffabb4; outline-offset: 4px; }
.school-flyers { margin: 0 0 62px; padding-top: 28px; border-top: 1px solid #3e3538; }
.school-flyers h2 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 42px); text-transform: uppercase; }
.school-flyers-details { margin-top: 24px; }
.school-flyers-details summary { display: flex; justify-content: space-between; gap: 15px; max-width: 560px; padding: 18px 20px; border: 1px solid #75545a; border-radius: 9px; background: #211c20; color: #fff; cursor: pointer; font-weight: 700; list-style: none; }
.school-flyers-details summary::-webkit-details-marker { display: none; }
.school-flyers-details[open] summary { border-color: #ec6b7a; }
.school-flyers-details .flyer-grid { margin-top: 26px; }
.school-page .cta-strip { border-color: #8e454f; border-radius: 13px; background: linear-gradient(100deg, #431f28, #2d1c21 60%, #1c2022); }
.school-page .cta-strip h2 { margin: 0 0 8px; font-size: clamp(27px, 3vw, 38px); text-transform: uppercase; }

/* El panel privado mantiene sus controles y suma una cabecera de identidad. */
#admin-escuela { --chaca-display: "Chaca Oswald", "Arial Narrow", sans-serif; --chaca-body: "Chaca Manrope", "Segoe UI", sans-serif; border-color: #563b41; background: linear-gradient(160deg, #211c20 0, #191c1e 360px); }
#admin-escuela h2, #admin-escuela h3 { font-family: var(--chaca-display); text-transform: uppercase; }
.school-admin-hero { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 25px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid #604148; }
.school-admin-hero img { display: block; width: 118px; height: 118px; object-fit: contain; padding: 5px; border-radius: 12px; background: #fff; }
.school-admin-hero h2 { margin: 0 0 6px; font-size: clamp(34px, 3.8vw, 52px); }
.school-admin-hero p:not(.school-kicker) { margin-bottom: 10px; color: #d7cdcf; }
.school-admin-link { color: #ff9ba6; font-size: 13px; font-weight: 700; text-decoration: none; }
.school-admin-link:hover { color: #fff; text-decoration: underline; }
.school-admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 27px 0 34px; }
.school-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }
.school-admin-form { margin: 0 0 18px; border-color: #624047; background: #211e21; }
.school-admin-form h3 { margin-bottom: 4px; }
.school-admin-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; padding: 18px; border: 1px solid #624047; border-radius: 10px; background: #191b1d; }
.school-manage-panel { margin: 20px 0; }
.school-manage-panel > summary { cursor: pointer; font-weight: 700; }
.school-manage-panel > .field { margin-top: 18px; }
.school-manage-panel #school-manage-history { margin-top: 18px; }
.school-manage-panel #school-void-test-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid #624047; }
.school-admin-filters .field { min-width: 0; margin: 0; }
.school-admin-filters input, .school-admin-filters select { width: 100%; }
.school-admin-stats > div { min-width: 0; padding: 19px; border: 1px solid #624047; border-radius: 10px; background: #211e21; }
.school-admin-stats span { display: block; color: #d1c3c6; font-size: 12px; }
.school-admin-stats strong { display: block; margin-top: 8px; color: #fff; font: 700 clamp(22px, 2.3vw, 32px)/1.2 var(--chaca-display); overflow-wrap: anywhere; }
.school-admin-list-heading h3 { margin-bottom: 3px; font-size: 27px; }
#admin-escuela .table-wrap { border-color: #604148; }
#admin-escuela th { background: #362429; }
[data-admin-target="admin-escuela"]:hover,
[data-admin-target="admin-escuela"]:focus-visible { border-color: #b75e6b; }

/* El formulario de inscripción comparte el acento de la escuela. */
body[data-page="escuela-form"] .page-intro { border-bottom: 1px solid #52363d; }
body[data-page="escuela-form"] .page-intro h1 { text-transform: uppercase; }
body[data-page="escuela-form"] .steps .current { border-color: #e21e36; color: #fff; }
body[data-page="escuela-form"] .form-block legend { font-size: 22px; text-transform: uppercase; }
body[data-page="escuela-form"] .field input:focus,
body[data-page="escuela-form"] .field select:focus { border-color: #ff7685; }

@media (max-width: 1000px) {
  .school-page .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .school-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .school-hero { grid-template-columns: 1fr; }
  .school-hero-copy { padding: clamp(30px, 6vw, 52px); }
  .school-hero-visual { min-height: 340px; max-height: 460px; }
  .school-hero-photo img { min-height: 340px; }
  .school-pricing { grid-template-columns: 1fr; margin-bottom: 55px; }
  .school-page .school-schedules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .school-page { padding-bottom: 50px; }
  .school-hero { border-radius: 13px; }
  .school-hero h1 { font-size: clamp(47px, 13vw, 68px); }
  .school-hero-actions { width: 100%; }
  .school-hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .school-hero-visual { min-height: 270px; }
  .school-hero-photo img { min-height: 270px; }
  .school-hero-photo figcaption { right: 14px; bottom: 12px; }
  .school-crest { top: 16px; right: 16px; width: 92px; }
  .school-pricing { padding: 25px 20px; }
  .school-uniform-grid { grid-template-columns: 1fr; gap: 22px; }
  .school-uniform a { height: auto; max-height: none; }
  .school-uniform img { width: 100%; height: auto; }
  .school-price-list { grid-template-columns: 1fr 1fr; }
  .school-price-list > div { padding: 15px; }
  .school-page .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 50px; }
  .school-admin-hero { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .school-admin-hero img { width: 72px; height: 72px; }
  .school-admin-hero h2 { font-size: 32px; }
  .school-admin-stats { gap: 9px; }
  .school-admin-stats > div { padding: 13px; }
  .school-admin-actions .btn { flex: 1 1 100%; }
  .school-admin-filters { grid-template-columns: 1fr; padding: 14px; }
  .school-kicker { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .school-page *, #admin-escuela * { scroll-behavior: auto; }
}
