:root {
  --blue: #1e40af;
  --blue-dark: #172554;
  --red: #dc2626;
  --gold: #f59e0b;
  --white: #ffffff;
  --soft: #f8fafc;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;

  overflow-x: hidden;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
.btn,
.brand {
  font-family: "Montserrat", Arial, sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.45rem, 6vw, 4.9rem);
  line-height: 1.04;
}

h2 {
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
}

h3 {
  color: var(--blue-dark);
  font-size: 1.1rem;
  line-height: 1.25;
}

.topbar a,
.topbar span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.topbar {
  background: var(--blue);
  color: var(--white);
  font-size: 0.86rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.navbar__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--blue-dark);
  font-size: 0.91rem;
  font-weight: 700;
}

.nav-menu a:not(.btn) {
  position: relative;
}

.nav-menu a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 180ms ease;
}

.nav-menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.nav-dropdown__toggle::after {
  content: " v";
  color: var(--red);
  font-size: 0.78rem;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown__menu a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-dropdown__menu a:hover {
  background: var(--soft);
  color: var(--blue);
}

.nav-dropdown__menu a::after {
  display: none;
}


.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.section-actions--on-dark {
  margin-top: 34px;
}

.back-to-menu {
  min-width: min(100%, 250px);
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.18);
}

.back-to-menu:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.back-to-menu--light {
  color: var(--blue);
  background: var(--white);
  border-color: var(--white);
}

.back-to-menu--light:hover {
  color: var(--white);
}

.admissions__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-dark);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 25px rgba(220, 38, 38, 0.24);
}

.btn--light {
  background: var(--white);
  color: var(--blue);
}

.btn--outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn--small {
  min-height: 40px;
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.82rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  overflow: hidden;
  align-items: center;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(220, 38, 38, 0.18)),
    radial-gradient(circle at 74% 33%, rgba(245, 158, 11, 0.42), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.64)),
    url("imagenes/CORAZON%20COLEGIO.png") right 11% center / min(46vw, 580px) no-repeat,
    linear-gradient(135deg, #1e40af, #ffffff 52%, #dc2626);
  transform: scale(1.02);
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(23, 37, 84, 0.88), rgba(30, 64, 175, 0.62) 58%, rgba(30, 64, 175, 0.16));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 90px 0 120px;
}

.hero__content > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero__actions,
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__seal {
  position: absolute;
  right: 0;
  bottom: 130px;
  display: grid;
  width: min(34vw, 300px);
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid rgba(245, 158, 11, 0.76);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.hero__seal img {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: cover;
}

.hero__chips {
  margin-top: 54px;
}

.hero__chips span {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero__enrollment {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section--soft {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading--split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.intro__grid,
.admission-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 42px;
  align-items: start;
}

.quote {
  color: var(--red);
  font-weight: 800;
}

.info-panel,
.age-card,
.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-grid,
.program-grid,
.identity-grid,
.honor-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.identity-card,
.program-card,
.timeline-card,
.honor-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.feature-card:hover,
.identity-card:hover,
.program-card:hover,
.honor-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 28px;
}

.identity {
  padding-top: 78px;
}

.identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.identity-card {
  padding: 28px;
  border-top: 5px solid var(--blue);
}

.identity-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.identity-card--value {
  border-top-color: var(--gold);
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: rgba(30, 64, 175, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card {
  overflow: hidden;
}

.program-card > div:last-child {
  padding: 24px;
}

.program-card a {
  color: var(--red);
  font-weight: 800;
}

.program-card__image {
  min-height: 220px;
  background-position: center;
  background-size: cover;
}

.program-card__image--pre {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(30, 64, 175, 0.02)),
    url("imagenes/niveles/preescolar.png") center / cover;
}

.program-card__image--primary {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(30, 64, 175, 0.02)),
    url("imagenes/niveles/primaria.png") center / cover;
}

.program-card__image--secondary {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(30, 64, 175, 0.02)),
    url("imagenes/niveles/Secundaria.png") center / cover;
}

.program-card__image--media {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(30, 64, 175, 0.02)),
    url("imagenes/niveles/media.png") center / cover;
}

.period-filter,
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.period-filter button,
.tab-buttons button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
}

.period-filter .is-active,
.tab-buttons .is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.timeline-card {
  padding: 24px;
  border-top: 5px solid var(--gold);
}

.timeline-card span,
.honor-card span {
  color: var(--red);
  font-weight: 800;
}

.period-detail {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.period-detail h3 {
  margin-bottom: 18px;
}

.schedule-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-table > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(260px, 2fr) minmax(150px, 0.8fr);
  border-bottom: 1px solid var(--line);
}

.schedule-table > div:last-child {
  border-bottom: 0;
}

.schedule-table span {
  padding: 12px 14px;
}

.schedule-table span:first-child,
.schedule-table span:last-child {
  font-weight: 700;
}

.schedule-table__head {
  background: var(--blue);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.countdown {
  display: flex;
  width: min(100%, 280px);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.countdown strong {
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  gap: 10px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.news-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: var(--blue);
  color: var(--white);
}

.news-card__header span,
.news-card__header strong {
  font-family: "Montserrat", Arial, sans-serif;
}

.news-card__header span {
  color: var(--gold);
  font-weight: 800;
}

.ranking-table {
  display: grid;
}

.ranking-table > div {
  display: grid;
  grid-template-columns: 0.7fr 0.6fr minmax(240px, 2fr) 0.8fr 0.9fr;
  border-bottom: 1px solid var(--line);
}

.ranking-table > div:last-child {
  border-bottom: 0;
}

.ranking-table span {
  padding: 12px 14px;
}

.ranking-table__head {
  background: var(--soft);
  color: var(--blue-dark);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
}

.schedule-subtitle {
  margin: 20px 0 6px;
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(30, 64, 175, 0.08);
}

.schedule-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
}

.schedule-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.honor-card {
  overflow: hidden;
  padding: 0 0 24px;
  text-align: center;
}

.student-photo {
  display: block;
  width: 100%;
  height: 280px;
  margin: 0 0 18px;
  border-bottom: 5px solid var(--gold);
  object-fit: cover;
  object-position: center 22%;
  transition: transform 220ms ease;
}

.honor-card:hover .student-photo {
  transform: scale(1.035);
}

.honor-card h3,
.honor-card p,
.honor-card span {
  margin-right: 18px;
  margin-left: 18px;
}

.stats {
  padding: 72px 0;
  background: var(--blue);
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
}

.stats span {
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.gallery-grid figure:hover .gallery-photo {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(23, 37, 84, 0.82);
  color: var(--white);
  font-weight: 800;
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  padding: 28px;
}

.testimonial-card p {
  font-size: 1.05rem;
}

.testimonial-card strong {
  color: var(--blue);
}

.admissions {
  padding: 70px 0;
  background: var(--red);
  color: var(--white);
}

.admissions h2,
.admissions .eyebrow {
  color: var(--white);
}

.admissions__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.admissions__inner > div {
  max-width: 740px;
}

.steps {
  display: grid;
  gap: 14px;
  padding-left: 22px;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form label,
.contact-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.contact-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form fieldset {
  grid-template-columns: auto auto;
  justify-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form legend {
  padding: 0 6px;
}

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 600 !important;
}

.check input,
fieldset input {
  width: auto;
  min-height: auto;
}

.footer {
  padding: 60px 0 24px;
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.82);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
  gap: 34px;
}

.brand--footer,
.footer h3 {
  color: var(--white);
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.map-card {
  display: grid;
  min-height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(30, 64, 175, 0.4)),
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.28), transparent 26%),
    rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 800;
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-dropdown__toggle {
    width: 100%;
    padding: 0;
    text-align: left;
  }

  .nav-dropdown__menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 10px;
    box-shadow: none;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
  }

  .feature-grid,
  .identity-grid,
  .honor-grid,
  .timeline,
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro__grid,
  .admission-grid,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .section-heading--split,
  .admissions__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admissions__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar__inner {
    justify-content: flex-start;
    padding: 8px 0;
  }

  .hero {
    min-height: 650px;
  }

  .hero__seal {
    position: relative;
    right: auto;
    bottom: auto;
    width: 150px;
    margin-top: 28px;
  }

  .hero__content {
    padding: 74px 0 84px;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid,
  .identity-grid,
  .program-grid,
  .honor-grid,
  .timeline,
  .stats__grid,
  .gallery-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-row span {
    display: grid;
    grid-template-columns: minmax(82px, 0.4fr) 1fr;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
  }

  .schedule-row span::before {
    color: var(--blue);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .schedule-row span:nth-child(1)::before { content: "Fecha"; }
  .schedule-row span:nth-child(2)::before { content: "Hora"; }
  .schedule-row span:nth-child(3)::before { content: "Grado"; }
  .schedule-row span:nth-child(4)::before { content: "Area"; }
  .schedule-row span:nth-child(5)::before { content: "Detalle"; }

  .schedule-table {
    border: 0;
    gap: 10px;
  }

  .schedule-table > div {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  .schedule-table__head {
    display: none !important;
  }

  .ranking-table > div {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .ranking-table__head {
    display: none !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-actions,
  .admissions__actions,
  .section-actions .btn,
  .admissions__actions .btn {
    width: 100%;
  }
}
/* Botones de regreso visibles al final de cada sección */
.section-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 0;
}

.section-actions .back-to-menu,
.admissions__actions .back-to-menu {
  display: inline-flex !important;
  min-width: min(100%, 260px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--blue) !important;
  border-radius: 8px;
  background: var(--blue) !important;
  color: var(--white) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.22);
}

.section-actions .back-to-menu:hover,
.admissions__actions .back-to-menu:hover {
  border-color: var(--blue-dark) !important;
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

.stats .section-actions .back-to-menu,
.admissions__actions .back-to-menu--light {
  border-color: var(--white) !important;
  background: var(--white) !important;
  color: var(--blue) !important;
}

.stats .section-actions .back-to-menu:hover,
.admissions__actions .back-to-menu--light:hover {
  border-color: var(--blue-dark) !important;
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

@media (max-width: 700px) {
  .section-actions,
  .admissions__actions {
    width: min(100% - 24px, 1160px);
    margin-right: auto;
    margin-left: auto;
  }

  .section-actions .back-to-menu,
  .admissions__actions .back-to-menu {
    width: 100%;
  }
}
