/* T-Apruebo: interfaz de evaluacion armonizada con la version Regular */
:root {
  --yellow: #fdc708;
  --black: #000000;
  --gray: #e0e0e0;
  --white: #ffffff;
  --green: #118847;
  --red: #c62828;
}
html,
body,
button,
input,
select,
textarea {
  font-family: Montserrat, Arial, sans-serif;
}
body {
  background: #e0e0e0;
  color: #000;
}
header {
  background: #000;
  border-bottom: 6px solid var(--yellow);
  padding: 12px clamp(18px, 5vw, 72px);
  box-shadow: none;
}
header img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 0;
  background: var(--yellow);
}
header small {
  color: #e0e0e0;
}
.langswitch {
  background: transparent;
  padding: 0;
  gap: 7px;
}
.langbtn {
  border: 2px solid #e0e0e0;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
}
.langbtn.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.wrap {
  max-width: 1180px;
  margin: 34px auto;
  padding: 0 18px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 38px #b8b8b8;
  padding: 30px;
}
#home.card.hero {
  padding: 0;
  overflow: hidden;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 610px;
}
#home.hero > div:first-child {
  padding: clamp(38px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
#home.hero > div:first-child > b {
  display: inline-flex;
  align-self: flex-start;
  background: var(--yellow);
  color: #000;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 900;
}
#home h1 {
  font-size: clamp(42px, 5.7vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 780px;
  margin: 24px 0 20px;
}
#home p {
  max-width: 720px;
  color: #000;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
}
#home .yellow {
  background: var(--yellow);
  padding: clamp(35px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rule {
  background: #000;
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  margin: 8px 0;
  border: 0;
}
.rule b {
  color: var(--yellow);
}
.content-notice {
  background: #fff8d6;
  border: 0;
  border-left: 5px solid #000;
  border-radius: 12px;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 900;
  box-shadow: none;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}
.btn.dark {
  background: #000;
  color: var(--yellow);
  box-shadow: none;
}
.btn.white {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  box-shadow: none;
}
.btn:not(:disabled):hover {
  background: var(--yellow);
  color: #000;
}
.btn:focus-visible,
.opt:focus-visible,
.langbtn:focus-visible,
.speak:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
#quiz.card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 26px;
}
.quizcontent {
  padding: 4px 8px;
}
#phase {
  font-size: 25px;
  margin: 4px 0 14px;
  letter-spacing: -0.02em;
}
.bar {
  height: 10px;
  background: #e0e0e0;
}
.bar i {
  background: var(--yellow);
}
.meta {
  color: #555;
}
.meta .btn.white {
  background: var(--yellow);
  border: 0;
  color: #000;
  font-weight: 900;
}
.meta .btn.white:hover {
  background: #000;
  color: var(--yellow);
}
.category-badge {
  background: #f2f2f2 !important;
  color: #000 !important;
  border-left: 5px solid var(--cat, #fdc708);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}
.category-badge:before {
  background: var(--cat, #fdc708);
  box-shadow: none;
}
.qtop {
  gap: 10px;
}
.tag {
  background: #f2f2f2;
  color: #000;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 900;
}
.speak {
  background: #e0e0e0;
  color: #000;
  border-radius: 10px;
  width: auto;
  height: auto;
  padding: 10px 13px;
  font-weight: 800;
}
#qt {
  font-size: 25px;
  line-height: 1.2;
  margin: 10px 0 16px;
}
.ref {
  max-width: min(320px, 70%);
  max-height: 190px;
  background: transparent;
}
.opts {
  gap: 11px;
}
.opt {
  position: relative;
  background: #fff;
  border: 2px solid #d8d8d8;
  border-radius: 16px;
  padding: 16px 16px 16px 52px;
  min-height: 58px;
  text-align: left;
  font-size: 17px;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
.opt:before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid #b7b7b7;
  border-radius: 50%;
  background: #fff;
}
.opt:hover:not(:disabled) {
  border-color: var(--yellow);
  background: #fffbe8;
}
.opt.sel,
.opt.selected {
  background: #fff3b0 !important;
  border-color: var(--yellow) !important;
  color: #000 !important;
}
.opt.sel:before,
.opt.selected:before {
  border: 5px solid #000;
  background: var(--yellow);
}
.fb {
  border-radius: 13px;
  padding: 15px 16px;
  line-height: 1.35;
}
.ok {
  background: #e7f5ec;
  border-left: 6px solid var(--green);
}
.bad {
  background: #fdecec;
  border-left: 6px solid var(--red);
}
#result.card {
  max-width: 900px;
  margin: 0 auto;
}
.score {
  color: #d6a500;
}
@media (max-width: 820px) {
  .wrap {
    margin: 14px auto;
    padding: 0 14px;
  }
  #home.card.hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .card {
    border-radius: 16px;
    box-shadow: none;
  }
  #home.hero > div:first-child,
  #home .yellow {
    padding: 32px 24px;
  }
  #quiz.card {
    padding: 20px 16px;
  }
  .ref {
    max-width: min(320px, 90%);
  }
}
@media (max-width: 600px) {
  header img {
    width: 46px !important;
    height: 46px !important;
  }
  .langswitch {
    margin: 6px auto 0 !important;
  }
  .opt {
    padding-left: 48px;
    font-size: 16px;
  }
  #qt {
    font-size: 22px;
  }
}
