* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    margin-top: 12px;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.mensaje {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.mensaje-exito {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
}

.mensaje-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.resultado {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.resultado-limpio {
    text-align: center;
    color: #16a34a;
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
}

.reporte {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.reporte:last-child {
    border-bottom: none;
}

.reporte-dni {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.reporte-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.reporte-fecha {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}

.contacto {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.lista-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
}

.lista-item-titulo {
    font-weight: 600;
    margin-bottom: 8px;
}

.lista-item-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

.checkbox-group {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

@media (max-width: 640px) {
    .container {
        padding: 20px 16px;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn-small {
        width: 100%;
    }
}