* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1e242b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.contenedor-principal {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fila-superior {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start;
}

/* ========================================================
   TARJETA IZQUIERDA (ACCESO / REGISTRO)
   ======================================================== */
.tarjeta-acceso {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cabecera-azul {
    background-color: #0b69ff;
    color: #ffffff;
    padding: 16px 14px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.pestanas {
    display: flex;
    padding: 18px 20px 8px 20px;
    gap: 15px;
    align-items: center;
}

.tab-btn {
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: none;
    padding: 8px 18px;
    border-radius: 6px;
    transition: 0.2s all;
}

.tab-activo {
    background-color: #0b69ff;
    color: #ffffff;
}

.tab-inactivo-verde {
    background-color: transparent;
    color: #1a8738;
}

.tab-activo-verde {
    background-color: #1a8738;
    color: #ffffff;
}

.tab-inactivo-azul {
    background-color: transparent;
    color: #0b69ff;
}

.formulario-cuerpo {
    padding: 10px 20px 24px 20px;
    display: flex;
    flex-direction: column;
}

.formulario-cuerpo label {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    margin-top: 12px;
    margin-bottom: 5px;
}

.formulario-cuerpo input,
.formulario-cuerpo select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
}

.formulario-cuerpo input:focus,
.formulario-cuerpo select:focus {
    border-color: #0b69ff;
    box-shadow: 0 0 0 2px rgba(11, 105, 255, 0.2);
}

.btn-azul-submit {
    background-color: #0b69ff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-azul-submit:hover {
    background-color: #0056d6;
}

.btn-verde-submit {
    background-color: #1a8738;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-verde-submit:hover {
    background-color: #146c2e;
}

/* ========================================================
   TARJETA DERECHA (CÓDIGO QR)
   ======================================================== */
.tarjeta-qr {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: 220px;
}

.texto-qr {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 16px;
}

.contenedor-imagen-qr img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ========================================================
   SECCIÓN INFERIOR (CUADRO DE HONOR)
   ======================================================== */
.seccion-honor {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cabecera-amarilla {
    background-color: #f59e0b;
    color: #1f2421;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    padding: 12px;
}

.tabla-contenedor {
    background-color: #e5e7eb;
}

.tabla-honor {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabla-honor thead tr {
    background-color: #ffffff;
    color: #111827;
    border-bottom: 1px solid #d1d5db;
}

.tabla-honor th {
    padding: 12px 10px;
    font-weight: 800;
    text-align: left;
}

.tabla-honor th:first-child,
.tabla-honor th:nth-child(5),
.tabla-honor th:nth-child(6) {
    text-align: center;
}

.tabla-honor td {
    padding: 12px 10px;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.centrado {
    text-align: center;
}

.fila-vacia {
    text-align: center;
    color: #6b7280;
    padding: 24px !important;
    background-color: #d1d5db !important;
    font-size: 14px;
}

/* ========================================================
   ALERTAS
   ======================================================== */
.mensaje-flotante {
    margin-bottom: -10px;
}

.alerta {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.exito {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 820px) {
    .fila-superior {
        grid-template-columns: 1fr;
    }
}
