.ce-prototype {
  --ce-ink: #24364f;
  --ce-ink-strong: #17253a;
  --ce-muted: #5d6877;
  --ce-surface: #ffffff;
  --ce-canvas: #f4f6f8;
  --ce-line: #d8dee6;
  --ce-primary: #4b5a7b;
  --ce-green: #39b185;
  --ce-blue: #64bcea;
  --ce-orange: #df7d3c;
  --ce-pink: #bb5289;
  --ce-yellow: #ecae57;
  --ce-accent: var(--ce-primary);
  --ce-title-start: var(--ce-primary);
  --ce-title-end: #1a1a1a;
  --ce-title-gradient: linear-gradient(90deg, var(--ce-title-start), var(--ce-title-end));
  --ce-title-surface: linear-gradient(90deg, rgb(15 27 43 / 18%), rgb(15 27 43 / 54%)), var(--ce-title-gradient);
  --ce-radius-sm: 0.375rem;
  --ce-radius-md: 0.75rem;
  --ce-shadow: 0 0.75rem 2rem rgb(23 37 58 / 12%);
  box-sizing: border-box;
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  padding-block: 1rem 4rem;
  color: var(--ce-ink-strong);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.ce-prototype *,
.ce-prototype *::before,
.ce-prototype *::after {
  box-sizing: inherit;
}

.ce-prototype.ce-theme--ingreso { --ce-accent: var(--ce-green); --ce-title-end: var(--ce-green); }
.ce-prototype.ce-theme--permanencia { --ce-accent: var(--ce-pink); --ce-title-end: var(--ce-pink); }
.ce-prototype.ce-theme--egreso { --ce-accent: var(--ce-orange); --ce-title-end: var(--ce-orange); }
.ce-prototype.ce-theme--apoyo { --ce-accent: var(--ce-yellow); --ce-title-end: var(--ce-yellow); }
.ce-prototype.ce-theme--directorio { --ce-accent: var(--ce-blue); --ce-title-end: var(--ce-blue); }

.ce-prototype a {
  color: #245c78;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.ce-prototype a:hover { color: #173f55; }

.ce-prototype :focus-visible {
  outline: 0.2rem solid #152d50;
  outline-offset: 0.2rem;
}

.ce-prototype .ce-skip-link {
  position: fixed;
  inset: 0.5rem auto auto 0.5rem;
  z-index: 10010;
  translate: 0 -160%;
  padding: 0.75rem 1rem;
  border-radius: var(--ce-radius-sm);
  background: var(--ce-ink-strong);
  color: #fff;
}

.ce-prototype .ce-skip-link:focus { translate: 0; }

.ce-prototype .ce-back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0.5rem 1rem;
  font-weight: 700;
}

.ce-prototype .ce-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 0.0625rem solid var(--ce-line);
  border-top: 0;
  border-radius: var(--ce-radius-md);
  background: var(--ce-title-surface);
}

.ce-prototype .ce-hero::after {
  position: absolute;
  right: -3rem;
  bottom: -4.5rem;
  width: 12rem;
  height: 12rem;
  border: 2.5rem solid color-mix(in srgb, var(--ce-accent) 20%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.ce-prototype .ce-eyebrow {
  margin: 0 0 0.5rem;
  color: rgb(255 255 255 / 82%);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ce-prototype h1,
.ce-prototype h2,
.ce-prototype h3 {
  margin-top: 0;
  color: var(--ce-ink-strong);
  line-height: 1.16;
}

.ce-prototype h1 {
  max-width: 19ch;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 6vw, 3.75rem);
}

.ce-prototype .ce-hero h1 { color: #fff; }

.ce-prototype h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.ce-prototype h3 { font-size: 1.2rem; }

.ce-prototype .ce-lead {
  max-width: 68ch;
  margin: 0;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.ce-prototype .ce-section { margin-top: clamp(2rem, 5vw, 4rem); }

.ce-prototype .ce-section-heading {
  display: grid;
  max-width: 52rem;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.ce-prototype .ce-section-heading p { margin: 0; color: var(--ce-muted); }

.ce-prototype .ce-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ce-prototype .ce-card {
  position: relative;
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  overflow: hidden;
  border: 0.0625rem solid var(--ce-line);
  border-left: 0.4rem solid var(--ce-card-accent, var(--ce-accent));
  border-radius: var(--ce-radius-sm);
  background: var(--ce-surface);
  box-shadow: 0 0.25rem 0.8rem rgb(23 37 58 / 7%);
  color: var(--ce-ink-strong);
  text-align: left;
  transition: translate 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ce-prototype a.ce-card { text-decoration: none; }
.ce-prototype button.ce-card { width: 100%; font: inherit; cursor: pointer; }
.ce-prototype .ce-card:hover { translate: 0 -0.2rem; box-shadow: var(--ce-shadow); }
.ce-prototype .ce-card h3 { margin-bottom: 0.4rem; }
.ce-prototype .ce-card p { margin: 0; color: var(--ce-muted); }

.ce-prototype .ce-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ce-ink-strong);
  font-weight: 700;
}

.ce-prototype .ce-card-action::after { content: "→"; }

.ce-prototype .ce-accent--green { --ce-card-accent: var(--ce-green); }
.ce-prototype .ce-accent--pink { --ce-card-accent: var(--ce-pink); }
.ce-prototype .ce-accent--orange { --ce-card-accent: var(--ce-orange); }
.ce-prototype .ce-accent--yellow { --ce-card-accent: var(--ce-yellow); }
.ce-prototype .ce-accent--blue { --ce-card-accent: var(--ce-blue); }

.ce-prototype .ce-card--wide { min-height: 9rem; }

.ce-prototype .ce-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-left: 0.3rem solid var(--ce-accent);
  background: color-mix(in srgb, var(--ce-accent) 7%, white);
}

.ce-prototype .ce-review-note,
.ce-prototype .ce-note {
  padding: 1rem 1.125rem;
  border-left: 0.3rem solid var(--ce-yellow);
  background: #fff8e9;
  color: #4b3b18;
}

.ce-prototype .ce-review-note strong,
.ce-prototype .ce-note strong { display: block; margin-bottom: 0.25rem; }

.ce-prototype .ce-list,
.ce-prototype .ce-steps,
.ce-prototype .ce-contact-list { padding-left: 1.25rem; }

.ce-prototype .ce-list li,
.ce-prototype .ce-steps li,
.ce-prototype .ce-contact-list li { margin-block: 0.45rem; }

.ce-prototype .ce-contact-card {
  padding: 1rem;
  border: 0.0625rem solid var(--ce-line);
  background: var(--ce-canvas);
}

.ce-prototype .ce-contact-card + .ce-contact-card { margin-top: 0.75rem; }
.ce-prototype .ce-contact-card p { margin: 0.2rem 0; }

.ce-prototype .ce-table-wrap { overflow-x: auto; }

.ce-prototype table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ce-prototype th,
.ce-prototype td {
  padding: 0.8rem;
  border: 0.0625rem solid var(--ce-line);
  text-align: left;
  vertical-align: top;
}

.ce-prototype th { background: #eef3f7; color: var(--ce-ink-strong); }

.ce-prototype .ce-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid var(--ce-line);
}

.ce-prototype .ce-page-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border: 0.0625rem solid var(--ce-line);
  border-radius: var(--ce-radius-sm);
  background: #fff;
  font-weight: 700;
}

.ce-prototype .ce-dialog {
  width: min(48rem, calc(100% - 1.5rem));
  max-height: min(82vh, 52rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--ce-radius-md);
  background: var(--ce-surface);
  box-shadow: 0 1.5rem 4rem rgb(9 18 32 / 32%);
  color: var(--ce-ink-strong);
  opacity: 0;
  transform: translateY(0.75rem) scale(0.985);
}

.ce-prototype .ce-dialog[open] { animation: ce-dialog-in 180ms ease forwards; }
.ce-prototype .ce-dialog[data-ce-closing="true"] { animation: ce-dialog-out 150ms ease forwards; }
.ce-prototype .ce-dialog::backdrop { background: rgb(10 20 34 / 68%); animation: ce-backdrop-in 180ms ease forwards; }
.ce-prototype .ce-dialog[data-ce-closing="true"]::backdrop { animation: ce-backdrop-out 150ms ease forwards; }

.ce-prototype .ce-dialog-shell {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr);
}

.ce-prototype .ce-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-top: 0.45rem solid var(--ce-accent);
  border-bottom: 0.0625rem solid var(--ce-line);
  background: #fff;
}

.ce-prototype .ce-dialog-header h2 { margin: 0; color: var(--ce-ink-strong); font-size: clamp(1.25rem, 3vw, 1.7rem); }

.ce-prototype .ce-dialog-close {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border: 0.0625rem solid var(--ce-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ce-ink-strong);
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.ce-prototype .ce-dialog-close:hover { background: var(--ce-canvas); }

.ce-prototype .ce-dialog-body {
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ce-prototype .ce-dialog-body > :first-child { margin-top: 0; }
.ce-prototype .ce-dialog-body > :last-child { margin-bottom: 0; }

@keyframes ce-dialog-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ce-dialog-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(0.5rem) scale(0.985); }
}

@keyframes ce-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ce-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

@media (min-width: 30rem) {
  .ce-prototype .ce-grid,
  .ce-prototype .ce-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .ce-prototype { width: min(100% - 3rem, 76rem); }
  .ce-prototype .ce-grid--hub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ce-prototype .ce-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-prototype .ce-card--wide { grid-column: 1 / -1; }
  .ce-prototype .ce-subgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-prototype .ce-dialog-body { padding: 1.5rem 1.75rem 1.75rem; }
}

@media (min-width: 64rem) {
  .ce-prototype .ce-grid--content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-prototype .ce-subgrid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 35rem) {
  .ce-prototype .ce-table-responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ce-prototype .ce-table-responsive,
  .ce-prototype .ce-table-responsive tbody,
  .ce-prototype .ce-table-responsive tr,
  .ce-prototype .ce-table-responsive td { display: block; width: 100%; }
  .ce-prototype .ce-table-responsive tr { margin-bottom: 0.85rem; border: 0.0625rem solid var(--ce-line); }
  .ce-prototype .ce-table-responsive td { display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: 0.65rem; border: 0; border-bottom: 0.0625rem solid var(--ce-line); }
  .ce-prototype .ce-table-responsive td:last-child { border-bottom: 0; }
  .ce-prototype .ce-table-responsive td::before { content: attr(data-label); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  .ce-prototype *,
  .ce-prototype *::before,
  .ce-prototype *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Justificación encapsulada para párrafos informativos Control Escolar */

.ce-prototype .ce-copy--justified {

  text-align: justify;

  text-justify: inter-word;

  hyphens: auto;

}
