/* Responsive layout shared by both verification pages. */
[hidden] { display: none !important; }
.qr-button { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #012115; border-radius: 8px; background: #fff; color: #012115; cursor: pointer; font-weight: 600; }
.qr-button:hover { background: #e6f4ea; }
.qr-button:focus-visible { outline: 3px solid #af8100; outline-offset: 3px; }
.qr-button:disabled { opacity: .6; cursor: wait; }
.qr-panel { min-width: 0; padding: 12px; border: 1px solid #ccc; border-radius: 8px; background: #f9fafc; }
.qr-panel p { margin: 0 0 12px; }
#qr-reader { width: 100%; min-width: 0; overflow: hidden; margin-bottom: 12px; }
#qr-reader video { display: block; max-width: 100%; }
.qr-status { margin: 0; font-size: .9rem; }
.qr-status:empty { display: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    margin: 0;
    color: #232323;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
header {
    background: #012115;
    color: white;
    padding: 16px clamp(12px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
header > a { flex: 0 0 auto; max-width: 30%; }
header > div { min-width: 0; }
header img { display: block; height: auto; max-height: 65px; width: auto; }
header h2 { color: white; margin: 0; text-align: left; }
.container {
    flex: 1;
    width: calc(100% - 32px);
    max-width: 1100px;
    min-width: 0;
    margin: clamp(16px, 3vw, 36px) auto;
    background: white;
    padding: clamp(16px, 3vw, 32px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
h2 { text-align: center; font-size: clamp(1.125rem, 2.4vw, 1.5rem); margin: 0 0 16px; color: #012115; }
.toast {
    margin: 16px auto 24px;
    padding: 12px 16px;
    background: #fff8e6;
    border-left: 5px solid #af8100;
    border-radius: 8px;
    font-size: .95rem;
    text-align: center;
    color: #5a4500;
    font-weight: 500;
}
.grid-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.col-izq, .col-der { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.col-izq { align-items: center; }
.col-izq h3 { font-size: 1rem; font-weight: 600; margin: 0; color: #012115; text-align: center; }
.col-izq img { width: 100%; max-width: 425px; border: 1px solid #ccc; border-radius: 8px; object-fit: contain; }
form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
input, select, button { font: inherit; }
input[type="text"], select {
    width: 100%; min-width: 0; max-width: 100%; min-height: 48px;
    padding: 12px; border: 1px solid #aaa; border-radius: 8px;
    font-size: 1rem; background: white; color: #232323;
}
input[type="text"]:focus, select:focus { border-color: #af8100; outline: 2px solid #af8100; outline-offset: 2px; }
input[type="submit"] {
    width: 100%; min-height: 48px; background: #012115; color: white;
    padding: 12px; border: none; border-radius: 8px; cursor: pointer;
    font-size: 1rem; font-weight: 600;
}
input[type="submit"]:hover { background: #574100; }
a:focus-visible, input[type="submit"]:focus-visible { outline: 3px solid #af8100; outline-offset: 3px; }
.mensaje { font-weight: 600; text-align: center; font-size: 1rem; padding: 12px; border-radius: 8px; }
.valido { background: #e6f4ea; color: #012115; border: 1px solid #012115; }
.invalido { background: #f8d7da; color: #842029; border: 1px solid #842029; }
.datos { background: #f9fafc; padding: 16px; border-radius: 8px; border-left: 5px solid #af8100; }
.datos p { margin: 8px 0; font-size: .95rem; }
footer { background: #232323; padding: 20px 16px; font-size: .875rem; color: white; border-top: 2px solid #af8100; text-align: center; }
.footer-grid { max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-grid .col { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-grid .info { font-size: 1em; }
.footer-grid .info:first-child { color: #f3ce65; font-weight: 600; }
footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
@media (max-width: 768px) {
    .grid-container { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .col-der { grid-row: 1; }
    .col-izq img { max-width: 360px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 400px) {
    header { gap: 10px; padding: 12px; }
    header img { max-height: 48px; }
    header h2 { font-size: 1rem; }
    .container { width: calc(100% - 16px); padding: 16px 12px; }
    .toast { padding: 12px; text-align: left; }
}
