@font-face {
  font-family: "Creato Display";
  src: url("https://static.wixstatic.com/ufonts/9fd0b5_f33195e4f37842ec956a585619248665/woff2/file.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Creato Display";
  src: url("https://static.wixstatic.com/ufonts/a6e1dc_74dbca7b7efd41528761025d042aff04/woff2/file.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #171615;
  --ink: #211f1d;
  --muted: #6d675f;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --gold: #e7dcb4;
  --gold-deep: #a98b59;
  --line: #ded8ce;
  --red: #9b4b40;
  --green: #3f6e5b;
  --shadow: 0 22px 70px rgba(28, 25, 20, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Creato Display", Arial, sans-serif; font-weight: 300; line-height: 1.45; }
body.is-locked { overflow: hidden; }
body.is-locked > .site-header, body.is-locked > main, body.is-locked > footer, body:not(.is-locked) > .entry-gate { display: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 10px; color: var(--gold-deep); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4, strong { font-family: "Creato Display", Arial, sans-serif; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }

.entry-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; min-height: 100dvh; padding: 24px; overflow-y: auto; color: white; background: linear-gradient(90deg, rgba(14,13,12,.97), rgba(14,13,12,.66)), url("./ibca-portada.jpg") center / cover; }
.entry-panel { width: min(470px, 100%); padding: clamp(30px, 5vw, 48px); border: 1px solid rgba(255,255,255,.17); border-radius: 26px; background: rgba(18,17,16,.86); box-shadow: 0 34px 110px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.entry-logo, .brand-mark { display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #090909; }
.entry-logo { width: 72px; height: 72px; margin-bottom: 25px; }
.entry-logo img, .brand-mark img { width: 82%; height: 82%; object-fit: contain; }
.entry-panel h1 { margin-bottom: 10px; font-size: clamp(40px, 7vw, 58px); line-height: 1.05; }
.entry-panel > p:not(.eyebrow) { margin-bottom: 27px; color: rgba(255,255,255,.68); font-size: 15px; }
.entry-panel form { display: grid; gap: 14px; }
.entry-panel label > span, .admin-form label > span { display: block; margin: 0 0 6px 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.entry-panel label > span { color: rgba(255,255,255,.68); }
.entry-panel input, .entry-panel select { border-color: rgba(255,255,255,.2); color: white; background: rgba(255,255,255,.09); }
.entry-panel input::placeholder { color: rgba(255,255,255,.42); }
.entry-panel select option { color: var(--ink); background: white; }
.entry-panel > small { display: block; margin-top: 18px; color: rgba(255,255,255,.43); font-size: 10px; text-align: center; }

input, select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(169,139,89,.15); }
input[type="file"] { padding: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 20px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; }
.button-gold { color: #1b1916; background: var(--gold); }
.button-gold:hover { background: #f0e6c1; }
.button-dark { color: white; background: var(--black); }
.button-dark:hover { background: #332f2b; }
.form-error { margin: 0; color: #d87062; font-size: 11px; text-align: center; }
.entry-panel .form-error { color: #ffd0c8; }
.form-status { min-height: 16px; margin: 0; color: var(--green); font-size: 11px; }

.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 11px clamp(18px, 5vw, 72px); border-bottom: 1px solid rgba(33,31,29,.1); background: rgba(244,240,231,.94); backdrop-filter: blur(17px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); font-size: 10px; }
.site-header nav { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); }
.site-header nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-header nav a.active { color: white; background: var(--black); }
.student-menu { justify-self: end; display: flex; align-items: center; gap: 10px; }
.student-menu div { min-width: 0; text-align: right; }
.student-menu strong, .student-menu small { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-menu strong { font-size: 11px; }
.student-menu small { color: var(--muted); font-size: 9px; }
.student-menu button, footer > button, #admin-logout { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font-size: 9px; font-weight: 700; }

.section { max-width: 1160px; margin: 0 auto; padding: 100px 24px 0; }
.hero { max-width: none; min-height: 650px; padding: 110px max(24px, calc((100vw - 1112px) / 2)) 85px; color: white; background: linear-gradient(90deg, rgba(12,11,10,.96), rgba(12,11,10,.62)), url("./ibca-portada.jpg") center 40% / cover; }
.hero .eyebrow { color: var(--gold); }
.hero-copy { max-width: 680px; }
.hero h1 { margin-bottom: 16px; font-size: clamp(52px, 7vw, 88px); line-height: 1; }
.hero-copy > p:last-child { color: rgba(255,255,255,.68); font-size: 18px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.schedule-grid article { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: center; padding: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.schedule-grid article > span { display: grid; place-items: center; height: 54px; border-radius: 13px; color: var(--black); background: var(--gold); font-size: 12px; font-weight: 700; }
.schedule-grid strong, .schedule-grid small { display: block; }
.schedule-grid strong { font-size: 15px; }
.schedule-grid small { margin-top: 4px; color: rgba(255,255,255,.6); font-size: 10px; }
.schedule-note { margin: 14px 0 0; color: rgba(255,255,255,.45); font-size: 10px; }
.calendar-updates { display: grid; gap: 10px; margin-top: 22px; }
.calendar-update { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; background: rgba(0,0,0,.28); }
.calendar-status { padding: 5px 8px; border-radius: 999px; color: var(--black); background: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.calendar-update h3 { margin: 3px 0 2px; font-size: 15px; }
.calendar-update p, .calendar-update strong { margin: 0; font-size: 11px; }
.calendar-update p { color: rgba(255,255,255,.7); }
.calendar-update.status-cancelled, .calendar-update.status-holiday { border-color: rgba(255,190,180,.42); }
.calendar-update.status-cancelled .calendar-status, .calendar-update.status-holiday .calendar-status { color: white; background: var(--red); }
.calendar-error { margin: 0; color: #ffd0c8; font-size: 11px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; }
.loading-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--paper); text-align: center; }
.cards-grid, .folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.exam-card, .folder-card { display: flex; flex-direction: column; min-height: 230px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.exam-card:hover, .folder-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-kicker { color: var(--gold-deep); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.exam-card h3, .folder-card h3 { margin: 20px 0 7px; font-size: 23px; line-height: 1.08; }
.exam-card p, .folder-card p { color: var(--muted); font-size: 11px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.card-footer button, .download-link { border: 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 700; text-decoration: none; }
.score-pill { padding: 6px 9px; border-radius: 999px; color: white; background: var(--green); font-size: 10px; font-weight: 700; }
.completed-exam { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.folder-icon { width: 46px; height: 32px; margin-bottom: 8px; border-radius: 5px; background: var(--gold-deep); }
.folder-icon::before { content: ""; display: block; width: 22px; height: 7px; border-radius: 5px 5px 0 0; background: var(--gold-deep); transform: translateY(-5px); }
.material-list { display: grid; gap: 7px; margin-top: 13px; }
.material-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 9px; background: #f1eee7; font-size: 10px; }
.empty-state { padding: 65px 20px; border: 1px dashed #c8c1b6; border-radius: 20px; text-align: center; }
.empty-state > span { color: var(--gold-deep); font-size: 36px; }
.empty-state h3 { margin: 8px 0 5px; font-size: 24px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1160px; margin: 0 auto; padding: 90px 24px 36px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }

.modal { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 23px; color: var(--ink); background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.34); }
.modal::backdrop { background: rgba(10,9,8,.72); backdrop-filter: blur(4px); }
.modal-close { position: sticky; top: 13px; z-index: 4; float: right; display: grid; place-items: center; width: 34px; height: 34px; margin: 13px 13px -47px 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 20px; }
.modal-wide { width: min(760px, calc(100% - 28px)); }
.exam-shell { padding: 40px; }
.exam-shell h2 { margin: 12px 0 5px; font-size: 38px; line-height: 1.05; }
.exam-shell > p { color: var(--muted); font-size: 12px; }
.question { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.question h3 { font-size: 17px; }
.answers { display: grid; gap: 8px; }
.answer { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.answer:has(input:checked) { border-color: var(--gold-deep); background: #f4eddf; }
.answer input { width: auto; min-height: 0; }
.exam-result { padding: 50px 40px; text-align: center; }
.exam-result strong { display: block; margin: 12px 0; font-size: 70px; }
.exam-result p { color: var(--muted); }
.exam-review { margin: 28px 0 22px; border: 1px solid var(--line); border-radius: 15px; text-align: left; overflow: hidden; }
.exam-review summary { padding: 15px 18px; color: var(--ink); background: #f1eee7; font-size: 12px; font-weight: 700; cursor: pointer; }
.review-list { display: grid; gap: 10px; padding: 14px; }
.review-item { padding: 15px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 11px; background: white; }
.review-item.is-incorrect { border-left-color: var(--red); }
.review-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.review-heading b { color: var(--green); }
.review-item.is-incorrect .review-heading b { color: var(--red); }
.review-item h3 { margin: 9px 0 12px; font-size: 15px; line-height: 1.35; }
.review-item p { margin: 6px 0; font-size: 12px; }
.review-item p span { color: var(--ink); font-weight: 700; }
.review-item .correct-answer { color: var(--green); }

.admin-modal { width: min(980px, calc(100% - 28px)); }
.admin-login { max-width: 470px; margin: auto; padding: 55px 40px; text-align: center; }
.admin-login h2 { margin-bottom: 7px; font-size: 38px; }
.admin-login > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.admin-login form { display: grid; gap: 10px; margin-top: 25px; }
.admin-dashboard { padding: 36px; }
.admin-heading, .pane-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.admin-heading h2 { margin: 0; font-size: 34px; }
.admin-tabs { display: flex; gap: 5px; margin: 25px 0; padding: 5px; border-radius: 12px; background: #ede9e1; }
.admin-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.admin-tabs button.active { color: white; background: var(--black); }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.admin-pane h3 { font-size: 23px; }
.admin-form { display: grid; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f8f5ef; }
.form-row, .admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.check-label { display: flex !important; align-items: center; gap: 8px; font-size: 11px; }
.check-label input { width: auto; min-height: 0; }
.question-builder { display: grid; gap: 12px; }
.question-editor { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.question-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.question-editor-head strong { font-size: 12px; }
.question-editor-head button { border: 0; color: var(--red); background: transparent; font-size: 10px; }
.option-editor { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 5px; margin-top: 6px; }
.option-editor input[type="radio"] { width: auto; min-height: 0; }
.small-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: 10px; font-weight: 700; }
.danger-button { color: var(--red); border-color: rgba(155,75,64,.35); }
.admin-list { display: grid; gap: 8px; margin-top: 18px; }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.admin-list-item strong, .admin-list-item small { display: block; }
.admin-list-item small { color: var(--muted); font-size: 9px; }
.admin-folder-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.admin-folder-card .admin-list-item { border: 0; border-radius: 0; }
.admin-materials { display: grid; border-top: 1px solid var(--line); }
.admin-materials > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; border-bottom: 1px solid var(--line); font-size: 10px; }
.admin-materials > div:last-child { border-bottom: 0; }
.student-access-actions { display: flex; align-items: center; gap: 8px; }
.access-status { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.access-status.is-active { color: var(--green); background: rgba(63,110,91,.11); }
.access-status.is-inactive { color: var(--red); background: rgba(155,75,64,.11); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.global-results-summary { margin-bottom: 1rem; }
.global-result-card { padding: 1.25rem; border-radius: 15px; color: white; background: var(--black); }
.global-result-card h4 { margin: .25rem 0 1rem; font: 1.45rem/1.15 var(--font-bold); }
.global-result-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.global-result-metrics > div { display: grid; gap: .25rem; padding: .8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.06); }
.global-result-metrics span, .global-result-metrics small { color: rgba(255,255,255,.68); font-size: .75rem; }
.global-result-metrics strong { font: 1.8rem/1 var(--font-bold); }
.global-distribution { margin-top: .85rem; }
.global-distribution span { color: var(--ink); }
.results-summary { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.result-stat-card { border: 1px solid var(--line); border-radius: 13px; background: var(--cream); padding: 1.1rem; }
.result-stat-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.result-stat-heading h4 { margin: .2rem 0 0; font: 1.15rem/1.2 var(--font-bold); }
.participant-total { border: 1px solid currentColor; border-radius: 999px; padding: .35rem .6rem; white-space: nowrap; font-size: .8rem; }
.average-score { display: flex; align-items: baseline; gap: .65rem; margin: 1rem 0 .75rem; }
.average-score span { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.average-score strong { font: 2rem/1 var(--font-bold); }
.score-distribution { display: flex; flex-wrap: wrap; gap: .5rem; }
.score-distribution span { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: .45rem .6rem; font-size: .86rem; }
table { width: 100%; border-collapse: collapse; background: white; font-size: 11px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.admin-empty { color: var(--muted); font-size: 11px; text-align: center; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: 340px; padding: 13px 16px; border-radius: 11px; color: white; background: var(--black); box-shadow: var(--shadow); font-size: 11px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .schedule-grid, .cards-grid, .folder-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .site-header { min-height: 68px; padding: 9px 14px; }
  .brand small { display: none; }
  .student-menu strong, .student-menu small { max-width: 90px; }
  .hero { min-height: auto; padding: 72px 18px 65px; }
  .entry-gate, .hero { background-position: 62% center; }
  .global-result-metrics { grid-template-columns: 1fr; }
  .hero h1 { font-size: 51px; }
  .schedule-grid, .cards-grid, .folder-grid, .form-row, .admin-columns { grid-template-columns: 1fr; }
  .section { padding: 78px 16px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  footer { align-items: start; flex-direction: column; padding: 70px 18px 30px; }
  .entry-panel { padding: 30px 23px; }
  .exam-shell, .exam-result, .admin-dashboard { padding: 31px 21px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs button { min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
