h2 {
  color: #1a237e;
}

.E_1,
.M1_,
.H1_,
.C1_ {
  font-size: 16px;
  font-weight: bold;
  text-align: left;
}

.E_1 {
  color: #e53935;
}
.M1 {
  color: #283593;
}
.H1_ {
  color: #ad1457;
}
.C1_ {
  color: #4a148c;
}
.grd,
.lsb {
  font-size: 14px;
  font-weight: 700;
}

.grd {
  color: #0d47a1;
}
.lsb {
  color: #e64a19;
}
.header {
  background-image: radial-gradient(
    circle farthest-corner at 3.7% 49.8%,
    rgba(143, 232, 255, 1) 21.9%,
    rgba(209, 243, 251, 1) 52.9%
  );
  color: rgb(25, 8, 65);
  padding: 10px 20px 0px 0px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(25, 8, 65, 0.1);
}

.header h1 {
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgb(25, 8, 65);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header p {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(25, 8, 65, 0.9);
  line-height: 1.6;
}

.header img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .header img {
    max-height: 120px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .header img {
    max-height: 100px;
  }
}
.footer {
  background-color: #f8f9fa;
  padding: 10px;
  text-align: center;
  margin-top: 20px;
}

.fondo {
  background-image: linear-gradient(to top, #dfe9f3 5%, white 100%);
  box-shadow: 0px 1px 22px -12px #607d8b;
  background-color: #fff;
}

.card {
  border: 1px solid rgba(0,0,0,0.125);
  border-radius: 15px;
  overflow: hidden;
}

.card-body {
  background-color: #f8f9fa;
}

.card-title {
  color: rgb(25, 8, 65);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}
.card-title h2 {
  margin-bottom: 5px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.01 em;
  color: rgb(25, 8, 65);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card-text,
.card-text.lead {
  font-size: 21px;
  color: #200274;
  font-weight: 500;
  line-height: 1.7;
  text-align: justify;
}

.img-fluid {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.img-fluid:hover {
  transform: scale(1.05);
  filter: brightness(100%) contrast(120%);
}

.container h2 {
  color: #1a237e;
  margin-bottom: 20px;
  font-weight: bold;
}
.container,
.container-responsive {
  border-radius: 15px;
}
.container p.lead {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
}

.container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
  .container .col-md-6 {
    margin-top: 20px;
  }

  .input-group-text {
    width: 100%;
    justify-content: center;
  }
  .input-group {
    flex-direction: column;
  }
  .card-body {
    padding: 20px;
  }

  .img-fluid {
    border-radius: 15px 15px 0 0;
  }

}

.check_ input {
  display: none;
}

.check_ {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 1.3em;
  width: 1.3em;
  background-color: #2196f300;
  border-radius: 0.25em;
  transition: all 0.25s;
}

.check_ input:checked ~ .checkmark {
  background-color: #2196f3;
}

.checkmark:after {
  content: "";
  position: absolute;
  transform: rotate(0deg);
  border: 0.1em solid black;
  left: 0;
  top: 0;
  width: 1.05em;
  height: 1.05em;
  border-radius: 0.25em;
  transition: all 0.25s, border-width 0.1s;
}

.check_ input:checked ~ .checkmark:after {
  left: 0.45em;
  top: 0.25em;
  width: 0.34em;
  height: 0.6em;
  border-color: #fff0 white white #fff0;
  border-width: 0 0.15em 0.15em 0;
  border-radius: 0em;
  transform: rotate(45deg);
}
table {
  border: 1px solid #dee2e6;
}

thead th {
  text-align: center;
}

table tr {
  border: 1px solid #dee2e6;
  border-radius: 15px;
}

table th,
table td {
  padding: 0.625em;
  text-align: center;
}

table th {
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quantity-input,
.lus-input,
.scholarship-input {
  width: 90px;
}

.total-input {
  width: 90px;
}

@media screen and (max-width: 600px) {
  .quantity-input,
  .lus-input,
  .scholarship-input,
  .total-input {
    width: 100%;
    box-sizing: border-box;
  }

  #scholarshipTable {
    border: 0;
  }

  #scholarshipTable caption {
    font-size: 1.3em;
  }

  #scholarshipTable thead {
    display: none;
  }

  #scholarshipTable tbody tr {
    display: block;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    padding: 6px 10px;
  }

  #scholarshipTable td {
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82em;
    text-align: right;
    padding: 8px 6px;
  }

  #scholarshipTable td:before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #6c757d;
    flex-shrink: 0;
    margin-right: 10px;
  }

  #scholarshipTable td:last-child {
    border-bottom: 0;
    justify-content: flex-end;
    gap: 6px;
  }

  #scholarshipTable td:last-child:before {
    content: none;
  }

  #scholarshipTable td .grade-select,
  #scholarshipTable td .quantity-input {
    max-width: 80px;
    font-size: 0.82rem;
  }
}
.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px 45px;
  border: 4px solid;
  border-color: transparent;
  font-size: 17px;
  background-image: radial-gradient(
    circle farthest-corner at 3.7% 49.8%,
    rgba(143, 232, 255, 1) 21.9%,
    rgba(209, 243, 251, 1) 52.9%
  );
  border-radius: 100px;
  font-weight: 600;
  color: #311b92;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button svg {
  position: absolute;
  width: 28px;
  fill: #311b92;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto !important;
  background-image: radial-gradient(
    circle farthest-corner at 10% 20%,
    rgba(221, 7, 7, 1) 0%,
    rgba(246, 231, 82, 1) 90%
  );
  border-radius: 30%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 20px 10px rgba(129, 212, 250);
  color: #212121;
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: #1f387e;
}

.animated-button:active {
  scale: 1;
  box-shadow: 0 0 0 4px greenyellow;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

#checklist {
  --background: #fff;
  --text: #414856;
  --check: #4f29f0;
  --disabled: #ff7043;
  --border-radius: 15px;
  background: var(--background);
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: 0 10px 30px rgba(65, 72, 86, 0.05);
  padding: 5px 3px 3px 3px;
  display: grid;
  grid-template-columns: 35px auto;
  align-items: start;
  justify-content: center;
  margin: 0 auto;
}

#checklist label {
  color: var(--text);
  position: relative;
  cursor: pointer;
  display: grid;
  align-items: center;
  width: fit-content;
  transition: color 0.3s ease;
  margin-right: 5px;
  color: #4a148c;
font-size: 15px;
}

#checklist label::before,
#checklist label::after {
  content: "";
  position: absolute;
}

#checklist label::before {
  height: 3px;
  width: 15px;
  left: -27px;
  background: var(--check);
  border-radius: 2px;
  transition: background 0.3s ease;
}

#checklist label:after {
  height: 3px;
  width: 3px;
  top: 8px;
  left: -27px;
  border-radius: 50%;
}

#checklist input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  height: 25px;
  width: 25px;
  outline: none;
  border: 0;
  margin: 0 15px 0 0;
  cursor: pointer;
  background: var(--background);
  display: grid;
  align-items: center;
  margin-right: 10px;
}

#checklist input[type="checkbox"]::before,
#checklist input[type="checkbox"]::after {
  content: "";
  position: absolute;
  height: 4px;
  top: auto;
  background: var(--check);
  border-radius: 2px;
}

#checklist input[type="checkbox"]::before {
  width: 0px;
  right: 60%;
  transform-origin: right bottom;
}

#checklist input[type="checkbox"]::after {
  width: 0px;
  left: 40%;
  transform-origin: left bottom;
}

#checklist input[type="checkbox"]:checked::before {
  animation: check-01 0.4s ease forwards;
}

#checklist input[type="checkbox"]:checked::after {
  animation: check-02 0.4s ease forwards;
}

#checklist input[type="checkbox"]:checked + label {
  color: var(--disabled);
  animation: move 0.3s ease 0.1s forwards;
}

#checklist input[type="checkbox"]:checked + label::before {
  background: var(--disabled);
  animation: slice 0.4s ease forwards;
}

#checklist input[type="checkbox"]:checked + label::after {
  animation: firework 0.5s ease forwards 0.1s;
}

@keyframes move {
  50% {
    padding-left: 8px;
    padding-right: 0px;
  }

  100% {
    padding-right: 4px;
  }
}

@keyframes slice {
  60% {
    width: 100%;
    left: 4px;
  }

  100% {
    width: 100%;
    left: -2px;
    padding-left: 0;
  }
}

@keyframes check-01 {
  0% {
    width: 6px;
    top: auto;
    transform: rotate(0);
  }

  50% {
    width: 0px;
    top: auto;
    transform: rotate(0);
  }

  51% {
    width: 0px;
    top: 12px;
    transform: rotate(45deg);
  }

  100% {
    width: 10px;
    top: 12px;
    transform: rotate(45deg);
  }
}

@keyframes check-02 {
  0% {
    width: 6px;
    top: auto;
    transform: rotate(0);
  }

  50% {
    width: 0px;
    top: auto;
    transform: rotate(0);
  }

  51% {
    width: 0px;
    top: 12px;
    transform: rotate(-45deg);
  }

  100% {
    width: 20px;
    top: 12px;
    transform: rotate(-45deg);
  }
}

@keyframes firework {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 -2px #4f29f0, 0 0 0 -2px #4f29f0, 0 0 0 -2px #4f29f0,
      0 0 0 -2px #4f29f0, 0 0 0 -2px #4f29f0, 0 0 0 -2px #4f29f0;
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    box-shadow: 0 -15px 0 0px #4f29f0, 14px -8px 0 0px #4f29f0,
      14px 8px 0 0px #4f29f0, 0 15px 0 0px #4f29f0, -14px 8px 0 0px #4f29f0,
      -14px -8px 0 0px #4f29f0;
  }
}

  @media (max-width: 768px) {
    #checklist {
      padding: 15px;
      max-width: 90%;
    }

    #checklist label {
      font-size: 16px;
    }

    #checklist input[type="checkbox"] {
      height: 20px;
      width: 20px;
    }
  }

  @media (max-width: 480px) {
    #checklist {
      padding: 10px;
      max-width: 100%;
    }

    #checklist label {
      font-size: 15px;
    }

    #checklist input[type="checkbox"] {
      height: 18px;
      width: 18px;
    }
  }
