:root {
  color-scheme: light;
  --azul: #12345b;
  --azul-profundo: #092746;
  --rojo: #c92f3d;
  --rojo-oscuro: #9e202d;
  --crema: #fff9ed;
  --papel: #f3ead9;
  --blanco: #fffefb;
  --tinta: #1c2d3d;
  --muted: #66717d;
  --linea: #ded2bf;
  --sombra: 0 14px 34px rgba(32, 47, 62, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
        circle at 12px 12px,
        rgba(18, 52, 91, 0.035) 1.4px,
        transparent 1.5px
      )
      0 0/24px 24px,
    linear-gradient(180deg, var(--crema), var(--papel));
  color: var(--tinta);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
a {
  color: var(--azul);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 750;
  transition:
    filter 0.15s,
    transform 0.15s;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
:focus-visible {
  outline: 3px solid #f0b323;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.site-header {
  position: relative;
  overflow: hidden;
  padding: 29px 20px 25px;
  background:
    var(--azul-profundo);
  color: #fff;
  text-align: center;
  border-bottom: 6px solid var(--rojo);
}
.site-header:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--azul) 0 33.33%,
    #fff 33.33% 66.66%,
    var(--rojo) 66.66%
  );
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 1.3px;
}
.brand img {
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}
.brand strong {
  color: #ff6976;
}
.site-header p {
  margin: 8px 0 0;
  color: #d6e1eb;
  font-size: 12px;
}
.container {
  max-width: 780px;
  margin: auto;
  padding: 32px 18px 42px;
}
.intro {
  text-align: center;
  margin-bottom: 27px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rojo-oscuro);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 2px;
}
.eyebrow:before,
.eyebrow:after {
  content: "◆";
  font-size: 7px;
}
h1 {
  margin: 10px 0;
  color: var(--azul-profundo);
  font-size: clamp(27px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -1px;
}
h2 {
  margin: 0 0 12px;
  color: var(--azul-profundo);
  font-size: 19px;
}
h3 {
  margin: 0;
  font-size: 17px;
}
.intro p,
.help {
  color: var(--muted);
  font-size: 14px;
}
.intro p {
  margin: 10px 0;
}
.day-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--linea);
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(42, 46, 54, 0.05);
}
.day-tabs button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  letter-spacing: 1.2px;
}
.day-tabs button[aria-pressed="true"] {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 4px 9px rgba(10, 37, 69, 0.2);
}
.notice {
  min-height: 18px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.notice.error {
  padding: 10px;
  color: var(--rojo-oscuro);
  background: #fff0ee;
  border: 1px solid #efc2c3;
  border-radius: 7px;
}
.spotlight {
  position: relative;
  overflow: hidden;
  padding: 31px 24px 29px;
  color: #fff;
  background: var(--rojo);
  border: 1px solid rgba(120, 17, 29, 0.3);
  border-radius: 18px;
  box-shadow: var(--sombra);
}
.spotlight:before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 12px;
}
.spotlight h2,
.next h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 2px;
}
.spotlight h2 {
  position: relative;
  color: #fff;
}
.current-course {
  position: relative;
  max-width: 95%;
  margin: 0 0 24px;
  font-size: clamp(31px, 7vw, 49px);
  font-weight: 850;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.spotlight-foot {
  position: relative;
  color: #ffe1df;
  font-size: 12px;
}
.next {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 33px;
  padding: 22px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-left: 6px solid var(--azul);
  border-radius: 13px;
  box-shadow: 0 7px 20px rgba(31, 46, 61, 0.055);
}
.next-arrow {
  color: var(--rojo);
  font-size: 31px;
}
.next h2 {
  margin-bottom: 6px;
  color: var(--rojo-oscuro);
}
.next p {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.next span:not(.next-arrow) {
  color: var(--muted);
  font-size: 13px;
}
.program-section > h2,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.program-section > h2:before,
.section-heading h2:before {
  content: "✦";
  color: var(--rojo);
}
.program {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.presentation {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  padding: 18px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(29, 45, 61, 0.035);
}
.position {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  height: 36px;
  color: var(--muted);
  background: #f1ece3;
  border: 1px solid #e1d7c7;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}
.description {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.state {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.presentation.presentandose {
  background: #fff0ed;
  border: 2px solid var(--rojo);
  box-shadow: 0 8px 20px rgba(201, 47, 61, 0.1);
}
.presentandose .position {
  color: #fff;
  background: var(--rojo);
  border-color: var(--rojo);
}
.presentandose .state {
  color: var(--rojo-oscuro);
  font-weight: 850;
}
.presentation.preparacion {
  background: #f4f8fc;
  border-left: 6px solid var(--azul);
}
.preparacion .state {
  color: var(--azul);
  font-weight: 750;
}
.presentado {
  opacity: 0.78;
}
.presentado .position {
  color: #3f6752;
  background: #e7f0e9;
  border-color: #cadbce;
}
.empty {
  padding: 25px;
  color: var(--muted);
  background: var(--blanco);
  border: 1px dashed #cbbb9f;
  border-radius: 12px;
  text-align: center;
}
.admin-link {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
footer {
  padding: 25px 18px;
  color: #d7e2ec;
  background: var(--azul-profundo);
  border-top: 5px solid var(--rojo);
  font-size: 11px;
  text-align: center;
}
.primary {
  color: #fff;
  background: var(--azul);
  box-shadow: 0 3px 8px rgba(10, 37, 69, 0.13);
}
.secondary {
  color: var(--azul);
  background: #fff;
  border-color: var(--linea);
}
.danger {
  color: var(--rojo-oscuro);
  background: #fff9f7;
  border-color: #e2b7b9;
}
.subtle {
  border-color: transparent;
  box-shadow: none;
}
.toolbar,
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar a {
  font-size: 13px;
}
.section-heading {
  margin: 25px 0 10px;
}
.section-heading h2 {
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-row {
  flex-direction: column;
  align-items: stretch;
}
.admin-row .primary {
  flex: 1;
  font-size: 11px;
}
.form-card,
.login-card {
  margin-top: 28px;
  padding: 24px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-top: 5px solid var(--rojo);
  border-radius: 16px;
  box-shadow: var(--sombra);
}
.login-card {
  max-width: 430px;
  margin: 20px auto 60px;
}
.login-card > p {
  color: var(--muted);
}
label {
  display: block;
  margin: 16px 0 6px;
  color: var(--azul-profundo);
  font-size: 14px;
  font-weight: 750;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--tinta);
  background: #fff;
  border: 1px solid #aeb7bf;
  border-radius: 9px;
}
input:focus,
select:focus {
  border-color: var(--azul);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.login-card button {
  width: 100%;
  margin-top: 24px;
}
.login-card > a {
  font-size: 13px;
}
.day-controls {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed #d4c5ae;
}
@media (min-width: 640px) {
  .container {
    padding-top: 42px;
  }
  .site-header {
    padding-top: 32px;
  }
  .brand {
    font-size: 17px;
  }
  .spotlight {
    padding: 38px 35px 34px;
  }
  .next {
    padding: 24px;
  }
  .presentation {
    padding: 20px;
  }
  .admin-row {
    flex-flow: row wrap;
  }
  .admin-row .actions {
    width: 100%;
  }
  .form-card {
    padding: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  button {
    transition: none;
  }
}
