:root {
  font-family: Tahoma, Arial, sans-serif;
  color: #152c3b;
  background: #f1f5f8;
  font-synthesis: none;
  line-height: 1.8;
  --blue: #145e8c;
  --border: #c8d4dd;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.page { max-width: 880px; padding: 40px 24px 24px; margin: auto; }
.site-header { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.site-header p { margin-bottom: 0; }
.brand-logo { display: block; width: 180px; height: auto; flex-shrink: 0; object-fit: contain; }
.icon { width: 28px; height: 28px; flex-shrink: 0; vertical-align: middle; }
h1, .site-title { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin: 0 0 8px; line-height: 1.6; font-weight: 700; }
.site-header .site-title { color: #152c3b; margin-bottom: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; color: #4d6271; text-decoration: none; border-bottom: 2px solid transparent; font-size: .9rem; }
.site-nav a:hover { color: var(--blue); border-color: var(--border); }
.site-nav a[aria-current="page"] { color: #153f60; font-weight: 700; border-color: #e4a64c; }
h2, legend { font-size: 1.3rem; font-weight: 700; line-height: 1.9; }
h2, h3, p { margin: 0 0 16px; }
.site-header p, footer, .muted { color: #4d6271; }
.panel { background: white; padding: 32px; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 32px rgb(21 63 96 / .04); }
.about-screen { background: #e9eef0; }
.about-backdrop { position: fixed; inset: 0; pointer-events: none; }
.about-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(241 245 248 / .98), rgb(241 245 248 / .88) 230px, rgb(241 245 248 / .14) 520px, rgb(241 245 248 / .2)); }
.about-screen > .page { position: relative; max-width: 1120px; }
.about-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.about-intro { display: flex; align-items: center; min-height: 430px; padding: 8px 0 36px; }
.about-intro > div { flex: 0 1 50%; padding: 32px; background: rgb(255 255 255 / .94); border: 1px solid rgb(255 255 255 / .7); border-radius: 16px; }
.about-details { background: rgb(255 255 255 / .97); }
.about-details > .about-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.about-screen footer { padding: 20px; margin-top: 24px; background: rgb(241 245 248 / .94); border-radius: 10px; }
.about-screen.photo-unavailable .about-intro { min-height: 0; padding: 0 0 24px; }
.about-screen.photo-unavailable .about-intro > div { flex-basis: 100%; }
.about-lead { color: #153f60; font-size: 1.12rem; }
.about-intro p:last-child { margin-bottom: 0; color: #4d6271; }
.about-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e2eaf0; }
.about-page h3 { color: #153f60; font-size: 1.06rem; margin-bottom: 8px; }
.company-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; scroll-margin-top: 80px; }
.company-logo { display: block; width: 100%; height: auto; }
.company-details { min-width: 0; }
.company-details h2 { margin-bottom: 0; text-align: start; }
.company-type { color: #78521f; margin-bottom: 20px; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; font-style: normal; }
.contact-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid #dce4e9; border-radius: 10px; background: #f6f9fb; color: #153f60; text-decoration: none; }
.contact-link:hover { border-color: #d49a42; background: #fff9ee; }
.contact-link svg { width: 24px; height: 24px; flex-shrink: 0; color: #9a6315; }
.contact-link > span { min-width: 0; }
.contact-label { display: block; color: #4d6271; font-size: .82rem; }
.contact-link bdi { display: block; overflow-wrap: anywhere; font-size: .92rem; }
.contact-whatsapp { grid-column: 1 / -1; }
.contact-chat { display: block; font-weight: 700; }
.footer-company { margin-bottom: 16px; }
.footer-company a { color: #153f60; text-underline-offset: 4px; }
.footer-company-name { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; letter-spacing: .04em; }
.footer-contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 24px; font-style: normal; }
.footer-contacts a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; min-height: 50px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; border: 1px solid #cbd8cc; border-radius: 10px; background: #f6f8f2; text-decoration: none; line-height: 1.65; }
.footer-contacts a:hover { border-color: #ab741b; background: #fff5e4; }
.footer-contact-copy { min-width: 0; text-align: start; }
.footer-contacts svg { width: 24px; height: 24px; flex-shrink: 0; }
.footer-contacts .footer-whatsapp { font-weight: 700; }
.company-socials { margin-top: 24px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link { display: flex; align-items: center; gap: 10px; min-height: 48px; min-width: 0; padding: 10px 14px; border: 1px solid #dce4e9; border-radius: 8px; background: #fff; color: #153f60; text-decoration: none; text-align: start; }
.social-link:hover { border-color: #a7b9c7; background: #f2f6f9; }
.social-link svg { width: 24px; height: 24px; flex-shrink: 0; }
.social-instagram svg { color: #a13b79; }
.social-tiktok svg { color: #1e2429; }
.social-link > span { min-width: 0; }
.social-name { display: block; font-weight: 700; }
.social-link bdi { display: block; font-size: .82rem; overflow-wrap: anywhere; color: #4d6271; }
.company-socials .social-link { flex: 1 1 220px; }
.footer-socials { margin-top: 20px; }
.footer-socials p { margin-bottom: 8px; font-weight: 700; }
.footer-socials .social-links { justify-content: center; }
.about-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.about-mode + .about-mode { border-inline-start: 1px solid #e2eaf0; padding-inline-start: 28px; }
.about-detail { color: #4d6271; font-size: .88rem; }
.about-mode p:last-child, .about-note p:last-child { margin-bottom: 0; }
.about-steps { margin: 0; padding-inline-start: 26px; }
.about-steps li { padding-inline-start: 8px; margin-bottom: 18px; }
.about-steps li:last-child { margin-bottom: 0; }
.about-steps li::marker { color: var(--blue); font-weight: 700; }
.about-steps p { margin-bottom: 0; color: #4d6271; }
.about-note { color: #4d6271; }
.about-note h2 { color: #152c3b; }
.about-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid #e2eaf0; }
.about-action p { margin: 0; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; border-radius: 6px; background: var(--blue); color: white; text-decoration: none; font-weight: 700; white-space: nowrap; }
.primary-link:hover { background: #104e76; }
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
button { min-height: 48px; border: 1px solid transparent; border-radius: 6px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; color: white; background: var(--blue); }
button:hover:not(:disabled) { background: #104e76; }
button:disabled { cursor: default; background: #dce3e8; color: #556773; }
button.secondary { color: var(--blue); background: white; border-color: var(--border); }
button.secondary:hover:not(:disabled) { background: #eaf2f7; }
button.secondary:disabled { color: #61707a; background: #f0f3f5; }
button.quiet { color: #425866; background: transparent; text-decoration: underline; font-size: .9rem; font-weight: 400; }
button.quiet:hover { background: #eaf2f7; }
.category-choice { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: relative; padding: 0; overflow: hidden; text-align: start; color: #153f60; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.category-choice:hover:not(:disabled) { background: #f5f9fc; border-color: var(--blue); }
.category-media { display: block; position: relative; aspect-ratio: 3 / 2; width: 100%; overflow: hidden; background: #e8f2fa; }
.category-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-icon { position: absolute; inset-inline-start: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; color: #145e8c; background: #e8f2fa; border-radius: 10px; box-shadow: 0 2px 8px rgb(21 63 96 / .1); }
.category-icon .icon { width: 28px; height: 28px; }
.category-choice[data-category="public"] .category-icon { color: #176456; background: #e9f5f1; }
.category-choice[data-category="motorcycle"] .category-icon { color: #87510b; background: #fff1dc; }
.category-caption { display: flex; align-items: center; gap: 12px; padding: 18px; }
.category-copy { display: grid; gap: 4px; }
.category-caption .category-copy { flex: 1; }
.category-copy strong { font-size: 1.15rem; }
.category-hint { font-size: .82rem; font-weight: 400; color: #506879; }
.category-arrow { position: static; width: 24px; height: 24px; }
.image-unavailable { display: grid; place-items: center; }
.image-unavailable .category-icon { position: static; width: 64px; height: 64px; box-shadow: none; }
.image-unavailable .category-icon .icon { width: 45px; height: 45px; }
.selection-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding-top: 20px; border-top: 1px solid #e2eaf0; font-size: .88rem; color: #4d6271; }
.selection-note .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--blue); }
.mode-picker { margin: 24px 0 8px; }
.mode-picker legend { font-size: .9rem; margin-bottom: 10px; }
.mode-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mode-choice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.mode-choice:has(input:checked) { border-color: var(--blue); background: #edf5fa; }
.mode-choice:has(input:focus-visible) { outline: 3px solid #aa6100; outline-offset: 3px; }
.mode-copy { display: grid; gap: 4px; }
.mode-copy strong { color: #153f60; }
.mode-copy > span { color: #4d6271; font-size: .8rem; line-height: 1.7; }
:focus-visible { outline: 3px solid #aa6100; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.question-meta, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.question-meta { font-size: .95rem; margin-bottom: 8px; }
.category-label { display: inline-flex; align-items: center; gap: 8px; color: #153f60; }
.category-label .icon { width: 26px; height: 26px; }
.mode-badge { padding: 1px 9px; border-radius: 12px; background: #edf3f7; color: #466278; font-size: .75rem; font-weight: 400; }
progress { appearance: none; width: 100%; height: 6px; display: block; margin: 0 0 24px; border: 0; border-radius: 4px; background: #e5ecf1; }
progress::-webkit-progress-bar { background: #e5ecf1; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#app { overflow-wrap: anywhere; }
legend { padding: 0; margin: 0 0 22px; width: 100%; }
.options { display: grid; gap: 12px; margin: 0 0 28px; }
.option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.option:hover { background: #f4f8fb; }
.option:has(input:checked) { border-color: var(--blue); background: #edf5fa; box-shadow: inset -3px 0 var(--blue); }
.option:has(input:focus-visible) { outline: 3px solid #aa6100; outline-offset: 3px; }
input[type="radio"] { accent-color: var(--blue); width: 20px; height: 20px; margin: 5px 0 0; flex-shrink: 0; }
.option-text { flex: 1; min-width: 0; }
.answer-state { margin-top: 3px; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.options .option.answer-correct { border-color: #298254; background: #eaf7ee; color: #155d35; box-shadow: inset -3px 0 #298254; }
.options .option.answer-incorrect { border-color: #b64c50; background: #fff0f0; color: #912d32; box-shadow: inset -3px 0 #b64c50; }
.option.answer-correct input { accent-color: #298254; }
.option.answer-incorrect input { accent-color: #b64c50; }
.answer-feedback { margin: -8px 0 24px; padding: 14px 16px; border-radius: 8px; }
.answer-feedback.correct { color: #155d35; background: #eaf7ee; }
.answer-feedback.incorrect { color: #912d32; background: #fff0f0; }
.feedback-message { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: .92rem; font-weight: 700; }
.feedback-message .icon { width: 24px; height: 24px; margin-top: 1px; }
.feedback-explanation { margin: 10px 0 0; font-size: .88rem; }
.practice-summary-note { font-size: .9rem; color: #4d6271; margin-bottom: 24px; }
.error { padding: 14px; background: #fff1f1; border: 1px solid #e4b6b6; color: #902020; margin: 12px 0; border-radius: 6px; }
.score-ring { position: relative; flex-shrink: 0; width: 156px; height: 156px; display: grid; place-items: center; }
.score-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.score-track, .score-fill { fill: none; stroke-width: 7; }
.score-track { stroke: #e5edf3; }
.score-fill { stroke: var(--blue); }
.score { display: grid; justify-items: center; font-weight: bold; line-height: 1.4; margin: 0; }
.score strong { font-size: 2.7rem; color: #153f60; }
.score span { font-size: .88rem; font-weight: 400; color: #4d6271; }
.result-summary { margin-bottom: 24px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result-heading h2 { margin-bottom: 0; }
.result-photo { width: 138px; flex-shrink: 0; border-radius: 10px; }
.result-photo .category-icon { display: none; }
.result-photo.image-unavailable .category-icon { display: grid; }
.result-overview { display: flex; align-items: center; gap: 28px; margin: 24px 0 30px; }
.result-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 12px; }
.result-total { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 18px; border-radius: 10px; background: #f2f8f5; color: #17603c; }
.result-total.cross { background: #fcf3f3; color: #943238; }
.result-total strong { font-size: 1.6rem; }
.result-total span { grid-column: 1 / -1; font-size: .82rem; }
.review-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.review-item { background: white; border: 1px solid var(--border); border-inline-start: 4px solid #17603c; padding: 24px; border-radius: 6px; }
.review-item.incorrect { border-inline-start-color: #a3232b; }
.review-item h3 { font-size: 1.1rem; }
.verdict { display: flex; align-items: center; gap: 6px; color: #17603c; font-weight: 700; font-size: .9rem; }
.verdict .icon { width: 23px; height: 23px; }
.incorrect .verdict { color: #a3232b; }
.review-item p { margin-bottom: 10px; }
.explanation { color: #4d6271; border-top: 1px solid #e2e8ed; padding-top: 12px; }
.question-image { display: block; max-width: 100%; max-height: 300px; object-fit: contain; margin: 0 auto 20px; }
footer { font-size: .82rem; text-align: center; padding-top: 30px; }
dialog { color: inherit; width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--border); border-radius: 10px; }
dialog::backdrop { background: rgb(21 44 59 / .4); }
.loading-panel { min-height: 380px; display: grid; justify-items: center; align-content: center; padding: 38px 24px; text-align: center; }
.loading-visual { position: relative; width: 164px; height: 164px; display: grid; place-items: center; margin-bottom: 24px; overflow: hidden; border-radius: 50%; background: #eef5fa; }
.loading-road { position: absolute; top: -40px; bottom: -40px; width: 86px; background: #dce7ef; border-inline: 3px solid #c3d5e2; }
.loading-road::before, .loading-road::after { content: ''; position: absolute; top: -40px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, #fff 0 18px, transparent 18px 40px); animation: road-travel 1s linear infinite; }
.loading-road::before { left: 10px; }
.loading-road::after { right: 10px; }
.loading-car { position: relative; width: 66px; height: 66px; color: var(--blue); fill: #fff; }
.loading-status h2 { margin-bottom: 8px; }
.loading-status p { max-width: 370px; margin-bottom: 18px; }
.loading-dots { display: inline-flex; gap: 7px; }
.loading-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: loading-pulse 1.2s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
.initial-loading { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 280px; }
.loading-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #dce7ef; border-top-color: var(--blue); animation: loading-spin .8s linear infinite; }
@keyframes road-travel { to { transform: translateY(40px); } }
@keyframes loading-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.page-tools { display: flow-root; margin-bottom: 16px; }
.language-picker { position: relative; z-index: 3; width: max-content; max-width: 100%; margin-left: auto; }
.language-trigger { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #c8d4dd; border-radius: 8px; background: rgb(255 255 255 / .94); color: #244a65; font-size: .85rem; font-weight: 600; cursor: pointer; list-style: none; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger:hover { border-color: #adbac5; background: #fff; }
.language-picker[open] .language-trigger { border-color: #d49a42; }
.language-current-flag { display: flex; }
.language-flag { display: block; flex-shrink: 0; width: 24px; height: 16px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgb(21 44 59 / .12); }
.language-chevron { width: 16px; height: 16px; margin-inline-start: 6px; }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; max-width: calc(100vw - 32px); padding: 6px; border: 1px solid #d5dfe6; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgb(21 44 59 / .14); }
.language-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #244a65; font-size: .9rem; font-weight: 500; text-align: start; }
.language-menu button:hover:not(:disabled) { background: #f1f5f8; }
.language-menu button[aria-pressed="true"] { background: #edf4f8; color: #153f60; font-weight: 700; }
.language-check { margin-inline-start: auto; color: #ad701b; visibility: hidden; }
[aria-pressed="true"] .language-check { visibility: visible; }
.language-trigger[aria-disabled="true"] { opacity: .65; cursor: wait; }
.language-status { margin: 0 0 16px; padding: 12px 16px; background: #fff8e9; border-radius: 8px; color: #74450e; font-size: .9rem; }
.language-status:empty { display: none; }
.language-note { font-size: .9rem; color: #4d6271; }
[dir="ltr"] .category-arrow { transform: scaleX(-1); }
[dir="ltr"] .option:has(input:checked) { box-shadow: inset 3px 0 var(--blue); }
[dir="ltr"] .options .option.answer-correct { box-shadow: inset 3px 0 #298254; }
[dir="ltr"] .options .option.answer-incorrect { box-shadow: inset 3px 0 #b64c50; }
[dir="ltr"] .about-intro { justify-content: flex-end; }
.site-header > div { min-width: 0; }
@media (max-width: 760px) {
  .company-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .company-logo { width: 200px; max-width: 100%; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-road::before, .loading-road::after, .loading-dots i, .loading-spinner { animation: none; }
}
@media (max-width: 560px) {
  .page { padding: 24px 16px 16px; }
  .site-header { flex-direction: column; gap: 16px; margin-bottom: 24px; text-align: center; }
  .brand-logo { width: 160px; }
  .site-header h1, .site-header .site-title { font-size: 1.25rem; }
  .site-nav { justify-content: center; }
  .about-intro { flex-direction: column; align-items: stretch; min-height: 0; padding: 230px 0 24px; }
  .about-intro > div { padding: 24px 20px; }
  .about-photo { object-position: 30% center; }
  .about-backdrop::after { background: linear-gradient(to bottom, rgb(241 245 248 / .98), rgb(241 245 248 / .86) 330px, rgb(241 245 248 / .08) 540px, rgb(241 245 248 / .15)); }
  .about-modes { grid-template-columns: 1fr; gap: 24px; }
  .about-mode + .about-mode { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid #e2eaf0; padding-top: 24px; }
  .about-action { flex-direction: column; align-items: stretch; }
  .about-section { margin-top: 24px; padding-top: 24px; }
  .site-header p { font-size: .85rem; }
  .panel, .review-item { padding: 20px 16px; }
  .categories { grid-template-columns: 1fr; }
  .categories { gap: 12px; margin: 24px 0; }
  .category-choice { flex-direction: row; align-items: stretch; padding: 0; min-height: 124px; }
  .category-choice .category-media { width: 43%; flex-shrink: 0; aspect-ratio: auto; }
  .category-choice .category-photo { position: absolute; inset: 0; }
  .category-caption { flex: 1; min-width: 0; gap: 8px; padding: 14px 12px; }
  .category-icon { width: 30px; height: 30px; inset-inline-start: 8px; bottom: 8px; border-radius: 8px; }
  .category-icon .icon { width: 23px; height: 23px; }
  .category-copy { flex: 1; }
  .category-copy strong { font-size: 1rem; }
  .category-arrow { position: static; width: 22px; height: 22px; }
  .mode-choices { grid-template-columns: 1fr; gap: 10px; }
  .mode-copy { gap: 2px; }
  .mode-choice { padding: 12px; }
  legend { font-size: 1.15rem; }
  .option { padding: 12px; }
  .option:has(.answer-state) { flex-wrap: wrap; }
  .option .answer-state { flex-basis: 100%; margin: 0; padding-inline-start: 32px; }
  .actions > button { flex: 1 1 auto; }
  .result-overview { flex-direction: column; gap: 20px; }
  .result-heading { gap: 12px; }
  .result-heading h2 { font-size: 1.05rem; }
  .result-photo { width: 80px; }
  .result-totals { width: 100%; }
  .result-total { padding: 14px 12px; gap: 4px 8px; }
  .result-total .icon { width: 24px; height: 24px; }
  .result-total span { font-size: .78rem; }
  .loading-panel { padding: 32px 20px; }
}
